Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: src/objects-printer.cc

Issue 20680002: Rebase of partial ia32 implementation of optimized try/catch (started by Kevin Millikin, continued … (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix detection of CATCH frames (fixes debuger exception reporting anf breaks another assertion...). Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects-inl.h ('k') | src/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 day()->IsSmi() ? Smi::cast(day())->value() : -1, 775 day()->IsSmi() ? Smi::cast(day())->value() : -1,
776 hour()->IsSmi() ? Smi::cast(hour())->value() : -1, 776 hour()->IsSmi() ? Smi::cast(hour())->value() : -1,
777 min()->IsSmi() ? Smi::cast(min())->value() : -1, 777 min()->IsSmi() ? Smi::cast(min())->value() : -1,
778 sec()->IsSmi() ? Smi::cast(sec())->value() : -1); 778 sec()->IsSmi() ? Smi::cast(sec())->value() : -1);
779 } 779 }
780 } 780 }
781 781
782 782
783 void JSProxy::JSProxyPrint(FILE* out) { 783 void JSProxy::JSProxyPrint(FILE* out) {
784 HeapObject::PrintHeader(out, "JSProxy"); 784 HeapObject::PrintHeader(out, "JSProxy");
785 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); 785 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map()));
786 PrintF(out, " - handler = "); 786 PrintF(out, " - handler = ");
787 handler()->Print(out); 787 handler()->Print(out);
788 PrintF(out, " - hash = "); 788 PrintF(out, " - hash = ");
789 hash()->Print(out); 789 hash()->Print(out);
790 PrintF(out, "\n"); 790 PrintF(out, "\n");
791 } 791 }
792 792
793 793
794 void JSFunctionProxy::JSFunctionProxyPrint(FILE* out) { 794 void JSFunctionProxy::JSFunctionProxyPrint(FILE* out) {
795 HeapObject::PrintHeader(out, "JSFunctionProxy"); 795 HeapObject::PrintHeader(out, "JSFunctionProxy");
796 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); 796 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map()));
797 PrintF(out, " - handler = "); 797 PrintF(out, " - handler = ");
798 handler()->Print(out); 798 handler()->Print(out);
799 PrintF(out, " - call_trap = "); 799 PrintF(out, " - call_trap = ");
800 call_trap()->Print(out); 800 call_trap()->Print(out);
801 PrintF(out, " - construct_trap = "); 801 PrintF(out, " - construct_trap = ");
802 construct_trap()->Print(out); 802 construct_trap()->Print(out);
803 PrintF(out, "\n"); 803 PrintF(out, "\n");
804 } 804 }
805 805
806 806
807 void JSWeakMap::JSWeakMapPrint(FILE* out) { 807 void JSWeakMap::JSWeakMapPrint(FILE* out) {
808 HeapObject::PrintHeader(out, "JSWeakMap"); 808 HeapObject::PrintHeader(out, "JSWeakMap");
809 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); 809 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map()));
810 PrintF(out, " - table = "); 810 PrintF(out, " - table = ");
811 table()->ShortPrint(out); 811 table()->ShortPrint(out);
812 PrintF(out, "\n"); 812 PrintF(out, "\n");
813 } 813 }
814 814
815 815
816 void JSArrayBuffer::JSArrayBufferPrint(FILE* out) { 816 void JSArrayBuffer::JSArrayBufferPrint(FILE* out) {
817 HeapObject::PrintHeader(out, "JSArrayBuffer"); 817 HeapObject::PrintHeader(out, "JSArrayBuffer");
818 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); 818 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map()));
819 PrintF(out, " - backing_store = -0x%p\n", backing_store()); 819 PrintF(out, " - backing_store = -0x%p\n", backing_store());
(...skipping 27 matching lines...) Expand all
847 PrintF(out, "\n - byte_offset = "); 847 PrintF(out, "\n - byte_offset = ");
848 byte_offset()->ShortPrint(out); 848 byte_offset()->ShortPrint(out);
849 PrintF(out, "\n - byte_length = "); 849 PrintF(out, "\n - byte_length = ");
850 byte_length()->ShortPrint(out); 850 byte_length()->ShortPrint(out);
851 PrintF("\n"); 851 PrintF("\n");
852 } 852 }
853 853
854 854
855 void JSFunction::JSFunctionPrint(FILE* out) { 855 void JSFunction::JSFunctionPrint(FILE* out) {
856 HeapObject::PrintHeader(out, "Function"); 856 HeapObject::PrintHeader(out, "Function");
857 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); 857 PrintF(out, " - map = %p\n", reinterpret_cast<void*>(map()));
858 PrintF(out, " - initial_map = "); 858 PrintF(out, " - initial_map = ");
859 if (has_initial_map()) { 859 if (has_initial_map()) {
860 initial_map()->ShortPrint(out); 860 initial_map()->ShortPrint(out);
861 } 861 }
862 PrintF(out, "\n - shared_info = "); 862 PrintF(out, "\n - shared_info = ");
863 shared()->ShortPrint(out); 863 shared()->ShortPrint(out);
864 PrintF(out, "\n - name = "); 864 PrintF(out, "\n - name = ");
865 shared()->name()->Print(out); 865 shared()->name()->Print(out);
866 PrintF(out, "\n - context = "); 866 PrintF(out, "\n - context = ");
867 unchecked_context()->ShortPrint(out); 867 unchecked_context()->ShortPrint(out);
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1240 } 1240 }
1241 } 1241 }
1242 PrintF(out, "\n"); 1242 PrintF(out, "\n");
1243 } 1243 }
1244 1244
1245 1245
1246 #endif // OBJECT_PRINT 1246 #endif // OBJECT_PRINT
1247 1247
1248 1248
1249 } } // namespace v8::internal 1249 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698