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
parent 0ac84d78
......@@ -2449,10 +2449,13 @@ RUNTIME_FUNCTION(MaybeObject*, UnaryOp_Patch) {
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment