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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
9 #include "src/compiler/ast-loop-assignment-analyzer.h" | 9 #include "src/compiler/ast-loop-assignment-analyzer.h" |
10 #include "src/compiler/control-builders.h" | 10 #include "src/compiler/control-builders.h" |
(...skipping 3046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3057 return info()->language_mode(); | 3057 return info()->language_mode(); |
3058 } | 3058 } |
3059 | 3059 |
3060 | 3060 |
3061 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( | 3061 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( |
3062 FeedbackVectorSlot slot) const { | 3062 FeedbackVectorSlot slot) const { |
3063 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); | 3063 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); |
3064 } | 3064 } |
3065 | 3065 |
3066 | 3066 |
| 3067 void AstGraphBuilder::VisitRewritableExpression(RewritableExpression* node) { |
| 3068 Visit(node->expression()); |
| 3069 } |
| 3070 |
| 3071 |
3067 namespace { | 3072 namespace { |
3068 | 3073 |
3069 // Limit of context chain length to which inline check is possible. | 3074 // Limit of context chain length to which inline check is possible. |
3070 const int kMaxCheckDepth = 30; | 3075 const int kMaxCheckDepth = 30; |
3071 | 3076 |
3072 // Sentinel for {TryLoadDynamicVariable} disabling inline checks. | 3077 // Sentinel for {TryLoadDynamicVariable} disabling inline checks. |
3073 const uint32_t kFullCheckRequired = -1; | 3078 const uint32_t kFullCheckRequired = -1; |
3074 | 3079 |
3075 } // namespace | 3080 } // namespace |
3076 | 3081 |
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4317 // Phi does not exist yet, introduce one. | 4322 // Phi does not exist yet, introduce one. |
4318 value = NewPhi(inputs, value, control); | 4323 value = NewPhi(inputs, value, control); |
4319 value->ReplaceInput(inputs - 1, other); | 4324 value->ReplaceInput(inputs - 1, other); |
4320 } | 4325 } |
4321 return value; | 4326 return value; |
4322 } | 4327 } |
4323 | 4328 |
4324 } // namespace compiler | 4329 } // namespace compiler |
4325 } // namespace internal | 4330 } // namespace internal |
4326 } // namespace v8 | 4331 } // namespace v8 |
OLD | NEW |