| Index: src/deoptimizer.cc
|
| diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc
|
| index 8aeee1ad212b2e8607f58ec15440c0b4065e6b31..53d3e57ab1c942e510b8e31dd90725f5d8f7fe5f 100644
|
| --- a/src/deoptimizer.cc
|
| +++ b/src/deoptimizer.cc
|
| @@ -320,7 +320,7 @@ void Deoptimizer::VisitAllOptimizedFunctions(
|
| while (!context->IsUndefined()) {
|
| // GC can happen when the context is not fully initialized,
|
| // so the global field of the context can be undefined.
|
| - Object* global = Context::cast(context)->get(Context::GLOBAL_INDEX);
|
| + Object* global = Context::cast(context)->get(Context::GLOBAL_OBJECT_INDEX);
|
| if (!global->IsUndefined()) {
|
| VisitAllOptimizedFunctionsForGlobalObject(JSObject::cast(global),
|
| visitor);
|
|
|