Index: src/ia32/stub-cache-ia32.cc |
diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc |
index d612772d7a0f1dd84f31805abd876f6a8c536352..d205ccb78903e1a7f4b198e188af7a0fd51ae933 100644 |
--- a/src/ia32/stub-cache-ia32.cc |
+++ b/src/ia32/stub-cache-ia32.cc |
@@ -276,8 +276,8 @@ void StubCompiler::GenerateDirectLoadGlobalFunctionPrototype( |
Register prototype, |
Label* miss) { |
// Check we're still in the same context. |
- __ cmp(Operand(esi, Context::SlotOffset(Context::GLOBAL_INDEX)), |
- masm->isolate()->global()); |
+ __ cmp(Operand(esi, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)), |
+ masm->isolate()->global_object()); |
__ j(not_equal, miss); |
// Get the global function with the given index. |
Handle<JSFunction> function( |