| 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/linkage.h" | 10 #include "src/compiler/linkage.h" |
| (...skipping 3071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3082 } | 3082 } |
| 3083 if (!environment()->IsMarkedAsUnreachable()) { | 3083 if (!environment()->IsMarkedAsUnreachable()) { |
| 3084 // Update the current control dependency for control-producing nodes. | 3084 // Update the current control dependency for control-producing nodes. |
| 3085 if (NodeProperties::IsControl(result)) { | 3085 if (NodeProperties::IsControl(result)) { |
| 3086 environment_->UpdateControlDependency(result); | 3086 environment_->UpdateControlDependency(result); |
| 3087 } | 3087 } |
| 3088 // Add implicit exception continuation for throwing nodes. | 3088 // Add implicit exception continuation for throwing nodes. |
| 3089 if (!result->op()->HasProperty(Operator::kNoThrow) && inside_try_scope) { | 3089 if (!result->op()->HasProperty(Operator::kNoThrow) && inside_try_scope) { |
| 3090 Node* on_exception = graph()->NewNode(common()->IfException(), result); | 3090 Node* on_exception = graph()->NewNode(common()->IfException(), result); |
| 3091 environment_->UpdateControlDependency(on_exception); | 3091 environment_->UpdateControlDependency(on_exception); |
| 3092 execution_control()->ThrowValue(result); | 3092 execution_control()->ThrowValue(on_exception); |
| 3093 } | 3093 } |
| 3094 // Add implicit success continuation for throwing nodes. | 3094 // Add implicit success continuation for throwing nodes. |
| 3095 if (!result->op()->HasProperty(Operator::kNoThrow)) { | 3095 if (!result->op()->HasProperty(Operator::kNoThrow)) { |
| 3096 Node* on_success = graph()->NewNode(common()->IfSuccess(), result); | 3096 Node* on_success = graph()->NewNode(common()->IfSuccess(), result); |
| 3097 environment_->UpdateControlDependency(on_success); | 3097 environment_->UpdateControlDependency(on_success); |
| 3098 } | 3098 } |
| 3099 } | 3099 } |
| 3100 } | 3100 } |
| 3101 | 3101 |
| 3102 return result; | 3102 return result; |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3300 // Phi does not exist yet, introduce one. | 3300 // Phi does not exist yet, introduce one. |
| 3301 value = NewPhi(inputs, value, control); | 3301 value = NewPhi(inputs, value, control); |
| 3302 value->ReplaceInput(inputs - 1, other); | 3302 value->ReplaceInput(inputs - 1, other); |
| 3303 } | 3303 } |
| 3304 return value; | 3304 return value; |
| 3305 } | 3305 } |
| 3306 | 3306 |
| 3307 } // namespace compiler | 3307 } // namespace compiler |
| 3308 } // namespace internal | 3308 } // namespace internal |
| 3309 } // namespace v8 | 3309 } // namespace v8 |
| OLD | NEW |