Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index 67ab1641dee186dadbb1a89d3ad66efc3a7f2def..2ec451eeaa57d3a6e99c3b64343e209f4777cbfa 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -5193,6 +5193,9 @@ void ArrayConstructorStub::Generate(MacroAssembler* masm) { |
__ AssertUndefinedOrAllocationSite(allocation_site, x10); |
} |
+ // Enter the context of the Array function. |
+ __ Ldr(cp, FieldMemOperand(x1, JSFunction::kContextOffset)); |
+ |
Label subclassing; |
__ Cmp(new_target, constructor); |
__ B(ne, &subclassing); |