Bug 511938 - Fix up recently-invalidated assertion, r=dvander.

This commit is contained in:
Graydon Hoare 2009-09-09 11:36:24 -07:00
parent daf1fa4dbe
commit c49ca202b2

View File

@ -5641,6 +5641,9 @@ ExecuteTree(JSContext* cx, Fragment* f, uintN& inlineCallCount,
rec = u.func(state, NULL);
#endif
}
JS_ASSERT(*(uint64*)&global[globalFrameSize] == 0xdeadbeefdeadbeefLL);
VMSideExit* lr = (VMSideExit*)rec->exit;
AUDIT(traceTriggered);
@ -5944,9 +5947,6 @@ LeaveTree(InterpState& state, VMSideExit* lr)
double* global = (double*)(&state + 1);
FlushNativeGlobalFrame(cx, global,
ngslots, gslots, globalTypeMap);
JS_ASSERT(*(uint64*)&global[STOBJ_NSLOTS(JS_GetGlobalForObject(cx, cx->fp->scopeChain))] ==
0xdeadbeefdeadbeefLL);
#ifdef DEBUG
/* Verify that our state restoration worked. */
for (JSStackFrame* fp = cx->fp; fp; fp = fp->down) {