| Index: src/ic/ia32/handler-compiler-ia32.cc
|
| diff --git a/src/ic/ia32/handler-compiler-ia32.cc b/src/ic/ia32/handler-compiler-ia32.cc
|
| index 0318b6a9063264b8ae3a1fc1a9e1cc5a3bc3124d..b34c8925fe2fc30f4ce7732bcc4af8874e7d34e0 100644
|
| --- a/src/ic/ia32/handler-compiler-ia32.cc
|
| +++ b/src/ic/ia32/handler-compiler-ia32.cc
|
| @@ -114,10 +114,7 @@ void PropertyHandlerCompiler::GenerateDictionaryNegativeLookup(
|
|
|
| void NamedLoadHandlerCompiler::GenerateDirectLoadGlobalFunctionPrototype(
|
| MacroAssembler* masm, int index, Register result, Label* miss) {
|
| - const int offset = Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX);
|
| - __ mov(result, Operand(esi, offset));
|
| - __ mov(result, FieldOperand(result, JSGlobalObject::kNativeContextOffset));
|
| - __ mov(result, Operand(result, Context::SlotOffset(index)));
|
| + __ LoadGlobalFunction(index, result);
|
| // Load its initial map. The global functions all have initial maps.
|
| __ mov(result,
|
| FieldOperand(result, JSFunction::kPrototypeOrInitialMapOffset));
|
|
|