| Index: src/ia32/code-stubs-ia32.cc
|
| diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc
|
| index 78824195df456e2787c6be0f12e76c77ec56e125..2ef5a87da26eba19a5c4f9069bd90ebf8fef9633 100644
|
| --- a/src/ia32/code-stubs-ia32.cc
|
| +++ b/src/ia32/code-stubs-ia32.cc
|
| @@ -2352,11 +2352,9 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) {
|
| __ cmp(FieldOperand(ecx, 0), Immediate(allocation_site_map));
|
| __ j(not_equal, &miss);
|
|
|
| - // Load the global or builtins object from the current context
|
| - __ LoadGlobalContext(ecx);
|
| // Make sure the function is the Array() function
|
| - __ cmp(edi, Operand(ecx,
|
| - Context::SlotOffset(Context::ARRAY_FUNCTION_INDEX)));
|
| + __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, ecx);
|
| + __ cmp(edi, ecx);
|
| __ j(not_equal, &megamorphic);
|
| __ jmp(&done, Label::kFar);
|
|
|
| @@ -2377,10 +2375,9 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) {
|
| // An uninitialized cache is patched with the function or sentinel to
|
| // indicate the ElementsKind if function is the Array constructor.
|
| __ bind(&initialize);
|
| - __ LoadGlobalContext(ecx);
|
| // Make sure the function is the Array() function
|
| - __ cmp(edi, Operand(ecx,
|
| - Context::SlotOffset(Context::ARRAY_FUNCTION_INDEX)));
|
| + __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, ecx);
|
| + __ cmp(edi, ecx);
|
| __ j(not_equal, ¬_array_function);
|
|
|
| // The target function is the Array constructor,
|
|
|