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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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( | 245 void AllocateDescriptor::InitializePlatformSpecific( |
246 CallInterfaceDescriptorData* data) { | 246 CallInterfaceDescriptorData* data) { |
247 Register registers[] = {rdx}; | 247 Register registers[] = {rax}; |
248 data->InitializePlatformSpecific(arraysize(registers), registers); | 248 data->InitializePlatformSpecific(arraysize(registers), registers); |
249 } | 249 } |
250 | 250 |
251 | 251 |
252 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( | 252 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( |
253 CallInterfaceDescriptorData* data) { | 253 CallInterfaceDescriptorData* data) { |
254 // register state | 254 // register state |
255 // rax -- number of arguments | 255 // rax -- number of arguments |
256 // rdi -- function | 256 // rdi -- function |
257 // rbx -- allocation site with elements kind | 257 // rbx -- allocation site with elements kind |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 rbx, // the JSGeneratorObject to resume | 420 rbx, // the JSGeneratorObject to resume |
421 rdx // the resume mode (tagged) | 421 rdx // the resume mode (tagged) |
422 }; | 422 }; |
423 data->InitializePlatformSpecific(arraysize(registers), registers); | 423 data->InitializePlatformSpecific(arraysize(registers), registers); |
424 } | 424 } |
425 | 425 |
426 } // namespace internal | 426 } // namespace internal |
427 } // namespace v8 | 427 } // namespace v8 |
428 | 428 |
429 #endif // V8_TARGET_ARCH_X64 | 429 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |