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