OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
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 Register registers[] = { | 383 Register registers[] = { |
384 r3, // callee | 384 r3, // callee |
385 r7, // call_data | 385 r7, // call_data |
386 r5, // holder | 386 r5, // holder |
387 r4, // api_function_address | 387 r4, // api_function_address |
388 }; | 388 }; |
389 data->InitializePlatformSpecific(arraysize(registers), registers); | 389 data->InitializePlatformSpecific(arraysize(registers), registers); |
390 } | 390 } |
391 | 391 |
392 | 392 |
393 void MathRoundVariantCallFromUnoptimizedCodeDescriptor:: | |
394 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | |
395 Register registers[] = { | |
396 r4, // math rounding function | |
397 r6, // vector slot id | |
398 }; | |
399 data->InitializePlatformSpecific(arraysize(registers), registers); | |
400 } | |
401 | |
402 | |
403 void MathRoundVariantCallFromOptimizedCodeDescriptor:: | |
404 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | |
405 Register registers[] = { | |
406 r4, // math rounding function | |
407 r6, // vector slot id | |
408 r7, // type vector | |
409 }; | |
410 data->InitializePlatformSpecific(arraysize(registers), registers); | |
411 } | |
412 | |
413 | |
414 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 393 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
415 CallInterfaceDescriptorData* data) { | 394 CallInterfaceDescriptorData* data) { |
416 Register registers[] = { | 395 Register registers[] = { |
417 r3, // argument count (not including receiver) | 396 r3, // argument count (not including receiver) |
418 r5, // address of first argument | 397 r5, // address of first argument |
419 r4 // the target callable to be call | 398 r4 // the target callable to be call |
420 }; | 399 }; |
421 data->InitializePlatformSpecific(arraysize(registers), registers); | 400 data->InitializePlatformSpecific(arraysize(registers), registers); |
422 } | 401 } |
423 | 402 |
(...skipping 16 matching lines...) Expand all Loading... |
440 r3, // argument count (argc) | 419 r3, // argument count (argc) |
441 r5, // address of first argument (argv) | 420 r5, // address of first argument (argv) |
442 r4 // the runtime function to call | 421 r4 // the runtime function to call |
443 }; | 422 }; |
444 data->InitializePlatformSpecific(arraysize(registers), registers); | 423 data->InitializePlatformSpecific(arraysize(registers), registers); |
445 } | 424 } |
446 } // namespace internal | 425 } // namespace internal |
447 } // namespace v8 | 426 } // namespace v8 |
448 | 427 |
449 #endif // V8_TARGET_ARCH_PPC | 428 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |