From b64765eb62ce726e13a9d6949980f34decbc7190 Mon Sep 17 00:00:00 2001 From: "jkummerow@chromium.org" Date: Thu, 10 Jan 2013 14:35:06 +0000 Subject: [PATCH] Better --trace-ic output for UnaryOpICs, matching other IC types Review URL: https://codereview.chromium.org/11826051 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13355 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/ic.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ic.cc b/src/ic.cc index ba68bebd52..5c4150bf40 100644 --- a/src/ic.cc +++ b/src/ic.cc @@ -2449,10 +2449,13 @@ RUNTIME_FUNCTION(MaybeObject*, UnaryOp_Patch) { Handle 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(*code)); } UnaryOpIC ic(isolate); ic.patch(*code);