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

Unified Diff: src/parsing/parser.cc

Issue 2547483002: Store SharedFunctionInfos of a Script in a FixedArray indexed by their ID (Closed)
Patch Set: updates Created 4 years 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/parser.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index f022fda26009e049478b1dbef4682a996044a282..35f8d8fa9b2fe6f6efd6d4568ee5d70b87fddad2 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -820,6 +820,8 @@ FunctionLiteral* Parser::DoParseProgram(ParseInfo* info) {
}
}
+ info->set_max_function_literal_id(GetLastFunctionLiteralId());
Toon Verwaest 2016/12/06 21:10:14 Mmh. ParseInfo isn't exactly supposed to be a comm
jochen (gone - plz use gerrit) 2016/12/07 15:57:00 it's also what communicates the parsing result to
Toon Verwaest 2016/12/08 07:31:30 Oh ok.. buh. Follow-up cleanup then I guess... Lan
+
// Make sure the target stack is empty.
DCHECK(target_stack_ == NULL);

Powered by Google App Engine
This is Rietveld 408576698