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