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; ++ frameIndex;
} }
fprintf(stderr, "%d %d\n", popIndex
stackBefore ? stackBefore->index + 1 - stackArgumentFootprint : 0, = c->alignedFrameSize
c->localFootprint); + c->parameterFootprint
- (stackBefore ? stackBefore->index + 1 - stackArgumentFootprint : 0)
- c->localFootprint;
popIndex = ::frameIndex assert(c, static_cast<int>(popIndex) >= 0);
(c, (stackBefore ? stackBefore->index - stackArgumentFootprint : 0)
+ c->localFootprint);
saveLocals(c, this); saveLocals(c, this);
} }