Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: src/debug/debug.cc

Issue 2400973002: [compiler] Allow debug compilation for top-level eval. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug.cc
diff --git a/src/debug/debug.cc b/src/debug/debug.cc
index a99ea3f15c7f6f209dc1032515cf9dd5f49f5b5e..93fdd58273198aeec30cc8b0d42a35ae40e4b787 100644
--- a/src/debug/debug.cc
+++ b/src/debug/debug.cc
@@ -1451,7 +1451,7 @@ Handle<Object> Debug::FindSharedFunctionInfoInScript(Handle<Script> script,
}
}
// If not, compile to reveal inner functions, if possible.
- if (shared->allows_lazy_compilation_without_context()) {
+ if (shared->allows_lazy_compilation()) {
HandleScope scope(isolate_);
if (!Compiler::CompileDebugCode(handle(shared))) break;
continue;
@@ -1470,7 +1470,7 @@ Handle<Object> Debug::FindSharedFunctionInfoInScript(Handle<Script> script,
candidate = candidate_closure->shared();
} else if (object->IsSharedFunctionInfo()) {
candidate = SharedFunctionInfo::cast(object);
- if (!candidate->allows_lazy_compilation_without_context()) continue;
+ if (!candidate->allows_lazy_compilation()) continue;
} else {
continue;
}
« no previous file with comments | « src/compiler.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698