mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-07 20:50:56 +00:00
speed optimisation: assuming that a tempreg not related to %esp before
is PUTed into %ESP, we do *know* that this tempreg points to %ESP afterwards, so track it. reduces the amount of expensive "DO_GENERIC" calls by 75% in Khtml. I've not observed a problem with it, but consider it experimental. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1878
This commit is contained in:
parent
e762570dbb
commit
959360f151
@ -1855,6 +1855,9 @@ UCodeBlock* vg_ESP_update_pass(UCodeBlock* cb_in)
|
||||
} else {
|
||||
/* Unknown delta */
|
||||
DO_GENERIC;
|
||||
/* now we know the temp that points to %ESP */
|
||||
if ( t_ESP == INVALID_TEMPREG )
|
||||
t_ESP = u->val1;
|
||||
}
|
||||
delta = 0;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user