Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 0fa8be6869cece6aac3588dc684d76e078e6f5fa..be547344ee09cd83f46a05b80a982a4c8c8bf14c 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -4801,6 +4801,9 @@ void ArrayConstructorStub::Generate(MacroAssembler* masm) { |
__ AssertUndefinedOrAllocationSite(r2, r4); |
} |
+ // Enter the context of the Array function. |
+ __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset)); |
+ |
Label subclassing; |
__ cmp(r3, r1); |
__ b(ne, &subclassing); |