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