Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index bb00506640d83644c2b608287d3522ce641d421a..300c9f5c8dbda01cf85bf0db9cd9e74e051e0031 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -7934,7 +7934,6 @@ class JSRegExp: public JSObject { |
// NOT_COMPILED: Initial value. No data has been stored in the JSRegExp yet. |
// ATOM: A simple string to match against using an indexOf operation. |
// IRREGEXP: Compiled with Irregexp. |
- // IRREGEXP_NATIVE: Compiled to native code with Irregexp. |
enum Type { NOT_COMPILED, ATOM, IRREGEXP }; |
enum Flag { |
kNone = 0, |
@@ -8027,8 +8026,11 @@ class JSRegExp: public JSObject { |
static const int kIrregexpMaxRegisterCountIndex = kDataIndex + 4; |
// Number of captures in the compiled regexp. |
static const int kIrregexpCaptureCountIndex = kDataIndex + 5; |
+ // Maps names of named capture groups (at indices 2i) to their corresponding |
+ // capture group indices (at indices 2i + 1). |
+ static const int kIrregexpCaptureNameMapIndex = kDataIndex + 6; |
- static const int kIrregexpDataSize = kIrregexpCaptureCountIndex + 1; |
+ static const int kIrregexpDataSize = kIrregexpCaptureNameMapIndex + 1; |
// Offsets directly into the data fixed array. |
static const int kDataTagOffset = |