Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index b99ba44723122cbd4b38fa9e1cdd1b070c7710d9..1f4b26196a9ecdbacbd8056695b9c5bd2ff167cc 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -4741,6 +4741,13 @@ void JSRegExp::SetDataAtUnchecked(int index, Object* value, Heap* heap) { |
} |
+void JSRegExp::ResetLastIndex() { |
+ InObjectPropertyAtPut(JSRegExp::kLastIndexFieldIndex, |
+ Smi::FromInt(0), |
+ SKIP_WRITE_BARRIER); // It's a Smi. |
+} |
+ |
+ |
ElementsKind JSObject::GetElementsKind() { |
ElementsKind kind = map()->elements_kind(); |
#if DEBUG |