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

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

Issue 1182303004: All private symbols are own symbols (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Fix nits Created 5 years, 6 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
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 395
396 396
397 void Symbol::SymbolPrint(std::ostream& os) { // NOLINT 397 void Symbol::SymbolPrint(std::ostream& os) { // NOLINT
398 HeapObject::PrintHeader(os, "Symbol"); 398 HeapObject::PrintHeader(os, "Symbol");
399 os << " - hash: " << Hash(); 399 os << " - hash: " << Hash();
400 os << "\n - name: " << Brief(name()); 400 os << "\n - name: " << Brief(name());
401 if (name()->IsUndefined()) { 401 if (name()->IsUndefined()) {
402 os << " (" << PrivateSymbolToName() << ")"; 402 os << " (" << PrivateSymbolToName() << ")";
403 } 403 }
404 os << "\n - private: " << is_private(); 404 os << "\n - private: " << is_private();
405 os << "\n - own: " << is_own();
406 os << "\n"; 405 os << "\n";
407 } 406 }
408 407
409 408
410 void Map::MapPrint(std::ostream& os) { // NOLINT 409 void Map::MapPrint(std::ostream& os) { // NOLINT
411 HeapObject::PrintHeader(os, "Map"); 410 HeapObject::PrintHeader(os, "Map");
412 os << " - type: " << TypeToString(instance_type()) << "\n"; 411 os << " - type: " << TypeToString(instance_type()) << "\n";
413 os << " - instance size: " << instance_size() << "\n"; 412 os << " - instance size: " << instance_size() << "\n";
414 os << " - inobject properties: " << inobject_properties() << "\n"; 413 os << " - inobject properties: " << inobject_properties() << "\n";
415 os << " - elements kind: " << ElementsKindToString(elements_kind()); 414 os << " - elements kind: " << ElementsKindToString(elements_kind());
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 } 1170 }
1172 } 1171 }
1173 1172
1174 1173
1175 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT 1174 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT
1176 TransitionArray::PrintTransitions(os, map()->raw_transitions()); 1175 TransitionArray::PrintTransitions(os, map()->raw_transitions());
1177 } 1176 }
1178 #endif // defined(DEBUG) || defined(OBJECT_PRINT) 1177 #endif // defined(DEBUG) || defined(OBJECT_PRINT)
1179 } // namespace internal 1178 } // namespace internal
1180 } // namespace v8 1179 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698