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

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

Issue 22903028: Make x87 stack tracking more robust and avoid spilling (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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
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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 #define xmm1 (static_cast<const XMMRegister&>(double_register_1)) 223 #define xmm1 (static_cast<const XMMRegister&>(double_register_1))
224 #define xmm2 (static_cast<const XMMRegister&>(double_register_2)) 224 #define xmm2 (static_cast<const XMMRegister&>(double_register_2))
225 #define xmm3 (static_cast<const XMMRegister&>(double_register_3)) 225 #define xmm3 (static_cast<const XMMRegister&>(double_register_3))
226 #define xmm4 (static_cast<const XMMRegister&>(double_register_4)) 226 #define xmm4 (static_cast<const XMMRegister&>(double_register_4))
227 #define xmm5 (static_cast<const XMMRegister&>(double_register_5)) 227 #define xmm5 (static_cast<const XMMRegister&>(double_register_5))
228 #define xmm6 (static_cast<const XMMRegister&>(double_register_6)) 228 #define xmm6 (static_cast<const XMMRegister&>(double_register_6))
229 #define xmm7 (static_cast<const XMMRegister&>(double_register_7)) 229 #define xmm7 (static_cast<const XMMRegister&>(double_register_7))
230 230
231 231
232 struct X87Register : IntelDoubleRegister { 232 struct X87Register : IntelDoubleRegister {
233 static const int kNumAllocatableRegisters = 5; 233 static const int kNumAllocatableRegisters = 2;
234 static const int kNumRegisters = 5; 234 static const int kNumRegisters = 5;
235 235
236 bool is(X87Register reg) const { 236 bool is(X87Register reg) const {
237 return code_ == reg.code_; 237 return code_ == reg.code_;
238 } 238 }
239 239
240 static const char* AllocationIndexToString(int index) { 240 static const char* AllocationIndexToString(int index) {
241 ASSERT(index >= 0 && index < kNumAllocatableRegisters); 241 ASSERT(index >= 0 && index < kNumAllocatableRegisters);
242 const char* const names[] = { 242 const char* const names[] = {
243 "stX_0", "stX_1", "stX_2", "stX_3", "stX_4" 243 "stX_0", "stX_1", "stX_2", "stX_3", "stX_4"
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 private: 1231 private:
1232 Assembler* assembler_; 1232 Assembler* assembler_;
1233 #ifdef DEBUG 1233 #ifdef DEBUG
1234 int space_before_; 1234 int space_before_;
1235 #endif 1235 #endif
1236 }; 1236 };
1237 1237
1238 } } // namespace v8::internal 1238 } } // namespace v8::internal
1239 1239
1240 #endif // V8_IA32_ASSEMBLER_IA32_H_ 1240 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698