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

Unified Diff: src/parsing/parse-info.cc

Issue 2481163002: Assign unique IDs to FunctionLiterals (Closed)
Patch Set: updates Created 4 years, 1 month 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
Index: src/parsing/parse-info.cc
diff --git a/src/parsing/parse-info.cc b/src/parsing/parse-info.cc
index 4fbfb1948dc4e056d7f3aabf947d10c5a1409ac2..b07e6f5041d1f1b0e9e67c81a364d7c9465f2466 100644
--- a/src/parsing/parse-info.cc
+++ b/src/parsing/parse-info.cc
@@ -25,6 +25,7 @@ ParseInfo::ParseInfo(Zone* zone)
compiler_hints_(0),
start_position_(0),
end_position_(0),
+ function_literal_num_(-1),
isolate_(nullptr),
cached_data_(nullptr),
ast_value_factory_(nullptr),
@@ -43,6 +44,7 @@ ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared)
set_compiler_hints(shared->compiler_hints());
set_start_position(shared->start_position());
set_end_position(shared->end_position());
+ function_literal_num_ = shared->function_literal_num();
set_stack_limit(isolate_->stack_guard()->real_climit());
set_unicode_cache(isolate_->unicode_cache());
set_language_mode(shared->language_mode());

Powered by Google App Engine
This is Rietveld 408576698