| 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 11535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11546 | 11546 |
| 11547 void HOptimizedGraphBuilder::VisitThisFunction(ThisFunction* expr) { | 11547 void HOptimizedGraphBuilder::VisitThisFunction(ThisFunction* expr) { |
| 11548 DCHECK(!HasStackOverflow()); | 11548 DCHECK(!HasStackOverflow()); |
| 11549 DCHECK(current_block() != NULL); | 11549 DCHECK(current_block() != NULL); |
| 11550 DCHECK(current_block()->HasPredecessor()); | 11550 DCHECK(current_block()->HasPredecessor()); |
| 11551 HInstruction* instr = BuildThisFunction(); | 11551 HInstruction* instr = BuildThisFunction(); |
| 11552 return ast_context()->ReturnInstruction(instr, expr->id()); | 11552 return ast_context()->ReturnInstruction(instr, expr->id()); |
| 11553 } | 11553 } |
| 11554 | 11554 |
| 11555 | 11555 |
| 11556 void HOptimizedGraphBuilder::VisitSuperReference(SuperReference* expr) { | 11556 void HOptimizedGraphBuilder::VisitSuperPropertyReference( |
| 11557 SuperPropertyReference* expr) { |
| 11557 DCHECK(!HasStackOverflow()); | 11558 DCHECK(!HasStackOverflow()); |
| 11558 DCHECK(current_block() != NULL); | 11559 DCHECK(current_block() != NULL); |
| 11559 DCHECK(current_block()->HasPredecessor()); | 11560 DCHECK(current_block()->HasPredecessor()); |
| 11561 return Bailout(kSuperReference); |
| 11562 } |
| 11563 |
| 11564 |
| 11565 void HOptimizedGraphBuilder::VisitSuperCallReference(SuperCallReference* expr) { |
| 11566 DCHECK(!HasStackOverflow()); |
| 11567 DCHECK(current_block() != NULL); |
| 11568 DCHECK(current_block()->HasPredecessor()); |
| 11560 return Bailout(kSuperReference); | 11569 return Bailout(kSuperReference); |
| 11561 } | 11570 } |
| 11562 | 11571 |
| 11563 | 11572 |
| 11564 void HOptimizedGraphBuilder::VisitDeclarations( | 11573 void HOptimizedGraphBuilder::VisitDeclarations( |
| 11565 ZoneList<Declaration*>* declarations) { | 11574 ZoneList<Declaration*>* declarations) { |
| 11566 DCHECK(globals_.is_empty()); | 11575 DCHECK(globals_.is_empty()); |
| 11567 AstVisitor::VisitDeclarations(declarations); | 11576 AstVisitor::VisitDeclarations(declarations); |
| 11568 if (!globals_.is_empty()) { | 11577 if (!globals_.is_empty()) { |
| 11569 Handle<FixedArray> array = | 11578 Handle<FixedArray> array = |
| (...skipping 1562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13132 if (ShouldProduceTraceOutput()) { | 13141 if (ShouldProduceTraceOutput()) { |
| 13133 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13142 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13134 } | 13143 } |
| 13135 | 13144 |
| 13136 #ifdef DEBUG | 13145 #ifdef DEBUG |
| 13137 graph_->Verify(false); // No full verify. | 13146 graph_->Verify(false); // No full verify. |
| 13138 #endif | 13147 #endif |
| 13139 } | 13148 } |
| 13140 | 13149 |
| 13141 } } // namespace v8::internal | 13150 } } // namespace v8::internal |
| OLD | NEW |