| Index: src/typing.cc
|
| diff --git a/src/typing.cc b/src/typing.cc
|
| index 6f5cd1c6e0337b0ccaea2c07e67732c83e1eb678..2f10328f0978d70363e4809cc343613a02da5b57 100644
|
| --- a/src/typing.cc
|
| +++ b/src/typing.cc
|
| @@ -105,7 +105,9 @@ void AstTyper::ObserveTypesAtOsrEntry(IterationStatement* stmt) {
|
|
|
| ZoneList<Variable*> local_vars(locals, zone());
|
| ZoneList<Variable*> context_vars(scope->ContextLocalCount(), zone());
|
| - scope->CollectStackAndContextLocals(&local_vars, &context_vars);
|
| + ZoneList<Variable*> global_vars(scope->ContextGlobalCount(), zone());
|
| + scope->CollectStackAndContextLocals(&local_vars, &context_vars,
|
| + &global_vars);
|
| for (int i = 0; i < locals; i++) {
|
| PrintObserved(local_vars.at(i),
|
| frame->GetExpression(i),
|
|
|