| 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 8581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8592 // Only used to check that there is enough stack space | 8592 // Only used to check that there is enough stack space |
| 8593 static const int kIrregexpMaxRegisterCountIndex = kDataIndex + 4; | 8593 static const int kIrregexpMaxRegisterCountIndex = kDataIndex + 4; |
| 8594 // Number of captures in the compiled regexp. | 8594 // Number of captures in the compiled regexp. |
| 8595 static const int kIrregexpCaptureCountIndex = kDataIndex + 5; | 8595 static const int kIrregexpCaptureCountIndex = kDataIndex + 5; |
| 8596 // Maps names of named capture groups (at indices 2i) to their corresponding | 8596 // Maps names of named capture groups (at indices 2i) to their corresponding |
| 8597 // capture group indices (at indices 2i + 1). | 8597 // capture group indices (at indices 2i + 1). |
| 8598 static const int kIrregexpCaptureNameMapIndex = kDataIndex + 6; | 8598 static const int kIrregexpCaptureNameMapIndex = kDataIndex + 6; |
| 8599 | 8599 |
| 8600 static const int kIrregexpDataSize = kIrregexpCaptureNameMapIndex + 1; | 8600 static const int kIrregexpDataSize = kIrregexpCaptureNameMapIndex + 1; |
| 8601 | 8601 |
| 8602 // Offsets directly into the data fixed array. | |
| 8603 static const int kDataTagOffset = | |
| 8604 FixedArray::kHeaderSize + kTagIndex * kPointerSize; | |
| 8605 static const int kDataOneByteCodeOffset = | |
| 8606 FixedArray::kHeaderSize + kIrregexpLatin1CodeIndex * kPointerSize; | |
| 8607 static const int kDataUC16CodeOffset = | |
| 8608 FixedArray::kHeaderSize + kIrregexpUC16CodeIndex * kPointerSize; | |
| 8609 static const int kIrregexpCaptureCountOffset = | |
| 8610 FixedArray::kHeaderSize + kIrregexpCaptureCountIndex * kPointerSize; | |
| 8611 | |
| 8612 // In-object fields. | 8602 // In-object fields. |
| 8613 static const int kLastIndexFieldIndex = 0; | 8603 static const int kLastIndexFieldIndex = 0; |
| 8614 static const int kInObjectFieldCount = 1; | 8604 static const int kInObjectFieldCount = 1; |
| 8615 | 8605 |
| 8616 // The uninitialized value for a regexp code object. | 8606 // The uninitialized value for a regexp code object. |
| 8617 static const int kUninitializedValue = -1; | 8607 static const int kUninitializedValue = -1; |
| 8618 | 8608 |
| 8619 // The compilation error value for the regexp code object. The real error | 8609 // The compilation error value for the regexp code object. The real error |
| 8620 // object is in the saved code field. | 8610 // object is in the saved code field. |
| 8621 static const int kCompilationErrorValue = -2; | 8611 static const int kCompilationErrorValue = -2; |
| (...skipping 2959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11581 } | 11571 } |
| 11582 }; | 11572 }; |
| 11583 | 11573 |
| 11584 | 11574 |
| 11585 } // NOLINT, false-positive due to second-order macros. | 11575 } // NOLINT, false-positive due to second-order macros. |
| 11586 } // NOLINT, false-positive due to second-order macros. | 11576 } // NOLINT, false-positive due to second-order macros. |
| 11587 | 11577 |
| 11588 #include "src/objects/object-macros-undef.h" | 11578 #include "src/objects/object-macros-undef.h" |
| 11589 | 11579 |
| 11590 #endif // V8_OBJECTS_H_ | 11580 #endif // V8_OBJECTS_H_ |
| OLD | NEW |