Revision: 13355
Author:   [email protected]
Date:     Thu Jan 10 06:35:06 2013
Log:      Better --trace-ic output for UnaryOpICs, matching other IC types

Review URL: https://codereview.chromium.org/11826051
http://code.google.com/p/v8/source/detail?r=13355

Modified:
 /branches/bleeding_edge/src/ic.cc

=======================================
--- /branches/bleeding_edge/src/ic.cc   Thu Jan 10 06:15:12 2013
+++ /branches/bleeding_edge/src/ic.cc   Thu Jan 10 06:35:06 2013
@@ -2449,10 +2449,13 @@
   Handle<Code> code = stub.GetCode();
   if (!code.is_null()) {
     if (FLAG_trace_ic) {
-      PrintF("[UnaryOpIC (%s->%s)#%s]\n",
+      PrintF("[UnaryOpIC in ");
+      JavaScriptFrame::PrintTop(stdout, false, true);
+      PrintF(" (%s->%s)#%s @ %p]\n",
              UnaryOpIC::GetName(previous_type),
              UnaryOpIC::GetName(type),
-             Token::Name(op));
+             Token::Name(op),
+             static_cast<void*>(*code));
     }
     UnaryOpIC ic(isolate);
     ic.patch(*code);

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to