| Index: src/ast/scopes.cc
|
| diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc
|
| index acba74d699805cfbd4c14a9f2d5e70d43be1f35e..51a71e3deb789af8a585c8355081385de6bb0119 100644
|
| --- a/src/ast/scopes.cc
|
| +++ b/src/ast/scopes.cc
|
| @@ -1539,6 +1539,19 @@ void Scope::Print(int n) {
|
| PrintVar(n1, function);
|
| }
|
|
|
| + // Print temporaries.
|
| + {
|
| + bool printed_header = false;
|
| + for (Variable* local : locals_) {
|
| + if (local->mode() != TEMPORARY) continue;
|
| + if (!printed_header) {
|
| + printed_header = true;
|
| + Indent(n1, "// temporary vars:\n");
|
| + }
|
| + PrintVar(n1, local);
|
| + }
|
| + }
|
| +
|
| if (variables_.occupancy() > 0) {
|
| PrintMap(n1, "// local vars:\n", &variables_, true, function);
|
| PrintMap(n1, "// dynamic vars:\n", &variables_, false, function);
|
|
|