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

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

Issue 6026017: Fix/implement new write barrier for x64. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
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
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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 "xmm10", 188 "xmm10",
189 "xmm11", 189 "xmm11",
190 "xmm12", 190 "xmm12",
191 "xmm13", 191 "xmm13",
192 "xmm14", 192 "xmm14",
193 "xmm15" 193 "xmm15"
194 }; 194 };
195 return names[index]; 195 return names[index];
196 } 196 }
197 197
198 static XMMRegister from_code(int code) {
199 ASSERT(code >= 0);
200 ASSERT(code < kNumRegisters);
201 XMMRegister r = { code };
202 return r;
203 }
198 bool is_valid() const { return 0 <= code_ && code_ < kNumRegisters; } 204 bool is_valid() const { return 0 <= code_ && code_ < kNumRegisters; }
199 int code() const { 205 int code() const {
200 ASSERT(is_valid()); 206 ASSERT(is_valid());
201 return code_; 207 return code_;
202 } 208 }
203 209
204 // Return the high bit of the register code as a 0 or 1. Used often 210 // Return the high bit of the register code as a 0 or 1. Used often
205 // when constructing the REX prefix byte. 211 // when constructing the REX prefix byte.
206 int high_bit() const { 212 int high_bit() const {
207 return code_ >> 3; 213 return code_ >> 3;
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 private: 1504 private:
1499 Assembler* assembler_; 1505 Assembler* assembler_;
1500 #ifdef DEBUG 1506 #ifdef DEBUG
1501 int space_before_; 1507 int space_before_;
1502 #endif 1508 #endif
1503 }; 1509 };
1504 1510
1505 } } // namespace v8::internal 1511 } } // namespace v8::internal
1506 1512
1507 #endif // V8_X64_ASSEMBLER_X64_H_ 1513 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/write-buffer-inl.h ('k') | src/x64/code-stubs-x64.h » ('j') | src/x64/code-stubs-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698