Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index a45d3ed8681ffff55817e9f4b450579fa09593ef..cf9ee30c817880f708f1c0c994366d1d744fe871 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -4984,6 +4984,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); |