Bug 996518 - Add an extra assert in TypePolicy of MTypeBarrier, r=jandem

This commit is contained in:
Hannes Verschore 2014-04-17 12:26:13 +02:00
parent f6274fcf70
commit 84ffc01d28

View File

@ -295,6 +295,7 @@ TypeBarrierPolicy::adjustInputs(TempAllocator &alloc, MInstruction *def)
// We can't unbox a value to null/undefined. So keep output also a value.
if (IsNullOrUndefined(outputType) || outputType == MIRType_Magic) {
JS_ASSERT(ins->defUseCount() == 0);
ins->setResultType(MIRType_Value);
return true;
}