Index: src/x87/code-stubs-x87.cc |
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc |
index 11744ff623e921b3fad1778be2a7e8d7a362133e..1b9ff1bc7157c28a58a3e65c03b814851bbc0949 100644 |
--- a/src/x87/code-stubs-x87.cc |
+++ b/src/x87/code-stubs-x87.cc |
@@ -4652,6 +4652,9 @@ void ArrayConstructorStub::Generate(MacroAssembler* masm) { |
Label subclassing; |
+ // Enter the context of the Array function. |
+ __ mov(esi, FieldOperand(edi, JSFunction::kContextOffset)); |
+ |
__ cmp(edx, edi); |
__ j(not_equal, &subclassing); |