OLD | NEW |
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 11550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11561 | 11561 |
11562 void HOptimizedGraphBuilder::VisitThisFunction(ThisFunction* expr) { | 11562 void HOptimizedGraphBuilder::VisitThisFunction(ThisFunction* expr) { |
11563 DCHECK(!HasStackOverflow()); | 11563 DCHECK(!HasStackOverflow()); |
11564 DCHECK(current_block() != NULL); | 11564 DCHECK(current_block() != NULL); |
11565 DCHECK(current_block()->HasPredecessor()); | 11565 DCHECK(current_block()->HasPredecessor()); |
11566 HInstruction* instr = BuildThisFunction(); | 11566 HInstruction* instr = BuildThisFunction(); |
11567 return ast_context()->ReturnInstruction(instr, expr->id()); | 11567 return ast_context()->ReturnInstruction(instr, expr->id()); |
11568 } | 11568 } |
11569 | 11569 |
11570 | 11570 |
11571 void HOptimizedGraphBuilder::VisitSuperReference(SuperReference* expr) { | 11571 void HOptimizedGraphBuilder::VisitSuperPropertyReference( |
| 11572 SuperPropertyReference* expr) { |
11572 DCHECK(!HasStackOverflow()); | 11573 DCHECK(!HasStackOverflow()); |
11573 DCHECK(current_block() != NULL); | 11574 DCHECK(current_block() != NULL); |
11574 DCHECK(current_block()->HasPredecessor()); | 11575 DCHECK(current_block()->HasPredecessor()); |
| 11576 return Bailout(kSuperReference); |
| 11577 } |
| 11578 |
| 11579 |
| 11580 void HOptimizedGraphBuilder::VisitSuperCallReference(SuperCallReference* expr) { |
| 11581 DCHECK(!HasStackOverflow()); |
| 11582 DCHECK(current_block() != NULL); |
| 11583 DCHECK(current_block()->HasPredecessor()); |
11575 return Bailout(kSuperReference); | 11584 return Bailout(kSuperReference); |
11576 } | 11585 } |
11577 | 11586 |
11578 | 11587 |
11579 void HOptimizedGraphBuilder::VisitDeclarations( | 11588 void HOptimizedGraphBuilder::VisitDeclarations( |
11580 ZoneList<Declaration*>* declarations) { | 11589 ZoneList<Declaration*>* declarations) { |
11581 DCHECK(globals_.is_empty()); | 11590 DCHECK(globals_.is_empty()); |
11582 AstVisitor::VisitDeclarations(declarations); | 11591 AstVisitor::VisitDeclarations(declarations); |
11583 if (!globals_.is_empty()) { | 11592 if (!globals_.is_empty()) { |
11584 Handle<FixedArray> array = | 11593 Handle<FixedArray> array = |
(...skipping 1562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13147 if (ShouldProduceTraceOutput()) { | 13156 if (ShouldProduceTraceOutput()) { |
13148 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13157 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13149 } | 13158 } |
13150 | 13159 |
13151 #ifdef DEBUG | 13160 #ifdef DEBUG |
13152 graph_->Verify(false); // No full verify. | 13161 graph_->Verify(false); // No full verify. |
13153 #endif | 13162 #endif |
13154 } | 13163 } |
13155 | 13164 |
13156 } } // namespace v8::internal | 13165 } } // namespace v8::internal |
OLD | NEW |