Index: src/arm/deoptimizer-arm.cc |
diff --git a/src/arm/deoptimizer-arm.cc b/src/arm/deoptimizer-arm.cc |
index 2fefebdd8477e01b26881b37ee9f9a1eac31e099..9eec16fb33496eb4541f1e4100085ca5e04fbc23 100644 |
--- a/src/arm/deoptimizer-arm.cc |
+++ b/src/arm/deoptimizer-arm.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()) { |