| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 day()->IsSmi() ? Smi::cast(day())->value() : -1, | 719 day()->IsSmi() ? Smi::cast(day())->value() : -1, |
| 720 hour()->IsSmi() ? Smi::cast(hour())->value() : -1, | 720 hour()->IsSmi() ? Smi::cast(hour())->value() : -1, |
| 721 min()->IsSmi() ? Smi::cast(min())->value() : -1, | 721 min()->IsSmi() ? Smi::cast(min())->value() : -1, |
| 722 sec()->IsSmi() ? Smi::cast(sec())->value() : -1); | 722 sec()->IsSmi() ? Smi::cast(sec())->value() : -1); |
| 723 } | 723 } |
| 724 } | 724 } |
| 725 | 725 |
| 726 | 726 |
| 727 void JSProxy::JSProxyPrint(FILE* out) { | 727 void JSProxy::JSProxyPrint(FILE* out) { |
| 728 HeapObject::PrintHeader(out, "JSProxy"); | 728 HeapObject::PrintHeader(out, "JSProxy"); |
| 729 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); | 729 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); |
| 730 PrintF(out, " - handler = "); | 730 PrintF(out, " - handler = "); |
| 731 handler()->Print(out); | 731 handler()->Print(out); |
| 732 PrintF(out, " - hash = "); | 732 PrintF(out, " - hash = "); |
| 733 hash()->Print(out); | 733 hash()->Print(out); |
| 734 PrintF(out, "\n"); | 734 PrintF(out, "\n"); |
| 735 } | 735 } |
| 736 | 736 |
| 737 | 737 |
| 738 void JSFunctionProxy::JSFunctionProxyPrint(FILE* out) { | 738 void JSFunctionProxy::JSFunctionProxyPrint(FILE* out) { |
| 739 HeapObject::PrintHeader(out, "JSFunctionProxy"); | 739 HeapObject::PrintHeader(out, "JSFunctionProxy"); |
| 740 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); | 740 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); |
| 741 PrintF(out, " - handler = "); | 741 PrintF(out, " - handler = "); |
| 742 handler()->Print(out); | 742 handler()->Print(out); |
| 743 PrintF(out, " - call_trap = "); | 743 PrintF(out, " - call_trap = "); |
| 744 call_trap()->Print(out); | 744 call_trap()->Print(out); |
| 745 PrintF(out, " - construct_trap = "); | 745 PrintF(out, " - construct_trap = "); |
| 746 construct_trap()->Print(out); | 746 construct_trap()->Print(out); |
| 747 PrintF(out, "\n"); | 747 PrintF(out, "\n"); |
| 748 } | 748 } |
| 749 | 749 |
| 750 | 750 |
| 751 void JSWeakMap::JSWeakMapPrint(FILE* out) { | 751 void JSWeakMap::JSWeakMapPrint(FILE* out) { |
| 752 HeapObject::PrintHeader(out, "JSWeakMap"); | 752 HeapObject::PrintHeader(out, "JSWeakMap"); |
| 753 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); | 753 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); |
| 754 PrintF(out, " - table = "); | 754 PrintF(out, " - table = "); |
| 755 table()->ShortPrint(out); | 755 table()->ShortPrint(out); |
| 756 PrintF(out, "\n"); | 756 PrintF(out, "\n"); |
| 757 } | 757 } |
| 758 | 758 |
| 759 | 759 |
| 760 void JSFunction::JSFunctionPrint(FILE* out) { | 760 void JSFunction::JSFunctionPrint(FILE* out) { |
| 761 HeapObject::PrintHeader(out, "Function"); | 761 HeapObject::PrintHeader(out, "Function"); |
| 762 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); | 762 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map())); |
| 763 PrintF(out, " - initial_map = "); | 763 PrintF(out, " - initial_map = "); |
| 764 if (has_initial_map()) { | 764 if (has_initial_map()) { |
| 765 initial_map()->ShortPrint(out); | 765 initial_map()->ShortPrint(out); |
| 766 } | 766 } |
| 767 PrintF(out, "\n - shared_info = "); | 767 PrintF(out, "\n - shared_info = "); |
| 768 shared()->ShortPrint(out); | 768 shared()->ShortPrint(out); |
| 769 PrintF(out, "\n - name = "); | 769 PrintF(out, "\n - name = "); |
| 770 shared()->name()->Print(out); | 770 shared()->name()->Print(out); |
| 771 PrintF(out, "\n - context = "); | 771 PrintF(out, "\n - context = "); |
| 772 unchecked_context()->ShortPrint(out); | 772 unchecked_context()->ShortPrint(out); |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1090 } | 1090 } |
| 1091 } | 1091 } |
| 1092 PrintF(out, "\n"); | 1092 PrintF(out, "\n"); |
| 1093 } | 1093 } |
| 1094 | 1094 |
| 1095 | 1095 |
| 1096 #endif // OBJECT_PRINT | 1096 #endif // OBJECT_PRINT |
| 1097 | 1097 |
| 1098 | 1098 |
| 1099 } } // namespace v8::internal | 1099 } } // namespace v8::internal |
| OLD | NEW |