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 { |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 data->InitializePlatformSpecific(arraysize(registers), registers); | 133 data->InitializePlatformSpecific(arraysize(registers), registers); |
134 } | 134 } |
135 | 135 |
136 | 136 |
137 void CallFunctionDescriptor::InitializePlatformSpecific( | 137 void CallFunctionDescriptor::InitializePlatformSpecific( |
138 CallInterfaceDescriptorData* data) { | 138 CallInterfaceDescriptorData* data) { |
139 Register registers[] = {a1}; | 139 Register registers[] = {a1}; |
140 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 140 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
141 } | 141 } |
142 | 142 |
143 | 143 void CallICTrampolineDescriptor::InitializePlatformSpecific( |
144 void CallFunctionWithFeedbackDescriptor::InitializePlatformSpecific( | |
145 CallInterfaceDescriptorData* data) { | 144 CallInterfaceDescriptorData* data) { |
146 Register registers[] = {a1, a0, a3}; | 145 Register registers[] = {a1, a0, a3}; |
147 data->InitializePlatformSpecific(arraysize(registers), registers); | 146 data->InitializePlatformSpecific(arraysize(registers), registers); |
148 } | 147 } |
149 | 148 |
150 | 149 void CallICDescriptor::InitializePlatformSpecific( |
151 void CallFunctionWithFeedbackAndVectorDescriptor::InitializePlatformSpecific( | |
152 CallInterfaceDescriptorData* data) { | 150 CallInterfaceDescriptorData* data) { |
153 Register registers[] = {a1, a0, a3, a2}; | 151 Register registers[] = {a1, a0, a3, a2}; |
154 data->InitializePlatformSpecific(arraysize(registers), registers); | 152 data->InitializePlatformSpecific(arraysize(registers), registers); |
155 } | 153 } |
156 | 154 |
157 | 155 |
158 void CallConstructDescriptor::InitializePlatformSpecific( | 156 void CallConstructDescriptor::InitializePlatformSpecific( |
159 CallInterfaceDescriptorData* data) { | 157 CallInterfaceDescriptorData* data) { |
160 // a0 : number of arguments | 158 // a0 : number of arguments |
161 // a1 : the function to call | 159 // a1 : the function to call |
(...skipping 58 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 Register registers[] = { | 425 Register registers[] = { |
421 a1, // loaded new FP | 426 a1, // loaded new FP |
422 }; | 427 }; |
423 data->InitializePlatformSpecific(arraysize(registers), registers); | 428 data->InitializePlatformSpecific(arraysize(registers), registers); |
424 } | 429 } |
425 | 430 |
426 } // namespace internal | 431 } // namespace internal |
427 } // namespace v8 | 432 } // namespace v8 |
428 | 433 |
429 #endif // V8_TARGET_ARCH_MIPS | 434 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |