Remove Root<T>, bug 756823. r=billm

This commit is contained in:
Brian Hackett
2012-05-24 08:52:21 -07:00
parent d113dec94b
commit fe67e3c2f1
37 changed files with 596 additions and 473 deletions

View File

@@ -22,12 +22,12 @@ using namespace js;
using namespace js::frontend;
bool
MarkInnerAndOuterFunctions(JSContext *cx, JSScript* script)
MarkInnerAndOuterFunctions(JSContext *cx, JSScript* script_)
{
Root<JSScript*> root(cx, &script);
RootedVar<JSScript*> script(cx, script_);
Vector<JSScript *, 16> worklist(cx);
if (!worklist.append(script))
if (!worklist.append(script.reference()))
return false;
while (worklist.length()) {