Index: src/ia32/stub-cache-ia32.cc |
diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc |
index 50a22129fe64efab5427a6e3cf7589e929bafe38..8d8d27d08cf1d1a708b0c74a8b13eaef860832d3 100644 |
--- a/src/ia32/stub-cache-ia32.cc |
+++ b/src/ia32/stub-cache-ia32.cc |
@@ -281,7 +281,7 @@ void StubCompiler::GenerateDirectLoadGlobalFunctionPrototype( |
__ j(not_equal, miss); |
// Get the global function with the given index. |
Handle<JSFunction> function( |
- JSFunction::cast(masm->isolate()->global_context()->get(index))); |
+ JSFunction::cast(masm->isolate()->native_context()->get(index))); |
// Load its initial map. The global functions all have initial maps. |
__ Set(prototype, Immediate(Handle<Map>(function->initial_map()))); |
// Load the prototype from the initial map. |