Index: test/unittests/test-utils.cc |
diff --git a/test/unittests/test-utils.cc b/test/unittests/test-utils.cc |
index e6efef36f985a7dd846647e133874d3519187b13..b2284990c4c3a6b4bc35f20b333474be1f46d221 100644 |
--- a/test/unittests/test-utils.cc |
+++ b/test/unittests/test-utils.cc |
@@ -10,6 +10,32 @@ |
namespace v8 { |
+std::ostream& operator<<(std::ostream& os, ExternalArrayType type) { |
+ switch (type) { |
+ case kExternalInt8Array: |
+ return os << "ExternalInt8Array"; |
+ case kExternalUint8Array: |
+ return os << "ExternalUint8Array"; |
+ case kExternalInt16Array: |
+ return os << "ExternalInt16Array"; |
+ case kExternalUint16Array: |
+ return os << "ExternalUint16Array"; |
+ case kExternalInt32Array: |
+ return os << "ExternalInt32Array"; |
+ case kExternalUint32Array: |
+ return os << "ExternalUint32Array"; |
+ case kExternalFloat32Array: |
+ return os << "ExternalFloat32Array"; |
+ case kExternalFloat64Array: |
+ return os << "ExternalFloat64Array"; |
+ case kExternalUint8ClampedArray: |
+ return os << "ExternalUint8ClampedArray"; |
+ } |
+ UNREACHABLE(); |
+ return os; |
+} |
+ |
+ |
// static |
Isolate* TestWithIsolate::isolate_ = NULL; |