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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
6 | 6 |
7 // Note on Mips implementation: | 7 // Note on Mips implementation: |
8 // | 8 // |
9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1293 | 1293 |
1294 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, | 1294 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, |
1295 TypeofMode typeof_mode) { | 1295 TypeofMode typeof_mode) { |
1296 Variable* var = proxy->var(); | 1296 Variable* var = proxy->var(); |
1297 DCHECK(var->IsUnallocatedOrGlobalSlot() || | 1297 DCHECK(var->IsUnallocatedOrGlobalSlot() || |
1298 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); | 1298 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); |
1299 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); | 1299 __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); |
1300 __ li(LoadDescriptor::NameRegister(), Operand(var->name())); | 1300 __ li(LoadDescriptor::NameRegister(), Operand(var->name())); |
1301 __ li(LoadDescriptor::SlotRegister(), | 1301 __ li(LoadDescriptor::SlotRegister(), |
1302 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); | 1302 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
1303 CallLoadIC(typeof_mode); | 1303 CallLoadGlobalIC(typeof_mode); |
1304 } | 1304 } |
1305 | 1305 |
1306 | 1306 |
1307 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, | 1307 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, |
1308 TypeofMode typeof_mode) { | 1308 TypeofMode typeof_mode) { |
1309 // Record position before possible IC call. | 1309 // Record position before possible IC call. |
1310 SetExpressionPosition(proxy); | 1310 SetExpressionPosition(proxy); |
1311 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); | 1311 PrepareForBailoutForId(proxy->BeforeId(), BailoutState::NO_REGISTERS); |
1312 Variable* var = proxy->var(); | 1312 Variable* var = proxy->var(); |
1313 | 1313 |
(...skipping 2513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3827 reinterpret_cast<uint64_t>( | 3827 reinterpret_cast<uint64_t>( |
3828 isolate->builtins()->OnStackReplacement()->entry())); | 3828 isolate->builtins()->OnStackReplacement()->entry())); |
3829 return ON_STACK_REPLACEMENT; | 3829 return ON_STACK_REPLACEMENT; |
3830 } | 3830 } |
3831 | 3831 |
3832 | 3832 |
3833 } // namespace internal | 3833 } // namespace internal |
3834 } // namespace v8 | 3834 } // namespace v8 |
3835 | 3835 |
3836 #endif // V8_TARGET_ARCH_MIPS64 | 3836 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |