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
This commit is contained in:
parent
0ac84d782f
commit
b64765eb62
@ -2449,10 +2449,13 @@ RUNTIME_FUNCTION(MaybeObject*, UnaryOp_Patch) {
|
|||||||
Handle<Code> code = stub.GetCode();
|
Handle<Code> code = stub.GetCode();
|
||||||
if (!code.is_null()) {
|
if (!code.is_null()) {
|
||||||
if (FLAG_trace_ic) {
|
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(previous_type),
|
||||||
UnaryOpIC::GetName(type),
|
UnaryOpIC::GetName(type),
|
||||||
Token::Name(op));
|
Token::Name(op),
|
||||||
|
static_cast<void*>(*code));
|
||||||
}
|
}
|
||||||
UnaryOpIC ic(isolate);
|
UnaryOpIC ic(isolate);
|
||||||
ic.patch(*code);
|
ic.patch(*code);
|
||||||
|
Loading…
Reference in New Issue
Block a user