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 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 // Compare and load FPSCR. | 808 // Compare and load FPSCR. |
809 vcmp(src1, src2, cond); | 809 vcmp(src1, src2, cond); |
810 vmrs(fpscr_flags, cond); | 810 vmrs(fpscr_flags, cond); |
811 } | 811 } |
812 | 812 |
813 void MacroAssembler::Vmov(const DwVfpRegister dst, | 813 void MacroAssembler::Vmov(const DwVfpRegister dst, |
814 const double imm, | 814 const double imm, |
815 const Register scratch) { | 815 const Register scratch) { |
816 static const DoubleRepresentation minus_zero(-0.0); | 816 static const DoubleRepresentation minus_zero(-0.0); |
817 static const DoubleRepresentation zero(0.0); | 817 static const DoubleRepresentation zero(0.0); |
818 DoubleRepresentation value(imm); | 818 DoubleRepresentation value_rep(imm); |
819 // Handle special values first. | 819 // Handle special values first. |
820 if (value.bits == zero.bits) { | 820 if (value_rep == zero) { |
821 vmov(dst, kDoubleRegZero); | 821 vmov(dst, kDoubleRegZero); |
822 } else if (value.bits == minus_zero.bits) { | 822 } else if (value_rep == minus_zero) { |
823 vneg(dst, kDoubleRegZero); | 823 vneg(dst, kDoubleRegZero); |
824 } else { | 824 } else { |
825 vmov(dst, imm, scratch); | 825 vmov(dst, imm, scratch); |
826 } | 826 } |
827 } | 827 } |
828 | 828 |
829 | 829 |
830 void MacroAssembler::VmovHigh(Register dst, DwVfpRegister src) { | 830 void MacroAssembler::VmovHigh(Register dst, DwVfpRegister src) { |
831 if (src.code() < 16) { | 831 if (src.code() < 16) { |
832 const LowDwVfpRegister loc = LowDwVfpRegister::from_code(src.code()); | 832 const LowDwVfpRegister loc = LowDwVfpRegister::from_code(src.code()); |
(...skipping 3246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4079 void CodePatcher::EmitCondition(Condition cond) { | 4079 void CodePatcher::EmitCondition(Condition cond) { |
4080 Instr instr = Assembler::instr_at(masm_.pc_); | 4080 Instr instr = Assembler::instr_at(masm_.pc_); |
4081 instr = (instr & ~kCondMask) | cond; | 4081 instr = (instr & ~kCondMask) | cond; |
4082 masm_.emit(instr); | 4082 masm_.emit(instr); |
4083 } | 4083 } |
4084 | 4084 |
4085 | 4085 |
4086 } } // namespace v8::internal | 4086 } } // namespace v8::internal |
4087 | 4087 |
4088 #endif // V8_TARGET_ARCH_ARM | 4088 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |