Index: src/x64/deoptimizer-x64.cc |
diff --git a/src/x64/deoptimizer-x64.cc b/src/x64/deoptimizer-x64.cc |
index 63a6748ad867650c2b4d325ab77f243dc0d24914..3cbde4f1078af9886b2d5a4a6e807120193afefe 100644 |
--- a/src/x64/deoptimizer-x64.cc |
+++ b/src/x64/deoptimizer-x64.cc |
@@ -106,7 +106,7 @@ void Deoptimizer::DeoptimizeFunction(JSFunction* function) { |
// Iterate over all the functions which share the same code object |
// and make them use unoptimized version. |
- Context* context = function->context()->global_context(); |
+ Context* context = function->context()->native_context(); |
Object* element = context->get(Context::OPTIMIZED_FUNCTIONS_LIST); |
SharedFunctionInfo* shared = function->shared(); |
while (!element->IsUndefined()) { |