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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 428 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
429 CallInterfaceDescriptorData* data) { | 429 CallInterfaceDescriptorData* data) { |
430 Register registers[] = { | 430 Register registers[] = { |
431 a0, // argument count (not including receiver) | 431 a0, // argument count (not including receiver) |
432 a2, // address of first argument | 432 a2, // address of first argument |
433 a1 // the target callable to be call | 433 a1 // the target callable to be call |
434 }; | 434 }; |
435 data->InitializePlatformSpecific(arraysize(registers), registers); | 435 data->InitializePlatformSpecific(arraysize(registers), registers); |
436 } | 436 } |
437 | 437 |
438 void InterpreterPushArgsAndCallICDescriptor::InitializePlatformSpecific( | |
439 CallInterfaceDescriptorData* data) { | |
440 Register registers[] = { | |
441 a0, // argument count (not including receiver) | |
442 t0, // address of first argument | |
443 a1, // the target callable to be call | |
444 a3, // feedback vector slot id | |
445 a2 // type feedback vector | |
446 }; | |
447 data->InitializePlatformSpecific(arraysize(registers), registers); | |
448 } | |
449 | |
450 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( | 438 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( |
451 CallInterfaceDescriptorData* data) { | 439 CallInterfaceDescriptorData* data) { |
452 Register registers[] = { | 440 Register registers[] = { |
453 a0, // argument count (not including receiver) | 441 a0, // argument count (not including receiver) |
454 a3, // new target | 442 a3, // new target |
455 a1, // constructor to call | 443 a1, // constructor to call |
456 a2 // address of the first argument | 444 a2 // address of the first argument |
457 }; | 445 }; |
458 data->InitializePlatformSpecific(arraysize(registers), registers); | 446 data->InitializePlatformSpecific(arraysize(registers), registers); |
459 } | 447 } |
460 | 448 |
461 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | 449 void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
462 CallInterfaceDescriptorData* data) { | 450 CallInterfaceDescriptorData* data) { |
463 Register registers[] = { | 451 Register registers[] = { |
464 a0, // argument count (argc) | 452 a0, // argument count (argc) |
465 a2, // address of first argument (argv) | 453 a2, // address of first argument (argv) |
466 a1 // the runtime function to call | 454 a1 // the runtime function to call |
467 }; | 455 }; |
468 data->InitializePlatformSpecific(arraysize(registers), registers); | 456 data->InitializePlatformSpecific(arraysize(registers), registers); |
469 } | 457 } |
470 | 458 |
471 } // namespace internal | 459 } // namespace internal |
472 } // namespace v8 | 460 } // namespace v8 |
473 | 461 |
474 #endif // V8_TARGET_ARCH_MIPS | 462 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |