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 #if V8_TARGET_ARCH_PPC | 5 #if V8_TARGET_ARCH_PPC |
6 | 6 |
7 #include "src/interface-descriptors.h" | 7 #include "src/interface-descriptors.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
11 | 11 |
12 const Register CallInterfaceDescriptor::ContextRegister() { return cp; } | 12 const Register CallInterfaceDescriptor::ContextRegister() { return cp; } |
13 | 13 |
| 14 void CallInterfaceDescriptor::DefaultInitializePlatformSpecific( |
| 15 CallInterfaceDescriptorData* data, int register_parameter_count) { |
| 16 const Register default_stub_registers[] = {r3, r4, r5, r6, r7}; |
| 17 CHECK_LE(static_cast<size_t>(register_parameter_count), |
| 18 arraysize(default_stub_registers)); |
| 19 data->InitializePlatformSpecific(register_parameter_count, |
| 20 default_stub_registers); |
| 21 } |
14 | 22 |
15 const Register LoadDescriptor::ReceiverRegister() { return r4; } | 23 const Register LoadDescriptor::ReceiverRegister() { return r4; } |
16 const Register LoadDescriptor::NameRegister() { return r5; } | 24 const Register LoadDescriptor::NameRegister() { return r5; } |
17 const Register LoadDescriptor::SlotRegister() { return r3; } | 25 const Register LoadDescriptor::SlotRegister() { return r3; } |
18 | 26 |
19 | 27 |
20 const Register LoadWithVectorDescriptor::VectorRegister() { return r6; } | 28 const Register LoadWithVectorDescriptor::VectorRegister() { return r6; } |
21 | 29 |
22 | 30 |
23 const Register StoreDescriptor::ReceiverRegister() { return r4; } | 31 const Register StoreDescriptor::ReceiverRegister() { return r4; } |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 r3, // the value to pass to the generator | 419 r3, // the value to pass to the generator |
412 r4, // the JSGeneratorObject to resume | 420 r4, // the JSGeneratorObject to resume |
413 r5 // the resume mode (tagged) | 421 r5 // the resume mode (tagged) |
414 }; | 422 }; |
415 data->InitializePlatformSpecific(arraysize(registers), registers); | 423 data->InitializePlatformSpecific(arraysize(registers), registers); |
416 } | 424 } |
417 } // namespace internal | 425 } // namespace internal |
418 } // namespace v8 | 426 } // namespace v8 |
419 | 427 |
420 #endif // V8_TARGET_ARCH_PPC | 428 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |