Chromium Code Reviews| Index: src/objects-inl.h |
| =================================================================== |
| --- src/objects-inl.h (revision 1489) |
| +++ src/objects-inl.h (working copy) |
| @@ -2338,6 +2338,13 @@ |
| } |
| +void JSRegExp::SetDataAt(int index, Object* value) { |
| + ASSERT(TypeTag() != NOT_COMPILED); |
| + ASSERT(index >= kDataIndex); // Only implementation data can be set this way. |
| + FixedArray::cast(data())->set(index, value); |
| +} |
| + |
| + |
| bool JSObject::HasFastElements() { |
| return !elements()->IsDictionary(); |
| } |