fix popIndex calculation in CallEvent ctor

This commit is contained in:
Joel Dice 2009-01-31 12:35:45 -07:00
parent 8b6319fbc8
commit 11408dc2cd

View File

@ -2189,13 +2189,13 @@ class CallEvent: public Event {
++ frameIndex;
}
fprintf(stderr, "%d %d\n",
stackBefore ? stackBefore->index + 1 - stackArgumentFootprint : 0,
c->localFootprint);
popIndex
= c->alignedFrameSize
+ c->parameterFootprint
- (stackBefore ? stackBefore->index + 1 - stackArgumentFootprint : 0)
- c->localFootprint;
popIndex = ::frameIndex
(c, (stackBefore ? stackBefore->index - stackArgumentFootprint : 0)
+ c->localFootprint);
assert(c, static_cast<int>(popIndex) >= 0);
saveLocals(c, this);
}