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

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

Issue 14149009: Fix debug print and wrong handle dereference in es6 typed array. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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 | « src/api.cc ('k') | src/runtime.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 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 SharedFunctionInfo::cast(this)->SharedFunctionInfoPrint(out); 180 SharedFunctionInfo::cast(this)->SharedFunctionInfoPrint(out);
181 break; 181 break;
182 case JS_MESSAGE_OBJECT_TYPE: 182 case JS_MESSAGE_OBJECT_TYPE:
183 JSMessageObject::cast(this)->JSMessageObjectPrint(out); 183 JSMessageObject::cast(this)->JSMessageObjectPrint(out);
184 break; 184 break;
185 case JS_GLOBAL_PROPERTY_CELL_TYPE: 185 case JS_GLOBAL_PROPERTY_CELL_TYPE:
186 JSGlobalPropertyCell::cast(this)->JSGlobalPropertyCellPrint(out); 186 JSGlobalPropertyCell::cast(this)->JSGlobalPropertyCellPrint(out);
187 break; 187 break;
188 case JS_ARRAY_BUFFER_TYPE: 188 case JS_ARRAY_BUFFER_TYPE:
189 JSArrayBuffer::cast(this)->JSArrayBufferPrint(out); 189 JSArrayBuffer::cast(this)->JSArrayBufferPrint(out);
190 break;
190 case JS_TYPED_ARRAY_TYPE: 191 case JS_TYPED_ARRAY_TYPE:
191 JSTypedArray::cast(this)->JSTypedArrayPrint(out); 192 JSTypedArray::cast(this)->JSTypedArrayPrint(out);
193 break;
192 #define MAKE_STRUCT_CASE(NAME, Name, name) \ 194 #define MAKE_STRUCT_CASE(NAME, Name, name) \
193 case NAME##_TYPE: \ 195 case NAME##_TYPE: \
194 Name::cast(this)->Name##Print(out); \ 196 Name::cast(this)->Name##Print(out); \
195 break; 197 break;
196 STRUCT_LIST(MAKE_STRUCT_CASE) 198 STRUCT_LIST(MAKE_STRUCT_CASE)
197 #undef MAKE_STRUCT_CASE 199 #undef MAKE_STRUCT_CASE
198 200
199 default: 201 default:
200 PrintF(out, "UNKNOWN TYPE %d", map()->instance_type()); 202 PrintF(out, "UNKNOWN TYPE %d", map()->instance_type());
201 UNREACHABLE(); 203 UNREACHABLE();
(...skipping 1003 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 | « src/api.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698