Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 129c342d72140c212790cef6d99df32ab4624cfd..aef2965b7c560a5d9190f3b5d718bfdecc5dff74 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -404,7 +404,7 @@ void FullCodeGenerator::Initialize() { |
// we disable the production of debug code in the full compiler if we are |
// either generating a snapshot or we booted from a snapshot. |
generate_debug_code_ = FLAG_debug_code && |
- !Serializer::enabled() && |
+ !Serializer::enabled(isolate()) && |
!Snapshot::HaveASnapshotToStartFrom(); |
masm_->set_emit_debug_code(generate_debug_code_); |
masm_->set_predictable_code_size(true); |