Revert "Revert "Upgrade to 5.0.71.48"" DO NOT MERGE
This reverts commit f2e3994fa5148cc3d9946666f0b0596290192b0e,
and updates the x64 makefile properly so it doesn't break that
build.
FPIIM-449
Change-Id: Ib83e35bfbae6af627451c926a9650ec57c045605
(cherry picked from commit 109988c7ccb6f3fd1a58574fa3dfb88beaef6632)
diff --git a/src/ostreams.cc b/src/ostreams.cc
index a7a67f5..120db25 100644
--- a/src/ostreams.cc
+++ b/src/ostreams.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "src/ostreams.h"
+#include "src/objects.h"
#if V8_OS_WIN
#if _MSC_VER < 1900
@@ -60,6 +61,16 @@
return os << buf;
}
+
+std::ostream& PrintUC32(std::ostream& os, int32_t c, bool (*pred)(uint16_t)) {
+ if (c <= String::kMaxUtf16CodeUnit) {
+ return PrintUC16(os, static_cast<uint16_t>(c), pred);
+ }
+ char buf[13];
+ snprintf(buf, sizeof(buf), "\\u{%06x}", c);
+ return os << buf;
+}
+
} // namespace
@@ -81,5 +92,10 @@
return PrintUC16(os, c.value, IsPrint);
}
+
+std::ostream& operator<<(std::ostream& os, const AsUC32& c) {
+ return PrintUC32(os, c.value, IsPrint);
+}
+
} // namespace internal
} // namespace v8