| Index: src/prettyprinter.cc
|
| diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc
|
| index 4edf318fb655bd0dfd7d19235089560346468c7f..f46f6f1b4adf7fa8383852ca0a1ad8464d4602d7 100644
|
| --- a/src/prettyprinter.cc
|
| +++ b/src/prettyprinter.cc
|
| @@ -492,9 +492,9 @@ void PrettyPrinter::Print(const char* format, ...) {
|
| for (;;) {
|
| va_list arguments;
|
| va_start(arguments, format);
|
| - int n = OS::VSNPrintF(Vector<char>(output_, size_) + pos_,
|
| - format,
|
| - arguments);
|
| + int n = VSNPrintF(Vector<char>(output_, size_) + pos_,
|
| + format,
|
| + arguments);
|
| va_end(arguments);
|
|
|
| if (n >= 0) {
|
| @@ -668,9 +668,9 @@ void AstPrinter::PrintLiteralWithModeIndented(const char* info,
|
| PrintLiteralIndented(info, value, true);
|
| } else {
|
| EmbeddedVector<char, 256> buf;
|
| - int pos = OS::SNPrintF(buf, "%s (mode = %s", info,
|
| - Variable::Mode2String(var->mode()));
|
| - OS::SNPrintF(buf + pos, ")");
|
| + int pos = SNPrintF(buf, "%s (mode = %s", info,
|
| + Variable::Mode2String(var->mode()));
|
| + SNPrintF(buf + pos, ")");
|
| PrintLiteralIndented(buf.start(), value, true);
|
| }
|
| }
|
| @@ -1033,21 +1033,21 @@ void AstPrinter::VisitArrayLiteral(ArrayLiteral* node) {
|
| void AstPrinter::VisitVariableProxy(VariableProxy* node) {
|
| Variable* var = node->var();
|
| EmbeddedVector<char, 128> buf;
|
| - int pos = OS::SNPrintF(buf, "VAR PROXY");
|
| + int pos = SNPrintF(buf, "VAR PROXY");
|
| switch (var->location()) {
|
| case Variable::UNALLOCATED:
|
| break;
|
| case Variable::PARAMETER:
|
| - OS::SNPrintF(buf + pos, " parameter[%d]", var->index());
|
| + SNPrintF(buf + pos, " parameter[%d]", var->index());
|
| break;
|
| case Variable::LOCAL:
|
| - OS::SNPrintF(buf + pos, " local[%d]", var->index());
|
| + SNPrintF(buf + pos, " local[%d]", var->index());
|
| break;
|
| case Variable::CONTEXT:
|
| - OS::SNPrintF(buf + pos, " context[%d]", var->index());
|
| + SNPrintF(buf + pos, " context[%d]", var->index());
|
| break;
|
| case Variable::LOOKUP:
|
| - OS::SNPrintF(buf + pos, " lookup");
|
| + SNPrintF(buf + pos, " lookup");
|
| break;
|
| }
|
| PrintLiteralWithModeIndented(buf.start(), var, node->name());
|
| @@ -1114,8 +1114,8 @@ void AstPrinter::VisitUnaryOperation(UnaryOperation* node) {
|
|
|
| void AstPrinter::VisitCountOperation(CountOperation* node) {
|
| EmbeddedVector<char, 128> buf;
|
| - OS::SNPrintF(buf, "%s %s", (node->is_prefix() ? "PRE" : "POST"),
|
| - Token::Name(node->op()));
|
| + SNPrintF(buf, "%s %s", (node->is_prefix() ? "PRE" : "POST"),
|
| + Token::Name(node->op()));
|
| IndentedScope indent(this, buf.start());
|
| Visit(node->expression());
|
| }
|
|
|