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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
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[] = {a0, a1, a2, a3, t0}; |
| 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 a1; } | 23 const Register LoadDescriptor::ReceiverRegister() { return a1; } |
16 const Register LoadDescriptor::NameRegister() { return a2; } | 24 const Register LoadDescriptor::NameRegister() { return a2; } |
17 const Register LoadDescriptor::SlotRegister() { return a0; } | 25 const Register LoadDescriptor::SlotRegister() { return a0; } |
18 | 26 |
19 | 27 |
20 const Register LoadWithVectorDescriptor::VectorRegister() { return a3; } | 28 const Register LoadWithVectorDescriptor::VectorRegister() { return a3; } |
21 | 29 |
22 | 30 |
23 const Register StoreDescriptor::ReceiverRegister() { return a1; } | 31 const Register StoreDescriptor::ReceiverRegister() { return a1; } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 64 |
57 | 65 |
58 const Register MathPowIntegerDescriptor::exponent() { | 66 const Register MathPowIntegerDescriptor::exponent() { |
59 return MathPowTaggedDescriptor::exponent(); | 67 return MathPowTaggedDescriptor::exponent(); |
60 } | 68 } |
61 | 69 |
62 | 70 |
63 const Register GrowArrayElementsDescriptor::ObjectRegister() { return a0; } | 71 const Register GrowArrayElementsDescriptor::ObjectRegister() { return a0; } |
64 const Register GrowArrayElementsDescriptor::KeyRegister() { return a3; } | 72 const Register GrowArrayElementsDescriptor::KeyRegister() { return a3; } |
65 | 73 |
66 const Register HasPropertyDescriptor::ObjectRegister() { return a0; } | |
67 const Register HasPropertyDescriptor::KeyRegister() { return a3; } | |
68 | 74 |
69 void FastNewClosureDescriptor::InitializePlatformSpecific( | 75 void FastNewClosureDescriptor::InitializePlatformSpecific( |
70 CallInterfaceDescriptorData* data) { | 76 CallInterfaceDescriptorData* data) { |
71 Register registers[] = {a2}; | 77 Register registers[] = {a2}; |
72 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 78 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
73 } | 79 } |
74 | 80 |
75 | 81 |
76 void FastNewContextDescriptor::InitializePlatformSpecific( | 82 void FastNewContextDescriptor::InitializePlatformSpecific( |
77 CallInterfaceDescriptorData* data) { | 83 CallInterfaceDescriptorData* data) { |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 a1, // the JSGeneratorObject to resume | 420 a1, // the JSGeneratorObject to resume |
415 a2 // the resume mode (tagged) | 421 a2 // the resume mode (tagged) |
416 }; | 422 }; |
417 data->InitializePlatformSpecific(arraysize(registers), registers); | 423 data->InitializePlatformSpecific(arraysize(registers), registers); |
418 } | 424 } |
419 | 425 |
420 } // namespace internal | 426 } // namespace internal |
421 } // namespace v8 | 427 } // namespace v8 |
422 | 428 |
423 #endif // V8_TARGET_ARCH_MIPS | 429 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |