| 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 Register registers[] = { | 384 Register registers[] = { |
| 385 a0, // callee | 385 a0, // callee |
| 386 t0, // call_data | 386 t0, // call_data |
| 387 a2, // holder | 387 a2, // holder |
| 388 a1, // api_function_address | 388 a1, // api_function_address |
| 389 }; | 389 }; |
| 390 data->InitializePlatformSpecific(arraysize(registers), registers); | 390 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 391 } | 391 } |
| 392 | 392 |
| 393 | 393 |
| 394 void MathRoundVariantCallFromUnoptimizedCodeDescriptor:: | |
| 395 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | |
| 396 Register registers[] = { | |
| 397 a1, // math rounding function | |
| 398 a3, // vector slot id | |
| 399 }; | |
| 400 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 401 } | |
| 402 | |
| 403 | |
| 404 void MathRoundVariantCallFromOptimizedCodeDescriptor:: | |
| 405 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | |
| 406 Register registers[] = { | |
| 407 a1, // math rounding function | |
| 408 a3, // vector slot id | |
| 409 a2, // type vector | |
| 410 }; | |
| 411 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 412 } | |
| 413 | |
| 414 | |
| 415 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( | 394 void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific( |
| 416 CallInterfaceDescriptorData* data) { | 395 CallInterfaceDescriptorData* data) { |
| 417 Register registers[] = { | 396 Register registers[] = { |
| 418 a0, // argument count (not including receiver) | 397 a0, // argument count (not including receiver) |
| 419 a2, // address of first argument | 398 a2, // address of first argument |
| 420 a1 // the target callable to be call | 399 a1 // the target callable to be call |
| 421 }; | 400 }; |
| 422 data->InitializePlatformSpecific(arraysize(registers), registers); | 401 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 423 } | 402 } |
| 424 | 403 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 442 a2, // address of first argument (argv) | 421 a2, // address of first argument (argv) |
| 443 a1 // the runtime function to call | 422 a1 // the runtime function to call |
| 444 }; | 423 }; |
| 445 data->InitializePlatformSpecific(arraysize(registers), registers); | 424 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 446 } | 425 } |
| 447 | 426 |
| 448 } // namespace internal | 427 } // namespace internal |
| 449 } // namespace v8 | 428 } // namespace v8 |
| 450 | 429 |
| 451 #endif // V8_TARGET_ARCH_MIPS | 430 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |