Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index 5b1f5a7ad06fed5499c751c788227c4b86b11730..7a584baef581547e33cbff8e3aa004a5c5a47c2c 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -148,6 +148,9 @@ void HeapObject::HeapObjectPrint(FILE* out) { |
case CODE_TYPE: |
Code::cast(this)->CodePrint(out); |
break; |
+ case JS_PROXY_TYPE: |
+ JSProxy::cast(this)->JSProxyPrint(out); |
+ break; |
case PROXY_TYPE: |
Proxy::cast(this)->ProxyPrint(out); |
break; |
@@ -408,6 +411,7 @@ static const char* TypeToString(InstanceType type) { |
case JS_FUNCTION_TYPE: return "JS_FUNCTION"; |
case CODE_TYPE: return "CODE"; |
case JS_ARRAY_TYPE: return "JS_ARRAY"; |
+ case JS_PROXY_TYPE: return "JS_PROXY"; |
case JS_REGEXP_TYPE: return "JS_REGEXP"; |
case JS_VALUE_TYPE: return "JS_VALUE"; |
case JS_GLOBAL_OBJECT_TYPE: return "JS_GLOBAL_OBJECT"; |
@@ -530,6 +534,15 @@ void String::StringPrint(FILE* out) { |
} |
+void JSProxy::JSProxyPrint(FILE* out) { |
+ HeapObject::PrintHeader(out, "JSProxy"); |
+ PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); |
+ PrintF(out, " - handler = "); |
+ handler()->Print(out); |
+ PrintF(out, "\n"); |
+} |
+ |
+ |
void JSFunction::JSFunctionPrint(FILE* out) { |
HeapObject::PrintHeader(out, "Function"); |
PrintF(out, " - map = 0x%p\n", reinterpret_cast<void*>(map())); |