OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 : public BitField<Lifetime, kLifetimeShift, kLifetimeWidth> { | 149 : public BitField<Lifetime, kLifetimeShift, kLifetimeWidth> { |
150 }; | 150 }; |
151 | 151 |
152 class VirtualRegisterField | 152 class VirtualRegisterField |
153 : public BitField<unsigned, | 153 : public BitField<unsigned, |
154 kVirtualRegisterShift, | 154 kVirtualRegisterShift, |
155 kVirtualRegisterWidth> { | 155 kVirtualRegisterWidth> { |
156 }; | 156 }; |
157 | 157 |
158 static const int kMaxVirtualRegisters = 1 << kVirtualRegisterWidth; | 158 static const int kMaxVirtualRegisters = 1 << kVirtualRegisterWidth; |
159 static const int kMaxFixedIndex = (1 << kFixedIndexWidth) - 1; | 159 static const int kMaxFixedIndex = (1 << (kFixedIndexWidth - 1)) - 1; |
160 static const int kMinFixedIndex = -(1 << kFixedIndexWidth); | 160 static const int kMinFixedIndex = -(1 << (kFixedIndexWidth - 1)); |
161 | 161 |
162 bool HasAnyPolicy() const { | 162 bool HasAnyPolicy() const { |
163 return policy() == ANY; | 163 return policy() == ANY; |
164 } | 164 } |
165 bool HasFixedPolicy() const { | 165 bool HasFixedPolicy() const { |
166 return policy() == FIXED_REGISTER || | 166 return policy() == FIXED_REGISTER || |
167 policy() == FIXED_DOUBLE_REGISTER || | 167 policy() == FIXED_DOUBLE_REGISTER || |
168 policy() == FIXED_SLOT; | 168 policy() == FIXED_SLOT; |
169 } | 169 } |
170 bool HasRegisterPolicy() const { | 170 bool HasRegisterPolicy() const { |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 ZoneList<Handle<JSFunction> > inlined_closures_; | 703 ZoneList<Handle<JSFunction> > inlined_closures_; |
704 }; | 704 }; |
705 | 705 |
706 | 706 |
707 int ElementsKindToShiftSize(ElementsKind elements_kind); | 707 int ElementsKindToShiftSize(ElementsKind elements_kind); |
708 | 708 |
709 | 709 |
710 } } // namespace v8::internal | 710 } } // namespace v8::internal |
711 | 711 |
712 #endif // V8_LITHIUM_H_ | 712 #endif // V8_LITHIUM_H_ |
OLD | NEW |