Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Side by Side Diff: src/objects-printer.cc

Issue 16545002: Fix TypedArray object printer output. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 case JS_OBJECT_TYPE: return "JS_OBJECT"; 533 case JS_OBJECT_TYPE: return "JS_OBJECT";
534 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: return "JS_CONTEXT_EXTENSION_OBJECT"; 534 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: return "JS_CONTEXT_EXTENSION_OBJECT";
535 case ODDBALL_TYPE: return "ODDBALL"; 535 case ODDBALL_TYPE: return "ODDBALL";
536 case JS_GLOBAL_PROPERTY_CELL_TYPE: return "JS_GLOBAL_PROPERTY_CELL"; 536 case JS_GLOBAL_PROPERTY_CELL_TYPE: return "JS_GLOBAL_PROPERTY_CELL";
537 case SHARED_FUNCTION_INFO_TYPE: return "SHARED_FUNCTION_INFO"; 537 case SHARED_FUNCTION_INFO_TYPE: return "SHARED_FUNCTION_INFO";
538 case JS_GENERATOR_OBJECT_TYPE: return "JS_GENERATOR_OBJECT"; 538 case JS_GENERATOR_OBJECT_TYPE: return "JS_GENERATOR_OBJECT";
539 case JS_MODULE_TYPE: return "JS_MODULE"; 539 case JS_MODULE_TYPE: return "JS_MODULE";
540 case JS_FUNCTION_TYPE: return "JS_FUNCTION"; 540 case JS_FUNCTION_TYPE: return "JS_FUNCTION";
541 case CODE_TYPE: return "CODE"; 541 case CODE_TYPE: return "CODE";
542 case JS_ARRAY_TYPE: return "JS_ARRAY"; 542 case JS_ARRAY_TYPE: return "JS_ARRAY";
543 case JS_ARRAY_BUFFER_TYPE: return "JS_ARRAY_BUFFER";
544 case JS_TYPED_ARRAY_TYPE: return "JS_TYPED_ARRAY";
543 case JS_PROXY_TYPE: return "JS_PROXY"; 545 case JS_PROXY_TYPE: return "JS_PROXY";
544 case JS_WEAK_MAP_TYPE: return "JS_WEAK_MAP"; 546 case JS_WEAK_MAP_TYPE: return "JS_WEAK_MAP";
545 case JS_REGEXP_TYPE: return "JS_REGEXP"; 547 case JS_REGEXP_TYPE: return "JS_REGEXP";
546 case JS_VALUE_TYPE: return "JS_VALUE"; 548 case JS_VALUE_TYPE: return "JS_VALUE";
547 case JS_GLOBAL_OBJECT_TYPE: return "JS_GLOBAL_OBJECT"; 549 case JS_GLOBAL_OBJECT_TYPE: return "JS_GLOBAL_OBJECT";
548 case JS_BUILTINS_OBJECT_TYPE: return "JS_BUILTINS_OBJECT"; 550 case JS_BUILTINS_OBJECT_TYPE: return "JS_BUILTINS_OBJECT";
549 case JS_GLOBAL_PROXY_TYPE: return "JS_GLOBAL_PROXY"; 551 case JS_GLOBAL_PROXY_TYPE: return "JS_GLOBAL_PROXY";
550 case FOREIGN_TYPE: return "FOREIGN"; 552 case FOREIGN_TYPE: return "FOREIGN";
551 case JS_MESSAGE_OBJECT_TYPE: return "JS_MESSAGE_OBJECT_TYPE"; 553 case JS_MESSAGE_OBJECT_TYPE: return "JS_MESSAGE_OBJECT_TYPE";
552 #define MAKE_STRUCT_CASE(NAME, Name, name) case NAME##_TYPE: return #NAME; 554 #define MAKE_STRUCT_CASE(NAME, Name, name) case NAME##_TYPE: return #NAME;
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 817
816 void JSTypedArray::JSTypedArrayPrint(FILE* out) { 818 void JSTypedArray::JSTypedArrayPrint(FILE* out) {
817 HeapObject::PrintHeader(out, "JSTypedArray"); 819 HeapObject::PrintHeader(out, "JSTypedArray");
818 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); 820 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map()));
819 PrintF(out, " - buffer ="); 821 PrintF(out, " - buffer =");
820 buffer()->ShortPrint(out); 822 buffer()->ShortPrint(out);
821 PrintF(out, "\n - byte_offset = "); 823 PrintF(out, "\n - byte_offset = ");
822 byte_offset()->ShortPrint(out); 824 byte_offset()->ShortPrint(out);
823 PrintF(out, "\n - byte_length = "); 825 PrintF(out, "\n - byte_length = ");
824 byte_length()->ShortPrint(out); 826 byte_length()->ShortPrint(out);
825 PrintF(out, " - length = "); 827 PrintF(out, "\n - length = ");
826 length()->ShortPrint(out); 828 length()->ShortPrint(out);
827 PrintF("\n"); 829 PrintF("\n");
828 PrintElements(out); 830 PrintElements(out);
829 } 831 }
830 832
831 833
832 void JSFunction::JSFunctionPrint(FILE* out) { 834 void JSFunction::JSFunctionPrint(FILE* out) {
833 HeapObject::PrintHeader(out, "Function"); 835 HeapObject::PrintHeader(out, "Function");
834 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); 836 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map()));
835 PrintF(out, " - initial_map = "); 837 PrintF(out, " - initial_map = ");
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
1205 } 1207 }
1206 } 1208 }
1207 PrintF(out, "\n"); 1209 PrintF(out, "\n");
1208 } 1210 }
1209 1211
1210 1212
1211 #endif // OBJECT_PRINT 1213 #endif // OBJECT_PRINT
1212 1214
1213 1215
1214 } } // namespace v8::internal 1216 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698