| 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/allocation-site-scopes.h" | 9 #include "src/allocation-site-scopes.h" |
| 10 #include "src/ast-numbering.h" | 10 #include "src/ast-numbering.h" |
| (...skipping 5517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5528 | 5528 |
| 5529 void HOptimizedGraphBuilder::VisitNativeFunctionLiteral( | 5529 void HOptimizedGraphBuilder::VisitNativeFunctionLiteral( |
| 5530 NativeFunctionLiteral* expr) { | 5530 NativeFunctionLiteral* expr) { |
| 5531 DCHECK(!HasStackOverflow()); | 5531 DCHECK(!HasStackOverflow()); |
| 5532 DCHECK(current_block() != NULL); | 5532 DCHECK(current_block() != NULL); |
| 5533 DCHECK(current_block()->HasPredecessor()); | 5533 DCHECK(current_block()->HasPredecessor()); |
| 5534 return Bailout(kNativeFunctionLiteral); | 5534 return Bailout(kNativeFunctionLiteral); |
| 5535 } | 5535 } |
| 5536 | 5536 |
| 5537 | 5537 |
| 5538 void HOptimizedGraphBuilder::VisitDoExpression(DoExpression* expr) { |
| 5539 DCHECK(!HasStackOverflow()); |
| 5540 DCHECK_NOT_NULL(current_block()); |
| 5541 DCHECK(current_block()->HasPredecessor()); |
| 5542 CHECK_ALIVE(VisitBlock(expr->block())); |
| 5543 VisitVariableProxy(expr->result()); |
| 5544 } |
| 5545 |
| 5546 |
| 5538 void HOptimizedGraphBuilder::VisitConditional(Conditional* expr) { | 5547 void HOptimizedGraphBuilder::VisitConditional(Conditional* expr) { |
| 5539 DCHECK(!HasStackOverflow()); | 5548 DCHECK(!HasStackOverflow()); |
| 5540 DCHECK(current_block() != NULL); | 5549 DCHECK(current_block() != NULL); |
| 5541 DCHECK(current_block()->HasPredecessor()); | 5550 DCHECK(current_block()->HasPredecessor()); |
| 5542 HBasicBlock* cond_true = graph()->CreateBasicBlock(); | 5551 HBasicBlock* cond_true = graph()->CreateBasicBlock(); |
| 5543 HBasicBlock* cond_false = graph()->CreateBasicBlock(); | 5552 HBasicBlock* cond_false = graph()->CreateBasicBlock(); |
| 5544 CHECK_BAILOUT(VisitForControl(expr->condition(), cond_true, cond_false)); | 5553 CHECK_BAILOUT(VisitForControl(expr->condition(), cond_true, cond_false)); |
| 5545 | 5554 |
| 5546 // Visit the true and false subexpressions in the same AST context as the | 5555 // Visit the true and false subexpressions in the same AST context as the |
| 5547 // whole expression. | 5556 // whole expression. |
| (...skipping 8128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13676 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13685 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13677 } | 13686 } |
| 13678 | 13687 |
| 13679 #ifdef DEBUG | 13688 #ifdef DEBUG |
| 13680 graph_->Verify(false); // No full verify. | 13689 graph_->Verify(false); // No full verify. |
| 13681 #endif | 13690 #endif |
| 13682 } | 13691 } |
| 13683 | 13692 |
| 13684 } // namespace internal | 13693 } // namespace internal |
| 13685 } // namespace v8 | 13694 } // namespace v8 |
| OLD | NEW |