Bug 1258349 - Remove a bogus assert. r=efaust

This commit is contained in:
Jan de Mooij 2016-03-24 15:25:41 +01:00
parent 8ec2ffd60c
commit c8691fd70c
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,10 @@
function f() {
var o = {x: 1};
for (var i = 0; i < 300; i++)
o = Object.create(o);
for (var i = 0; i < 15; i++) {
assertEq(o.x, 1);
assertEq(o.y, undefined);
}
}
f();

View File

@ -147,8 +147,8 @@ class MOZ_RAII CacheIRWriter
}
void writeOperandId(OperandId opId) {
MOZ_ASSERT(size_t(opId.id()) <= UINT8_MAX);
if (opId.id() < MaxOperandIds) {
static_assert(MaxOperandIds <= UINT8_MAX, "operand id must fit in a single byte");
buffer_.writeByte(opId.id());
} else {
tooLarge_ = true;