Parser cleanup: PreParser doesn't need to produce symbol data any more.
authormarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 14 Apr 2014 08:49:23 +0000 (08:49 +0000)
committermarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 14 Apr 2014 08:49:23 +0000 (08:49 +0000)
commited1d232d5d0a0b61075416047f117129dfef0dd5
tree419cc825e1d7e782a7d52e3de79f08412f50f0f8
parenta3d743b470ec8db3f57248cf47744018a6f68a84
Parser cleanup: PreParser doesn't need to produce symbol data any more.

State of the art:
- Chromium doesn't do a separate preparsing phase any more.
- We start parsing with Parser, and when it sees a lazy function, it falls back
to PreParser for that function.
- The symbol data should contain symbols which are *outside* lazy functions.
- So Parser should always produce symbol data, and PreParser should never.
- Because it's this simple now, we don't need to keep track of "should
produce symbol data" (i.e., whether we're inside a lazy func or not).

R=ulan@chromium.org
BUG=

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20707 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/parser.cc
src/preparse-data.cc
src/preparse-data.h
src/preparser.cc
src/preparser.h