OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
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 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1281 | 1281 |
1282 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, | 1282 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, |
1283 TypeofMode typeof_mode) { | 1283 TypeofMode typeof_mode) { |
1284 Variable* var = proxy->var(); | 1284 Variable* var = proxy->var(); |
1285 DCHECK(var->IsUnallocatedOrGlobalSlot() || | 1285 DCHECK(var->IsUnallocatedOrGlobalSlot() || |
1286 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); | 1286 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); |
1287 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); | 1287 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); |
1288 __ Mov(LoadDescriptor::NameRegister(), Operand(var->name())); | 1288 __ Mov(LoadDescriptor::NameRegister(), Operand(var->name())); |
1289 __ Mov(LoadDescriptor::SlotRegister(), | 1289 __ Mov(LoadDescriptor::SlotRegister(), |
1290 SmiFromSlot(proxy->VariableFeedbackSlot())); | 1290 SmiFromSlot(proxy->VariableFeedbackSlot())); |
1291 CallLoadIC(typeof_mode); | 1291 CallLoadGlobalIC(typeof_mode); |
1292 } | 1292 } |
1293 | 1293 |
1294 | 1294 |
1295 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, | 1295 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, |
1296 TypeofMode typeof_mode) { | 1296 TypeofMode typeof_mode) { |
1297 // Record position before possible IC call. | 1297 // Record position before possible IC call. |
1298 SetExpressionPosition(proxy); | 1298 SetExpressionPosition(proxy); |
1299 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); | 1299 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); |
1300 Variable* var = proxy->var(); | 1300 Variable* var = proxy->var(); |
1301 | 1301 |
(...skipping 2581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3883 } | 3883 } |
3884 | 3884 |
3885 return INTERRUPT; | 3885 return INTERRUPT; |
3886 } | 3886 } |
3887 | 3887 |
3888 | 3888 |
3889 } // namespace internal | 3889 } // namespace internal |
3890 } // namespace v8 | 3890 } // namespace v8 |
3891 | 3891 |
3892 #endif // V8_TARGET_ARCH_ARM64 | 3892 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |