| Index: src/debug.cc
|
| diff --git a/src/debug.cc b/src/debug.cc
|
| index 083f38fd167a0cae59cc15dc7bdd8b7417aa77f4..59b4912ed3d8168e93e6615eadc5583c6880ec8b 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());
|
| @@ -2050,7 +2052,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();
|
|
|