OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 : public BitField<Lifetime, kLifetimeShift, kLifetimeWidth> { | 137 : public BitField<Lifetime, kLifetimeShift, kLifetimeWidth> { |
138 }; | 138 }; |
139 | 139 |
140 class VirtualRegisterField | 140 class VirtualRegisterField |
141 : public BitField<unsigned, | 141 : public BitField<unsigned, |
142 kVirtualRegisterShift, | 142 kVirtualRegisterShift, |
143 kVirtualRegisterWidth> { | 143 kVirtualRegisterWidth> { |
144 }; | 144 }; |
145 | 145 |
146 static const int kMaxVirtualRegisters = 1 << (kVirtualRegisterWidth + 1); | 146 static const int kMaxVirtualRegisters = 1 << (kVirtualRegisterWidth + 1); |
147 static const int kMaxFixedIndices = 128; | 147 static const int kMaxFixedIndex = 63; |
| 148 static const int kMinFixedIndex = -64; |
148 | 149 |
149 bool HasIgnorePolicy() const { return policy() == IGNORE; } | 150 bool HasIgnorePolicy() const { return policy() == IGNORE; } |
150 bool HasNoPolicy() const { return policy() == NONE; } | 151 bool HasNoPolicy() const { return policy() == NONE; } |
151 bool HasAnyPolicy() const { | 152 bool HasAnyPolicy() const { |
152 return policy() == ANY; | 153 return policy() == ANY; |
153 } | 154 } |
154 bool HasFixedPolicy() const { | 155 bool HasFixedPolicy() const { |
155 return policy() == FIXED_REGISTER || | 156 return policy() == FIXED_REGISTER || |
156 policy() == FIXED_DOUBLE_REGISTER || | 157 policy() == FIXED_DOUBLE_REGISTER || |
157 policy() == FIXED_SLOT; | 158 policy() == FIXED_SLOT; |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 ShallowIterator current_iterator_; | 585 ShallowIterator current_iterator_; |
585 }; | 586 }; |
586 | 587 |
587 | 588 |
588 int ElementsKindToShiftSize(JSObject::ElementsKind elements_kind); | 589 int ElementsKindToShiftSize(JSObject::ElementsKind elements_kind); |
589 | 590 |
590 | 591 |
591 } } // namespace v8::internal | 592 } } // namespace v8::internal |
592 | 593 |
593 #endif // V8_LITHIUM_H_ | 594 #endif // V8_LITHIUM_H_ |
OLD | NEW |