| 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 ecx, // holder | 403 ecx, // holder |
| 404 edx, // api_function_address | 404 edx, // api_function_address |
| 405 }; | 405 }; |
| 406 data->InitializePlatformSpecific(arraysize(registers), registers); | 406 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 407 } | 407 } |
| 408 | 408 |
| 409 void InterpreterDispatchDescriptor::InitializePlatformSpecific( | 409 void InterpreterDispatchDescriptor::InitializePlatformSpecific( |
| 410 CallInterfaceDescriptorData* data) { | 410 CallInterfaceDescriptorData* data) { |
| 411 Register registers[] = { | 411 Register registers[] = { |
| 412 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister, | 412 kInterpreterAccumulatorRegister, kInterpreterRegisterFileRegister, |
| 413 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister, | 413 kInterpreterBytecodeOffsetRegister, kInterpreterBytecodeArrayRegister}; |
| 414 kInterpreterDispatchTableRegister}; | |
| 415 data->InitializePlatformSpecific(arraysize(registers), registers); | 414 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 416 } | 415 } |
| 417 | 416 |
| 418 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 417 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
| 419 CallInterfaceDescriptorData* data) { | 418 CallInterfaceDescriptorData* data) { |
| 420 Register registers[] = { | 419 Register registers[] = { |
| 421 eax, // argument count (not including receiver) | 420 eax, // argument count (not including receiver) |
| 422 ebx, // address of first argument | 421 ebx, // address of first argument |
| 423 edi // the target callable to be call | 422 edi // the target callable to be call |
| 424 }; | 423 }; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 443 ecx, // address of first argument (argv) | 442 ecx, // address of first argument (argv) |
| 444 ebx // the runtime function to call | 443 ebx // the runtime function to call |
| 445 }; | 444 }; |
| 446 data->InitializePlatformSpecific(arraysize(registers), registers); | 445 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 447 } | 446 } |
| 448 | 447 |
| 449 } // namespace internal | 448 } // namespace internal |
| 450 } // namespace v8 | 449 } // namespace v8 |
| 451 | 450 |
| 452 #endif // V8_TARGET_ARCH_X87 | 451 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |