Description(Pre)Parser: Move FunctionState, BlockState and Scope handling to ParserBase.
Notes:
- This removes Parser::FunctionState and PreParser::FunctionState and adds
ParserBase::FunctionState etc.
- Also the scope stacks and function state stacks are moved to ParserBase.
- PreParser::FunctionState didn't add and subtract
JSFunction::kLiteralsPrefixSize (unlike Parser::FunctionState). Since the
actual value of NextMaterializedLiteralIndex is not used in the Preparser,
this change is valid.
- Traits no longer need functions like is_classic_mode(), since now there is a
unified way of getting the information from the FunctionState / Scope.
R=ulan@chromium.org
BUG=v8:3126
LOG=N
Committed: https://code.google.com/p/v8/source/detail?r=19361
Patch Set 1 #
Total comments: 2
Patch Set 2 : code review (ulan) #Patch Set 3 : mismatch?? #Patch Set 4 : rebased #Patch Set 5 : rebased #
Messages
Total messages: 4 (0 generated)
|