OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 3466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3477 } | 3477 } |
3478 | 3478 |
3479 | 3479 |
3480 void MacroAssembler::PrepareCallCFunction(int num_reg_arguments, | 3480 void MacroAssembler::PrepareCallCFunction(int num_reg_arguments, |
3481 Register scratch) { | 3481 Register scratch) { |
3482 PrepareCallCFunction(num_reg_arguments, 0, scratch); | 3482 PrepareCallCFunction(num_reg_arguments, 0, scratch); |
3483 } | 3483 } |
3484 | 3484 |
3485 | 3485 |
3486 void MacroAssembler::SetCallCDoubleArguments(DwVfpRegister dreg) { | 3486 void MacroAssembler::SetCallCDoubleArguments(DwVfpRegister dreg) { |
3487 if (use_eabi_hardfloat()) { | 3487 ASSERT(dreg.is(d0)); |
3488 Move(d0, dreg); | 3488 if (!use_eabi_hardfloat()) { |
3489 } else { | |
3490 vmov(r0, r1, dreg); | 3489 vmov(r0, r1, dreg); |
3491 } | 3490 } |
3492 } | 3491 } |
3493 | 3492 |
3494 | 3493 |
3495 void MacroAssembler::SetCallCDoubleArguments(DwVfpRegister dreg1, | 3494 void MacroAssembler::SetCallCDoubleArguments(DwVfpRegister dreg1, |
3496 DwVfpRegister dreg2) { | 3495 DwVfpRegister dreg2) { |
3497 if (use_eabi_hardfloat()) { | 3496 ASSERT(dreg1.is(d0)); |
3498 if (dreg2.is(d0)) { | 3497 ASSERT(dreg2.is(d1)); |
3499 ASSERT(!dreg1.is(d1)); | 3498 if (!use_eabi_hardfloat()) { |
3500 Move(d1, dreg2); | |
3501 Move(d0, dreg1); | |
3502 } else { | |
3503 Move(d0, dreg1); | |
3504 Move(d1, dreg2); | |
3505 } | |
3506 } else { | |
3507 vmov(r0, r1, dreg1); | 3499 vmov(r0, r1, dreg1); |
3508 vmov(r2, r3, dreg2); | 3500 vmov(r2, r3, dreg2); |
3509 } | 3501 } |
3510 } | 3502 } |
3511 | 3503 |
3512 | 3504 |
3513 void MacroAssembler::SetCallCDoubleArguments(DwVfpRegister dreg, | 3505 void MacroAssembler::SetCallCDoubleArguments(DwVfpRegister dreg, |
3514 Register reg) { | 3506 Register reg) { |
| 3507 ASSERT(dreg.is(d0)); |
3515 if (use_eabi_hardfloat()) { | 3508 if (use_eabi_hardfloat()) { |
3516 Move(d0, dreg); | |
3517 Move(r0, reg); | 3509 Move(r0, reg); |
3518 } else { | 3510 } else { |
3519 Move(r2, reg); | 3511 Move(r2, reg); |
3520 vmov(r0, r1, dreg); | 3512 vmov(r0, r1, dreg); |
3521 } | 3513 } |
3522 } | 3514 } |
3523 | 3515 |
3524 | 3516 |
3525 void MacroAssembler::CallCFunction(ExternalReference function, | 3517 void MacroAssembler::CallCFunction(ExternalReference function, |
3526 int num_reg_arguments, | 3518 int num_reg_arguments, |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4078 void CodePatcher::EmitCondition(Condition cond) { | 4070 void CodePatcher::EmitCondition(Condition cond) { |
4079 Instr instr = Assembler::instr_at(masm_.pc_); | 4071 Instr instr = Assembler::instr_at(masm_.pc_); |
4080 instr = (instr & ~kCondMask) | cond; | 4072 instr = (instr & ~kCondMask) | cond; |
4081 masm_.emit(instr); | 4073 masm_.emit(instr); |
4082 } | 4074 } |
4083 | 4075 |
4084 | 4076 |
4085 } } // namespace v8::internal | 4077 } } // namespace v8::internal |
4086 | 4078 |
4087 #endif // V8_TARGET_ARCH_ARM | 4079 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |