| 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 3063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3074 return info()->language_mode(); | 3074 return info()->language_mode(); |
| 3075 } | 3075 } |
| 3076 | 3076 |
| 3077 | 3077 |
| 3078 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( | 3078 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( |
| 3079 FeedbackVectorSlot slot) const { | 3079 FeedbackVectorSlot slot) const { |
| 3080 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); | 3080 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); |
| 3081 } | 3081 } |
| 3082 | 3082 |
| 3083 | 3083 |
| 3084 void AstGraphBuilder::VisitRewritableAssignmentExpression( | 3084 void AstGraphBuilder::VisitRewritableExpression(RewritableExpression* node) { |
| 3085 RewritableAssignmentExpression* node) { | |
| 3086 Visit(node->expression()); | 3085 Visit(node->expression()); |
| 3087 } | 3086 } |
| 3088 | 3087 |
| 3089 | 3088 |
| 3090 namespace { | 3089 namespace { |
| 3091 | 3090 |
| 3092 // Limit of context chain length to which inline check is possible. | 3091 // Limit of context chain length to which inline check is possible. |
| 3093 const int kMaxCheckDepth = 30; | 3092 const int kMaxCheckDepth = 30; |
| 3094 | 3093 |
| 3095 // Sentinel for {TryLoadDynamicVariable} disabling inline checks. | 3094 // Sentinel for {TryLoadDynamicVariable} disabling inline checks. |
| (...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4365 // Phi does not exist yet, introduce one. | 4364 // Phi does not exist yet, introduce one. |
| 4366 value = NewPhi(inputs, value, control); | 4365 value = NewPhi(inputs, value, control); |
| 4367 value->ReplaceInput(inputs - 1, other); | 4366 value->ReplaceInput(inputs - 1, other); |
| 4368 } | 4367 } |
| 4369 return value; | 4368 return value; |
| 4370 } | 4369 } |
| 4371 | 4370 |
| 4372 } // namespace compiler | 4371 } // namespace compiler |
| 4373 } // namespace internal | 4372 } // namespace internal |
| 4374 } // namespace v8 | 4373 } // namespace v8 |
| OLD | NEW |