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

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

Issue 1230593007: Fix max number of allocatable registers in DwVfpRegister::AllocationIndexToString (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | 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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 bool eabi_hardfloat = false; 209 bool eabi_hardfloat = false;
210 #endif 210 #endif
211 printf(" USE_EABI_HARDFLOAT=%d\n", eabi_hardfloat); 211 printf(" USE_EABI_HARDFLOAT=%d\n", eabi_hardfloat);
212 } 212 }
213 213
214 214
215 // ----------------------------------------------------------------------------- 215 // -----------------------------------------------------------------------------
216 // Implementation of DwVfpRegister 216 // Implementation of DwVfpRegister
217 217
218 const char* DwVfpRegister::AllocationIndexToString(int index) { 218 const char* DwVfpRegister::AllocationIndexToString(int index) {
219 DCHECK(index >= 0 && index < NumAllocatableRegisters()); 219 DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters);
220 DCHECK(kScratchDoubleReg.code() - kDoubleRegZero.code() == 220 DCHECK(kScratchDoubleReg.code() - kDoubleRegZero.code() ==
221 kNumReservedRegisters - 1); 221 kNumReservedRegisters - 1);
222 if (index >= kDoubleRegZero.code()) index += kNumReservedRegisters; 222 if (index >= kDoubleRegZero.code()) index += kNumReservedRegisters;
223 return VFPRegisters::Name(index, true); 223 return VFPRegisters::Name(index, true);
224 } 224 }
225 225
226 226
227 // ----------------------------------------------------------------------------- 227 // -----------------------------------------------------------------------------
228 // Implementation of RelocInfo 228 // Implementation of RelocInfo
229 229
(...skipping 3751 matching lines...) Expand 10 before | Expand all | Expand 10 after
3981 DCHECK(is_uint12(offset)); 3981 DCHECK(is_uint12(offset));
3982 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset)); 3982 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset));
3983 } 3983 }
3984 } 3984 }
3985 3985
3986 3986
3987 } // namespace internal 3987 } // namespace internal
3988 } // namespace v8 3988 } // namespace v8
3989 3989
3990 #endif // V8_TARGET_ARCH_ARM 3990 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698