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 4771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4782 } | 4782 } |
4783 | 4783 |
4784 | 4784 |
4785 void HOptimizedGraphBuilder::VisitEmptyStatement(EmptyStatement* stmt) { | 4785 void HOptimizedGraphBuilder::VisitEmptyStatement(EmptyStatement* stmt) { |
4786 DCHECK(!HasStackOverflow()); | 4786 DCHECK(!HasStackOverflow()); |
4787 DCHECK(current_block() != NULL); | 4787 DCHECK(current_block() != NULL); |
4788 DCHECK(current_block()->HasPredecessor()); | 4788 DCHECK(current_block()->HasPredecessor()); |
4789 } | 4789 } |
4790 | 4790 |
4791 | 4791 |
| 4792 void HOptimizedGraphBuilder::VisitDelegateStatement(DelegateStatement* stmt) { |
| 4793 Visit(stmt->statement()); |
| 4794 } |
| 4795 |
| 4796 |
4792 void HOptimizedGraphBuilder::VisitIfStatement(IfStatement* stmt) { | 4797 void HOptimizedGraphBuilder::VisitIfStatement(IfStatement* stmt) { |
4793 DCHECK(!HasStackOverflow()); | 4798 DCHECK(!HasStackOverflow()); |
4794 DCHECK(current_block() != NULL); | 4799 DCHECK(current_block() != NULL); |
4795 DCHECK(current_block()->HasPredecessor()); | 4800 DCHECK(current_block()->HasPredecessor()); |
4796 if (stmt->condition()->ToBooleanIsTrue()) { | 4801 if (stmt->condition()->ToBooleanIsTrue()) { |
4797 Add<HSimulate>(stmt->ThenId()); | 4802 Add<HSimulate>(stmt->ThenId()); |
4798 Visit(stmt->then_statement()); | 4803 Visit(stmt->then_statement()); |
4799 } else if (stmt->condition()->ToBooleanIsFalse()) { | 4804 } else if (stmt->condition()->ToBooleanIsFalse()) { |
4800 Add<HSimulate>(stmt->ElseId()); | 4805 Add<HSimulate>(stmt->ElseId()); |
4801 Visit(stmt->else_statement()); | 4806 Visit(stmt->else_statement()); |
(...skipping 8750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13552 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13557 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13553 } | 13558 } |
13554 | 13559 |
13555 #ifdef DEBUG | 13560 #ifdef DEBUG |
13556 graph_->Verify(false); // No full verify. | 13561 graph_->Verify(false); // No full verify. |
13557 #endif | 13562 #endif |
13558 } | 13563 } |
13559 | 13564 |
13560 } // namespace internal | 13565 } // namespace internal |
13561 } // namespace v8 | 13566 } // namespace v8 |
OLD | NEW |