Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index 19524e21d23f2f5ee06ebac044deee41f3a36e4f..387894f93ace56a7b4ad1414ef282ed98f842360 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -183,6 +183,9 @@ void HeapObject::HeapObjectPrint(FILE* out) { |
case JS_WEAK_MAP_TYPE: |
JSWeakMap::cast(this)->JSWeakMapPrint(out); |
break; |
+ case JS_WEAK_SET_TYPE: |
+ JSWeakSet::cast(this)->JSWeakSetPrint(out); |
+ break; |
case FOREIGN_TYPE: |
Foreign::cast(this)->ForeignPrint(out); |
break; |
@@ -559,6 +562,7 @@ static const char* TypeToString(InstanceType type) { |
case JS_ARRAY_TYPE: return "JS_ARRAY"; |
case JS_PROXY_TYPE: return "JS_PROXY"; |
case JS_WEAK_MAP_TYPE: return "JS_WEAK_MAP"; |
+ case JS_WEAK_SET_TYPE: return "JS_WEAK_SET"; |
case JS_REGEXP_TYPE: return "JS_REGEXP"; |
case JS_VALUE_TYPE: return "JS_VALUE"; |
case JS_GLOBAL_OBJECT_TYPE: return "JS_GLOBAL_OBJECT"; |
@@ -824,6 +828,15 @@ void JSWeakMap::JSWeakMapPrint(FILE* out) { |
} |
+void JSWeakMap::JSWeakSetPrint(FILE* out) { |
Michael Starzinger
2013/07/22 08:34:25
Typo s/JSWeakMap/JSWeakSet/ fixed while landing.
|
+ HeapObject::PrintHeader(out, "JSWeakSet"); |
+ PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); |
+ PrintF(out, " - table = "); |
+ table()->ShortPrint(out); |
+ PrintF(out, "\n"); |
+} |
+ |
+ |
void JSArrayBuffer::JSArrayBufferPrint(FILE* out) { |
HeapObject::PrintHeader(out, "JSArrayBuffer"); |
PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); |