| 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 7085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7096 static const int kClassConstructorBitsWithinByte = | 7096 static const int kClassConstructorBitsWithinByte = |
| 7097 FunctionKind::kClassConstructor << kCompilerHintsSmiTagSize; | 7097 FunctionKind::kClassConstructor << kCompilerHintsSmiTagSize; |
| 7098 STATIC_ASSERT(kClassConstructorBitsWithinByte < (1 << kBitsPerByte)); | 7098 STATIC_ASSERT(kClassConstructorBitsWithinByte < (1 << kBitsPerByte)); |
| 7099 | 7099 |
| 7100 #if defined(V8_TARGET_LITTLE_ENDIAN) | 7100 #if defined(V8_TARGET_LITTLE_ENDIAN) |
| 7101 #define BYTE_OFFSET(compiler_hint) \ | 7101 #define BYTE_OFFSET(compiler_hint) \ |
| 7102 kCompilerHintsOffset + \ | 7102 kCompilerHintsOffset + \ |
| 7103 (compiler_hint + kCompilerHintsSmiTagSize) / kBitsPerByte | 7103 (compiler_hint + kCompilerHintsSmiTagSize) / kBitsPerByte |
| 7104 #elif defined(V8_TARGET_BIG_ENDIAN) | 7104 #elif defined(V8_TARGET_BIG_ENDIAN) |
| 7105 #define BYTE_OFFSET(compiler_hint) \ | 7105 #define BYTE_OFFSET(compiler_hint) \ |
| 7106 kCompilerHintsOffset + +(kCompilerHintsSize - 1) - \ | 7106 kCompilerHintsOffset + (kCompilerHintsSize - 1) - \ |
| 7107 ((kStrictModeFunction + kCompilerHintsSmiTagSize) / kBitsPerByte) | 7107 ((compiler_hint + kCompilerHintsSmiTagSize) / kBitsPerByte) |
| 7108 #else | 7108 #else |
| 7109 #error Unknown byte ordering | 7109 #error Unknown byte ordering |
| 7110 #endif | 7110 #endif |
| 7111 static const int kStrictModeByteOffset = BYTE_OFFSET(kStrictModeFunction); | 7111 static const int kStrictModeByteOffset = BYTE_OFFSET(kStrictModeFunction); |
| 7112 static const int kStrongModeByteOffset = BYTE_OFFSET(kStrongModeFunction); | 7112 static const int kStrongModeByteOffset = BYTE_OFFSET(kStrongModeFunction); |
| 7113 static const int kNativeByteOffset = BYTE_OFFSET(kNative); | 7113 static const int kNativeByteOffset = BYTE_OFFSET(kNative); |
| 7114 static const int kBoundByteOffset = BYTE_OFFSET(kBoundFunction); | 7114 static const int kBoundByteOffset = BYTE_OFFSET(kBoundFunction); |
| 7115 static const int kFunctionKindByteOffset = BYTE_OFFSET(kFunctionKind); | 7115 static const int kFunctionKindByteOffset = BYTE_OFFSET(kFunctionKind); |
| 7116 #undef BYTE_OFFSET | 7116 #undef BYTE_OFFSET |
| 7117 | 7117 |
| (...skipping 3696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10814 // (elements + properties) in the current level. | 10814 // (elements + properties) in the current level. |
| 10815 int levelLength_ = 0; | 10815 int levelLength_ = 0; |
| 10816 | 10816 |
| 10817 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); | 10817 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); |
| 10818 }; | 10818 }; |
| 10819 | 10819 |
| 10820 } // NOLINT, false-positive due to second-order macros. | 10820 } // NOLINT, false-positive due to second-order macros. |
| 10821 } // NOLINT, false-positive due to second-order macros. | 10821 } // NOLINT, false-positive due to second-order macros. |
| 10822 | 10822 |
| 10823 #endif // V8_OBJECTS_H_ | 10823 #endif // V8_OBJECTS_H_ |
| OLD | NEW |