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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
10 | 10 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace internal { | 12 namespace internal { |
13 | 13 |
14 const Register CallInterfaceDescriptor::ContextRegister() { return cp; } | 14 const Register CallInterfaceDescriptor::ContextRegister() { return cp; } |
15 | 15 |
16 | 16 |
17 const Register LoadDescriptor::ReceiverRegister() { return a1; } | 17 const Register LoadDescriptor::ReceiverRegister() { return a1; } |
18 const Register LoadDescriptor::NameRegister() { return a2; } | 18 const Register LoadDescriptor::NameRegister() { return a2; } |
19 | 19 |
20 | 20 |
21 const Register VectorLoadICDescriptor::ReceiverRegister() { | 21 const Register VectorLoadICTrampolineDescriptor::SlotRegister() { return a0; } |
22 return LoadDescriptor::ReceiverRegister(); | |
23 } | |
24 | 22 |
25 | 23 |
26 const Register VectorLoadICDescriptor::NameRegister() { | |
27 return LoadDescriptor::NameRegister(); | |
28 } | |
29 | |
30 | |
31 const Register VectorLoadICDescriptor::SlotRegister() { return a0; } | |
32 const Register VectorLoadICDescriptor::VectorRegister() { return a3; } | 24 const Register VectorLoadICDescriptor::VectorRegister() { return a3; } |
33 | 25 |
34 | 26 |
35 const Register StoreDescriptor::ReceiverRegister() { return a1; } | 27 const Register StoreDescriptor::ReceiverRegister() { return a1; } |
36 const Register StoreDescriptor::NameRegister() { return a2; } | 28 const Register StoreDescriptor::NameRegister() { return a2; } |
37 const Register StoreDescriptor::ValueRegister() { return a0; } | 29 const Register StoreDescriptor::ValueRegister() { return a0; } |
38 | 30 |
39 | 31 |
40 const Register ElementTransitionAndStoreDescriptor::ReceiverRegister() { | |
41 return StoreDescriptor::ReceiverRegister(); | |
42 } | |
43 | |
44 | |
45 const Register ElementTransitionAndStoreDescriptor::NameRegister() { | |
46 return StoreDescriptor::NameRegister(); | |
47 } | |
48 | |
49 | |
50 const Register ElementTransitionAndStoreDescriptor::ValueRegister() { | |
51 return StoreDescriptor::ValueRegister(); | |
52 } | |
53 | |
54 | |
55 const Register ElementTransitionAndStoreDescriptor::MapRegister() { return a3; } | 32 const Register ElementTransitionAndStoreDescriptor::MapRegister() { return a3; } |
56 | 33 |
57 | 34 |
58 const Register InstanceofDescriptor::left() { return a0; } | 35 const Register InstanceofDescriptor::left() { return a0; } |
59 const Register InstanceofDescriptor::right() { return a1; } | 36 const Register InstanceofDescriptor::right() { return a1; } |
60 | 37 |
61 | 38 |
| 39 const Register ArgumentsAccessReadDescriptor::index() { return a1; } |
| 40 const Register ArgumentsAccessReadDescriptor::parameter_count() { return a0; } |
| 41 |
| 42 |
| 43 const Register ApiGetterDescriptor::function_address() { return a2; } |
| 44 |
| 45 |
| 46 const Register MathPowTaggedDescriptor::exponent() { return a2; } |
| 47 |
| 48 |
| 49 const Register MathPowIntegerDescriptor::exponent() { |
| 50 return MathPowTaggedDescriptor::exponent(); |
| 51 } |
| 52 |
| 53 |
62 void FastNewClosureDescriptor::Initialize(CallInterfaceDescriptorData* data) { | 54 void FastNewClosureDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
63 Register registers[] = {cp, a2}; | 55 Register registers[] = {cp, a2}; |
64 data->Initialize(arraysize(registers), registers, NULL); | 56 data->Initialize(arraysize(registers), registers, NULL); |
65 } | 57 } |
66 | 58 |
67 | 59 |
68 void FastNewContextDescriptor::Initialize(CallInterfaceDescriptorData* data) { | 60 void FastNewContextDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
69 Register registers[] = {cp, a1}; | 61 Register registers[] = {cp, a1}; |
70 data->Initialize(arraysize(registers), registers, NULL); | 62 data->Initialize(arraysize(registers), registers, NULL); |
71 } | 63 } |
(...skipping 28 matching lines...) Expand all Loading... |
100 } | 92 } |
101 | 93 |
102 | 94 |
103 void CreateAllocationSiteDescriptor::Initialize( | 95 void CreateAllocationSiteDescriptor::Initialize( |
104 CallInterfaceDescriptorData* data) { | 96 CallInterfaceDescriptorData* data) { |
105 Register registers[] = {cp, a2, a3}; | 97 Register registers[] = {cp, a2, a3}; |
106 data->Initialize(arraysize(registers), registers, NULL); | 98 data->Initialize(arraysize(registers), registers, NULL); |
107 } | 99 } |
108 | 100 |
109 | 101 |
| 102 void StoreArrayLiteralElementDescriptor::Initialize( |
| 103 CallInterfaceDescriptorData* data) { |
| 104 Register registers[] = {cp, a3, a0}; |
| 105 data->Initialize(arraysize(registers), registers, NULL); |
| 106 } |
| 107 |
| 108 |
| 109 void CallFunctionWithFeedbackDescriptor::Initialize( |
| 110 CallInterfaceDescriptorData* data) { |
| 111 Register registers[] = {cp, a1, a3}; |
| 112 Representation representations[] = {Representation::Tagged(), |
| 113 Representation::Tagged(), |
| 114 Representation::Smi()}; |
| 115 data->Initialize(arraysize(registers), registers, representations); |
| 116 } |
| 117 |
| 118 |
110 void CallFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { | 119 void CallFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
111 Register registers[] = {cp, a1}; | 120 Register registers[] = {cp, a1}; |
112 data->Initialize(arraysize(registers), registers, NULL); | 121 data->Initialize(arraysize(registers), registers, NULL); |
113 } | 122 } |
114 | 123 |
115 | 124 |
116 void CallConstructDescriptor::Initialize(CallInterfaceDescriptorData* data) { | 125 void CallConstructDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
117 // a0 : number of arguments | 126 // a0 : number of arguments |
118 // a1 : the function to call | 127 // a1 : the function to call |
119 // a2 : feedback vector | 128 // a2 : feedback vector |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 Representation::Tagged(), // call_data | 294 Representation::Tagged(), // call_data |
286 Representation::Tagged(), // holder | 295 Representation::Tagged(), // holder |
287 Representation::External(), // api_function_address | 296 Representation::External(), // api_function_address |
288 }; | 297 }; |
289 data->Initialize(arraysize(registers), registers, representations); | 298 data->Initialize(arraysize(registers), registers, representations); |
290 } | 299 } |
291 } | 300 } |
292 } // namespace v8::internal | 301 } // namespace v8::internal |
293 | 302 |
294 #endif // V8_TARGET_ARCH_MIPS64 | 303 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |