| 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 3021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3032 } | 3032 } |
| 3033 | 3033 |
| 3034 | 3034 |
| 3035 LanguageMode AstGraphBuilder::language_mode() const { | 3035 LanguageMode AstGraphBuilder::language_mode() const { |
| 3036 return info()->language_mode(); | 3036 return info()->language_mode(); |
| 3037 } | 3037 } |
| 3038 | 3038 |
| 3039 | 3039 |
| 3040 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( | 3040 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( |
| 3041 FeedbackVectorICSlot slot) const { | 3041 FeedbackVectorICSlot slot) const { |
| 3042 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); | 3042 return VectorSlotPair(info()->feedback_vector(), slot); |
| 3043 } | 3043 } |
| 3044 | 3044 |
| 3045 | 3045 |
| 3046 uint32_t AstGraphBuilder::ComputeBitsetForDynamicGlobal(Variable* variable) { | 3046 uint32_t AstGraphBuilder::ComputeBitsetForDynamicGlobal(Variable* variable) { |
| 3047 DCHECK_EQ(DYNAMIC_GLOBAL, variable->mode()); | 3047 DCHECK_EQ(DYNAMIC_GLOBAL, variable->mode()); |
| 3048 bool found_eval_scope = false; | 3048 bool found_eval_scope = false; |
| 3049 uint32_t check_depths = 0; | 3049 uint32_t check_depths = 0; |
| 3050 for (Scope* s = current_scope(); s != nullptr; s = s->outer_scope()) { | 3050 for (Scope* s = current_scope(); s != nullptr; s = s->outer_scope()) { |
| 3051 if (s->num_heap_slots() <= 0) continue; | 3051 if (s->num_heap_slots() <= 0) continue; |
| 3052 // TODO(mstarzinger): If we have reached an eval scope, we check all | 3052 // TODO(mstarzinger): If we have reached an eval scope, we check all |
| (...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4302 // Phi does not exist yet, introduce one. | 4302 // Phi does not exist yet, introduce one. |
| 4303 value = NewPhi(inputs, value, control); | 4303 value = NewPhi(inputs, value, control); |
| 4304 value->ReplaceInput(inputs - 1, other); | 4304 value->ReplaceInput(inputs - 1, other); |
| 4305 } | 4305 } |
| 4306 return value; | 4306 return value; |
| 4307 } | 4307 } |
| 4308 | 4308 |
| 4309 } // namespace compiler | 4309 } // namespace compiler |
| 4310 } // namespace internal | 4310 } // namespace internal |
| 4311 } // namespace v8 | 4311 } // namespace v8 |
| OLD | NEW |