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

Side by Side Diff: src/mips/assembler-mips.h

Issue 11428137: ARM: Make use of d16-d31 when available. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address Rodoloph's comments Created 8 years 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
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 are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // number of Double regs (64-bit regs, or FPU-reg-pairs). 193 // number of Double regs (64-bit regs, or FPU-reg-pairs).
194 194
195 // A few double registers are reserved: one as a scratch register and one to 195 // A few double registers are reserved: one as a scratch register and one to
196 // hold 0.0. 196 // hold 0.0.
197 // f28: 0.0 197 // f28: 0.0
198 // f30: scratch register. 198 // f30: scratch register.
199 static const int kNumReservedRegisters = 2; 199 static const int kNumReservedRegisters = 2;
200 static const int kNumAllocatableRegisters = kNumRegisters / 2 - 200 static const int kNumAllocatableRegisters = kNumRegisters / 2 -
201 kNumReservedRegisters; 201 kNumReservedRegisters;
202 202
203 static int NumAllocatableRegisters() { return kNumAllocatableRegisters; }
204
203 205
204 inline static int ToAllocationIndex(FPURegister reg); 206 inline static int ToAllocationIndex(FPURegister reg);
205 207
206 static FPURegister FromAllocationIndex(int index) { 208 static FPURegister FromAllocationIndex(int index) {
207 ASSERT(index >= 0 && index < kNumAllocatableRegisters); 209 ASSERT(index >= 0 && index < kNumAllocatableRegisters);
208 return from_code(index * 2); 210 return from_code(index * 2);
209 } 211 }
210 212
211 static const char* AllocationIndexToString(int index) { 213 static const char* AllocationIndexToString(int index) {
212 ASSERT(index >= 0 && index < kNumAllocatableRegisters); 214 ASSERT(index >= 0 && index < kNumAllocatableRegisters);
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 class EnsureSpace BASE_EMBEDDED { 1279 class EnsureSpace BASE_EMBEDDED {
1278 public: 1280 public:
1279 explicit EnsureSpace(Assembler* assembler) { 1281 explicit EnsureSpace(Assembler* assembler) {
1280 assembler->CheckBuffer(); 1282 assembler->CheckBuffer();
1281 } 1283 }
1282 }; 1284 };
1283 1285
1284 } } // namespace v8::internal 1286 } } // namespace v8::internal
1285 1287
1286 #endif // V8_ARM_ASSEMBLER_MIPS_H_ 1288 #endif // V8_ARM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/lithium-allocator.cc ('k') | src/platform-linux.cc » ('j') | src/platform-linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698