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 { |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 data->InitializePlatformSpecific(arraysize(registers), registers); | 126 data->InitializePlatformSpecific(arraysize(registers), registers); |
127 } | 127 } |
128 | 128 |
129 | 129 |
130 void CreateWeakCellDescriptor::InitializePlatformSpecific( | 130 void CreateWeakCellDescriptor::InitializePlatformSpecific( |
131 CallInterfaceDescriptorData* data) { | 131 CallInterfaceDescriptorData* data) { |
132 Register registers[] = {a2, a3, a1}; | 132 Register registers[] = {a2, a3, a1}; |
133 data->InitializePlatformSpecific(arraysize(registers), registers); | 133 data->InitializePlatformSpecific(arraysize(registers), registers); |
134 } | 134 } |
135 | 135 |
136 | 136 void CallICTrampolineDescriptor::InitializePlatformSpecific( |
137 void CallFunctionWithFeedbackDescriptor::InitializePlatformSpecific( | |
138 CallInterfaceDescriptorData* data) { | 137 CallInterfaceDescriptorData* data) { |
139 Register registers[] = {a1, a0, a3}; | 138 Register registers[] = {a1, a0, a3}; |
140 data->InitializePlatformSpecific(arraysize(registers), registers); | 139 data->InitializePlatformSpecific(arraysize(registers), registers); |
141 } | 140 } |
142 | 141 |
143 | 142 void CallICDescriptor::InitializePlatformSpecific( |
144 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific( | |
145 CallInterfaceDescriptorData* data) { | 143 CallInterfaceDescriptorData* data) { |
146 Register registers[] = {a1, a0, a3, a2}; | 144 Register registers[] = {a1, a0, a3, a2}; |
147 data->InitializePlatformSpecific(arraysize(registers), registers); | 145 data->InitializePlatformSpecific(arraysize(registers), registers); |
148 } | 146 } |
149 | 147 |
150 | 148 |
151 void CallFunctionDescriptor::InitializePlatformSpecific( | 149 void CallFunctionDescriptor::InitializePlatformSpecific( |
152 CallInterfaceDescriptorData* data) { | 150 CallInterfaceDescriptorData* data) { |
153 Register registers[] = {a1}; | 151 Register registers[] = {a1}; |
154 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 152 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 } | 218 } |
221 | 219 |
222 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \ | 220 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \ |
223 void Allocate##Type##Descriptor::InitializePlatformSpecific( \ | 221 void Allocate##Type##Descriptor::InitializePlatformSpecific( \ |
224 CallInterfaceDescriptorData* data) { \ | 222 CallInterfaceDescriptorData* data) { \ |
225 data->InitializePlatformSpecific(0, nullptr, nullptr); \ | 223 data->InitializePlatformSpecific(0, nullptr, nullptr); \ |
226 } | 224 } |
227 SIMD128_TYPES(SIMD128_ALLOC_DESC) | 225 SIMD128_TYPES(SIMD128_ALLOC_DESC) |
228 #undef SIMD128_ALLOC_DESC | 226 #undef SIMD128_ALLOC_DESC |
229 | 227 |
| 228 void ArrayConstructorDescriptor::InitializePlatformSpecific( |
| 229 CallInterfaceDescriptorData* data) { |
| 230 // kTarget, kNewTarget, kActualArgumentsCount, kAllocationSite |
| 231 Register registers[] = {a1, a3, a0, a2}; |
| 232 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
| 233 } |
| 234 |
230 void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific( | 235 void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific( |
231 CallInterfaceDescriptorData* data) { | 236 CallInterfaceDescriptorData* data) { |
232 // register state | 237 // register state |
233 // a0 -- number of arguments | 238 // a0 -- number of arguments |
234 // a1 -- function | 239 // a1 -- function |
235 // a2 -- allocation site with elements kind | 240 // a2 -- allocation site with elements kind |
236 Register registers[] = {a1, a2, a0}; | 241 Register registers[] = {a1, a2, a0}; |
237 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 242 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
238 } | 243 } |
239 | 244 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 Register registers[] = { | 424 Register registers[] = { |
420 a1, // loaded new FP | 425 a1, // loaded new FP |
421 }; | 426 }; |
422 data->InitializePlatformSpecific(arraysize(registers), registers); | 427 data->InitializePlatformSpecific(arraysize(registers), registers); |
423 } | 428 } |
424 | 429 |
425 } // namespace internal | 430 } // namespace internal |
426 } // namespace v8 | 431 } // namespace v8 |
427 | 432 |
428 #endif // V8_TARGET_ARCH_MIPS64 | 433 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |