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

Side by Side Diff: src/hydrogen.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/full-codegen.cc ('k') | src/ia32/full-codegen-ia32.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/hydrogen.h" 5 #include "src/hydrogen.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/v8.h" 9 #include "src/v8.h"
10 10
(...skipping 11540 matching lines...) Expand 10 before | Expand all | Expand 10 after
11551 11551
11552 void HOptimizedGraphBuilder::VisitThisFunction(ThisFunction* expr) { 11552 void HOptimizedGraphBuilder::VisitThisFunction(ThisFunction* expr) {
11553 DCHECK(!HasStackOverflow()); 11553 DCHECK(!HasStackOverflow());
11554 DCHECK(current_block() != NULL); 11554 DCHECK(current_block() != NULL);
11555 DCHECK(current_block()->HasPredecessor()); 11555 DCHECK(current_block()->HasPredecessor());
11556 HInstruction* instr = BuildThisFunction(); 11556 HInstruction* instr = BuildThisFunction();
11557 return ast_context()->ReturnInstruction(instr, expr->id()); 11557 return ast_context()->ReturnInstruction(instr, expr->id());
11558 } 11558 }
11559 11559
11560 11560
11561 void HOptimizedGraphBuilder::VisitSuperReference(SuperReference* expr) { 11561 void HOptimizedGraphBuilder::VisitSuperPropertyReference(
11562 SuperPropertyReference* expr) {
11562 DCHECK(!HasStackOverflow()); 11563 DCHECK(!HasStackOverflow());
11563 DCHECK(current_block() != NULL); 11564 DCHECK(current_block() != NULL);
11564 DCHECK(current_block()->HasPredecessor()); 11565 DCHECK(current_block()->HasPredecessor());
11566 return Bailout(kSuperReference);
11567 }
11568
11569
11570 void HOptimizedGraphBuilder::VisitSuperCallReference(SuperCallReference* expr) {
11571 DCHECK(!HasStackOverflow());
11572 DCHECK(current_block() != NULL);
11573 DCHECK(current_block()->HasPredecessor());
11565 return Bailout(kSuperReference); 11574 return Bailout(kSuperReference);
11566 } 11575 }
11567 11576
11568 11577
11569 void HOptimizedGraphBuilder::VisitDeclarations( 11578 void HOptimizedGraphBuilder::VisitDeclarations(
11570 ZoneList<Declaration*>* declarations) { 11579 ZoneList<Declaration*>* declarations) {
11571 DCHECK(globals_.is_empty()); 11580 DCHECK(globals_.is_empty());
11572 AstVisitor::VisitDeclarations(declarations); 11581 AstVisitor::VisitDeclarations(declarations);
11573 if (!globals_.is_empty()) { 11582 if (!globals_.is_empty()) {
11574 Handle<FixedArray> array = 11583 Handle<FixedArray> array =
(...skipping 1562 matching lines...) Expand 10 before | Expand all | Expand 10 after
13137 if (ShouldProduceTraceOutput()) { 13146 if (ShouldProduceTraceOutput()) {
13138 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13147 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13139 } 13148 }
13140 13149
13141 #ifdef DEBUG 13150 #ifdef DEBUG
13142 graph_->Verify(false); // No full verify. 13151 graph_->Verify(false); // No full verify.
13143 #endif 13152 #endif
13144 } 13153 }
13145 13154
13146 } } // namespace v8::internal 13155 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698