Bug 788096 (part 1) - Change CGObjectList to use a vector and remove ObjectBox::emitLink. r=jorendorff.

This commit is contained in:
Nicholas Nethercote
2012-09-05 18:11:06 -07:00
parent 1192609dac
commit 7fd01ebf45
6 changed files with 40 additions and 48 deletions

View File

@@ -152,9 +152,8 @@ frontend::CompileScript(JSContext *cx, HandleObject scopeChain, StackFrame *call
ObjectBox *funbox = parser.newObjectBox(callerFrame->fun());
if (!funbox)
return NULL;
funbox->emitLink = bce.objectList.lastbox;
bce.objectList.lastbox = funbox;
bce.objectList.length++;
if (!bce.objectList.append(funbox))
return NULL;
}
}