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

Side by Side Diff: src/objects.cc

Issue 21348: Modified printing of some types of heap objects to make the printing more uni... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 10 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 | src/objects-debug.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 accumulator->Add("<FixedArray[%u]>", FixedArray::cast(this)->length()); 919 accumulator->Add("<FixedArray[%u]>", FixedArray::cast(this)->length());
920 break; 920 break;
921 case BYTE_ARRAY_TYPE: 921 case BYTE_ARRAY_TYPE:
922 accumulator->Add("<ByteArray[%u]>", ByteArray::cast(this)->length()); 922 accumulator->Add("<ByteArray[%u]>", ByteArray::cast(this)->length());
923 break; 923 break;
924 case SHARED_FUNCTION_INFO_TYPE: 924 case SHARED_FUNCTION_INFO_TYPE:
925 accumulator->Add("<SharedFunctionInfo>"); 925 accumulator->Add("<SharedFunctionInfo>");
926 break; 926 break;
927 #define MAKE_STRUCT_CASE(NAME, Name, name) \ 927 #define MAKE_STRUCT_CASE(NAME, Name, name) \
928 case NAME##_TYPE: \ 928 case NAME##_TYPE: \
929 accumulator->Put('<'); \
929 accumulator->Add(#Name); \ 930 accumulator->Add(#Name); \
931 accumulator->Put('>'); \
930 break; 932 break;
931 STRUCT_LIST(MAKE_STRUCT_CASE) 933 STRUCT_LIST(MAKE_STRUCT_CASE)
932 #undef MAKE_STRUCT_CASE 934 #undef MAKE_STRUCT_CASE
933 case CODE_TYPE: 935 case CODE_TYPE:
934 accumulator->Add("<Code>"); 936 accumulator->Add("<Code>");
935 break; 937 break;
936 case ODDBALL_TYPE: { 938 case ODDBALL_TYPE: {
937 if (IsUndefined()) 939 if (IsUndefined())
938 accumulator->Add("<undefined>"); 940 accumulator->Add("<undefined>");
939 else if (IsTheHole()) 941 else if (IsTheHole())
(...skipping 6215 matching lines...) Expand 10 before | Expand all | Expand 10 after
7155 // No break point. 7157 // No break point.
7156 if (break_point_objects()->IsUndefined()) return 0; 7158 if (break_point_objects()->IsUndefined()) return 0;
7157 // Single beak point. 7159 // Single beak point.
7158 if (!break_point_objects()->IsFixedArray()) return 1; 7160 if (!break_point_objects()->IsFixedArray()) return 1;
7159 // Multiple break points. 7161 // Multiple break points.
7160 return FixedArray::cast(break_point_objects())->length(); 7162 return FixedArray::cast(break_point_objects())->length();
7161 } 7163 }
7162 7164
7163 7165
7164 } } // namespace v8::internal 7166 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698