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"; | 985 os << "\n"; |
986 } | 986 } |
987 | 987 |
988 | 988 |
989 void AccessorInfo::AccessorInfoPrint(std::ostream& os) { // NOLINT | 989 void AccessorInfo::AccessorInfoPrint(std::ostream& os) { // NOLINT |
990 HeapObject::PrintHeader(os, "AccessorInfo"); | 990 HeapObject::PrintHeader(os, "AccessorInfo"); |
991 os << "\n - name: " << Brief(name()); | 991 os << "\n - name: " << Brief(name()); |
992 os << "\n - flag: " << flag(); | 992 os << "\n - flag: " << flag(); |
993 os << "\n - getter: " << Brief(getter()); | 993 os << "\n - getter: " << Brief(getter()); |
994 os << "\n - setter: " << Brief(setter()); | 994 os << "\n - setter: " << Brief(setter()); |
995 os << "\n - js_getter: " << Brief(js_getter()); | |
996 os << "\n - data: " << Brief(data()); | 995 os << "\n - data: " << Brief(data()); |
997 os << "\n"; | 996 os << "\n"; |
998 } | 997 } |
999 | 998 |
1000 | 999 |
1001 void Box::BoxPrint(std::ostream& os) { // NOLINT | 1000 void Box::BoxPrint(std::ostream& os) { // NOLINT |
1002 HeapObject::PrintHeader(os, "Box"); | 1001 HeapObject::PrintHeader(os, "Box"); |
1003 os << "\n - value: " << Brief(value()); | 1002 os << "\n - value: " << Brief(value()); |
1004 os << "\n"; | 1003 os << "\n"; |
1005 } | 1004 } |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1340 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1342 Object* transitions = map()->raw_transitions(); | 1341 Object* transitions = map()->raw_transitions(); |
1343 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1342 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1344 if (num_transitions == 0) return; | 1343 if (num_transitions == 0) return; |
1345 os << "\n - transitions"; | 1344 os << "\n - transitions"; |
1346 TransitionArray::PrintTransitions(os, transitions, false); | 1345 TransitionArray::PrintTransitions(os, transitions, false); |
1347 } | 1346 } |
1348 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1347 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1349 } // namespace internal | 1348 } // namespace internal |
1350 } // namespace v8 | 1349 } // namespace v8 |
OLD | NEW |