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

Side by Side Diff: runtime/vm/constants_arm.h

Issue 292433008: Allows unboxed doubles to be disabled. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 | « runtime/vm/assembler_arm_test.cc ('k') | runtime/vm/cpu_arm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_CONSTANTS_ARM_H_ 5 #ifndef VM_CONSTANTS_ARM_H_
6 #define VM_CONSTANTS_ARM_H_ 6 #define VM_CONSTANTS_ARM_H_
7 7
8 #include "platform/globals.h" 8 #include "platform/globals.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 10
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 D6 = 6, 105 D6 = 6,
106 D7 = 7, 106 D7 = 7,
107 D8 = 8, 107 D8 = 8,
108 D9 = 9, 108 D9 = 9,
109 D10 = 10, 109 D10 = 10,
110 D11 = 11, 110 D11 = 11,
111 D12 = 12, 111 D12 = 12,
112 D13 = 13, 112 D13 = 13,
113 D14 = 14, 113 D14 = 14,
114 D15 = 15, 114 D15 = 15,
115 #ifdef VFPv3_D16 115 #if defined(VFPv3_D16)
116 kNumberOfDRegisters = 16, 116 kNumberOfDRegisters = 16,
117 // Leaving these defined, but marking them as kNoDRegister to avoid polluting 117 // Leaving these defined, but marking them as kNoDRegister to avoid polluting
118 // other parts of the code with #ifdef's. Instead, query kNumberOfDRegisters 118 // other parts of the code with #ifdef's. Instead, query kNumberOfDRegisters
119 // to see which registers are valid. 119 // to see which registers are valid.
120 D16 = kNoDRegister, 120 D16 = kNoDRegister,
121 D17 = kNoDRegister, 121 D17 = kNoDRegister,
122 D18 = kNoDRegister, 122 D18 = kNoDRegister,
123 D19 = kNoDRegister, 123 D19 = kNoDRegister,
124 D20 = kNoDRegister, 124 D20 = kNoDRegister,
125 D21 = kNoDRegister, 125 D21 = kNoDRegister,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 enum QRegister { 159 enum QRegister {
160 kNoQRegister = -1, 160 kNoQRegister = -1,
161 Q0 = 0, 161 Q0 = 0,
162 Q1 = 1, 162 Q1 = 1,
163 Q2 = 2, 163 Q2 = 2,
164 Q3 = 3, 164 Q3 = 3,
165 Q4 = 4, 165 Q4 = 4,
166 Q5 = 5, 166 Q5 = 5,
167 Q6 = 6, 167 Q6 = 6,
168 Q7 = 7, 168 Q7 = 7,
169 #ifdef VFPv3_D16 169 #if defined(VFPv3_D16)
170 kNumberOfQRegisters = 8, 170 kNumberOfQRegisters = 8,
171 Q8 = kNoQRegister, 171 Q8 = kNoQRegister,
172 Q9 = kNoQRegister, 172 Q9 = kNoQRegister,
173 Q10 = kNoQRegister, 173 Q10 = kNoQRegister,
174 Q11 = kNoQRegister, 174 Q11 = kNoQRegister,
175 Q12 = kNoQRegister, 175 Q12 = kNoQRegister,
176 Q13 = kNoQRegister, 176 Q13 = kNoQRegister,
177 Q14 = kNoQRegister, 177 Q14 = kNoQRegister,
178 Q15 = kNoQRegister, 178 Q15 = kNoQRegister,
179 #else 179 #else
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } 216 }
217 217
218 218
219 // Register aliases for floating point scratch registers. 219 // Register aliases for floating point scratch registers.
220 const QRegister QTMP = Q7; // Overlaps with DTMP, STMP. 220 const QRegister QTMP = Q7; // Overlaps with DTMP, STMP.
221 const DRegister DTMP = EvenDRegisterOf(QTMP); // Overlaps with STMP. 221 const DRegister DTMP = EvenDRegisterOf(QTMP); // Overlaps with STMP.
222 const SRegister STMP = EvenSRegisterOf(DTMP); 222 const SRegister STMP = EvenSRegisterOf(DTMP);
223 223
224 // Architecture independent aliases. 224 // Architecture independent aliases.
225 typedef QRegister FpuRegister; 225 typedef QRegister FpuRegister;
226
226 const FpuRegister FpuTMP = QTMP; 227 const FpuRegister FpuTMP = QTMP;
227 const int kNumberOfFpuRegisters = kNumberOfQRegisters; 228 const int kNumberOfFpuRegisters = kNumberOfQRegisters;
228 const FpuRegister kNoFpuRegister = kNoQRegister; 229 const FpuRegister kNoFpuRegister = kNoQRegister;
229 230
230 // Register aliases. 231 // Register aliases.
231 const Register TMP = IP; // Used as scratch register by assembler. 232 const Register TMP = IP; // Used as scratch register by assembler.
232 const Register TMP2 = kNoRegister; // There is no second assembler temporary. 233 const Register TMP2 = kNoRegister; // There is no second assembler temporary.
233 const Register CTX = R9; // Caches current context in generated code. 234 const Register CTX = R9; // Caches current context in generated code.
234 const Register PP = R10; // Caches object pool pointer in generated code. 235 const Register PP = R10; // Caches object pool pointer in generated code.
235 const Register SPREG = SP; // Stack pointer register. 236 const Register SPREG = SP; // Stack pointer register.
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); } 696 static Instr* At(uword pc) { return reinterpret_cast<Instr*>(pc); }
696 697
697 private: 698 private:
698 DISALLOW_ALLOCATION(); 699 DISALLOW_ALLOCATION();
699 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); 700 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr);
700 }; 701 };
701 702
702 } // namespace dart 703 } // namespace dart
703 704
704 #endif // VM_CONSTANTS_ARM_H_ 705 #endif // VM_CONSTANTS_ARM_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm_test.cc ('k') | runtime/vm/cpu_arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698