Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/snapshot/code-serializer.cc')
-rw-r--r--deps/v8/src/snapshot/code-serializer.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/deps/v8/src/snapshot/code-serializer.cc b/deps/v8/src/snapshot/code-serializer.cc
index e91799cdadd..5db7cae94b2 100644
--- a/deps/v8/src/snapshot/code-serializer.cc
+++ b/deps/v8/src/snapshot/code-serializer.cc
@@ -57,7 +57,6 @@ ScriptCompiler::CachedData* CodeSerializer::Serialize(
// TODO(7110): Enable serialization of Asm modules once the AsmWasmData is
// context independent.
if (script->ContainsAsmModule()) return nullptr;
- if (isolate->debug()->is_active()) return nullptr;
isolate->heap()->read_only_space()->ClearStringPaddingIfNeeded();
@@ -206,8 +205,7 @@ void CodeSerializer::SerializeObject(HeapObject* obj, HowToCode how_to_code,
debug_bytecode_array = debug_info->DebugBytecodeArray();
sfi->SetDebugBytecodeArray(debug_info->OriginalBytecodeArray());
}
- sfi->set_function_identifier_or_debug_info(
- debug_info->function_identifier());
+ sfi->set_script_or_debug_info(debug_info->script());
}
DCHECK(!sfi->HasDebugInfo());
@@ -219,7 +217,7 @@ void CodeSerializer::SerializeObject(HeapObject* obj, HowToCode how_to_code,
// Restore debug info
if (debug_info != nullptr) {
- sfi->set_function_identifier_or_debug_info(debug_info);
+ sfi->set_script_or_debug_info(debug_info);
if (debug_bytecode_array != nullptr) {
sfi->SetDebugBytecodeArray(debug_bytecode_array);
}