Index: src/prettyprinter.cc |
diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc |
index 1d834ce0722cee51750dc0a51e2d8c63e48784e7..32ea025d85a6ada8fca13aba55808acc6b65bc7b 100644 |
--- a/src/prettyprinter.cc |
+++ b/src/prettyprinter.cc |
@@ -493,9 +493,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) { |
@@ -674,9 +674,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); |
} |
} |
@@ -1039,21 +1039,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()); |
@@ -1120,8 +1120,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()); |
} |