Drop computed handler count and index from AST.
authormstarzinger <mstarzinger@chromium.org>
Mon, 8 Jun 2015 18:19:32 +0000 (11:19 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 8 Jun 2015 18:19:40 +0000 (18:19 +0000)
commitc14ba5ec48f0b6327eaadc63837f1549fbb60bd2
tree5fa30252b7fe398c3e87fa5cdd65cbf8fe70297e
parentd2f5702c56fc9503efdd73931fca81e5f1fd2839
Drop computed handler count and index from AST.

These values were computed by the parser and hence out of sync with any
visitor over the AST. Our AST visitor aborts visitation of statement
lists as soon as a jump statement has been reached. Now handler tables
are guaranteed to be dense and fully populated.

R=ishell@chromium.org
TEST=mjsunit/regress/regress-crbug-493290
BUG=chromium:493290
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#28846}
14 files changed:
src/arm/full-codegen-arm.cc
src/arm64/full-codegen-arm64.cc
src/ast.h
src/full-codegen.cc
src/full-codegen.h
src/ia32/full-codegen-ia32.cc
src/mips/full-codegen-mips.cc
src/mips64/full-codegen-mips64.cc
src/parser.cc
src/ppc/full-codegen-ppc.cc
src/preparser.h
src/x64/full-codegen-x64.cc
src/x87/full-codegen-x87.cc
test/mjsunit/regress/regress-crbug-493290.js [new file with mode: 0644]