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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 edx, // name | 341 edx, // name |
342 }; | 342 }; |
343 data->InitializePlatformSpecific(arraysize(registers), registers); | 343 data->InitializePlatformSpecific(arraysize(registers), registers); |
344 } | 344 } |
345 | 345 |
346 | 346 |
347 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( | 347 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( |
348 CallInterfaceDescriptorData* data) { | 348 CallInterfaceDescriptorData* data) { |
349 Register registers[] = { | 349 Register registers[] = { |
350 edi, // JSFunction | 350 edi, // JSFunction |
| 351 edx, // the new target |
351 eax, // actual number of arguments | 352 eax, // actual number of arguments |
352 ebx, // expected number of arguments | 353 ebx, // expected number of arguments |
353 }; | 354 }; |
354 data->InitializePlatformSpecific(arraysize(registers), registers); | 355 data->InitializePlatformSpecific(arraysize(registers), registers); |
355 } | 356 } |
356 | 357 |
357 | 358 |
358 void ApiFunctionDescriptor::InitializePlatformSpecific( | 359 void ApiFunctionDescriptor::InitializePlatformSpecific( |
359 CallInterfaceDescriptorData* data) { | 360 CallInterfaceDescriptorData* data) { |
360 Register registers[] = { | 361 Register registers[] = { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 ecx, // address of first argument (argv) | 432 ecx, // address of first argument (argv) |
432 ebx // the runtime function to call | 433 ebx // the runtime function to call |
433 }; | 434 }; |
434 data->InitializePlatformSpecific(arraysize(registers), registers); | 435 data->InitializePlatformSpecific(arraysize(registers), registers); |
435 } | 436 } |
436 | 437 |
437 } // namespace internal | 438 } // namespace internal |
438 } // namespace v8 | 439 } // namespace v8 |
439 | 440 |
440 #endif // V8_TARGET_ARCH_IA32 | 441 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |