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 3044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3055 return info()->language_mode(); | 3055 return info()->language_mode(); |
3056 } | 3056 } |
3057 | 3057 |
3058 | 3058 |
3059 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( | 3059 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( |
3060 FeedbackVectorSlot slot) const { | 3060 FeedbackVectorSlot slot) const { |
3061 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); | 3061 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); |
3062 } | 3062 } |
3063 | 3063 |
3064 | 3064 |
3065 void AstGraphBuilder::VisitRewritableExpression(RewritableExpression* node) { | 3065 void AstGraphBuilder::VisitRewritableAssignmentExpression( |
| 3066 RewritableAssignmentExpression* node) { |
3066 Visit(node->expression()); | 3067 Visit(node->expression()); |
3067 } | 3068 } |
3068 | 3069 |
3069 | 3070 |
3070 namespace { | 3071 namespace { |
3071 | 3072 |
3072 // Limit of context chain length to which inline check is possible. | 3073 // Limit of context chain length to which inline check is possible. |
3073 const int kMaxCheckDepth = 30; | 3074 const int kMaxCheckDepth = 30; |
3074 | 3075 |
3075 // Sentinel for {TryLoadDynamicVariable} disabling inline checks. | 3076 // Sentinel for {TryLoadDynamicVariable} disabling inline checks. |
(...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4343 // Phi does not exist yet, introduce one. | 4344 // Phi does not exist yet, introduce one. |
4344 value = NewPhi(inputs, value, control); | 4345 value = NewPhi(inputs, value, control); |
4345 value->ReplaceInput(inputs - 1, other); | 4346 value->ReplaceInput(inputs - 1, other); |
4346 } | 4347 } |
4347 return value; | 4348 return value; |
4348 } | 4349 } |
4349 | 4350 |
4350 } // namespace compiler | 4351 } // namespace compiler |
4351 } // namespace internal | 4352 } // namespace internal |
4352 } // namespace v8 | 4353 } // namespace v8 |
OLD | NEW |