| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/compiler/ast-graph-builder.h" | 5 #include "src/compiler/ast-graph-builder.h" |
| 6 | 6 |
| 7 #include "src/compiler.h" | 7 #include "src/compiler.h" |
| 8 #include "src/compiler/ast-loop-assignment-analyzer.h" | 8 #include "src/compiler/ast-loop-assignment-analyzer.h" |
| 9 #include "src/compiler/control-builders.h" | 9 #include "src/compiler/control-builders.h" |
| 10 #include "src/compiler/js-type-feedback.h" | 10 #include "src/compiler/js-type-feedback.h" |
| (...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1151 void AstGraphBuilder::VisitExpressionStatement(ExpressionStatement* stmt) { | 1151 void AstGraphBuilder::VisitExpressionStatement(ExpressionStatement* stmt) { |
| 1152 VisitForEffect(stmt->expression()); | 1152 VisitForEffect(stmt->expression()); |
| 1153 } | 1153 } |
| 1154 | 1154 |
| 1155 | 1155 |
| 1156 void AstGraphBuilder::VisitEmptyStatement(EmptyStatement* stmt) { | 1156 void AstGraphBuilder::VisitEmptyStatement(EmptyStatement* stmt) { |
| 1157 // Do nothing. | 1157 // Do nothing. |
| 1158 } | 1158 } |
| 1159 | 1159 |
| 1160 | 1160 |
| 1161 void AstGraphBuilder::VisitDelegateStatement(DelegateStatement* stmt) { |
| 1162 Visit(stmt->statement()); |
| 1163 } |
| 1164 |
| 1165 |
| 1161 void AstGraphBuilder::VisitIfStatement(IfStatement* stmt) { | 1166 void AstGraphBuilder::VisitIfStatement(IfStatement* stmt) { |
| 1162 IfBuilder compare_if(this); | 1167 IfBuilder compare_if(this); |
| 1163 VisitForTest(stmt->condition()); | 1168 VisitForTest(stmt->condition()); |
| 1164 Node* condition = environment()->Pop(); | 1169 Node* condition = environment()->Pop(); |
| 1165 compare_if.If(condition); | 1170 compare_if.If(condition); |
| 1166 compare_if.Then(); | 1171 compare_if.Then(); |
| 1167 Visit(stmt->then_statement()); | 1172 Visit(stmt->then_statement()); |
| 1168 compare_if.Else(); | 1173 compare_if.Else(); |
| 1169 Visit(stmt->else_statement()); | 1174 Visit(stmt->else_statement()); |
| 1170 compare_if.End(); | 1175 compare_if.End(); |
| (...skipping 3079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4250 // Phi does not exist yet, introduce one. | 4255 // Phi does not exist yet, introduce one. |
| 4251 value = NewPhi(inputs, value, control); | 4256 value = NewPhi(inputs, value, control); |
| 4252 value->ReplaceInput(inputs - 1, other); | 4257 value->ReplaceInput(inputs - 1, other); |
| 4253 } | 4258 } |
| 4254 return value; | 4259 return value; |
| 4255 } | 4260 } |
| 4256 | 4261 |
| 4257 } // namespace compiler | 4262 } // namespace compiler |
| 4258 } // namespace internal | 4263 } // namespace internal |
| 4259 } // namespace v8 | 4264 } // namespace v8 |
| OLD | NEW |