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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
125 | 125 |
126 const Register r0 = { 0 }; | 126 const Register r0 = { 0 }; |
127 const Register r1 = { 1 }; | 127 const Register r1 = { 1 }; |
128 const Register r2 = { 2 }; | 128 const Register r2 = { 2 }; |
129 const Register r3 = { 3 }; | 129 const Register r3 = { 3 }; |
130 const Register r4 = { 4 }; | 130 const Register r4 = { 4 }; |
131 const Register r5 = { 5 }; | 131 const Register r5 = { 5 }; |
132 const Register r6 = { 6 }; | 132 const Register r6 = { 6 }; |
133 const Register r7 = { 7 }; | 133 const Register r7 = { 7 }; |
134 const Register r8 = { 8 }; // Used as context register. | 134 const Register r8 = { 8 }; // Used as context register. |
135 const Register r9 = { 9 }; | 135 const Register r9 = { 9 }; // Used as lithium codegen scratch register. |
Karl Klose
2011/01/04 14:25:28
Perhaps add a STATIC_ASSERT(kNumAllocatableRegiste
Søren Thygesen Gjesse
2011/01/04 14:32:40
Added an assert to the ToAllocationIndex to assert
| |
136 const Register r10 = { 10 }; // Used as roots register. | 136 const Register r10 = { 10 }; // Used as roots register. |
137 const Register fp = { 11 }; | 137 const Register fp = { 11 }; |
138 const Register ip = { 12 }; | 138 const Register ip = { 12 }; |
139 const Register sp = { 13 }; | 139 const Register sp = { 13 }; |
140 const Register lr = { 14 }; | 140 const Register lr = { 14 }; |
141 const Register pc = { 15 }; | 141 const Register pc = { 15 }; |
142 | 142 |
143 // Single word VFP register. | 143 // Single word VFP register. |
144 struct SwVfpRegister { | 144 struct SwVfpRegister { |
145 bool is_valid() const { return 0 <= code_ && code_ < 32; } | 145 bool is_valid() const { return 0 <= code_ && code_ < 32; } |
(...skipping 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1411 public: | 1411 public: |
1412 explicit EnsureSpace(Assembler* assembler) { | 1412 explicit EnsureSpace(Assembler* assembler) { |
1413 assembler->CheckBuffer(); | 1413 assembler->CheckBuffer(); |
1414 } | 1414 } |
1415 }; | 1415 }; |
1416 | 1416 |
1417 | 1417 |
1418 } } // namespace v8::internal | 1418 } } // namespace v8::internal |
1419 | 1419 |
1420 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1420 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |