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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 CallInterfaceDescriptorData* data) { | 383 CallInterfaceDescriptorData* data) { |
384 Register registers[] = { | 384 Register registers[] = { |
385 edi, // JSFunction | 385 edi, // JSFunction |
386 edx, // the new target | 386 edx, // the new target |
387 eax, // actual number of arguments | 387 eax, // actual number of arguments |
388 ebx, // expected number of arguments | 388 ebx, // expected number of arguments |
389 }; | 389 }; |
390 data->InitializePlatformSpecific(arraysize(registers), registers); | 390 data->InitializePlatformSpecific(arraysize(registers), registers); |
391 } | 391 } |
392 | 392 |
393 void ApiCallbackDescriptorBase::InitializePlatformSpecific( | 393 |
| 394 void ApiFunctionDescriptor::InitializePlatformSpecific( |
| 395 CallInterfaceDescriptorData* data) { |
| 396 Register registers[] = { |
| 397 edi, // callee |
| 398 ebx, // call_data |
| 399 ecx, // holder |
| 400 edx, // api_function_address |
| 401 eax, // actual number of arguments |
| 402 }; |
| 403 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 404 } |
| 405 |
| 406 |
| 407 void ApiAccessorDescriptor::InitializePlatformSpecific( |
394 CallInterfaceDescriptorData* data) { | 408 CallInterfaceDescriptorData* data) { |
395 Register registers[] = { | 409 Register registers[] = { |
396 edi, // callee | 410 edi, // callee |
397 ebx, // call_data | 411 ebx, // call_data |
398 ecx, // holder | 412 ecx, // holder |
399 edx, // api_function_address | 413 edx, // api_function_address |
400 }; | 414 }; |
401 data->InitializePlatformSpecific(arraysize(registers), registers); | 415 data->InitializePlatformSpecific(arraysize(registers), registers); |
402 } | 416 } |
403 | 417 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 ecx, // address of first argument (argv) | 451 ecx, // address of first argument (argv) |
438 ebx // the runtime function to call | 452 ebx // the runtime function to call |
439 }; | 453 }; |
440 data->InitializePlatformSpecific(arraysize(registers), registers); | 454 data->InitializePlatformSpecific(arraysize(registers), registers); |
441 } | 455 } |
442 | 456 |
443 } // namespace internal | 457 } // namespace internal |
444 } // namespace v8 | 458 } // namespace v8 |
445 | 459 |
446 #endif // V8_TARGET_ARCH_IA32 | 460 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |