| Index: src/compiler/ast-graph-builder.h
|
| diff --git a/src/compiler/ast-graph-builder.h b/src/compiler/ast-graph-builder.h
|
| index f5b662224a0a95e8629a2fa4b54848c5c95ee51e..79bc1ce367313c9154d13c855fe5fceb2ae4e6f5 100644
|
| --- a/src/compiler/ast-graph-builder.h
|
| +++ b/src/compiler/ast-graph-builder.h
|
| @@ -87,6 +87,7 @@ class AstGraphBuilder : public AstVisitor {
|
| // Nodes representing values in the activation record.
|
| SetOncePointer<Node> function_closure_;
|
| SetOncePointer<Node> function_context_;
|
| + SetOncePointer<Node> new_target_;
|
|
|
| // Tracks how many try-blocks are currently entered.
|
| int try_catch_nesting_level_;
|
| @@ -147,13 +148,16 @@ class AstGraphBuilder : public AstVisitor {
|
| // Create the main graph body by visiting the AST.
|
| void CreateGraphBody(bool stack_check);
|
|
|
| - // Get or create the node that represents the outer function closure.
|
| + // Get or create the node that represents the incoming function closure.
|
| Node* GetFunctionClosureForContext();
|
| Node* GetFunctionClosure();
|
|
|
| - // Get or create the node that represents the outer function context.
|
| + // Get or create the node that represents the incoming function context.
|
| Node* GetFunctionContext();
|
|
|
| + // Get or create the node that represents the incoming new target value.
|
| + Node* GetNewTarget();
|
| +
|
| // Node creation helpers.
|
| Node* NewNode(const Operator* op, bool incomplete = false) {
|
| return MakeNode(op, 0, static_cast<Node**>(NULL), incomplete);
|
|
|