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/compiler.h" | 7 #include "src/compiler.h" |
8 #include "src/compiler/ast-loop-assignment-analyzer.h" | 8 #include "src/compiler/ast-loop-assignment-analyzer.h" |
9 #include "src/compiler/control-builders.h" | 9 #include "src/compiler/control-builders.h" |
10 #include "src/compiler/js-type-feedback.h" | 10 #include "src/compiler/js-type-feedback.h" |
(...skipping 3000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3011 } else if (ast_context()->IsEffect()) { | 3011 } else if (ast_context()->IsEffect()) { |
3012 environment()->Pop(); | 3012 environment()->Pop(); |
3013 } else if (ast_context()->IsTest()) { | 3013 } else if (ast_context()->IsTest()) { |
3014 environment()->Poke(0, jsgraph()->FalseConstant()); | 3014 environment()->Poke(0, jsgraph()->FalseConstant()); |
3015 } | 3015 } |
3016 compare_if.End(); | 3016 compare_if.End(); |
3017 ast_context()->ReplaceValue(); | 3017 ast_context()->ReplaceValue(); |
3018 } | 3018 } |
3019 | 3019 |
3020 | 3020 |
| 3021 Isolate* AstGraphBuilder::isolate() const { return info()->isolate(); } |
| 3022 |
| 3023 |
3021 LanguageMode AstGraphBuilder::language_mode() const { | 3024 LanguageMode AstGraphBuilder::language_mode() const { |
3022 return info()->language_mode(); | 3025 return info()->language_mode(); |
3023 } | 3026 } |
3024 | 3027 |
3025 | 3028 |
3026 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( | 3029 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( |
3027 FeedbackVectorSlot slot) const { | 3030 FeedbackVectorSlot slot) const { |
3028 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); | 3031 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); |
3029 } | 3032 } |
3030 | 3033 |
(...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4285 // Phi does not exist yet, introduce one. | 4288 // Phi does not exist yet, introduce one. |
4286 value = NewPhi(inputs, value, control); | 4289 value = NewPhi(inputs, value, control); |
4287 value->ReplaceInput(inputs - 1, other); | 4290 value->ReplaceInput(inputs - 1, other); |
4288 } | 4291 } |
4289 return value; | 4292 return value; |
4290 } | 4293 } |
4291 | 4294 |
4292 } // namespace compiler | 4295 } // namespace compiler |
4293 } // namespace internal | 4296 } // namespace internal |
4294 } // namespace v8 | 4297 } // namespace v8 |
OLD | NEW |