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 3062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3073 environment()->Pop(); | 3073 environment()->Pop(); |
3074 } else if (ast_context()->IsTest()) { | 3074 } else if (ast_context()->IsTest()) { |
3075 environment()->Poke(0, jsgraph()->FalseConstant()); | 3075 environment()->Poke(0, jsgraph()->FalseConstant()); |
3076 } | 3076 } |
3077 compare_if.End(); | 3077 compare_if.End(); |
3078 ast_context()->ReplaceValue(); | 3078 ast_context()->ReplaceValue(); |
3079 } | 3079 } |
3080 | 3080 |
3081 | 3081 |
3082 LanguageMode AstGraphBuilder::language_mode() const { | 3082 LanguageMode AstGraphBuilder::language_mode() const { |
3083 return info()->language_mode(); | 3083 return current_scope()->language_mode(); |
3084 } | 3084 } |
3085 | 3085 |
3086 | 3086 |
3087 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( | 3087 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( |
3088 FeedbackVectorSlot slot) const { | 3088 FeedbackVectorSlot slot) const { |
3089 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); | 3089 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); |
3090 } | 3090 } |
3091 | 3091 |
3092 | 3092 |
3093 void AstGraphBuilder::VisitRewritableExpression(RewritableExpression* node) { | 3093 void AstGraphBuilder::VisitRewritableExpression(RewritableExpression* node) { |
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4335 // Phi does not exist yet, introduce one. | 4335 // Phi does not exist yet, introduce one. |
4336 value = NewPhi(inputs, value, control); | 4336 value = NewPhi(inputs, value, control); |
4337 value->ReplaceInput(inputs - 1, other); | 4337 value->ReplaceInput(inputs - 1, other); |
4338 } | 4338 } |
4339 return value; | 4339 return value; |
4340 } | 4340 } |
4341 | 4341 |
4342 } // namespace compiler | 4342 } // namespace compiler |
4343 } // namespace internal | 4343 } // namespace internal |
4344 } // namespace v8 | 4344 } // namespace v8 |
OLD | NEW |