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 3722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3733 vmsr(result_reg); | 3733 vmsr(result_reg); |
3734 vcvt_s32_f64(input_reg.low(), input_reg, kFPSCRRounding); | 3734 vcvt_s32_f64(input_reg.low(), input_reg, kFPSCRRounding); |
3735 vmov(result_reg, input_reg.low()); | 3735 vmov(result_reg, input_reg.low()); |
3736 // Restore FPSCR. | 3736 // Restore FPSCR. |
3737 vmsr(ip); | 3737 vmsr(ip); |
3738 bind(&done); | 3738 bind(&done); |
3739 } | 3739 } |
3740 | 3740 |
3741 | 3741 |
3742 void MacroAssembler::LoadInstanceDescriptors(Register map, | 3742 void MacroAssembler::LoadInstanceDescriptors(Register map, |
3743 Register descriptors, | 3743 Register descriptors) { |
3744 Register scratch) { | |
3745 ldr(descriptors, FieldMemOperand(map, Map::kDescriptorsOffset)); | 3744 ldr(descriptors, FieldMemOperand(map, Map::kDescriptorsOffset)); |
3746 } | 3745 } |
3747 | 3746 |
3748 | 3747 |
3749 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) { | 3748 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) { |
3750 ldr(dst, FieldMemOperand(map, Map::kBitField3Offset)); | 3749 ldr(dst, FieldMemOperand(map, Map::kBitField3Offset)); |
3751 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst); | 3750 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst); |
3752 } | 3751 } |
3753 | 3752 |
3754 | 3753 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3856 void CodePatcher::EmitCondition(Condition cond) { | 3855 void CodePatcher::EmitCondition(Condition cond) { |
3857 Instr instr = Assembler::instr_at(masm_.pc_); | 3856 Instr instr = Assembler::instr_at(masm_.pc_); |
3858 instr = (instr & ~kCondMask) | cond; | 3857 instr = (instr & ~kCondMask) | cond; |
3859 masm_.emit(instr); | 3858 masm_.emit(instr); |
3860 } | 3859 } |
3861 | 3860 |
3862 | 3861 |
3863 } } // namespace v8::internal | 3862 } } // namespace v8::internal |
3864 | 3863 |
3865 #endif // V8_TARGET_ARCH_ARM | 3864 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |