Index: src/mips64/code-stubs-mips64.cc |
diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc |
index 8bfdcef1dea44505fe71562952070c9c0ffd2314..708c974cdfc08bc7b4b5c6e74ba85d7b1bc7c88c 100644 |
--- a/src/mips64/code-stubs-mips64.cc |
+++ b/src/mips64/code-stubs-mips64.cc |
@@ -5045,6 +5045,9 @@ void ArrayConstructorStub::Generate(MacroAssembler* masm) { |
__ AssertUndefinedOrAllocationSite(a2, a4); |
} |
+ // Enter the context of the Array function. |
+ __ ld(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); |
+ |
Label subclassing; |
__ Branch(&subclassing, ne, a1, Operand(a3)); |