OLD | NEW |
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 | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 bool is(Register reg) const { return code_ == reg.code_; } | 73 bool is(Register reg) const { return code_ == reg.code_; } |
74 int code() const { | 74 int code() const { |
75 ASSERT(is_valid()); | 75 ASSERT(is_valid()); |
76 return code_; | 76 return code_; |
77 } | 77 } |
78 int bit() const { | 78 int bit() const { |
79 ASSERT(is_valid()); | 79 ASSERT(is_valid()); |
80 return 1 << code_; | 80 return 1 << code_; |
81 } | 81 } |
82 | 82 |
83 // (unfortunately we can't make this private in a struct) | 83 // Unfortunately we can't make this private in a struct. |
84 int code_; | 84 int code_; |
85 }; | 85 }; |
86 | 86 |
87 | 87 |
88 extern Register no_reg; | 88 extern Register no_reg; |
89 extern Register r0; | 89 extern Register r0; |
90 extern Register r1; | 90 extern Register r1; |
91 extern Register r2; | 91 extern Register r2; |
92 extern Register r3; | 92 extern Register r3; |
93 extern Register r4; | 93 extern Register r4; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 bool is(CRegister creg) const { return code_ == creg.code_; } | 198 bool is(CRegister creg) const { return code_ == creg.code_; } |
199 int code() const { | 199 int code() const { |
200 ASSERT(is_valid()); | 200 ASSERT(is_valid()); |
201 return code_; | 201 return code_; |
202 } | 202 } |
203 int bit() const { | 203 int bit() const { |
204 ASSERT(is_valid()); | 204 ASSERT(is_valid()); |
205 return 1 << code_; | 205 return 1 << code_; |
206 } | 206 } |
207 | 207 |
208 // (unfortunately we can't make this private in a struct) | 208 // Unfortunately we can't make this private in a struct. |
209 int code_; | 209 int code_; |
210 }; | 210 }; |
211 | 211 |
212 | 212 |
213 extern CRegister no_creg; | 213 extern CRegister no_creg; |
214 extern CRegister cr0; | 214 extern CRegister cr0; |
215 extern CRegister cr1; | 215 extern CRegister cr1; |
216 extern CRegister cr2; | 216 extern CRegister cr2; |
217 extern CRegister cr3; | 217 extern CRegister cr3; |
218 extern CRegister cr4; | 218 extern CRegister cr4; |
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0); | 1018 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0); |
1019 | 1019 |
1020 friend class RegExpMacroAssemblerARM; | 1020 friend class RegExpMacroAssemblerARM; |
1021 friend class RelocInfo; | 1021 friend class RelocInfo; |
1022 friend class CodePatcher; | 1022 friend class CodePatcher; |
1023 }; | 1023 }; |
1024 | 1024 |
1025 } } // namespace v8::internal | 1025 } } // namespace v8::internal |
1026 | 1026 |
1027 #endif // V8_ARM_ASSEMBLER_THUMB2_H_ | 1027 #endif // V8_ARM_ASSEMBLER_THUMB2_H_ |
OLD | NEW |