Bug 834242 - Reduce cost of exact stack rooting during property reads, r=terrence.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user