Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 25c9336e108fce9e108aed50607d318c5cad5cb6..bb5485303bc2b70c0ceec5563161ea716e3b8aef 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -4708,6 +4708,9 @@ void ArrayConstructorStub::Generate(MacroAssembler* masm) { |
__ AssertUndefinedOrAllocationSite(rbx); |
} |
+ // Enter the context of the Array function. |
+ __ movp(rsi, FieldOperand(rdi, JSFunction::kContextOffset)); |
+ |
Label subclassing; |
__ cmpp(rdi, rdx); |
__ j(not_equal, &subclassing); |