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

Unified Diff: src/parsing/preparse-data.cc

Issue 2472063002: Preparse lazy function parameters (Closed)
Patch Set: IsArrowFunction 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
« no previous file with comments | « src/parsing/preparse-data.h ('k') | src/parsing/preparse-data-format.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/preparse-data.cc
diff --git a/src/parsing/preparse-data.cc b/src/parsing/preparse-data.cc
index e1ef74c33c6f79af153c0c184388934dc0d1605e..c3170a2161de5a9ed4e51980baa6d9c78ba1ba21 100644
--- a/src/parsing/preparse-data.cc
+++ b/src/parsing/preparse-data.cc
@@ -12,6 +12,20 @@
namespace v8 {
namespace internal {
+void CompleteParserRecorder::LogFunction(
+ int start, int end, int num_parameters, int function_length,
+ bool has_duplicate_parameters, int literals, int properties,
+ LanguageMode language_mode, bool uses_super_property, bool calls_eval) {
+ function_store_.Add(start);
+ function_store_.Add(end);
+ function_store_.Add(num_parameters);
+ function_store_.Add(function_length);
+ function_store_.Add(literals);
+ function_store_.Add(properties);
+ function_store_.Add(
+ FunctionEntry::EncodeFlags(language_mode, uses_super_property, calls_eval,
+ has_duplicate_parameters));
+}
CompleteParserRecorder::CompleteParserRecorder() {
preamble_[PreparseDataConstants::kMagicOffset] =
« no previous file with comments | « src/parsing/preparse-data.h ('k') | src/parsing/preparse-data-format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698