Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 040664dc06641f4df917320456564869c86e8242..d42b90853723f041017a1478a70e18b494cb66b4 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -1982,7 +1982,7 @@ class JSReceiver: public HeapObject { |
DeleteMode mode = NORMAL_DELETION); |
static Handle<Object> DeleteElement(Handle<JSReceiver> object, |
uint32_t index, |
- DeleteMode mode); |
+ DeleteMode mode = NORMAL_DELETION); |
// Set the index'th array element. |
// Can cause GC, or return failure if GC is required. |
@@ -2320,11 +2320,6 @@ class JSObject: public JSReceiver { |
MUST_USE_RESULT MaybeObject* GetIdentityHash(CreationFlag flag); |
MUST_USE_RESULT MaybeObject* SetIdentityHash(Smi* hash, CreationFlag flag); |
- static Handle<Object> DeleteElement(Handle<JSObject> obj, |
- uint32_t index, |
- DeleteMode mode = NORMAL_DELETION); |
- MUST_USE_RESULT MaybeObject* DeleteElement(uint32_t index, DeleteMode mode); |
- |
inline void ValidateElements(); |
// Makes sure that this object can contain HeapObject as elements. |
@@ -2812,7 +2807,11 @@ class JSObject: public JSReceiver { |
Handle<Name> name, |
DeleteMode mode); |
- MUST_USE_RESULT MaybeObject* DeleteElementWithInterceptor(uint32_t index); |
+ static Handle<Object> DeleteElement(Handle<JSObject> object, |
+ uint32_t index, |
+ DeleteMode mode); |
+ static Handle<Object> DeleteElementWithInterceptor(Handle<JSObject> object, |
+ uint32_t index); |
MUST_USE_RESULT MaybeObject* DeleteFastElement(uint32_t index); |
MUST_USE_RESULT MaybeObject* DeleteDictionaryElement(uint32_t index, |