Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: src/arm/macro-assembler-arm.cc

Issue 408473002: ARM: never record safepoint with doubles (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_ARM 9 #if V8_TARGET_ARCH_ARM
10 10
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 } 720 }
721 721
722 722
723 void MacroAssembler::PopSafepointRegisters() { 723 void MacroAssembler::PopSafepointRegisters() {
724 const int num_unsaved = kNumSafepointRegisters - kNumSafepointSavedRegisters; 724 const int num_unsaved = kNumSafepointRegisters - kNumSafepointSavedRegisters;
725 ldm(ia_w, sp, kSafepointSavedRegisters); 725 ldm(ia_w, sp, kSafepointSavedRegisters);
726 add(sp, sp, Operand(num_unsaved * kPointerSize)); 726 add(sp, sp, Operand(num_unsaved * kPointerSize));
727 } 727 }
728 728
729 729
730 void MacroAssembler::PushSafepointRegistersAndDoubles() {
731 // Number of d-regs not known at snapshot time.
732 ASSERT(!serializer_enabled());
733 PushSafepointRegisters();
734 // Only save allocatable registers.
735 ASSERT(kScratchDoubleReg.is(d15) && kDoubleRegZero.is(d14));
736 ASSERT(DwVfpRegister::NumReservedRegisters() == 2);
737 if (CpuFeatures::IsSupported(VFP32DREGS)) {
738 vstm(db_w, sp, d16, d31);
739 }
740 vstm(db_w, sp, d0, d13);
741 }
742
743
744 void MacroAssembler::PopSafepointRegistersAndDoubles() {
745 // Number of d-regs not known at snapshot time.
746 ASSERT(!serializer_enabled());
747 // Only save allocatable registers.
748 ASSERT(kScratchDoubleReg.is(d15) && kDoubleRegZero.is(d14));
749 ASSERT(DwVfpRegister::NumReservedRegisters() == 2);
750 vldm(ia_w, sp, d0, d13);
751 if (CpuFeatures::IsSupported(VFP32DREGS)) {
752 vldm(ia_w, sp, d16, d31);
753 }
754 PopSafepointRegisters();
755 }
756
757 void MacroAssembler::StoreToSafepointRegistersAndDoublesSlot(Register src,
758 Register dst) {
759 str(src, SafepointRegistersAndDoublesSlot(dst));
760 }
761
762
763 void MacroAssembler::StoreToSafepointRegisterSlot(Register src, Register dst) { 730 void MacroAssembler::StoreToSafepointRegisterSlot(Register src, Register dst) {
764 str(src, SafepointRegisterSlot(dst)); 731 str(src, SafepointRegisterSlot(dst));
765 } 732 }
766 733
767 734
768 void MacroAssembler::LoadFromSafepointRegisterSlot(Register dst, Register src) { 735 void MacroAssembler::LoadFromSafepointRegisterSlot(Register dst, Register src) {
769 ldr(dst, SafepointRegisterSlot(src)); 736 ldr(dst, SafepointRegisterSlot(src));
770 } 737 }
771 738
772 739
(...skipping 3359 matching lines...) Expand 10 before | Expand all | Expand 10 after
4132 sub(result, result, Operand(dividend)); 4099 sub(result, result, Operand(dividend));
4133 } 4100 }
4134 if (ms.shift() > 0) mov(result, Operand(result, ASR, ms.shift())); 4101 if (ms.shift() > 0) mov(result, Operand(result, ASR, ms.shift()));
4135 add(result, result, Operand(dividend, LSR, 31)); 4102 add(result, result, Operand(dividend, LSR, 31));
4136 } 4103 }
4137 4104
4138 4105
4139 } } // namespace v8::internal 4106 } } // namespace v8::internal
4140 4107
4141 #endif // V8_TARGET_ARCH_ARM 4108 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698