Index: src/mips/deoptimizer-mips.cc |
diff --git a/src/mips/deoptimizer-mips.cc b/src/mips/deoptimizer-mips.cc |
index 7302c2f6ddca886596fe3890f6ad06592934a422..14af894dbac523c1e9a8dd275f8f1d1a09beb8bb 100644 |
--- a/src/mips/deoptimizer-mips.cc |
+++ b/src/mips/deoptimizer-mips.cc |
@@ -102,7 +102,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()) { |