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 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 min()->IsSmi() ? Smi::cast(min())->value() : -1, | 726 min()->IsSmi() ? Smi::cast(min())->value() : -1, |
727 sec()->IsSmi() ? Smi::cast(sec())->value() : -1); | 727 sec()->IsSmi() ? Smi::cast(sec())->value() : -1); |
728 os << buf.start(); | 728 os << buf.start(); |
729 } | 729 } |
730 JSObjectPrintBody(os, this); | 730 JSObjectPrintBody(os, this); |
731 } | 731 } |
732 | 732 |
733 | 733 |
734 void JSProxy::JSProxyPrint(std::ostream& os) { // NOLINT | 734 void JSProxy::JSProxyPrint(std::ostream& os) { // NOLINT |
735 HeapObject::PrintHeader(os, "JSProxy"); | 735 HeapObject::PrintHeader(os, "JSProxy"); |
736 os << " - map = " << reinterpret_cast<void*>(map()) << "\n"; | 736 os << " - map = " << reinterpret_cast<void*>(map()); |
737 os << " - handler = "; | 737 os << "\n - target = "; |
738 handler()->Print(os); | 738 target()->ShortPrint(os); |
| 739 os << "\n - handler = "; |
| 740 handler()->ShortPrint(os); |
739 os << "\n - hash = "; | 741 os << "\n - hash = "; |
740 hash()->Print(os); | 742 hash()->ShortPrint(os); |
741 os << "\n"; | 743 os << "\n"; |
742 } | 744 } |
743 | 745 |
744 | 746 |
745 void JSFunctionProxy::JSFunctionProxyPrint(std::ostream& os) { // NOLINT | 747 void JSFunctionProxy::JSFunctionProxyPrint(std::ostream& os) { // NOLINT |
746 HeapObject::PrintHeader(os, "JSFunctionProxy"); | 748 HeapObject::PrintHeader(os, "JSFunctionProxy"); |
747 os << " - map = " << reinterpret_cast<void*>(map()) << "\n"; | 749 os << " - map = " << reinterpret_cast<void*>(map()) << "\n"; |
748 os << " - handler = "; | 750 os << " - handler = "; |
749 handler()->Print(os); | 751 handler()->Print(os); |
750 os << "\n - call_trap = "; | 752 os << "\n - call_trap = "; |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1328 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1330 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1329 Object* transitions = map()->raw_transitions(); | 1331 Object* transitions = map()->raw_transitions(); |
1330 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1332 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1331 if (num_transitions == 0) return; | 1333 if (num_transitions == 0) return; |
1332 os << "\n - transitions"; | 1334 os << "\n - transitions"; |
1333 TransitionArray::PrintTransitions(os, transitions, false); | 1335 TransitionArray::PrintTransitions(os, transitions, false); |
1334 } | 1336 } |
1335 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1337 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1336 } // namespace internal | 1338 } // namespace internal |
1337 } // namespace v8 | 1339 } // namespace v8 |
OLD | NEW |