OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #if V8_TARGET_ARCH_ARM | 5 #if V8_TARGET_ARCH_ARM |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1297 | 1297 |
1298 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, | 1298 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, |
1299 TypeofMode typeof_mode) { | 1299 TypeofMode typeof_mode) { |
1300 Variable* var = proxy->var(); | 1300 Variable* var = proxy->var(); |
1301 DCHECK(var->IsUnallocatedOrGlobalSlot() || | 1301 DCHECK(var->IsUnallocatedOrGlobalSlot() || |
1302 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); | 1302 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); |
1303 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); | 1303 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); |
1304 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); | 1304 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); |
1305 __ mov(LoadDescriptor::SlotRegister(), | 1305 __ mov(LoadDescriptor::SlotRegister(), |
1306 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); | 1306 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
1307 CallLoadIC(typeof_mode); | 1307 CallLoadGlobalIC(typeof_mode); |
1308 } | 1308 } |
1309 | 1309 |
1310 | 1310 |
1311 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, | 1311 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, |
1312 TypeofMode typeof_mode) { | 1312 TypeofMode typeof_mode) { |
1313 // Record position before possible IC call. | 1313 // Record position before possible IC call. |
1314 SetExpressionPosition(proxy); | 1314 SetExpressionPosition(proxy); |
1315 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); | 1315 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); |
1316 Variable* var = proxy->var(); | 1316 Variable* var = proxy->var(); |
1317 | 1317 |
(...skipping 2557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3875 DCHECK(interrupt_address == | 3875 DCHECK(interrupt_address == |
3876 isolate->builtins()->OnStackReplacement()->entry()); | 3876 isolate->builtins()->OnStackReplacement()->entry()); |
3877 return ON_STACK_REPLACEMENT; | 3877 return ON_STACK_REPLACEMENT; |
3878 } | 3878 } |
3879 | 3879 |
3880 | 3880 |
3881 } // namespace internal | 3881 } // namespace internal |
3882 } // namespace v8 | 3882 } // namespace v8 |
3883 | 3883 |
3884 #endif // V8_TARGET_ARCH_ARM | 3884 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |