Implement a 'trial parse' step, that will abort pre-parsing excessively
authorvogelheim <vogelheim@chromium.org>
Wed, 6 May 2015 10:21:20 +0000 (03:21 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 6 May 2015 10:21:27 +0000 (10:21 +0000)
commitbe9570027f34f8dbf60a7b530fe2499ff52c1a3d
treef23bf06d9e8ee72e1396f33f85cdda9a87d13389
parent7b33409ba3fbb7853b854fea68d6a3dcbd387787
Implement a 'trial parse' step, that will abort pre-parsing excessively
long and trivial functions, so that they can be eagerly compiled after all.
This essentially allows the parser to renege on its earlier decision to
lazy-parse, if additional information suggests it was a bad decision.

BUG=chromium:470930
LOG=Y

Review URL: https://codereview.chromium.org/1102523003

Cr-Commit-Position: refs/heads/master@{#28252}
src/ast.h
src/compiler.cc
src/parser.cc
src/parser.h
src/preparser.cc
src/preparser.h
src/scanner-character-streams.cc
src/scanner-character-streams.h
src/scanner.cc
src/scanner.h