5 #ifndef V8_OBJECTS_REGEXP_MATCH_INFO_H_ 6 #define V8_OBJECTS_REGEXP_MATCH_INFO_H_ 8 #include "src/base/compiler-specific.h" 9 #include "src/objects.h" 10 #include "src/objects/fixed-array.h" 13 #include "src/objects/object-macros.h" 32 inline int NumberOfCaptureRegisters();
33 inline void SetNumberOfCaptureRegisters(
int value);
36 inline String LastSubject();
37 inline void SetLastSubject(
String value);
40 inline Object* LastInput();
41 inline void SetLastInput(
Object* value);
45 inline int Capture(
int i);
46 inline void SetCapture(
int i,
int value);
54 static const int kNumberOfCapturesIndex = 0;
55 static const int kLastSubjectIndex = 1;
56 static const int kLastInputIndex = 2;
57 static const int kFirstCaptureIndex = 3;
58 static const int kLastMatchOverhead = kFirstCaptureIndex;
60 static const int kNumberOfCapturesOffset = FixedArray::kHeaderSize;
61 static const int kLastSubjectOffset = kNumberOfCapturesOffset + kPointerSize;
62 static const int kLastInputOffset = kLastSubjectOffset + kPointerSize;
63 static const int kFirstCaptureOffset = kLastInputOffset + kPointerSize;
66 static const int kInitialCaptureIndices = 2;
74 #include "src/objects/object-macros-undef.h" 76 #endif // V8_OBJECTS_REGEXP_MATCH_INFO_H_