v8/test
marja@chromium.org 0a01afda76 Re-enable Parser::symbol_cache_ (after a long time!)
The Parser never used the symbol stream produced by the PreParser for anything
useful, due to a bug introduced 3.5 years ago by
https://codereview.chromium.org/3356010/diff/7001/src/parser.cc.

The bug is that calling Initialize on symbol_cache_ doesn't change its
length. So the length remains 0, and the "if" in Parser::LookupSymbol is always
true, and Parser::LookupCachedSymbol is never called and symbol_cache_ never
filled.

This bug also masked a bug that the symbol stream produced by PreParser doesn't
match what Parser wants to consume. The repro case is the following:

var myo = {if: 4}; print(myo.if);

PreParser doesn't log a symbol for the first "if", but in the corresponding
place, Parser consumes one symbol from the symbol stream. Since the consumed
symbols were never really used, this mismatch went unnoticed.

This CL also fixes that bug.

BUG=
R=ulan@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19505 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-02-20 11:35:37 +00:00
..
benchmarks Merge experimental/a64 to bleeding_edge. 2014-02-12 09:19:30 +00:00
cctest Re-enable Parser::symbol_cache_ (after a long time!) 2014-02-20 11:35:37 +00:00
intl Merge experimental/a64 to bleeding_edge. 2014-02-12 09:19:30 +00:00
message Clean up some A64 specific code in common code that was introduced by A64 merge 2014-02-12 13:27:13 +00:00
mjsunit Upgrade Symbol implementation to match current ES6 behavior. 2014-02-19 14:19:42 +00:00
mozilla A64: Let the MacroAssembler resolve branches to distant targets. 2014-02-18 13:15:32 +00:00
preparser Merge experimental/a64 to bleeding_edge. 2014-02-12 09:19:30 +00:00
test262 Merge experimental/a64 to bleeding_edge. 2014-02-12 09:19:30 +00:00
webkit Merge experimental/a64 to bleeding_edge. 2014-02-12 09:19:30 +00:00