| 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 5772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5783 static const int kIsCallable = 1; | 5783 static const int kIsCallable = 1; |
| 5784 static const int kHasNamedInterceptor = 2; | 5784 static const int kHasNamedInterceptor = 2; |
| 5785 static const int kHasIndexedInterceptor = 3; | 5785 static const int kHasIndexedInterceptor = 3; |
| 5786 static const int kIsUndetectable = 4; | 5786 static const int kIsUndetectable = 4; |
| 5787 static const int kIsObserved = 5; | 5787 static const int kIsObserved = 5; |
| 5788 static const int kIsAccessCheckNeeded = 6; | 5788 static const int kIsAccessCheckNeeded = 6; |
| 5789 class FunctionWithPrototype: public BitField<bool, 7, 1> {}; | 5789 class FunctionWithPrototype: public BitField<bool, 7, 1> {}; |
| 5790 | 5790 |
| 5791 // Bit positions for bit field 2 | 5791 // Bit positions for bit field 2 |
| 5792 static const int kIsExtensible = 0; | 5792 static const int kIsExtensible = 0; |
| 5793 static const int kStringWrapperSafeForDefaultValueOf = 1; | 5793 // Bit 1 is free. |
| 5794 class IsPrototypeMapBits : public BitField<bool, 2, 1> {}; | 5794 class IsPrototypeMapBits : public BitField<bool, 2, 1> {}; |
| 5795 class ElementsKindBits: public BitField<ElementsKind, 3, 5> {}; | 5795 class ElementsKindBits: public BitField<ElementsKind, 3, 5> {}; |
| 5796 | 5796 |
| 5797 // Derived values from bit field 2 | 5797 // Derived values from bit field 2 |
| 5798 static const int8_t kMaximumBitField2FastElementValue = static_cast<int8_t>( | 5798 static const int8_t kMaximumBitField2FastElementValue = static_cast<int8_t>( |
| 5799 (FAST_ELEMENTS + 1) << Map::ElementsKindBits::kShift) - 1; | 5799 (FAST_ELEMENTS + 1) << Map::ElementsKindBits::kShift) - 1; |
| 5800 static const int8_t kMaximumBitField2FastSmiElementValue = | 5800 static const int8_t kMaximumBitField2FastSmiElementValue = |
| 5801 static_cast<int8_t>((FAST_SMI_ELEMENTS + 1) << | 5801 static_cast<int8_t>((FAST_SMI_ELEMENTS + 1) << |
| 5802 Map::ElementsKindBits::kShift) - 1; | 5802 Map::ElementsKindBits::kShift) - 1; |
| 5803 static const int8_t kMaximumBitField2FastHoleyElementValue = | 5803 static const int8_t kMaximumBitField2FastHoleyElementValue = |
| (...skipping 4662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10466 } else { | 10466 } else { |
| 10467 value &= ~(1 << bit_position); | 10467 value &= ~(1 << bit_position); |
| 10468 } | 10468 } |
| 10469 return value; | 10469 return value; |
| 10470 } | 10470 } |
| 10471 }; | 10471 }; |
| 10472 | 10472 |
| 10473 } } // namespace v8::internal | 10473 } } // namespace v8::internal |
| 10474 | 10474 |
| 10475 #endif // V8_OBJECTS_H_ | 10475 #endif // V8_OBJECTS_H_ |
| OLD | NEW |