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_X64 | 5 #if V8_TARGET_ARCH_X64 |
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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 } | 235 } |
236 | 236 |
237 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \ | 237 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \ |
238 void Allocate##Type##Descriptor::InitializePlatformSpecific( \ | 238 void Allocate##Type##Descriptor::InitializePlatformSpecific( \ |
239 CallInterfaceDescriptorData* data) { \ | 239 CallInterfaceDescriptorData* data) { \ |
240 data->InitializePlatformSpecific(0, nullptr, nullptr); \ | 240 data->InitializePlatformSpecific(0, nullptr, nullptr); \ |
241 } | 241 } |
242 SIMD128_TYPES(SIMD128_ALLOC_DESC) | 242 SIMD128_TYPES(SIMD128_ALLOC_DESC) |
243 #undef SIMD128_ALLOC_DESC | 243 #undef SIMD128_ALLOC_DESC |
244 | 244 |
245 void AllocateDescriptor::InitializePlatformSpecific( | |
246 CallInterfaceDescriptorData* data) { | |
247 Register registers[] = {rax}; | |
248 data->InitializePlatformSpecific(arraysize(registers), registers); | |
249 } | |
250 | |
251 | |
252 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( | 245 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( |
253 CallInterfaceDescriptorData* data) { | 246 CallInterfaceDescriptorData* data) { |
254 // register state | 247 // register state |
255 // rax -- number of arguments | 248 // rax -- number of arguments |
256 // rdi -- function | 249 // rdi -- function |
257 // rbx -- allocation site with elements kind | 250 // rbx -- allocation site with elements kind |
258 Register registers[] = {rdi, rbx}; | 251 Register registers[] = {rdi, rbx}; |
259 data->InitializePlatformSpecific(arraysize(registers), registers); | 252 data->InitializePlatformSpecific(arraysize(registers), registers); |
260 } | 253 } |
261 | 254 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 rbx, // the JSGeneratorObject to resume | 413 rbx, // the JSGeneratorObject to resume |
421 rdx // the resume mode (tagged) | 414 rdx // the resume mode (tagged) |
422 }; | 415 }; |
423 data->InitializePlatformSpecific(arraysize(registers), registers); | 416 data->InitializePlatformSpecific(arraysize(registers), registers); |
424 } | 417 } |
425 | 418 |
426 } // namespace internal | 419 } // namespace internal |
427 } // namespace v8 | 420 } // namespace v8 |
428 | 421 |
429 #endif // V8_TARGET_ARCH_X64 | 422 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |