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

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

Issue 8357035: Make sure PrintElementsKind is compiled in release mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase correctly Created 9 years, 2 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/objects.cc ('k') | 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 void ExternalFloatArray::ExternalFloatArrayPrint(FILE* out) { 238 void ExternalFloatArray::ExternalFloatArrayPrint(FILE* out) {
239 PrintF(out, "external float array"); 239 PrintF(out, "external float array");
240 } 240 }
241 241
242 242
243 void ExternalDoubleArray::ExternalDoubleArrayPrint(FILE* out) { 243 void ExternalDoubleArray::ExternalDoubleArrayPrint(FILE* out) {
244 PrintF(out, "external double array"); 244 PrintF(out, "external double array");
245 } 245 }
246 246
247 247
248 void PrintElementsKind(FILE* out, ElementsKind kind) {
249 switch (kind) {
250 case FAST_SMI_ONLY_ELEMENTS:
251 PrintF(out, "FAST_SMI_ONLY_ELEMENTS");
252 break;
253 case FAST_ELEMENTS:
254 PrintF(out, "FAST_ELEMENTS");
255 break;
256 case FAST_DOUBLE_ELEMENTS:
257 PrintF(out, "FAST_DOUBLE_ELEMENTS");
258 break;
259 case DICTIONARY_ELEMENTS:
260 PrintF(out, "DICTIONARY_ELEMENTS");
261 break;
262 case NON_STRICT_ARGUMENTS_ELEMENTS:
263 PrintF(out, "NON_STRICT_ARGUMENTS_ELEMENTS");
264 break;
265 case EXTERNAL_BYTE_ELEMENTS:
266 PrintF(out, "EXTERNAL_BYTE_ELEMENTS");
267 break;
268 case EXTERNAL_UNSIGNED_BYTE_ELEMENTS:
269 PrintF(out, "EXTERNAL_UNSIGNED_BYTE_ELEMENTS");
270 break;
271 case EXTERNAL_SHORT_ELEMENTS:
272 PrintF(out, "EXTERNAL_SHORT_ELEMENTS");
273 break;
274 case EXTERNAL_UNSIGNED_SHORT_ELEMENTS:
275 PrintF(out, "EXTERNAL_UNSIGNED_SHORT_ELEMENTS");
276 break;
277 case EXTERNAL_INT_ELEMENTS:
278 PrintF(out, "EXTERNAL_INT_ELEMENTS");
279 break;
280 case EXTERNAL_UNSIGNED_INT_ELEMENTS:
281 PrintF(out, "EXTERNAL_UNSIGNED_INT_ELEMENTS");
282 break;
283 case EXTERNAL_FLOAT_ELEMENTS:
284 PrintF(out, "EXTERNAL_FLOAT_ELEMENTS");
285 break;
286 case EXTERNAL_DOUBLE_ELEMENTS:
287 PrintF(out, "EXTERNAL_DOUBLE_ELEMENTS");
288 break;
289 case EXTERNAL_PIXEL_ELEMENTS:
290 PrintF(out, "EXTERNAL_DOUBLE_ELEMENTS");
291 break;
292 }
293 }
294
295
296 void JSObject::PrintProperties(FILE* out) { 248 void JSObject::PrintProperties(FILE* out) {
297 if (HasFastProperties()) { 249 if (HasFastProperties()) {
298 DescriptorArray* descs = map()->instance_descriptors(); 250 DescriptorArray* descs = map()->instance_descriptors();
299 for (int i = 0; i < descs->number_of_descriptors(); i++) { 251 for (int i = 0; i < descs->number_of_descriptors(); i++) {
300 PrintF(out, " "); 252 PrintF(out, " ");
301 descs->GetKey(i)->StringPrint(out); 253 descs->GetKey(i)->StringPrint(out);
302 PrintF(out, ": "); 254 PrintF(out, ": ");
303 switch (descs->GetType(i)) { 255 switch (descs->GetType(i)) {
304 case FIELD: { 256 case FIELD: {
305 int index = descs->GetFieldIndex(i); 257 int index = descs->GetFieldIndex(i);
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 desc.Print(out); 948 desc.Print(out);
997 } 949 }
998 PrintF(out, "\n"); 950 PrintF(out, "\n");
999 } 951 }
1000 952
1001 953
1002 #endif // OBJECT_PRINT 954 #endif // OBJECT_PRINT
1003 955
1004 956
1005 } } // namespace v8::internal 957 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698