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 3091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3102 } | 3102 } |
3103 | 3103 |
3104 | 3104 |
3105 LanguageMode AstGraphBuilder::language_mode() const { | 3105 LanguageMode AstGraphBuilder::language_mode() const { |
3106 return current_scope()->language_mode(); | 3106 return current_scope()->language_mode(); |
3107 } | 3107 } |
3108 | 3108 |
3109 | 3109 |
3110 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( | 3110 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( |
3111 FeedbackVectorSlot slot) const { | 3111 FeedbackVectorSlot slot) const { |
3112 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); | 3112 return VectorSlotPair(handle(info()->closure()->feedback_vector()), slot); |
3113 } | 3113 } |
3114 | 3114 |
3115 | 3115 |
3116 void AstGraphBuilder::VisitRewritableExpression(RewritableExpression* node) { | 3116 void AstGraphBuilder::VisitRewritableExpression(RewritableExpression* node) { |
3117 Visit(node->expression()); | 3117 Visit(node->expression()); |
3118 } | 3118 } |
3119 | 3119 |
3120 | 3120 |
3121 namespace { | 3121 namespace { |
3122 | 3122 |
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4358 // Phi does not exist yet, introduce one. | 4358 // Phi does not exist yet, introduce one. |
4359 value = NewPhi(inputs, value, control); | 4359 value = NewPhi(inputs, value, control); |
4360 value->ReplaceInput(inputs - 1, other); | 4360 value->ReplaceInput(inputs - 1, other); |
4361 } | 4361 } |
4362 return value; | 4362 return value; |
4363 } | 4363 } |
4364 | 4364 |
4365 } // namespace compiler | 4365 } // namespace compiler |
4366 } // namespace internal | 4366 } // namespace internal |
4367 } // namespace v8 | 4367 } // namespace v8 |
OLD | NEW |