Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(644)

Unified Diff: src/ic/ic.cc

Issue 2046943003: [ic] print map pointer value for --trace-ic (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/ic-explorer.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ic/ic.cc
diff --git a/src/ic/ic.cc b/src/ic/ic.cc
index a4785d938541a9eb2ec3a934cc8102385d3f8ef8..fd702f960e2966399cb8ba1516fde8b21c6e203b 100644
--- a/src/ic/ic.cc
+++ b/src/ic/ic.cc
@@ -126,8 +126,12 @@ void IC::TraceIC(const char* type, Handle<Object> name, State old_state,
casted_nexus<KeyedStoreICNexus>()->GetKeyedAccessStoreMode();
modifier = GetTransitionMarkModifier(mode);
}
- PrintF(" (%c->%c%s) ", TransitionMarkFromState(old_state),
- TransitionMarkFromState(new_state), modifier);
+ void* map = nullptr;
+ if (!receiver_map().is_null()) {
+ map = reinterpret_cast<void*>(*receiver_map());
+ }
+ PrintF(" (%c->%c%s) map=%p ", TransitionMarkFromState(old_state),
+ TransitionMarkFromState(new_state), modifier, map);
#ifdef OBJECT_PRINT
OFStream os(stdout);
name->Print(os);
« no previous file with comments | « no previous file | tools/ic-explorer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698