| 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_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 } | 242 } |
| 243 | 243 |
| 244 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \ | 244 #define SIMD128_ALLOC_DESC(TYPE, Type, type, lane_count, lane_type) \ |
| 245 void Allocate##Type##Descriptor::InitializePlatformSpecific( \ | 245 void Allocate##Type##Descriptor::InitializePlatformSpecific( \ |
| 246 CallInterfaceDescriptorData* data) { \ | 246 CallInterfaceDescriptorData* data) { \ |
| 247 data->InitializePlatformSpecific(0, nullptr, nullptr); \ | 247 data->InitializePlatformSpecific(0, nullptr, nullptr); \ |
| 248 } | 248 } |
| 249 SIMD128_TYPES(SIMD128_ALLOC_DESC) | 249 SIMD128_TYPES(SIMD128_ALLOC_DESC) |
| 250 #undef SIMD128_ALLOC_DESC | 250 #undef SIMD128_ALLOC_DESC |
| 251 | 251 |
| 252 void AllocateDescriptor::InitializePlatformSpecific( | |
| 253 CallInterfaceDescriptorData* data) { | |
| 254 Register registers[] = {eax}; | |
| 255 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 256 } | |
| 257 | |
| 258 | |
| 259 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( | 252 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( |
| 260 CallInterfaceDescriptorData* data) { | 253 CallInterfaceDescriptorData* data) { |
| 261 // register state | 254 // register state |
| 262 // eax -- number of arguments | 255 // eax -- number of arguments |
| 263 // edi -- function | 256 // edi -- function |
| 264 // ebx -- allocation site with elements kind | 257 // ebx -- allocation site with elements kind |
| 265 Register registers[] = {edi, ebx}; | 258 Register registers[] = {edi, ebx}; |
| 266 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 259 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
| 267 } | 260 } |
| 268 | 261 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 ebx, // the JSGeneratorObject to resume | 420 ebx, // the JSGeneratorObject to resume |
| 428 edx // the resume mode (tagged) | 421 edx // the resume mode (tagged) |
| 429 }; | 422 }; |
| 430 data->InitializePlatformSpecific(arraysize(registers), registers); | 423 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 431 } | 424 } |
| 432 | 425 |
| 433 } // namespace internal | 426 } // namespace internal |
| 434 } // namespace v8 | 427 } // namespace v8 |
| 435 | 428 |
| 436 #endif // V8_TARGET_ARCH_X87 | 429 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |