OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 8787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8798 | 8798 |
8799 // Offsets directly into the data fixed array. | 8799 // Offsets directly into the data fixed array. |
8800 static const int kDataTagOffset = | 8800 static const int kDataTagOffset = |
8801 FixedArray::kHeaderSize + kTagIndex * kPointerSize; | 8801 FixedArray::kHeaderSize + kTagIndex * kPointerSize; |
8802 static const int kDataOneByteCodeOffset = | 8802 static const int kDataOneByteCodeOffset = |
8803 FixedArray::kHeaderSize + kIrregexpLatin1CodeIndex * kPointerSize; | 8803 FixedArray::kHeaderSize + kIrregexpLatin1CodeIndex * kPointerSize; |
8804 static const int kDataUC16CodeOffset = | 8804 static const int kDataUC16CodeOffset = |
8805 FixedArray::kHeaderSize + kIrregexpUC16CodeIndex * kPointerSize; | 8805 FixedArray::kHeaderSize + kIrregexpUC16CodeIndex * kPointerSize; |
8806 static const int kIrregexpCaptureCountOffset = | 8806 static const int kIrregexpCaptureCountOffset = |
8807 FixedArray::kHeaderSize + kIrregexpCaptureCountIndex * kPointerSize; | 8807 FixedArray::kHeaderSize + kIrregexpCaptureCountIndex * kPointerSize; |
| 8808 static const int kIrregexpCaptureNameMapOffset = |
| 8809 FixedArray::kHeaderSize + kIrregexpCaptureNameMapIndex * kPointerSize; |
8808 | 8810 |
8809 // In-object fields. | 8811 // In-object fields. |
8810 static const int kLastIndexFieldIndex = 0; | 8812 static const int kLastIndexFieldIndex = 0; |
8811 static const int kInObjectFieldCount = 1; | 8813 static const int kInObjectFieldCount = 1; |
8812 | 8814 |
8813 // The uninitialized value for a regexp code object. | 8815 // The uninitialized value for a regexp code object. |
8814 static const int kUninitializedValue = -1; | 8816 static const int kUninitializedValue = -1; |
8815 | 8817 |
8816 // The compilation error value for the regexp code object. The real error | 8818 // The compilation error value for the regexp code object. The real error |
8817 // object is in the saved code field. | 8819 // object is in the saved code field. |
(...skipping 2878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11696 } | 11698 } |
11697 }; | 11699 }; |
11698 | 11700 |
11699 | 11701 |
11700 } // NOLINT, false-positive due to second-order macros. | 11702 } // NOLINT, false-positive due to second-order macros. |
11701 } // NOLINT, false-positive due to second-order macros. | 11703 } // NOLINT, false-positive due to second-order macros. |
11702 | 11704 |
11703 #include "src/objects/object-macros-undef.h" | 11705 #include "src/objects/object-macros-undef.h" |
11704 | 11706 |
11705 #endif // V8_OBJECTS_H_ | 11707 #endif // V8_OBJECTS_H_ |
OLD | NEW |