Augment trace-ic to provide information on patching inlined loads.
Review URL: http://codereview.chromium.org/2818023 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4915 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
2bd8d3323b
commit
7287aff403
22
src/ic.cc
22
src/ic.cc
@ -734,6 +734,28 @@ Object* LoadIC::Load(State state, Handle<Object> object, Handle<String> name) {
|
||||
if (PatchInlinedLoad(address(), map, offset)) {
|
||||
set_target(megamorphic_stub());
|
||||
return lookup.holder()->FastPropertyAt(lookup.GetFieldIndex());
|
||||
#ifdef DEBUG
|
||||
if (FLAG_trace_ic) {
|
||||
PrintF("[LoadIC : inline patch %s]\n", *name->ToCString());
|
||||
}
|
||||
} else {
|
||||
if (FLAG_trace_ic) {
|
||||
PrintF("[LoadIC : no inline patch %s (patching failed)]\n",
|
||||
*name->ToCString());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (FLAG_trace_ic) {
|
||||
PrintF("[LoadIC : no inline patch %s (not inobject)]\n",
|
||||
*name->ToCString());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (FLAG_use_ic && state == PREMONOMORPHIC) {
|
||||
if (FLAG_trace_ic) {
|
||||
PrintF("[LoadIC : no inline patch %s (not inlinable)]\n",
|
||||
*name->ToCString());
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user