From 9b21eb910e9e84af54c111920cc8e574cd72f5d6 Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Thu, 6 Jun 2013 12:05:22 +0000 Subject: [PATCH] Fix TypedArray object printer output. R=dslomov@chromium.org Review URL: https://codereview.chromium.org/16545002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14970 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/objects-printer.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/objects-printer.cc b/src/objects-printer.cc index 549c9fffc7..8eab562c54 100644 --- a/src/objects-printer.cc +++ b/src/objects-printer.cc @@ -540,6 +540,8 @@ static const char* TypeToString(InstanceType type) { case JS_FUNCTION_TYPE: return "JS_FUNCTION"; case CODE_TYPE: return "CODE"; case JS_ARRAY_TYPE: return "JS_ARRAY"; + case JS_ARRAY_BUFFER_TYPE: return "JS_ARRAY_BUFFER"; + case JS_TYPED_ARRAY_TYPE: return "JS_TYPED_ARRAY"; case JS_PROXY_TYPE: return "JS_PROXY"; case JS_WEAK_MAP_TYPE: return "JS_WEAK_MAP"; case JS_REGEXP_TYPE: return "JS_REGEXP"; @@ -822,7 +824,7 @@ void JSTypedArray::JSTypedArrayPrint(FILE* out) { byte_offset()->ShortPrint(out); PrintF(out, "\n - byte_length = "); byte_length()->ShortPrint(out); - PrintF(out, " - length = "); + PrintF(out, "\n - length = "); length()->ShortPrint(out); PrintF("\n"); PrintElements(out);