Index: src/x64/stub-cache-x64.cc |
=================================================================== |
--- src/x64/stub-cache-x64.cc (revision 4906) |
+++ src/x64/stub-cache-x64.cc (working copy) |
@@ -117,7 +117,8 @@ |
void StubCompiler::GenerateDirectLoadGlobalFunctionPrototype( |
MacroAssembler* masm, int index, Register prototype) { |
// Get the global function with the given index. |
- JSFunction* function = JSFunction::cast(Top::global_context()->get(index)); |
+ JSFunction* function = JSFunction::cast( |
+ Isolate::Current()->global_context()->get(index)); |
// Load its initial map. The global functions all have initial maps. |
__ Move(prototype, Handle<Map>(function->initial_map())); |
// Load the prototype from the initial map. |