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 <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "src/v8.h" | 9 #include "src/v8.h" |
10 | 10 |
(...skipping 11197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11208 void HOptimizedGraphBuilder::VisitThisFunction(ThisFunction* expr) { | 11208 void HOptimizedGraphBuilder::VisitThisFunction(ThisFunction* expr) { |
11209 DCHECK(!HasStackOverflow()); | 11209 DCHECK(!HasStackOverflow()); |
11210 DCHECK(current_block() != NULL); | 11210 DCHECK(current_block() != NULL); |
11211 DCHECK(current_block()->HasPredecessor()); | 11211 DCHECK(current_block()->HasPredecessor()); |
11212 HInstruction* instr = BuildThisFunction(); | 11212 HInstruction* instr = BuildThisFunction(); |
11213 return ast_context()->ReturnInstruction(instr, expr->id()); | 11213 return ast_context()->ReturnInstruction(instr, expr->id()); |
11214 } | 11214 } |
11215 | 11215 |
11216 | 11216 |
11217 void HOptimizedGraphBuilder::VisitSuperReference(SuperReference* expr) { | 11217 void HOptimizedGraphBuilder::VisitSuperReference(SuperReference* expr) { |
11218 UNREACHABLE(); | 11218 DCHECK(!HasStackOverflow()); |
| 11219 DCHECK(current_block() != NULL); |
| 11220 DCHECK(current_block()->HasPredecessor()); |
| 11221 return Bailout(kSuperReference); |
11219 } | 11222 } |
11220 | 11223 |
11221 | 11224 |
11222 void HOptimizedGraphBuilder::VisitDeclarations( | 11225 void HOptimizedGraphBuilder::VisitDeclarations( |
11223 ZoneList<Declaration*>* declarations) { | 11226 ZoneList<Declaration*>* declarations) { |
11224 DCHECK(globals_.is_empty()); | 11227 DCHECK(globals_.is_empty()); |
11225 AstVisitor::VisitDeclarations(declarations); | 11228 AstVisitor::VisitDeclarations(declarations); |
11226 if (!globals_.is_empty()) { | 11229 if (!globals_.is_empty()) { |
11227 Handle<FixedArray> array = | 11230 Handle<FixedArray> array = |
11228 isolate()->factory()->NewFixedArray(globals_.length(), TENURED); | 11231 isolate()->factory()->NewFixedArray(globals_.length(), TENURED); |
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12515 if (ShouldProduceTraceOutput()) { | 12518 if (ShouldProduceTraceOutput()) { |
12516 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 12519 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
12517 } | 12520 } |
12518 | 12521 |
12519 #ifdef DEBUG | 12522 #ifdef DEBUG |
12520 graph_->Verify(false); // No full verify. | 12523 graph_->Verify(false); // No full verify. |
12521 #endif | 12524 #endif |
12522 } | 12525 } |
12523 | 12526 |
12524 } } // namespace v8::internal | 12527 } } // namespace v8::internal |
OLD | NEW |