| 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 3076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3087 } | 3087 } |
| 3088 | 3088 |
| 3089 | 3089 |
| 3090 LanguageMode AstGraphBuilder::language_mode() const { | 3090 LanguageMode AstGraphBuilder::language_mode() const { |
| 3091 return current_scope()->language_mode(); | 3091 return current_scope()->language_mode(); |
| 3092 } | 3092 } |
| 3093 | 3093 |
| 3094 | 3094 |
| 3095 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( | 3095 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( |
| 3096 FeedbackVectorSlot slot) const { | 3096 FeedbackVectorSlot slot) const { |
| 3097 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); | 3097 return VectorSlotPair(handle(info()->closure()->feedback_vector()), slot); |
| 3098 } | 3098 } |
| 3099 | 3099 |
| 3100 | 3100 |
| 3101 void AstGraphBuilder::VisitRewritableExpression(RewritableExpression* node) { | 3101 void AstGraphBuilder::VisitRewritableExpression(RewritableExpression* node) { |
| 3102 Visit(node->expression()); | 3102 Visit(node->expression()); |
| 3103 } | 3103 } |
| 3104 | 3104 |
| 3105 | 3105 |
| 3106 namespace { | 3106 namespace { |
| 3107 | 3107 |
| (...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4343 // Phi does not exist yet, introduce one. | 4343 // Phi does not exist yet, introduce one. |
| 4344 value = NewPhi(inputs, value, control); | 4344 value = NewPhi(inputs, value, control); |
| 4345 value->ReplaceInput(inputs - 1, other); | 4345 value->ReplaceInput(inputs - 1, other); |
| 4346 } | 4346 } |
| 4347 return value; | 4347 return value; |
| 4348 } | 4348 } |
| 4349 | 4349 |
| 4350 } // namespace compiler | 4350 } // namespace compiler |
| 4351 } // namespace internal | 4351 } // namespace internal |
| 4352 } // namespace v8 | 4352 } // namespace v8 |
| OLD | NEW |