From 4a5b7e32c4f687bd481fc6d58adf7c2c695d2466 Mon Sep 17 00:00:00 2001 From: marja Date: Fri, 18 Nov 2016 06:06:25 -0800 Subject: [PATCH] Remove FLAG_min_preparse_length. It originates from the era where we used to run a separate preparse step before parsing and store the function data. Now the usage of preparser is something completely different, so this flag doesn't make sense any more. In addition, this way we get more test coverage for preparser (for small scripts). BUG= Review-Url: https://codereview.chromium.org/2513563002 Cr-Commit-Position: refs/heads/master@{#41110} --- src/flag-definitions.h | 2 -- src/parsing/parse-info.cc | 3 +-- src/parsing/parse-info.h | 3 --- test/cctest/test-api.cc | 4 ---- test/cctest/test-parsing.cc | 16 +++++++------- test/cctest/test-serialize.cc | 1 - test/message/for-loop-invalid-lhs.js | 4 ---- test/message/for-loop-invalid-lhs.out | 2 +- test/mjsunit/bugs/bug-2728.js | 21 +++++++++++++++++++ ...agerly-parsed-lazily-compiled-functions.js | 2 -- .../es6/arrow-rest-params-lazy-parsing.js | 2 -- .../es6/block-scoping-top-level-sloppy.js | 2 -- test/mjsunit/es6/block-scoping-top-level.js | 1 - test/mjsunit/es6/classes-lazy-parsing.js | 2 -- .../es6/destructuring-assignment-lazy.js | 2 -- test/mjsunit/es6/regress/regress-4400.js | 2 -- test/mjsunit/es6/regress/regress-594084.js | 1 - test/mjsunit/lazy-inner-functions.js | 2 -- test/mjsunit/modules-preparse.js | 1 - test/mjsunit/preparse-toplevel-strict-eval.js | 2 -- test/mjsunit/regress-3456.js | 2 -- test/mjsunit/regress-604044.js | 2 -- test/mjsunit/regress/regress-crbug-517592.js | 2 +- test/mjsunit/regress/regress-crbug-580934.js | 2 -- test/mjsunit/regress/regress-crbug-648740.js | 2 -- test/mjsunit/regress/regress-crbug-659915a.js | 2 +- test/mjsunit/regress/regress-crbug-659915b.js | 2 +- test/test262/test262.status | 11 +++++++++- test/webkit/fast/js/kde/parse-expected.txt | 4 ---- test/webkit/fast/js/kde/parse.js | 4 ---- .../fast/js/parser-syntax-check-expected.txt | 10 --------- test/webkit/fast/js/parser-syntax-check.js | 6 ------ tools/parser-shell.cc | 4 ---- tools/testrunner/local/variants.py | 4 +--- 34 files changed, 44 insertions(+), 88 deletions(-) create mode 100644 test/mjsunit/bugs/bug-2728.js diff --git a/src/flag-definitions.h b/src/flag-definitions.h index 1439d79d23..e1f4c5db69 100644 --- a/src/flag-definitions.h +++ b/src/flag-definitions.h @@ -642,8 +642,6 @@ DEFINE_BOOL(external_reference_stats, false, #endif // DEBUG // compiler.cc -DEFINE_INT(min_preparse_length, 1024, - "minimum length for automatic enable preparsing") DEFINE_INT(max_opt_count, 10, "maximum number of optimization attempts before giving up.") diff --git a/src/parsing/parse-info.cc b/src/parsing/parse-info.cc index 4fbfb1948d..30dd285588 100644 --- a/src/parsing/parse-info.cc +++ b/src/parsing/parse-info.cc @@ -63,8 +63,7 @@ ParseInfo::ParseInfo(Zone* zone, Handle shared) ParseInfo::ParseInfo(Zone* zone, Handle