OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // Move this result to a specified register. The register is spilled from | 134 // Move this result to a specified register. The register is spilled from |
135 // the frame, and the register is singly-referenced (by this result) | 135 // the frame, and the register is singly-referenced (by this result) |
136 // outside the frame. | 136 // outside the frame. |
137 void ToRegister(Register reg); | 137 void ToRegister(Register reg); |
138 | 138 |
139 private: | 139 private: |
140 uint32_t value_; | 140 uint32_t value_; |
141 | 141 |
142 class TypeField: public BitField<Type, 0, 2> {}; | 142 class TypeField: public BitField<Type, 0, 2> {}; |
143 class NumberInfoField : public BitField<NumberInfo::Type, 2, 3> {}; | 143 class NumberInfoField : public BitField<NumberInfo::Type, 2, 3> {}; |
144 class DataField: public BitField<uint32_t, 5, 32 - 6> {}; | 144 class DataField: public BitField<uint32_t, 5, 32 - 5> {}; |
145 | 145 |
146 inline void CopyTo(Result* destination) const; | 146 inline void CopyTo(Result* destination) const; |
147 | 147 |
148 friend class CodeGeneratorScope; | 148 friend class CodeGeneratorScope; |
149 }; | 149 }; |
150 | 150 |
151 | 151 |
152 // ------------------------------------------------------------------------- | 152 // ------------------------------------------------------------------------- |
153 // Register file | 153 // Register file |
154 // | 154 // |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 } | 291 } |
292 | 292 |
293 private: | 293 private: |
294 CodeGenerator* cgen_; | 294 CodeGenerator* cgen_; |
295 RegisterFile registers_; | 295 RegisterFile registers_; |
296 }; | 296 }; |
297 | 297 |
298 } } // namespace v8::internal | 298 } } // namespace v8::internal |
299 | 299 |
300 #endif // V8_REGISTER_ALLOCATOR_H_ | 300 #endif // V8_REGISTER_ALLOCATOR_H_ |
OLD | NEW |