OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |