We expect no interned globals in a new tree. Assert on that.

This commit is contained in:
Andreas Gal 2008-08-07 15:44:11 -07:00
parent 7351e39b63
commit 01e3af1f79

View File

@ -1495,6 +1495,9 @@ js_RecordTree(JSContext* cx, JSTraceMonitor* tm, Fragment* f)
/* ensure the stack type map has the right length */
ti->stackTypeMap.setLength(ti->entryNativeStackSlots);
/* we shouldn't have any interned globals for a new tree */
JS_ASSERT(!ti->globalSlots.length());
/* update the coerced type of each active slot in the stack type map */
uint8* map = ti->stackTypeMap.data();
uint8* m = map;