| 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 ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific( |
| 246 CallInterfaceDescriptorData* data) { |
| 247 // register state |
| 248 // rax -- number of arguments |
| 249 // rdi -- function |
| 250 // rbx -- allocation site with elements kind |
| 251 Register registers[] = {rdi, rbx, rax}; |
| 252 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
| 253 } |
| 254 |
| 245 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( | 255 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( |
| 246 CallInterfaceDescriptorData* data) { | 256 CallInterfaceDescriptorData* data) { |
| 247 // register state | 257 // register state |
| 248 // rax -- number of arguments | 258 // rax -- number of arguments |
| 249 // rdi -- function | 259 // rdi -- function |
| 250 // rbx -- allocation site with elements kind | 260 // rbx -- allocation site with elements kind |
| 251 Register registers[] = {rdi, rbx}; | 261 Register registers[] = {rdi, rbx}; |
| 252 data->InitializePlatformSpecific(arraysize(registers), registers); | 262 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 253 } | 263 } |
| 254 | 264 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 rbx, // the JSGeneratorObject to resume | 423 rbx, // the JSGeneratorObject to resume |
| 414 rdx // the resume mode (tagged) | 424 rdx // the resume mode (tagged) |
| 415 }; | 425 }; |
| 416 data->InitializePlatformSpecific(arraysize(registers), registers); | 426 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 417 } | 427 } |
| 418 | 428 |
| 419 } // namespace internal | 429 } // namespace internal |
| 420 } // namespace v8 | 430 } // namespace v8 |
| 421 | 431 |
| 422 #endif // V8_TARGET_ARCH_X64 | 432 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |