| 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 3103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3114 } | 3114 } |
| 3115 | 3115 |
| 3116 | 3116 |
| 3117 LanguageMode AstGraphBuilder::language_mode() const { | 3117 LanguageMode AstGraphBuilder::language_mode() const { |
| 3118 return current_scope()->language_mode(); | 3118 return current_scope()->language_mode(); |
| 3119 } | 3119 } |
| 3120 | 3120 |
| 3121 | 3121 |
| 3122 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( | 3122 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( |
| 3123 FeedbackVectorSlot slot) const { | 3123 FeedbackVectorSlot slot) const { |
| 3124 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); | 3124 return VectorSlotPair(handle(info()->closure()->feedback_vector()), slot); |
| 3125 } | 3125 } |
| 3126 | 3126 |
| 3127 | 3127 |
| 3128 void AstGraphBuilder::VisitRewritableExpression(RewritableExpression* node) { | 3128 void AstGraphBuilder::VisitRewritableExpression(RewritableExpression* node) { |
| 3129 Visit(node->expression()); | 3129 Visit(node->expression()); |
| 3130 } | 3130 } |
| 3131 | 3131 |
| 3132 | 3132 |
| 3133 namespace { | 3133 namespace { |
| 3134 | 3134 |
| (...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4370 // Phi does not exist yet, introduce one. | 4370 // Phi does not exist yet, introduce one. |
| 4371 value = NewPhi(inputs, value, control); | 4371 value = NewPhi(inputs, value, control); |
| 4372 value->ReplaceInput(inputs - 1, other); | 4372 value->ReplaceInput(inputs - 1, other); |
| 4373 } | 4373 } |
| 4374 return value; | 4374 return value; |
| 4375 } | 4375 } |
| 4376 | 4376 |
| 4377 } // namespace compiler | 4377 } // namespace compiler |
| 4378 } // namespace internal | 4378 } // namespace internal |
| 4379 } // namespace v8 | 4379 } // namespace v8 |
| OLD | NEW |