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

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

Issue 48923002: Provide private symbols through internal APIs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Mo comments Created 7 years, 1 month 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-inl.h ('k') | src/parser.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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 UNREACHABLE(); 516 UNREACHABLE();
517 return "UNKNOWN"; // Keep the compiler happy. 517 return "UNKNOWN"; // Keep the compiler happy.
518 } 518 }
519 519
520 520
521 void Symbol::SymbolPrint(FILE* out) { 521 void Symbol::SymbolPrint(FILE* out) {
522 HeapObject::PrintHeader(out, "Symbol"); 522 HeapObject::PrintHeader(out, "Symbol");
523 PrintF(out, " - hash: %d\n", Hash()); 523 PrintF(out, " - hash: %d\n", Hash());
524 PrintF(out, " - name: "); 524 PrintF(out, " - name: ");
525 name()->ShortPrint(); 525 name()->ShortPrint();
526 PrintF(out, " - private: %d\n", is_private());
526 PrintF(out, "\n"); 527 PrintF(out, "\n");
527 } 528 }
528 529
529 530
530 void Map::MapPrint(FILE* out) { 531 void Map::MapPrint(FILE* out) {
531 HeapObject::PrintHeader(out, "Map"); 532 HeapObject::PrintHeader(out, "Map");
532 PrintF(out, " - type: %s\n", TypeToString(instance_type())); 533 PrintF(out, " - type: %s\n", TypeToString(instance_type()));
533 PrintF(out, " - instance size: %d\n", instance_size()); 534 PrintF(out, " - instance size: %d\n", instance_size());
534 PrintF(out, " - inobject properties: %d\n", inobject_properties()); 535 PrintF(out, " - inobject properties: %d\n", inobject_properties());
535 PrintF(out, " - elements kind: "); 536 PrintF(out, " - elements kind: ");
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 } 1257 }
1257 } 1258 }
1258 PrintF(out, "\n"); 1259 PrintF(out, "\n");
1259 } 1260 }
1260 1261
1261 1262
1262 #endif // OBJECT_PRINT 1263 #endif // OBJECT_PRINT
1263 1264
1264 1265
1265 } } // namespace v8::internal 1266 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698