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

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

Issue 6247005: Add implementations of some more x64 lithium methods.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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/lithium-ia32.cc ('k') | src/x64/lithium-codegen-x64.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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 "xmm11", 208 "xmm11",
209 "xmm12", 209 "xmm12",
210 "xmm13", 210 "xmm13",
211 "xmm14", 211 "xmm14",
212 "xmm15" 212 "xmm15"
213 }; 213 };
214 return names[index]; 214 return names[index];
215 } 215 }
216 216
217 bool is_valid() const { return 0 <= code_ && code_ < kNumRegisters; } 217 bool is_valid() const { return 0 <= code_ && code_ < kNumRegisters; }
218 bool is(XMMRegister reg) const { return code_ == reg.code_; }
218 int code() const { 219 int code() const {
219 ASSERT(is_valid()); 220 ASSERT(is_valid());
220 return code_; 221 return code_;
221 } 222 }
222 223
223 // Return the high bit of the register code as a 0 or 1. Used often 224 // Return the high bit of the register code as a 0 or 1. Used often
224 // when constructing the REX prefix byte. 225 // when constructing the REX prefix byte.
225 int high_bit() const { 226 int high_bit() const {
226 return code_ >> 3; 227 return code_ >> 3;
227 } 228 }
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1517 private: 1518 private:
1518 Assembler* assembler_; 1519 Assembler* assembler_;
1519 #ifdef DEBUG 1520 #ifdef DEBUG
1520 int space_before_; 1521 int space_before_;
1521 #endif 1522 #endif
1522 }; 1523 };
1523 1524
1524 } } // namespace v8::internal 1525 } } // namespace v8::internal
1525 1526
1526 #endif // V8_X64_ASSEMBLER_X64_H_ 1527 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698