| Index: src/ia32/deoptimizer-ia32.cc
|
| diff --git a/src/ia32/deoptimizer-ia32.cc b/src/ia32/deoptimizer-ia32.cc
|
| index fc324d2f8650e5b83a396600792daaa411454af8..14e76a2872c0b55730acfabbe40d49653eae58e1 100644
|
| --- a/src/ia32/deoptimizer-ia32.cc
|
| +++ b/src/ia32/deoptimizer-ia32.cc
|
| @@ -200,7 +200,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()) {
|
|
|