Bug 1037898 - Remove pointless and incorrectly used TypeSet constructor calls, r=jandem.

This commit is contained in:
Brian Hackett 2014-07-16 08:39:54 -08:00
parent 36dd7708d0
commit 5dfee2a699

View File

@ -3656,16 +3656,10 @@ JSScript::makeTypes(JSContext *cx)
if (!typeScript)
return false;
new(typeScript) TypeScript();
TypeSet *typeArray = typeScript->typeArray();
for (unsigned i = 0; i < count; i++)
new (&typeArray[i]) StackTypeSet();
types = typeScript;
#ifdef DEBUG
StackTypeSet *typeArray = typeScript->typeArray();
for (unsigned i = 0; i < nTypeSets(); i++) {
InferSpew(ISpewOps, "typeSet: %sT%p%s bytecode%u #%u",
InferSpewColor(&typeArray[i]), &typeArray[i], InferSpewColorReset(),