Bug 834242 - Reduce cost of exact stack rooting during property reads, r=terrence.

This commit is contained in:
Brian Hackett
2013-01-24 20:18:34 -07:00
parent cf0419ceff
commit 73cd1677ca
59 changed files with 678 additions and 402 deletions

View File

@@ -138,7 +138,7 @@ frontend::CompileScript(JSContext *cx, HandleObject scopeChain, AbstractFramePtr
* Save eval program source in script->atoms[0] for the
* eval cache (see EvalCacheLookup in jsobj.cpp).
*/
JSAtom *atom = AtomizeString(cx, source);
JSAtom *atom = AtomizeString<CanGC>(cx, source);
jsatomid _;
if (!atom || !bce.makeAtomIndex(atom, &_))
return UnrootedScript(NULL);