PreParser / Parser consistency: Make PreParser aware of Zone and AstValueFactory.
authormarja <marja@chromium.org>
Fri, 6 Feb 2015 15:58:36 +0000 (07:58 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 6 Feb 2015 15:58:47 +0000 (15:58 +0000)
commit5c56665059891cbacf43f6efe483582029442f0b
tree421b52582822ba57045d4de461d64ef2d40154df
parentd9892bbd5a78b5a1e389cbf4854ec7fcbd645567
PreParser / Parser consistency: Make PreParser aware of Zone and AstValueFactory.

Previously it just had hacks to have NULLs instead of them and pretended to know
nothing about Zone. The hacks provide no real benefit (probably historically
based on some weird misconception about the relationship between Zone and
Isolate), and make it harder for the PreParser to start to know more about
variables and scoping.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#26494}
src/parser.cc
src/parser.h
src/preparser.h
test/cctest/test-parsing.cc