Chromium Code Reviews| Index: src/objects-inl.h |
| diff --git a/src/objects-inl.h b/src/objects-inl.h |
| index 3251d9e9b3b3c8817472f9167224e0bcb0d0a5e8..bf9fc95dc50c242e599d52ade3278f30093fecf3 100644 |
| --- a/src/objects-inl.h |
| +++ b/src/objects-inl.h |
| @@ -5009,10 +5009,14 @@ 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. |
| +void JSRegExp::ResetLastIndex(Isolate* isolate, |
| + Handle<JSRegExp> regexp) { |
| + // Reset lastIndex property to 0. |
| + SetProperty(regexp, |
| + isolate->factory()->last_index_symbol(), |
| + Handle<Smi>(Smi::FromInt(0)), |
| + ::NONE, |
|
Sven Panne
2013/01/23 12:16:12
Do we really need to make the top level namespace
|
| + kNonStrictMode); |
| } |