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

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

Issue 596703004: [turbofan] Add backend support for float32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 2 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/ia32/assembler-ia32.h ('k') | test/cctest/compiler/test-representation-change.cc » ('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) 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 const Register arg_reg_4 = { kRegister_rcx_Code }; 193 const Register arg_reg_4 = { kRegister_rcx_Code };
194 #endif // _WIN64 194 #endif // _WIN64
195 195
196 struct XMMRegister { 196 struct XMMRegister {
197 static const int kMaxNumRegisters = 16; 197 static const int kMaxNumRegisters = 16;
198 static const int kMaxNumAllocatableRegisters = 15; 198 static const int kMaxNumAllocatableRegisters = 15;
199 static int NumAllocatableRegisters() { 199 static int NumAllocatableRegisters() {
200 return kMaxNumAllocatableRegisters; 200 return kMaxNumAllocatableRegisters;
201 } 201 }
202 202
203 // TODO(turbofan): Proper support for float32.
204 static int NumAllocatableAliasedRegisters() {
205 return NumAllocatableRegisters();
206 }
207
203 static int ToAllocationIndex(XMMRegister reg) { 208 static int ToAllocationIndex(XMMRegister reg) {
204 DCHECK(reg.code() != 0); 209 DCHECK(reg.code() != 0);
205 return reg.code() - 1; 210 return reg.code() - 1;
206 } 211 }
207 212
208 static XMMRegister FromAllocationIndex(int index) { 213 static XMMRegister FromAllocationIndex(int index) {
209 DCHECK(0 <= index && index < kMaxNumAllocatableRegisters); 214 DCHECK(0 <= index && index < kMaxNumAllocatableRegisters);
210 XMMRegister result = { index + 1 }; 215 XMMRegister result = { index + 1 };
211 return result; 216 return result;
212 } 217 }
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after
1592 private: 1597 private:
1593 Assembler* assembler_; 1598 Assembler* assembler_;
1594 #ifdef DEBUG 1599 #ifdef DEBUG
1595 int space_before_; 1600 int space_before_;
1596 #endif 1601 #endif
1597 }; 1602 };
1598 1603
1599 } } // namespace v8::internal 1604 } } // namespace v8::internal
1600 1605
1601 #endif // V8_X64_ASSEMBLER_X64_H_ 1606 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | test/cctest/compiler/test-representation-change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698