Bug 625199 - kill dummy frames (r=mrbkap)

This commit is contained in:
Luke Wagner
2012-08-17 18:05:06 -07:00
parent b72caf1526
commit 88c2971644
34 changed files with 376 additions and 633 deletions

View File

@@ -282,15 +282,14 @@ AtomizeInline(JSContext *cx, const jschar **pchars, size_t length,
return atom;
}
SwitchToCompartment sc(cx, cx->runtime->atomsCompartment);
JSFixedString *key;
AutoEnterAtomsCompartment ac(cx);
SkipRoot skip(cx, &chars);
/* Workaround for hash values in AddPtr being inadvertently poisoned. */
SkipRoot skip2(cx, &p);
JSFixedString *key;
if (ocb == TakeCharOwnership) {
key = js_NewString(cx, const_cast<jschar *>(chars), length);
if (!key)