Chromium Code Reviews| 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()); |