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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 Register registers[] = { | 390 Register registers[] = { |
391 edi, // callee | 391 edi, // callee |
392 ebx, // call_data | 392 ebx, // call_data |
393 ecx, // holder | 393 ecx, // holder |
394 edx, // api_function_address | 394 edx, // api_function_address |
395 }; | 395 }; |
396 data->InitializePlatformSpecific(arraysize(registers), registers); | 396 data->InitializePlatformSpecific(arraysize(registers), registers); |
397 } | 397 } |
398 | 398 |
399 | 399 |
400 void MathRoundVariantCallFromUnoptimizedCodeDescriptor:: | |
401 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | |
402 Register registers[] = { | |
403 edi, // math rounding function | |
404 edx, // vector slot id | |
405 }; | |
406 data->InitializePlatformSpecific(arraysize(registers), registers); | |
407 } | |
408 | |
409 | |
410 void MathRoundVariantCallFromOptimizedCodeDescriptor:: | |
411 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | |
412 Register registers[] = { | |
413 edi, // math rounding function | |
414 edx, // vector slot id | |
415 ebx // type vector | |
416 }; | |
417 data->InitializePlatformSpecific(arraysize(registers), registers); | |
418 } | |
419 | |
420 | |
421 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 400 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
422 CallInterfaceDescriptorData* data) { | 401 CallInterfaceDescriptorData* data) { |
423 Register registers[] = { | 402 Register registers[] = { |
424 eax, // argument count (not including receiver) | 403 eax, // argument count (not including receiver) |
425 ebx, // address of first argument | 404 ebx, // address of first argument |
426 edi // the target callable to be call | 405 edi // the target callable to be call |
427 }; | 406 }; |
428 data->InitializePlatformSpecific(arraysize(registers), registers); | 407 data->InitializePlatformSpecific(arraysize(registers), registers); |
429 } | 408 } |
430 | 409 |
(...skipping 17 matching lines...) Expand all Loading... |
448 ecx, // address of first argument (argv) | 427 ecx, // address of first argument (argv) |
449 ebx // the runtime function to call | 428 ebx // the runtime function to call |
450 }; | 429 }; |
451 data->InitializePlatformSpecific(arraysize(registers), registers); | 430 data->InitializePlatformSpecific(arraysize(registers), registers); |
452 } | 431 } |
453 | 432 |
454 } // namespace internal | 433 } // namespace internal |
455 } // namespace v8 | 434 } // namespace v8 |
456 | 435 |
457 #endif // V8_TARGET_ARCH_X87 | 436 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |