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 7794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7805 FixedArray::kHeaderSize + kTagIndex * kPointerSize; | 7805 FixedArray::kHeaderSize + kTagIndex * kPointerSize; |
7806 static const int kDataOneByteCodeOffset = | 7806 static const int kDataOneByteCodeOffset = |
7807 FixedArray::kHeaderSize + kIrregexpLatin1CodeIndex * kPointerSize; | 7807 FixedArray::kHeaderSize + kIrregexpLatin1CodeIndex * kPointerSize; |
7808 static const int kDataUC16CodeOffset = | 7808 static const int kDataUC16CodeOffset = |
7809 FixedArray::kHeaderSize + kIrregexpUC16CodeIndex * kPointerSize; | 7809 FixedArray::kHeaderSize + kIrregexpUC16CodeIndex * kPointerSize; |
7810 static const int kIrregexpCaptureCountOffset = | 7810 static const int kIrregexpCaptureCountOffset = |
7811 FixedArray::kHeaderSize + kIrregexpCaptureCountIndex * kPointerSize; | 7811 FixedArray::kHeaderSize + kIrregexpCaptureCountIndex * kPointerSize; |
7812 | 7812 |
7813 // In-object fields. | 7813 // In-object fields. |
7814 static const int kSourceFieldIndex = 0; | 7814 static const int kSourceFieldIndex = 0; |
7815 static const int kGlobalFieldIndex = 1; | 7815 static const int kFlagsFieldIndex = 1; |
7816 static const int kIgnoreCaseFieldIndex = 2; | 7816 static const int kLastIndexFieldIndex = 2; |
7817 static const int kMultilineFieldIndex = 3; | 7817 static const int kInObjectFieldCount = 3; |
7818 static const int kLastIndexFieldIndex = 4; | |
7819 static const int kInObjectFieldCount = 5; | |
7820 | 7818 |
7821 // The uninitialized value for a regexp code object. | 7819 // The uninitialized value for a regexp code object. |
7822 static const int kUninitializedValue = -1; | 7820 static const int kUninitializedValue = -1; |
7823 | 7821 |
7824 // The compilation error value for the regexp code object. The real error | 7822 // The compilation error value for the regexp code object. The real error |
7825 // object is in the saved code field. | 7823 // object is in the saved code field. |
7826 static const int kCompilationErrorValue = -2; | 7824 static const int kCompilationErrorValue = -2; |
7827 | 7825 |
7828 // When we store the sweep generation at which we moved the code from the | 7826 // When we store the sweep generation at which we moved the code from the |
7829 // code index to the saved code index we mask it of to be in the [0:255] | 7827 // code index to the saved code index we mask it of to be in the [0:255] |
(...skipping 2999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10829 // (elements + properties) in the current level. | 10827 // (elements + properties) in the current level. |
10830 int levelLength_ = 0; | 10828 int levelLength_ = 0; |
10831 | 10829 |
10832 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); | 10830 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); |
10833 }; | 10831 }; |
10834 | 10832 |
10835 } // NOLINT, false-positive due to second-order macros. | 10833 } // NOLINT, false-positive due to second-order macros. |
10836 } // NOLINT, false-positive due to second-order macros. | 10834 } // NOLINT, false-positive due to second-order macros. |
10837 | 10835 |
10838 #endif // V8_OBJECTS_H_ | 10836 #endif // V8_OBJECTS_H_ |
OLD | NEW |