| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index d42b90853723f041017a1478a70e18b494cb66b4..dfec17e0c4028034d629f84c3f3e1d2a72018b27 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -1951,6 +1951,11 @@ class JSReceiver: public HeapObject {
|
| Handle<Object> value,
|
| PropertyAttributes attributes,
|
| StrictModeFlag strict_mode);
|
| + static Handle<Object> SetElement(Handle<JSReceiver> object,
|
| + uint32_t index,
|
| + Handle<Object> value,
|
| + PropertyAttributes attributes,
|
| + StrictModeFlag strict_mode);
|
|
|
| MUST_USE_RESULT static MaybeObject* SetPropertyOrFail(
|
| Handle<JSReceiver> object,
|
| @@ -1984,14 +1989,6 @@ class JSReceiver: public HeapObject {
|
| uint32_t index,
|
| DeleteMode mode = NORMAL_DELETION);
|
|
|
| - // Set the index'th array element.
|
| - // Can cause GC, or return failure if GC is required.
|
| - MUST_USE_RESULT MaybeObject* SetElement(uint32_t index,
|
| - Object* value,
|
| - PropertyAttributes attributes,
|
| - StrictModeFlag strict_mode,
|
| - bool check_prototype);
|
| -
|
| // Tests for the fast common case for property enumeration.
|
| bool IsSimpleEnum();
|
|
|
| @@ -9129,11 +9126,6 @@ class JSProxy: public JSReceiver {
|
| Object* value,
|
| PropertyAttributes attributes,
|
| StrictModeFlag strict_mode);
|
| - MUST_USE_RESULT MaybeObject* SetElementWithHandler(
|
| - JSReceiver* receiver,
|
| - uint32_t index,
|
| - Object* value,
|
| - StrictModeFlag strict_mode);
|
|
|
| // If the handler defines an accessor property with a setter, invoke it.
|
| // If it defines an accessor property without a setter, or a data property
|
| @@ -9192,10 +9184,16 @@ class JSProxy: public JSReceiver {
|
| private:
|
| friend class JSReceiver;
|
|
|
| - static Handle<Object> DeletePropertyWithHandler(Handle<JSProxy> object,
|
| + static Handle<Object> SetElementWithHandler(Handle<JSProxy> proxy,
|
| + Handle<JSReceiver> receiver,
|
| + uint32_t index,
|
| + Handle<Object> value,
|
| + StrictModeFlag strict_mode);
|
| +
|
| + static Handle<Object> DeletePropertyWithHandler(Handle<JSProxy> proxy,
|
| Handle<Name> name,
|
| DeleteMode mode);
|
| - static Handle<Object> DeleteElementWithHandler(Handle<JSProxy> object,
|
| + static Handle<Object> DeleteElementWithHandler(Handle<JSProxy> proxy,
|
| uint32_t index,
|
| DeleteMode mode);
|
|
|
|
|