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

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

Issue 19678023: ES6: Implement WeakSet (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Reitveld is acting up 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/objects-visiting.h » ('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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 break; 176 break;
177 case JS_PROXY_TYPE: 177 case JS_PROXY_TYPE:
178 JSProxy::cast(this)->JSProxyPrint(out); 178 JSProxy::cast(this)->JSProxyPrint(out);
179 break; 179 break;
180 case JS_FUNCTION_PROXY_TYPE: 180 case JS_FUNCTION_PROXY_TYPE:
181 JSFunctionProxy::cast(this)->JSFunctionProxyPrint(out); 181 JSFunctionProxy::cast(this)->JSFunctionProxyPrint(out);
182 break; 182 break;
183 case JS_WEAK_MAP_TYPE: 183 case JS_WEAK_MAP_TYPE:
184 JSWeakMap::cast(this)->JSWeakMapPrint(out); 184 JSWeakMap::cast(this)->JSWeakMapPrint(out);
185 break; 185 break;
186 case JS_WEAK_SET_TYPE:
187 JSWeakSet::cast(this)->JSWeakSetPrint(out);
188 break;
186 case FOREIGN_TYPE: 189 case FOREIGN_TYPE:
187 Foreign::cast(this)->ForeignPrint(out); 190 Foreign::cast(this)->ForeignPrint(out);
188 break; 191 break;
189 case SHARED_FUNCTION_INFO_TYPE: 192 case SHARED_FUNCTION_INFO_TYPE:
190 SharedFunctionInfo::cast(this)->SharedFunctionInfoPrint(out); 193 SharedFunctionInfo::cast(this)->SharedFunctionInfoPrint(out);
191 break; 194 break;
192 case JS_MESSAGE_OBJECT_TYPE: 195 case JS_MESSAGE_OBJECT_TYPE:
193 JSMessageObject::cast(this)->JSMessageObjectPrint(out); 196 JSMessageObject::cast(this)->JSMessageObjectPrint(out);
194 break; 197 break;
195 case CELL_TYPE: 198 case CELL_TYPE:
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 case CELL_TYPE: return "CELL"; 555 case CELL_TYPE: return "CELL";
553 case PROPERTY_CELL_TYPE: return "PROPERTY_CELL"; 556 case PROPERTY_CELL_TYPE: return "PROPERTY_CELL";
554 case SHARED_FUNCTION_INFO_TYPE: return "SHARED_FUNCTION_INFO"; 557 case SHARED_FUNCTION_INFO_TYPE: return "SHARED_FUNCTION_INFO";
555 case JS_GENERATOR_OBJECT_TYPE: return "JS_GENERATOR_OBJECT"; 558 case JS_GENERATOR_OBJECT_TYPE: return "JS_GENERATOR_OBJECT";
556 case JS_MODULE_TYPE: return "JS_MODULE"; 559 case JS_MODULE_TYPE: return "JS_MODULE";
557 case JS_FUNCTION_TYPE: return "JS_FUNCTION"; 560 case JS_FUNCTION_TYPE: return "JS_FUNCTION";
558 case CODE_TYPE: return "CODE"; 561 case CODE_TYPE: return "CODE";
559 case JS_ARRAY_TYPE: return "JS_ARRAY"; 562 case JS_ARRAY_TYPE: return "JS_ARRAY";
560 case JS_PROXY_TYPE: return "JS_PROXY"; 563 case JS_PROXY_TYPE: return "JS_PROXY";
561 case JS_WEAK_MAP_TYPE: return "JS_WEAK_MAP"; 564 case JS_WEAK_MAP_TYPE: return "JS_WEAK_MAP";
565 case JS_WEAK_SET_TYPE: return "JS_WEAK_SET";
562 case JS_REGEXP_TYPE: return "JS_REGEXP"; 566 case JS_REGEXP_TYPE: return "JS_REGEXP";
563 case JS_VALUE_TYPE: return "JS_VALUE"; 567 case JS_VALUE_TYPE: return "JS_VALUE";
564 case JS_GLOBAL_OBJECT_TYPE: return "JS_GLOBAL_OBJECT"; 568 case JS_GLOBAL_OBJECT_TYPE: return "JS_GLOBAL_OBJECT";
565 case JS_BUILTINS_OBJECT_TYPE: return "JS_BUILTINS_OBJECT"; 569 case JS_BUILTINS_OBJECT_TYPE: return "JS_BUILTINS_OBJECT";
566 case JS_GLOBAL_PROXY_TYPE: return "JS_GLOBAL_PROXY"; 570 case JS_GLOBAL_PROXY_TYPE: return "JS_GLOBAL_PROXY";
567 case JS_ARRAY_BUFFER_TYPE: return "JS_ARRAY_BUFFER"; 571 case JS_ARRAY_BUFFER_TYPE: return "JS_ARRAY_BUFFER";
568 case JS_TYPED_ARRAY_TYPE: return "JS_TYPED_ARRAY"; 572 case JS_TYPED_ARRAY_TYPE: return "JS_TYPED_ARRAY";
569 case JS_DATA_VIEW_TYPE: return "JS_DATA_VIEW"; 573 case JS_DATA_VIEW_TYPE: return "JS_DATA_VIEW";
570 case FOREIGN_TYPE: return "FOREIGN"; 574 case FOREIGN_TYPE: return "FOREIGN";
571 case JS_MESSAGE_OBJECT_TYPE: return "JS_MESSAGE_OBJECT_TYPE"; 575 case JS_MESSAGE_OBJECT_TYPE: return "JS_MESSAGE_OBJECT_TYPE";
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 821
818 void JSWeakMap::JSWeakMapPrint(FILE* out) { 822 void JSWeakMap::JSWeakMapPrint(FILE* out) {
819 HeapObject::PrintHeader(out, "JSWeakMap"); 823 HeapObject::PrintHeader(out, "JSWeakMap");
820 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); 824 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map()));
821 PrintF(out, " - table = "); 825 PrintF(out, " - table = ");
822 table()->ShortPrint(out); 826 table()->ShortPrint(out);
823 PrintF(out, "\n"); 827 PrintF(out, "\n");
824 } 828 }
825 829
826 830
831 void JSWeakMap::JSWeakSetPrint(FILE* out) {
Michael Starzinger 2013/07/22 08:34:25 Typo s/JSWeakMap/JSWeakSet/ fixed while landing.
832 HeapObject::PrintHeader(out, "JSWeakSet");
833 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map()));
834 PrintF(out, " - table = ");
835 table()->ShortPrint(out);
836 PrintF(out, "\n");
837 }
838
839
827 void JSArrayBuffer::JSArrayBufferPrint(FILE* out) { 840 void JSArrayBuffer::JSArrayBufferPrint(FILE* out) {
828 HeapObject::PrintHeader(out, "JSArrayBuffer"); 841 HeapObject::PrintHeader(out, "JSArrayBuffer");
829 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); 842 PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map()));
830 PrintF(out, " - backing_store = -0x%p\n", backing_store()); 843 PrintF(out, " - backing_store = -0x%p\n", backing_store());
831 PrintF(out, " - byte_length = "); 844 PrintF(out, " - byte_length = ");
832 byte_length()->ShortPrint(out); 845 byte_length()->ShortPrint(out);
833 PrintF(out, "\n"); 846 PrintF(out, "\n");
834 } 847 }
835 848
836 849
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 } 1279 }
1267 } 1280 }
1268 PrintF(out, "\n"); 1281 PrintF(out, "\n");
1269 } 1282 }
1270 1283
1271 1284
1272 #endif // OBJECT_PRINT 1285 #endif // OBJECT_PRINT
1273 1286
1274 1287
1275 } } // namespace v8::internal 1288 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/objects-visiting.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698