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

Unified Diff: src/compiler.cc

Issue 2633803002: [inspector] implemented blackboxing inside v8 (Closed)
Patch Set: rebased Created 3 years, 11 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/api.cc ('k') | src/debug/debug.h » ('j') | src/debug/debug.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 6f123ea2b3e6ad5db98cd7ac1d048fed70ab0e6a..4c1c539ba7373782786c04523131a8bf4468cf76 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -505,6 +505,7 @@ bool CompileUnoptimizedInnerFunctionsRecursively(
shared =
isolate->factory()->NewSharedFunctionInfoForLiteral(literal, script);
shared->set_is_toplevel(false);
+ isolate->debug()->OnNewSharedFunctionInfo(shared);
}
Zone zone(isolate->allocator(), ZONE_NAME);
@@ -1087,6 +1088,7 @@ Handle<SharedFunctionInfo> CompileToplevel(CompilationInfo* info) {
DCHECK_EQ(kNoSourcePosition, lit->function_token_position());
result = isolate->factory()->NewSharedFunctionInfoForLiteral(lit, script);
result->set_is_toplevel(true);
+ isolate->debug()->OnNewSharedFunctionInfo(result);
Yang 2017/01/19 13:55:35 I wonder whether it is easier to keep track of all
kozy 2017/01/19 16:08:38 Done.
parse_info->set_shared_info(result);
parse_info->set_function_literal_id(result->function_literal_id());
@@ -1667,6 +1669,7 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfo(
Handle<SharedFunctionInfo> result =
isolate->factory()->NewSharedFunctionInfoForLiteral(literal, script);
result->set_is_toplevel(false);
+ isolate->debug()->OnNewSharedFunctionInfo(result);
Scope* outer_scope = literal->scope()->GetOuterScopeWithContext();
if (outer_scope) {
result->set_outer_scope_info(*outer_scope->scope_info());
« no previous file with comments | « src/api.cc ('k') | src/debug/debug.h » ('j') | src/debug/debug.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698