| 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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | 385 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { |
| 386 Register registers[] = { | 386 Register registers[] = { |
| 387 a1, // math rounding function | 387 a1, // math rounding function |
| 388 a3, // vector slot id | 388 a3, // vector slot id |
| 389 a2, // type vector | 389 a2, // type vector |
| 390 }; | 390 }; |
| 391 data->InitializePlatformSpecific(arraysize(registers), registers); | 391 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 392 } | 392 } |
| 393 | 393 |
| 394 | 394 |
| 395 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 395 void PushArgsAndCallDescriptor::InitializePlatformSpecific( |
| 396 CallInterfaceDescriptorData* data) { | 396 CallInterfaceDescriptorData* data) { |
| 397 Register registers[] = { | 397 Register registers[] = { |
| 398 a0, // argument count (not including receiver) | 398 a0, // argument count (including receiver) |
| 399 a2, // address of first argument | 399 a2, // address of first argument |
| 400 a1 // the target callable to be call | 400 a1 // the target callable to be call |
| 401 }; | 401 }; |
| 402 data->InitializePlatformSpecific(arraysize(registers), registers); | 402 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 403 } | 403 } |
| 404 | 404 |
| 405 | |
| 406 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | |
| 407 CallInterfaceDescriptorData* data) { | |
| 408 Register registers[] = { | |
| 409 a0, // argument count (argc) | |
| 410 a2, // address of first argument (argv) | |
| 411 a1 // the runtime function to call | |
| 412 }; | |
| 413 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 414 } | |
| 415 | |
| 416 } // namespace internal | 405 } // namespace internal |
| 417 } // namespace v8 | 406 } // namespace v8 |
| 418 | 407 |
| 419 #endif // V8_TARGET_ARCH_MIPS64 | 408 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |