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

Side by Side Diff: src/ia32/assembler-ia32.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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 "eax", 83 "eax",
84 "ecx", 84 "ecx",
85 "edx", 85 "edx",
86 "ebx", 86 "ebx",
87 "edi" 87 "edi"
88 }; 88 };
89 return names[index]; 89 return names[index];
90 } 90 }
91 91
92 static Register from_code(int code) { 92 static Register from_code(int code) {
93 ASSERT(code >= 0);
94 ASSERT(code < kNumRegisters);
93 Register r = { code }; 95 Register r = { code };
94 return r; 96 return r;
95 } 97 }
96 bool is_valid() const { return 0 <= code_ && code_ < kNumRegisters; } 98 bool is_valid() const { return 0 <= code_ && code_ < kNumRegisters; }
97 bool is(Register reg) const { return code_ == reg.code_; } 99 bool is(Register reg) const { return code_ == reg.code_; }
98 // eax, ebx, ecx and edx are byte registers, the rest are not. 100 // eax, ebx, ecx and edx are byte registers, the rest are not.
99 bool is_byte_register() const { return code_ <= 3; } 101 bool is_byte_register() const { return code_ <= 3; }
100 int code() const { 102 int code() const {
101 ASSERT(is_valid()); 103 ASSERT(is_valid());
102 return code_; 104 return code_;
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 private: 1078 private:
1077 Assembler* assembler_; 1079 Assembler* assembler_;
1078 #ifdef DEBUG 1080 #ifdef DEBUG
1079 int space_before_; 1081 int space_before_;
1080 #endif 1082 #endif
1081 }; 1083 };
1082 1084
1083 } } // namespace v8::internal 1085 } } // namespace v8::internal
1084 1086
1085 #endif // V8_IA32_ASSEMBLER_IA32_H_ 1087 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/heap-inl.h ('k') | src/serialize.cc » ('j') | src/x64/code-stubs-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698