| Index: src/mips/stub-cache-mips.cc
|
| diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc
|
| index afa2bfdd3763bc3ddd0c32a3e899a4dcb9a3b0c2..2594f491abcd35b44cf1d446bb9ff36786871701 100644
|
| --- a/src/mips/stub-cache-mips.cc
|
| +++ b/src/mips/stub-cache-mips.cc
|
| @@ -2676,9 +2676,10 @@ Handle<Code> StoreStubCompiler::CompileStoreField(Handle<JSObject> object,
|
|
|
|
|
| Handle<Code> StoreStubCompiler::CompileStoreCallback(
|
| - Handle<JSObject> object,
|
| - Handle<AccessorInfo> callback,
|
| - Handle<String> name) {
|
| + Handle<String> name,
|
| + Handle<JSObject> receiver,
|
| + Handle<JSObject> holder,
|
| + Handle<AccessorInfo> callback) {
|
| // ----------- S t a t e -------------
|
| // -- a0 : value
|
| // -- a1 : receiver
|
| @@ -2686,19 +2687,13 @@ Handle<Code> StoreStubCompiler::CompileStoreCallback(
|
| // -- ra : return address
|
| // -----------------------------------
|
| Label miss;
|
| -
|
| - // Check that the map of the object hasn't changed.
|
| - __ CheckMap(a1, a3, Handle<Map>(object->map()), &miss,
|
| - DO_SMI_CHECK, ALLOW_ELEMENT_TRANSITION_MAPS);
|
| -
|
| - // Perform global security token check if needed.
|
| - if (object->IsJSGlobalProxy()) {
|
| - __ CheckAccessGlobalProxy(a1, a3, &miss);
|
| - }
|
| + // Check that the maps haven't changed.
|
| + __ JumpIfSmi(a1, &miss, a3);
|
| + CheckPrototypes(receiver, a1, holder, a3, t0, t1, name, &miss);
|
|
|
| // Stub never generated for non-global objects that require access
|
| // checks.
|
| - ASSERT(object->IsJSGlobalProxy() || !object->IsAccessCheckNeeded());
|
| + ASSERT(holder->IsJSGlobalProxy() || !holder->IsAccessCheckNeeded());
|
|
|
| __ push(a1); // Receiver.
|
| __ li(a3, Operand(callback)); // Callback info.
|
|
|