Index: src/debug.cc |
diff --git a/src/debug.cc b/src/debug.cc |
index 543ce9f24df5f096106902b918f927f9a7e3dc8e..43de12dd376ef9ec0a104c6c06ad526dfa375bfc 100644 |
--- a/src/debug.cc |
+++ b/src/debug.cc |
@@ -1796,7 +1796,9 @@ static bool CompileFullCodeForDebugging(Handle<JSFunction> function, |
Handle<Code> current_code) { |
ASSERT(!current_code->has_debug_break_slots()); |
- CompilationInfo info(function); |
+ Zone zone(function->GetIsolate()); |
+ CompilationInfo info(function, &zone); |
+ ZoneScope scope(&zone, DELETE_ON_EXIT); |
info.MarkCompilingForDebugging(current_code); |
ASSERT(!info.shared_info()->is_compiled()); |
ASSERT(!info.isolate()->has_pending_exception()); |
@@ -2033,7 +2035,6 @@ void Debug::PrepareForBreakPoints() { |
// Try to compile the full code with debug break slots. If it |
// fails just keep the current code. |
Handle<Code> current_code(function->shared()->code()); |
- ZoneScope zone_scope(isolate_, DELETE_ON_EXIT); |
shared->set_code(*lazy_compile); |
bool prev_force_debugger_active = |
isolate_->debugger()->force_debugger_active(); |