Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index fa90ca7d11f1b8e1f37ee218d40c577a1a129624..2a7c22d744a4fe89dd409856b5d1e934977a087b 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -1297,11 +1297,6 @@ Object* CallStubCompiler::CompileArrayPushCall(Object* object, |
// Check that the maps haven't changed. |
CheckPrototypes(JSObject::cast(object), r1, holder, r3, r0, r4, name, &miss); |
- if (object->IsGlobalObject()) { |
- __ ldr(r3, FieldMemOperand(r1, GlobalObject::kGlobalReceiverOffset)); |
- __ str(r3, MemOperand(sp, argc * kPointerSize)); |
- } |
- |
__ TailCallExternalReference(ExternalReference(Builtins::c_ArrayPush), |
argc + 1, |
1); |
@@ -1349,11 +1344,6 @@ Object* CallStubCompiler::CompileArrayPopCall(Object* object, |
// Check that the maps haven't changed. |
CheckPrototypes(JSObject::cast(object), r1, holder, r3, r0, r4, name, &miss); |
- if (object->IsGlobalObject()) { |
- __ ldr(r3, FieldMemOperand(r1, GlobalObject::kGlobalReceiverOffset)); |
- __ str(r3, MemOperand(sp, argc * kPointerSize)); |
- } |
- |
__ TailCallExternalReference(ExternalReference(Builtins::c_ArrayPop), |
argc + 1, |
1); |