Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 926bba5efad288cd71ecc18f9e4e254ca285c5c9..6ea36440b69055a2f603e9e67154889a6467f65e 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -7030,6 +7030,18 @@ void JSRegExp::SetDataAt(int index, Object* value) { |
FixedArray::cast(data())->set(index, value); |
} |
+void JSRegExp::SetLastIndex(int index) { |
+ static const int offset = |
+ kSize + JSRegExp::kLastIndexFieldIndex * kPointerSize; |
+ Smi* value = Smi::FromInt(index); |
+ WRITE_FIELD(this, offset, value); |
+} |
+ |
+Object* JSRegExp::LastIndex() { |
+ static const int offset = |
+ kSize + JSRegExp::kLastIndexFieldIndex * kPointerSize; |
+ return READ_FIELD(this, offset); |
+} |
ElementsKind JSObject::GetElementsKind() { |
ElementsKind kind = map()->elements_kind(); |