v8/src/ast
jochen cfebe6034c Assign unique IDs to FunctionLiterals
They're supposed to be stable across several parse passes, so we'll also
store them in the associated SharedFunctionInfos

To achieve this, the PreParser and Parser need to generated the same number of
FunctionLiterals. To achieve this, we teach the PreParser about desuggaring of
class literals.

For regular functions, the function IDs are assigned in the order they occur in
the source. For arrow functions, however, we only know that it's an arrow function
after parsing the parameter list, and so the ID assigned to the arrow function is
larger than the IDs assigned to functions defined in the parameter list. This
implies that we have to reset the function ID counter to before the parameter list
when re-parsing an arrow function. To be able to do this, we store the number of
function literals found in the parameter list of arrow functions as well.

BUG=v8:5589

Review-Url: https://codereview.chromium.org/2481163002
Cr-Commit-Position: refs/heads/master@{#41309}
2016-11-28 11:40:53 +00:00
..
ast-expression-rewriter.cc Thread decls-list through Declaration using a ThreadedList 2016-11-02 14:08:47 +00:00
ast-expression-rewriter.h Thread decls-list through Declaration using a ThreadedList 2016-11-02 14:08:47 +00:00
ast-function-literal-id-reindexer.cc Assign unique IDs to FunctionLiterals 2016-11-28 11:40:53 +00:00
ast-function-literal-id-reindexer.h Assign unique IDs to FunctionLiterals 2016-11-28 11:40:53 +00:00
ast-literal-reindexer.cc Split the AST representation of class properties from object properties. 2016-09-06 17:43:51 +00:00
ast-literal-reindexer.h Split the AST representation of class properties from object properties. 2016-09-06 17:43:51 +00:00
ast-numbering.cc [fullcodegen] Remove deprecated support for new.target and rest parameters. 2016-11-28 08:59:51 +00:00
ast-numbering.h Move catch prediction into frontend and make it aware of rethrows. 2016-07-12 15:23:35 +00:00
ast-traversal-visitor.h Thread decls-list through Declaration using a ThreadedList 2016-11-02 14:08:47 +00:00
ast-type-bounds.h Moved zones and zone related stuff in its own directory. 2016-09-20 16:08:07 +00:00
ast-types.cc [modules] Make ModuleInfoEntry a Struct rather than FixedArray. 2016-11-04 09:37:43 +00:00
ast-types.h Forking the type system between Crankshaft & Turbofan. 2016-09-02 13:04:39 +00:00
ast-value-factory.cc [Parser] Added SMI cache 2016-11-09 16:12:33 +00:00
ast-value-factory.h [Parser] Added SMI cache 2016-11-09 16:12:33 +00:00
ast.cc [ic] Remove names table from type feedback metadata. 2016-11-21 10:46:16 +00:00
ast.h Assign unique IDs to FunctionLiterals 2016-11-28 11:40:53 +00:00
compile-time-value.cc Remove unnessary includes of parser.h 2016-09-02 17:48:46 +00:00
compile-time-value.h Remove unnessary includes of parser.h 2016-09-02 17:48:46 +00:00
context-slot-cache.cc Include only stuff you need, part 9: variables.h 2016-09-09 10:55:50 +00:00
context-slot-cache.h Include only stuff you need, part 9: variables.h 2016-09-09 10:55:50 +00:00
modules.cc [modules] Maintain array of cells for imports and local exports. 2016-11-07 16:23:47 +00:00
modules.h [modules] Maintain array of cells for imports and local exports. 2016-11-07 16:23:47 +00:00
OWNERS Add marja to ast owners 2016-08-26 05:30:37 +00:00
prettyprinter.cc Refactor SharedFunctionInfo::IsBuiltin. 2016-11-17 09:43:12 +00:00
prettyprinter.h Refactor SharedFunctionInfo::IsBuiltin. 2016-11-17 09:43:12 +00:00
scopeinfo.cc [modules] Make handling of module info's regular exports more robust. 2016-11-07 09:55:55 +00:00
scopes.cc Fix zone in which temp-zone parsed data is allocated for the function scope on the boundary. 2016-11-24 16:07:05 +00:00
scopes.h Fix zone in which temp-zone parsed data is allocated for the function scope on the boundary. 2016-11-24 16:07:05 +00:00
variables.cc Turn Scope::locals_ into a ThreadedList 2016-11-03 10:07:12 +00:00
variables.h Preparse lazy function parameters 2016-11-04 15:04:29 +00:00