Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(622)

Side by Side Diff: src/compiler/ast-graph-builder.cc

Issue 1146863007: [es6] Super call in arrows and eval (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ast-value-factory.h ('k') | src/compiler/ast-loop-assignment-analyzer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/ast-graph-builder.h" 5 #include "src/compiler/ast-graph-builder.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 #include "src/compiler/ast-loop-assignment-analyzer.h" 8 #include "src/compiler/ast-loop-assignment-analyzer.h"
9 #include "src/compiler/control-builders.h" 9 #include "src/compiler/control-builders.h"
10 #include "src/compiler/js-type-feedback.h" 10 #include "src/compiler/js-type-feedback.h"
(...skipping 2572 matching lines...) Expand 10 before | Expand all | Expand 10 after
2583 2583
2584 void AstGraphBuilder::VisitSpread(Spread* expr) { UNREACHABLE(); } 2584 void AstGraphBuilder::VisitSpread(Spread* expr) { UNREACHABLE(); }
2585 2585
2586 2586
2587 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { 2587 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) {
2588 Node* value = GetFunctionClosure(); 2588 Node* value = GetFunctionClosure();
2589 ast_context()->ProduceValue(value); 2589 ast_context()->ProduceValue(value);
2590 } 2590 }
2591 2591
2592 2592
2593 void AstGraphBuilder::VisitSuperReference(SuperReference* expr) { 2593 void AstGraphBuilder::VisitSuperPropertyReference(
2594 SuperPropertyReference* expr) {
2594 // TODO(turbofan): Implement super here. 2595 // TODO(turbofan): Implement super here.
2595 SetStackOverflow(); 2596 SetStackOverflow();
2596 ast_context()->ProduceValue(jsgraph()->UndefinedConstant()); 2597 ast_context()->ProduceValue(jsgraph()->UndefinedConstant());
2598 }
2599
2600
2601 void AstGraphBuilder::VisitSuperCallReference(SuperCallReference* expr) {
2602 // TODO(turbofan): Implement super here.
2603 SetStackOverflow();
2604 ast_context()->ProduceValue(jsgraph()->UndefinedConstant());
2597 } 2605 }
2598 2606
2599 2607
2600 void AstGraphBuilder::VisitCaseClause(CaseClause* expr) { UNREACHABLE(); } 2608 void AstGraphBuilder::VisitCaseClause(CaseClause* expr) { UNREACHABLE(); }
2601 2609
2602 2610
2603 void AstGraphBuilder::VisitDeclarations(ZoneList<Declaration*>* declarations) { 2611 void AstGraphBuilder::VisitDeclarations(ZoneList<Declaration*>* declarations) {
2604 DCHECK(globals()->empty()); 2612 DCHECK(globals()->empty());
2605 AstVisitor::VisitDeclarations(declarations); 2613 AstVisitor::VisitDeclarations(declarations);
2606 if (globals()->empty()) return; 2614 if (globals()->empty()) return;
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after
3772 // Phi does not exist yet, introduce one. 3780 // Phi does not exist yet, introduce one.
3773 value = NewPhi(inputs, value, control); 3781 value = NewPhi(inputs, value, control);
3774 value->ReplaceInput(inputs - 1, other); 3782 value->ReplaceInput(inputs - 1, other);
3775 } 3783 }
3776 return value; 3784 return value;
3777 } 3785 }
3778 3786
3779 } // namespace compiler 3787 } // namespace compiler
3780 } // namespace internal 3788 } // namespace internal
3781 } // namespace v8 3789 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast-value-factory.h ('k') | src/compiler/ast-loop-assignment-analyzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698