| Index: src/debug.cc
|
| diff --git a/src/debug.cc b/src/debug.cc
|
| index 8c937e4902383361dc9ed6ca9445407a2cfbadd6..11d5378461adeff08d4a11efb3ebb5c3ed2c6739 100644
|
| --- a/src/debug.cc
|
| +++ b/src/debug.cc
|
| @@ -1478,9 +1478,7 @@ bool Debug::PrepareFunctionForBreakPoints(Handle<SharedFunctionInfo> shared) {
|
|
|
| if (!shared->HasDebugCode()) {
|
| DCHECK(functions.length() > 0);
|
| - if (Compiler::GetDebugCode(functions.first()).is_null()) {
|
| - return false;
|
| - }
|
| + if (!Compiler::CompileDebugCode(functions.first())) return false;
|
| }
|
|
|
| for (Handle<JSFunction> const function : functions) {
|
| @@ -1581,7 +1579,7 @@ Handle<Object> Debug::FindSharedFunctionInfoInScript(Handle<Script> script,
|
| // If not, compile to reveal inner functions, if possible.
|
| if (shared->allows_lazy_compilation_without_context()) {
|
| HandleScope scope(isolate_);
|
| - if (Compiler::GetDebugCode(handle(shared)).is_null()) break;
|
| + if (!Compiler::CompileDebugCode(handle(shared))) break;
|
| continue;
|
| }
|
|
|
| @@ -1611,9 +1609,9 @@ Handle<Object> Debug::FindSharedFunctionInfoInScript(Handle<Script> script,
|
| }
|
| HandleScope scope(isolate_);
|
| if (closure == NULL) {
|
| - if (Compiler::GetDebugCode(handle(shared)).is_null()) break;
|
| + if (!Compiler::CompileDebugCode(handle(shared))) break;
|
| } else {
|
| - if (Compiler::GetDebugCode(handle(closure)).is_null()) break;
|
| + if (!Compiler::CompileDebugCode(handle(closure))) break;
|
| }
|
| }
|
| return isolate_->factory()->undefined_value();
|
|
|