mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 11:45:37 +00:00
Bug 1258349 - Remove a bogus assert. r=efaust
This commit is contained in:
parent
8ec2ffd60c
commit
c8691fd70c
10
js/src/jit-test/tests/baseline/long-proto-chains.js
Normal file
10
js/src/jit-test/tests/baseline/long-proto-chains.js
Normal 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();
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user