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

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

Issue 602003002: X87: add part of backend support for X87. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: 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
« 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 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } 141 }
142 142
143 143
144 struct X87Register { 144 struct X87Register {
145 static const int kMaxNumAllocatableRegisters = 6; 145 static const int kMaxNumAllocatableRegisters = 6;
146 static const int kMaxNumRegisters = 8; 146 static const int kMaxNumRegisters = 8;
147 static int NumAllocatableRegisters() { 147 static int NumAllocatableRegisters() {
148 return kMaxNumAllocatableRegisters; 148 return kMaxNumAllocatableRegisters;
149 } 149 }
150 150
151
152 // TODO(turbofan): Proper support for float32.
153 static int NumAllocatableAliasedRegisters() {
154 return NumAllocatableRegisters();
155 }
156
157
151 static int ToAllocationIndex(X87Register reg) { 158 static int ToAllocationIndex(X87Register reg) {
152 return reg.code_; 159 return reg.code_;
153 } 160 }
154 161
155 static const char* AllocationIndexToString(int index) { 162 static const char* AllocationIndexToString(int index) {
156 DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters); 163 DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters);
157 const char* const names[] = { 164 const char* const names[] = {
158 "stX_0", "stX_1", "stX_2", "stX_3", "stX_4", 165 "stX_0", "stX_1", "stX_2", "stX_3", "stX_4",
159 "stX_5", "stX_6", "stX_7" 166 "stX_5", "stX_6", "stX_7"
160 }; 167 };
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 private: 1058 private:
1052 Assembler* assembler_; 1059 Assembler* assembler_;
1053 #ifdef DEBUG 1060 #ifdef DEBUG
1054 int space_before_; 1061 int space_before_;
1055 #endif 1062 #endif
1056 }; 1063 };
1057 1064
1058 } } // namespace v8::internal 1065 } } // namespace v8::internal
1059 1066
1060 #endif // V8_X87_ASSEMBLER_X87_H_ 1067 #endif // V8_X87_ASSEMBLER_X87_H_
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