| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 1e40ac5d9c12f6b253f75530812d4f4bc41573ea..e4664c53a55528486518f7f50f0cacd9a913cfc8 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -6220,7 +6220,7 @@ ElementsKind JSObject::GetElementsKind() {
|
| fixed_array->IsFixedArray() &&
|
| fixed_array->IsDictionary()) ||
|
| (kind > DICTIONARY_ELEMENTS));
|
| - DCHECK((kind != SLOPPY_ARGUMENTS_ELEMENTS) ||
|
| + DCHECK(!IsSloppyArgumentsElements(kind) ||
|
| (elements()->IsFixedArray() && elements()->length() >= 2));
|
| }
|
| #endif
|
| @@ -6263,8 +6263,18 @@ bool JSObject::HasDictionaryElements() {
|
| }
|
|
|
|
|
| +bool JSObject::HasFastArgumentsElements() {
|
| + return GetElementsKind() == FAST_SLOPPY_ARGUMENTS_ELEMENTS;
|
| +}
|
| +
|
| +
|
| +bool JSObject::HasSlowArgumentsElements() {
|
| + return GetElementsKind() == SLOW_SLOPPY_ARGUMENTS_ELEMENTS;
|
| +}
|
| +
|
| +
|
| bool JSObject::HasSloppyArgumentsElements() {
|
| - return GetElementsKind() == SLOPPY_ARGUMENTS_ELEMENTS;
|
| + return IsSloppyArgumentsElements(GetElementsKind());
|
| }
|
|
|
|
|
|
|