Index: src/prettyprinter.cc |
diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc |
index 03ef4deca8e7761c423886fb299561c3a95509d6..6a7718a3233260223350f1e07b577f63b339ab78 100644 |
--- a/src/prettyprinter.cc |
+++ b/src/prettyprinter.cc |
@@ -1436,18 +1436,21 @@ void AstPrinter::VisitVariableProxy(VariableProxy* node) { |
EmbeddedVector<char, 128> buf; |
int pos = SNPrintF(buf, "VAR PROXY"); |
switch (var->location()) { |
- case Variable::UNALLOCATED: |
+ case VariableLocation::UNALLOCATED: |
break; |
- case Variable::PARAMETER: |
+ case VariableLocation::PARAMETER: |
SNPrintF(buf + pos, " parameter[%d]", var->index()); |
break; |
- case Variable::LOCAL: |
+ case VariableLocation::LOCAL: |
SNPrintF(buf + pos, " local[%d]", var->index()); |
break; |
- case Variable::CONTEXT: |
+ case VariableLocation::CONTEXT: |
SNPrintF(buf + pos, " context[%d]", var->index()); |
break; |
- case Variable::LOOKUP: |
+ case VariableLocation::GLOBAL: |
+ SNPrintF(buf + pos, " global[%d]", var->index()); |
+ break; |
+ case VariableLocation::LOOKUP: |
SNPrintF(buf + pos, " lookup"); |
break; |
} |