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 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1271 __ Push(x0); | 1271 __ Push(x0); |
1272 __ CallRuntime(Runtime::kThrowReferenceError); | 1272 __ CallRuntime(Runtime::kThrowReferenceError); |
1273 } | 1273 } |
1274 __ B(done); | 1274 __ B(done); |
1275 } | 1275 } |
1276 } | 1276 } |
1277 | 1277 |
1278 | 1278 |
1279 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, | 1279 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, |
1280 TypeofMode typeof_mode) { | 1280 TypeofMode typeof_mode) { |
| 1281 #ifdef DEBUG |
1281 Variable* var = proxy->var(); | 1282 Variable* var = proxy->var(); |
1282 DCHECK(var->IsUnallocatedOrGlobalSlot() || | 1283 DCHECK(var->IsUnallocatedOrGlobalSlot() || |
1283 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); | 1284 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); |
1284 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); | 1285 #endif |
1285 __ Mov(LoadDescriptor::NameRegister(), Operand(var->name())); | 1286 __ Mov(LoadGlobalDescriptor::SlotRegister(), |
1286 __ Mov(LoadDescriptor::SlotRegister(), | |
1287 SmiFromSlot(proxy->VariableFeedbackSlot())); | 1287 SmiFromSlot(proxy->VariableFeedbackSlot())); |
1288 CallLoadGlobalIC(typeof_mode); | 1288 CallLoadGlobalIC(typeof_mode); |
1289 } | 1289 } |
1290 | 1290 |
1291 | 1291 |
1292 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, | 1292 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, |
1293 TypeofMode typeof_mode) { | 1293 TypeofMode typeof_mode) { |
1294 // Record position before possible IC call. | 1294 // Record position before possible IC call. |
1295 SetExpressionPosition(proxy); | 1295 SetExpressionPosition(proxy); |
1296 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); | 1296 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); |
(...skipping 2571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3868 } | 3868 } |
3869 | 3869 |
3870 return INTERRUPT; | 3870 return INTERRUPT; |
3871 } | 3871 } |
3872 | 3872 |
3873 | 3873 |
3874 } // namespace internal | 3874 } // namespace internal |
3875 } // namespace v8 | 3875 } // namespace v8 |
3876 | 3876 |
3877 #endif // V8_TARGET_ARCH_ARM64 | 3877 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |