OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 } | 200 } |
201 | 201 |
202 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \ | 202 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \ |
203 void Allocate##Type##Descriptor::InitializePlatformSpecific( \ | 203 void Allocate##Type##Descriptor::InitializePlatformSpecific( \ |
204 CallInterfaceDescriptorData* data) { \ | 204 CallInterfaceDescriptorData* data) { \ |
205 data->InitializePlatformSpecific(0, nullptr, nullptr); \ | 205 data->InitializePlatformSpecific(0, nullptr, nullptr); \ |
206 } | 206 } |
207 SIMD128_TYPES(SIMD128_ALLOC_DESC) | 207 SIMD128_TYPES(SIMD128_ALLOC_DESC) |
208 #undef SIMD128_ALLOC_DESC | 208 #undef SIMD128_ALLOC_DESC |
209 | 209 |
| 210 void ArrayConstructorDescriptor::InitializePlatformSpecific( |
| 211 CallInterfaceDescriptorData* data) { |
| 212 // kTarget, kNewTarget, kActualArgumentsCount, kAllocationSite |
| 213 Register registers[] = {r3, r5, r2, r4}; |
| 214 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
| 215 } |
| 216 |
210 void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific( | 217 void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific( |
211 CallInterfaceDescriptorData* data) { | 218 CallInterfaceDescriptorData* data) { |
212 // register state | 219 // register state |
213 // r2 -- number of arguments | 220 // r2 -- number of arguments |
214 // r3 -- function | 221 // r3 -- function |
215 // r4 -- allocation site with elements kind | 222 // r4 -- allocation site with elements kind |
216 Register registers[] = {r3, r4, r2}; | 223 Register registers[] = {r3, r4, r2}; |
217 data->InitializePlatformSpecific(arraysize(registers), registers); | 224 data->InitializePlatformSpecific(arraysize(registers), registers); |
218 } | 225 } |
219 | 226 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 Register registers[] = { | 401 Register registers[] = { |
395 r3, // loaded new FP | 402 r3, // loaded new FP |
396 }; | 403 }; |
397 data->InitializePlatformSpecific(arraysize(registers), registers); | 404 data->InitializePlatformSpecific(arraysize(registers), registers); |
398 } | 405 } |
399 | 406 |
400 } // namespace internal | 407 } // namespace internal |
401 } // namespace v8 | 408 } // namespace v8 |
402 | 409 |
403 #endif // V8_TARGET_ARCH_S390 | 410 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |