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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | 393 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { |
394 Register registers[] = { | 394 Register registers[] = { |
395 edi, // math rounding function | 395 edi, // math rounding function |
396 edx, // vector slot id | 396 edx, // vector slot id |
397 ebx // type vector | 397 ebx // type vector |
398 }; | 398 }; |
399 data->InitializePlatformSpecific(arraysize(registers), registers); | 399 data->InitializePlatformSpecific(arraysize(registers), registers); |
400 } | 400 } |
401 | 401 |
402 | 402 |
403 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 403 void PushArgsAndCallDescriptor::InitializePlatformSpecific( |
404 CallInterfaceDescriptorData* data) { | 404 CallInterfaceDescriptorData* data) { |
405 Register registers[] = { | 405 Register registers[] = { |
406 eax, // argument count (not including receiver) | 406 eax, // argument count (including receiver) |
407 ebx, // address of first argument | 407 ebx, // address of first argument |
408 edi // the target callable to be call | 408 edi // the target callable to be call |
409 }; | 409 }; |
410 data->InitializePlatformSpecific(arraysize(registers), registers); | 410 data->InitializePlatformSpecific(arraysize(registers), registers); |
411 } | 411 } |
412 | 412 |
413 | |
414 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | |
415 CallInterfaceDescriptorData* data) { | |
416 Register registers[] = { | |
417 eax, // argument count (argc) | |
418 ecx, // address of first argument (argv) | |
419 ebx // the runtime function to call | |
420 }; | |
421 data->InitializePlatformSpecific(arraysize(registers), registers); | |
422 } | |
423 | |
424 } // namespace internal | 413 } // namespace internal |
425 } // namespace v8 | 414 } // namespace v8 |
426 | 415 |
427 #endif // V8_TARGET_ARCH_IA32 | 416 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |