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/objects.h" | 5 #include "src/objects.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/interpreter/bytecodes.h" | 9 #include "src/interpreter/bytecodes.h" |
10 #include "src/objects-inl.h" | 10 #include "src/objects-inl.h" |
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
988 os << "\n - value: " << Brief(value()); | 988 os << "\n - value: " << Brief(value()); |
989 os << "\n"; | 989 os << "\n"; |
990 } | 990 } |
991 | 991 |
992 | 992 |
993 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT | 993 void PrototypeInfo::PrototypeInfoPrint(std::ostream& os) { // NOLINT |
994 HeapObject::PrintHeader(os, "PrototypeInfo"); | 994 HeapObject::PrintHeader(os, "PrototypeInfo"); |
995 os << "\n - prototype users: " << Brief(prototype_users()); | 995 os << "\n - prototype users: " << Brief(prototype_users()); |
996 os << "\n - registry slot: " << registry_slot(); | 996 os << "\n - registry slot: " << registry_slot(); |
997 os << "\n - validity cell: " << Brief(validity_cell()); | 997 os << "\n - validity cell: " << Brief(validity_cell()); |
998 os << "\n - constructor name: " << Brief(constructor_name()); | |
999 os << "\n"; | 998 os << "\n"; |
1000 } | 999 } |
1001 | 1000 |
1002 | 1001 |
1003 void SloppyBlockWithEvalContextExtension:: | 1002 void SloppyBlockWithEvalContextExtension:: |
1004 SloppyBlockWithEvalContextExtensionPrint(std::ostream& os) { // NOLINT | 1003 SloppyBlockWithEvalContextExtensionPrint(std::ostream& os) { // NOLINT |
1005 HeapObject::PrintHeader(os, "SloppyBlockWithEvalContextExtension"); | 1004 HeapObject::PrintHeader(os, "SloppyBlockWithEvalContextExtension"); |
1006 os << "\n - scope_info: " << Brief(scope_info()); | 1005 os << "\n - scope_info: " << Brief(scope_info()); |
1007 os << "\n - extension: " << Brief(extension()); | 1006 os << "\n - extension: " << Brief(extension()); |
1008 os << "\n"; | 1007 os << "\n"; |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1331 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1330 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1332 Object* transitions = map()->raw_transitions(); | 1331 Object* transitions = map()->raw_transitions(); |
1333 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1332 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1334 if (num_transitions == 0) return; | 1333 if (num_transitions == 0) return; |
1335 os << "\n - transitions"; | 1334 os << "\n - transitions"; |
1336 TransitionArray::PrintTransitions(os, transitions, false); | 1335 TransitionArray::PrintTransitions(os, transitions, false); |
1337 } | 1336 } |
1338 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1337 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1339 } // namespace internal | 1338 } // namespace internal |
1340 } // namespace v8 | 1339 } // namespace v8 |
OLD | NEW |