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

Unified Diff: src/objects-printer.cc

Issue 1417063011: [runtime] support new Proxy() instead of Proxy.create and install getPrototypeOf trap (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: adding proxy trap strings Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: src/objects-printer.cc
diff --git a/src/objects-printer.cc b/src/objects-printer.cc
index a845e06f232b9f0ec18e9592b98df20a98ed9102..ace7ee4e348c424bcb1c9560fa65e32ccff8e57c 100644
--- a/src/objects-printer.cc
+++ b/src/objects-printer.cc
@@ -733,11 +733,15 @@ void JSDate::JSDatePrint(std::ostream& os) { // NOLINT
void JSProxy::JSProxyPrint(std::ostream& os) { // NOLINT
HeapObject::PrintHeader(os, "JSProxy");
- os << " - map = " << reinterpret_cast<void*>(map()) << "\n";
- os << " - handler = ";
- handler()->Print(os);
+ os << " - map = " << reinterpret_cast<void*>(map());
os << "\n - hash = ";
hash()->Print(os);
+ os << "\n\n";
+ HeapObject::PrintHeader(os, "JSProxy Handler");
+ handler()->Print(os);
+ os << "\n\n";
+ HeapObject::PrintHeader(os, "JSProxy Target");
+ target()->Print(os);
os << "\n";
}

Powered by Google App Engine
This is Rietveld 408576698