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

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

Issue 11428137: ARM: Make use of d16-d31 when available. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: The tests does not use fp 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 const Register r13 = { kRegister_r13_Code }; 195 const Register r13 = { kRegister_r13_Code };
196 const Register r14 = { kRegister_r14_Code }; 196 const Register r14 = { kRegister_r14_Code };
197 const Register r15 = { kRegister_r15_Code }; 197 const Register r15 = { kRegister_r15_Code };
198 const Register no_reg = { kRegister_no_reg_Code }; 198 const Register no_reg = { kRegister_no_reg_Code };
199 199
200 200
201 struct XMMRegister { 201 struct XMMRegister {
202 static const int kNumRegisters = 16; 202 static const int kNumRegisters = 16;
203 static const int kNumAllocatableRegisters = 15; 203 static const int kNumAllocatableRegisters = 15;
204 204
205 static int NumAllocatableRegisters() { return kNumAllocatableRegisters; }
206
205 static int ToAllocationIndex(XMMRegister reg) { 207 static int ToAllocationIndex(XMMRegister reg) {
206 ASSERT(reg.code() != 0); 208 ASSERT(reg.code() != 0);
207 return reg.code() - 1; 209 return reg.code() - 1;
208 } 210 }
209 211
210 static XMMRegister FromAllocationIndex(int index) { 212 static XMMRegister FromAllocationIndex(int index) {
211 ASSERT(0 <= index && index < kNumAllocatableRegisters); 213 ASSERT(0 <= index && index < kNumAllocatableRegisters);
212 XMMRegister result = { index + 1 }; 214 XMMRegister result = { index + 1 };
213 return result; 215 return result;
214 } 216 }
(...skipping 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1660 private: 1662 private:
1661 Assembler* assembler_; 1663 Assembler* assembler_;
1662 #ifdef DEBUG 1664 #ifdef DEBUG
1663 int space_before_; 1665 int space_before_;
1664 #endif 1666 #endif
1665 }; 1667 };
1666 1668
1667 } } // namespace v8::internal 1669 } } // namespace v8::internal
1668 1670
1669 #endif // V8_X64_ASSEMBLER_X64_H_ 1671 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698