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