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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 CallInterfaceDescriptorData* data) { | 405 CallInterfaceDescriptorData* data) { |
406 Register registers[] = { | 406 Register registers[] = { |
407 edi, // callee | 407 edi, // callee |
408 ebx, // call_data | 408 ebx, // call_data |
409 ecx, // holder | 409 ecx, // holder |
410 edx, // api_function_address | 410 edx, // api_function_address |
411 }; | 411 }; |
412 data->InitializePlatformSpecific(arraysize(registers), registers); | 412 data->InitializePlatformSpecific(arraysize(registers), registers); |
413 } | 413 } |
414 | 414 |
| 415 void InterpreterDispatchDescriptor::InitializePlatformSpecific( |
| 416 CallInterfaceDescriptorData* data) { |
| 417 Register registers[] = { |
| 418 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister, |
| 419 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister }; |
| 420 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 421 } |
415 | 422 |
416 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 423 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
417 CallInterfaceDescriptorData* data) { | 424 CallInterfaceDescriptorData* data) { |
418 Register registers[] = { | 425 Register registers[] = { |
419 eax, // argument count (not including receiver) | 426 eax, // argument count (not including receiver) |
420 ebx, // address of first argument | 427 ebx, // address of first argument |
421 edi // the target callable to be call | 428 edi // the target callable to be call |
422 }; | 429 }; |
423 data->InitializePlatformSpecific(arraysize(registers), registers); | 430 data->InitializePlatformSpecific(arraysize(registers), registers); |
424 } | 431 } |
425 | 432 |
426 | |
427 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( | 433 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( |
428 CallInterfaceDescriptorData* data) { | 434 CallInterfaceDescriptorData* data) { |
429 Register registers[] = { | 435 Register registers[] = { |
430 eax, // argument count (not including receiver) | 436 eax, // argument count (not including receiver) |
431 edx, // new target | 437 edx, // new target |
432 edi, // constructor | 438 edi, // constructor |
433 ebx, // address of first argument | 439 ebx, // address of first argument |
434 }; | 440 }; |
435 data->InitializePlatformSpecific(arraysize(registers), registers); | 441 data->InitializePlatformSpecific(arraysize(registers), registers); |
436 } | 442 } |
437 | 443 |
438 | |
439 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | 444 void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
440 CallInterfaceDescriptorData* data) { | 445 CallInterfaceDescriptorData* data) { |
441 Register registers[] = { | 446 Register registers[] = { |
442 eax, // argument count (argc) | 447 eax, // argument count (argc) |
443 ecx, // address of first argument (argv) | 448 ecx, // address of first argument (argv) |
444 ebx // the runtime function to call | 449 ebx // the runtime function to call |
445 }; | 450 }; |
446 data->InitializePlatformSpecific(arraysize(registers), registers); | 451 data->InitializePlatformSpecific(arraysize(registers), registers); |
447 } | 452 } |
448 | 453 |
449 } // namespace internal | 454 } // namespace internal |
450 } // namespace v8 | 455 } // namespace v8 |
451 | 456 |
452 #endif // V8_TARGET_ARCH_IA32 | 457 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |