OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 5074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5085 class CanHaveWeakObjectsField | 5085 class CanHaveWeakObjectsField |
5086 : public BitField<bool, kCanHaveWeakObjects, 1> {}; // NOLINT | 5086 : public BitField<bool, kCanHaveWeakObjects, 1> {}; // NOLINT |
5087 | 5087 |
5088 // KindSpecificFlags2 layout (ALL) | 5088 // KindSpecificFlags2 layout (ALL) |
5089 static const int kIsCrankshaftedBit = 0; | 5089 static const int kIsCrankshaftedBit = 0; |
5090 class IsCrankshaftedField: public BitField<bool, | 5090 class IsCrankshaftedField: public BitField<bool, |
5091 kIsCrankshaftedBit, 1> {}; // NOLINT | 5091 kIsCrankshaftedBit, 1> {}; // NOLINT |
5092 | 5092 |
5093 // KindSpecificFlags2 layout (STUB and OPTIMIZED_FUNCTION) | 5093 // KindSpecificFlags2 layout (STUB and OPTIMIZED_FUNCTION) |
5094 static const int kSafepointTableOffsetFirstBit = kIsCrankshaftedBit + 1; | 5094 static const int kSafepointTableOffsetFirstBit = kIsCrankshaftedBit + 1; |
5095 static const int kSafepointTableOffsetBitCount = 24; | 5095 static const int kSafepointTableOffsetBitCount = 30; |
5096 | 5096 |
5097 STATIC_ASSERT(kSafepointTableOffsetFirstBit + | 5097 STATIC_ASSERT(kSafepointTableOffsetFirstBit + |
5098 kSafepointTableOffsetBitCount <= 32); | 5098 kSafepointTableOffsetBitCount <= 32); |
5099 STATIC_ASSERT(1 + kSafepointTableOffsetBitCount <= 32); | 5099 STATIC_ASSERT(1 + kSafepointTableOffsetBitCount <= 32); |
5100 | 5100 |
5101 class SafepointTableOffsetField: public BitField<int, | 5101 class SafepointTableOffsetField: public BitField<int, |
5102 kSafepointTableOffsetFirstBit, | 5102 kSafepointTableOffsetFirstBit, |
5103 kSafepointTableOffsetBitCount> {}; // NOLINT | 5103 kSafepointTableOffsetBitCount> {}; // NOLINT |
5104 | 5104 |
5105 // KindSpecificFlags2 layout (FUNCTION) | 5105 // KindSpecificFlags2 layout (FUNCTION) |
(...skipping 5435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10541 } else { | 10541 } else { |
10542 value &= ~(1 << bit_position); | 10542 value &= ~(1 << bit_position); |
10543 } | 10543 } |
10544 return value; | 10544 return value; |
10545 } | 10545 } |
10546 }; | 10546 }; |
10547 | 10547 |
10548 } } // namespace v8::internal | 10548 } } // namespace v8::internal |
10549 | 10549 |
10550 #endif // V8_OBJECTS_H_ | 10550 #endif // V8_OBJECTS_H_ |
OLD | NEW |