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 #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( | 14 void CallInterfaceDescriptor::DefaultInitializePlatformSpecific( |
15 CallInterfaceDescriptorData* data, int register_parameter_count) { | 15 CallInterfaceDescriptorData* data, int register_parameter_count) { |
16 const Register default_stub_registers[] = {a0, a1, a2, a3, a4}; | 16 const Register default_stub_registers[] = {a0, a1, a2, a3, a4}; |
17 CHECK_LE(static_cast<size_t>(register_parameter_count), | 17 CHECK_LE(static_cast<size_t>(register_parameter_count), |
18 arraysize(default_stub_registers)); | 18 arraysize(default_stub_registers)); |
19 data->InitializePlatformSpecific(register_parameter_count, | 19 data->InitializePlatformSpecific(register_parameter_count, |
20 default_stub_registers); | 20 default_stub_registers); |
21 } | 21 } |
22 | 22 |
| 23 const Register FastNewFunctionContextDescriptor::FunctionRegister() { |
| 24 return a1; |
| 25 } |
| 26 const Register FastNewFunctionContextDescriptor::SlotsRegister() { return a0; } |
| 27 |
23 const Register LoadDescriptor::ReceiverRegister() { return a1; } | 28 const Register LoadDescriptor::ReceiverRegister() { return a1; } |
24 const Register LoadDescriptor::NameRegister() { return a2; } | 29 const Register LoadDescriptor::NameRegister() { return a2; } |
25 const Register LoadDescriptor::SlotRegister() { return a0; } | 30 const Register LoadDescriptor::SlotRegister() { return a0; } |
26 | 31 |
27 | 32 |
28 const Register LoadWithVectorDescriptor::VectorRegister() { return a3; } | 33 const Register LoadWithVectorDescriptor::VectorRegister() { return a3; } |
29 | 34 |
30 | 35 |
31 const Register StoreDescriptor::ReceiverRegister() { return a1; } | 36 const Register StoreDescriptor::ReceiverRegister() { return a1; } |
32 const Register StoreDescriptor::NameRegister() { return a2; } | 37 const Register StoreDescriptor::NameRegister() { return a2; } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 const Register GrowArrayElementsDescriptor::ObjectRegister() { return a0; } | 69 const Register GrowArrayElementsDescriptor::ObjectRegister() { return a0; } |
65 const Register GrowArrayElementsDescriptor::KeyRegister() { return a3; } | 70 const Register GrowArrayElementsDescriptor::KeyRegister() { return a3; } |
66 | 71 |
67 | 72 |
68 void FastNewClosureDescriptor::InitializePlatformSpecific( | 73 void FastNewClosureDescriptor::InitializePlatformSpecific( |
69 CallInterfaceDescriptorData* data) { | 74 CallInterfaceDescriptorData* data) { |
70 Register registers[] = {a2}; | 75 Register registers[] = {a2}; |
71 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 76 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
72 } | 77 } |
73 | 78 |
74 void FastNewFunctionContextDescriptor::InitializePlatformSpecific( | |
75 CallInterfaceDescriptorData* data) { | |
76 Register registers[] = {a1}; | |
77 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | |
78 } | |
79 | |
80 void FastNewObjectDescriptor::InitializePlatformSpecific( | 79 void FastNewObjectDescriptor::InitializePlatformSpecific( |
81 CallInterfaceDescriptorData* data) { | 80 CallInterfaceDescriptorData* data) { |
82 Register registers[] = {a1, a3}; | 81 Register registers[] = {a1, a3}; |
83 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 82 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
84 } | 83 } |
85 | 84 |
86 void FastNewRestParameterDescriptor::InitializePlatformSpecific( | 85 void FastNewRestParameterDescriptor::InitializePlatformSpecific( |
87 CallInterfaceDescriptorData* data) { | 86 CallInterfaceDescriptorData* data) { |
88 Register registers[] = {a1}; | 87 Register registers[] = {a1}; |
89 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 88 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 a1, // the JSGeneratorObject to resume | 402 a1, // the JSGeneratorObject to resume |
404 a2 // the resume mode (tagged) | 403 a2 // the resume mode (tagged) |
405 }; | 404 }; |
406 data->InitializePlatformSpecific(arraysize(registers), registers); | 405 data->InitializePlatformSpecific(arraysize(registers), registers); |
407 } | 406 } |
408 | 407 |
409 } // namespace internal | 408 } // namespace internal |
410 } // namespace v8 | 409 } // namespace v8 |
411 | 410 |
412 #endif // V8_TARGET_ARCH_MIPS64 | 411 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |