[INFER] Don't add stale unsynced entries to inline frame info, bug 647973.

This commit is contained in:
Brian Hackett 2011-04-06 12:24:17 -07:00
parent 32fcec93dd
commit 40cc39a621
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,11 @@
function f(a1, a2, a3, a4) {
}
function g(a1, a2) {
var d = new Date(0);
f();
assertEq(typeof d, 'object');
}
g();
gc();
f(2, 2, 2, f(2, 2, 2, 12 === 12));
g(false, false);

View File

@ -79,6 +79,8 @@ FrameState::getUnsyncedEntries(uint32 *pdepth, Vector<UnsyncedEntry> *unsyncedEn
/* Mark all unsynced entries in the frame. */
for (uint32 i = 0; i < a->tracker.nentries; i++) {
FrameEntry *fe = a->tracker[i];
if (fe >= sp)
continue;
if (fe->type.synced() && fe->data.synced())
continue;
if (fe->inlined)