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

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

Issue 18842: Experimental: periodic merge of the bleeding_edge branch to the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 11 years, 11 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') | src/objects-inl.h » ('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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 FastPropertyAt(r.GetFieldIndex())->ShortPrint(); 274 FastPropertyAt(r.GetFieldIndex())->ShortPrint();
275 PrintF(" (field at offset %d)\n", r.GetFieldIndex()); 275 PrintF(" (field at offset %d)\n", r.GetFieldIndex());
276 } else if (r.type() == CONSTANT_FUNCTION) { 276 } else if (r.type() == CONSTANT_FUNCTION) {
277 r.GetConstantFunction()->ShortPrint(); 277 r.GetConstantFunction()->ShortPrint();
278 PrintF(" (constant function)\n"); 278 PrintF(" (constant function)\n");
279 } else if (r.type() == CALLBACKS) { 279 } else if (r.type() == CALLBACKS) {
280 r.GetCallbacksObject()->ShortPrint(); 280 r.GetCallbacksObject()->ShortPrint();
281 PrintF(" (callback)\n"); 281 PrintF(" (callback)\n");
282 } else if (r.type() == MAP_TRANSITION) { 282 } else if (r.type() == MAP_TRANSITION) {
283 PrintF(" (map transition)\n"); 283 PrintF(" (map transition)\n");
284 } else if (r.type() == CONSTANT_TRANSITION) {
285 PrintF(" (constant transition)\n");
286 } else if (r.type() == NULL_DESCRIPTOR) {
287 PrintF(" (null descriptor)\n");
284 } else { 288 } else {
285 UNREACHABLE(); 289 UNREACHABLE();
286 } 290 }
287 } 291 }
288 } else { 292 } else {
289 property_dictionary()->Print(); 293 property_dictionary()->Print();
290 } 294 }
291 } 295 }
292 296
293 297
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 } 407 }
404 return "UNKNOWN"; 408 return "UNKNOWN";
405 } 409 }
406 410
407 411
408 void Map::MapPrint() { 412 void Map::MapPrint() {
409 HeapObject::PrintHeader("Map"); 413 HeapObject::PrintHeader("Map");
410 PrintF(" - type: %s\n", TypeToString(instance_type())); 414 PrintF(" - type: %s\n", TypeToString(instance_type()));
411 PrintF(" - instance size: %d\n", instance_size()); 415 PrintF(" - instance size: %d\n", instance_size());
412 PrintF(" - unused property fields: %d\n", unused_property_fields()); 416 PrintF(" - unused property fields: %d\n", unused_property_fields());
417 if (is_hidden_prototype()) {
418 PrintF(" - hidden_prototype\n");
419 }
420 if (has_named_interceptor()) {
421 PrintF(" - named_interceptor\n");
422 }
423 if (has_indexed_interceptor()) {
424 PrintF(" - indexed_interceptor\n");
425 }
426 if (is_undetectable()) {
427 PrintF(" - undetectable\n");
428 }
429 if (has_instance_call_handler()) {
430 PrintF(" - instance_call_handler\n");
431 }
432 if (is_access_check_needed()) {
433 PrintF(" - access_check_needed\n");
434 }
413 PrintF(" - instance descriptors: "); 435 PrintF(" - instance descriptors: ");
414 instance_descriptors()->ShortPrint(); 436 instance_descriptors()->ShortPrint();
415 PrintF("\n - prototype: "); 437 PrintF("\n - prototype: ");
416 prototype()->ShortPrint(); 438 prototype()->ShortPrint();
417 PrintF("\n - constructor: "); 439 PrintF("\n - constructor: ");
418 constructor()->ShortPrint(); 440 constructor()->ShortPrint();
419 PrintF("\n"); 441 PrintF("\n");
420 } 442 }
421 443
422 444
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 } 1081 }
1060 current = hash; 1082 current = hash;
1061 } 1083 }
1062 return true; 1084 return true;
1063 } 1085 }
1064 1086
1065 1087
1066 #endif // DEBUG 1088 #endif // DEBUG
1067 1089
1068 } } // namespace v8::internal 1090 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698