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

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

Issue 464473002: Add "own" symbols support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes for 64-bit builds Created 6 years, 4 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-inl.h ('k') | src/runtime.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/disasm.h" 7 #include "src/disasm.h"
8 #include "src/disassembler.h" 8 #include "src/disassembler.h"
9 #include "src/heap/objects-visiting.h" 9 #include "src/heap/objects-visiting.h"
10 #include "src/jsregexp.h" 10 #include "src/jsregexp.h"
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 } 423 }
424 UNREACHABLE(); 424 UNREACHABLE();
425 return "UNKNOWN"; // Keep the compiler happy. 425 return "UNKNOWN"; // Keep the compiler happy.
426 } 426 }
427 427
428 428
429 void Symbol::SymbolPrint(OStream& os) { // NOLINT 429 void Symbol::SymbolPrint(OStream& os) { // NOLINT
430 HeapObject::PrintHeader(os, "Symbol"); 430 HeapObject::PrintHeader(os, "Symbol");
431 os << " - hash: " << Hash(); 431 os << " - hash: " << Hash();
432 os << "\n - name: " << Brief(name()); 432 os << "\n - name: " << Brief(name());
433 os << " - private: " << is_private(); 433 os << "\n - private: " << is_private();
434 os << "\n - own: " << is_own();
434 os << "\n"; 435 os << "\n";
435 } 436 }
436 437
437 438
438 void Map::MapPrint(OStream& os) { // NOLINT 439 void Map::MapPrint(OStream& os) { // NOLINT
439 HeapObject::PrintHeader(os, "Map"); 440 HeapObject::PrintHeader(os, "Map");
440 os << " - type: " << TypeToString(instance_type()) << "\n"; 441 os << " - type: " << TypeToString(instance_type()) << "\n";
441 os << " - instance size: " << instance_size() << "\n"; 442 os << " - instance size: " << instance_size() << "\n";
442 os << " - inobject properties: " << inobject_properties() << "\n"; 443 os << " - inobject properties: " << inobject_properties() << "\n";
443 os << " - elements kind: " << ElementsKindToString(elements_kind()); 444 os << " - elements kind: " << ElementsKindToString(elements_kind());
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1112 } 1113 }
1113 } 1114 }
1114 os << "\n"; 1115 os << "\n";
1115 } 1116 }
1116 1117
1117 1118
1118 #endif // OBJECT_PRINT 1119 #endif // OBJECT_PRINT
1119 1120
1120 1121
1121 } } // namespace v8::internal 1122 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698