Reviewers: Sven Panne,
Message:
PTAL.
Description:
Better --trace-ic output for UnaryOpICs, matching other IC types
Please review this at https://codereview.chromium.org/11826051/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/ic.cc
Index: src/ic.cc
diff --git a/src/ic.cc b/src/ic.cc
index
ba68bebd52ccec17b17b70767b374ed84b69d530..5c4150bf40208868635dedac205e17743b186ef6
100644
--- a/src/ic.cc
+++ b/src/ic.cc
@@ -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);
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev