Open Bug 1783482 Opened 3 years ago Updated 1 year ago

Print more details in BytecodeSection::updateDepth assertion failure

Categories

(Core :: JavaScript Engine, enhancement, P5)

enhancement

Tracking

()

People

(Reporter: arai, Unassigned)

References

(Blocks 1 open bug)

Details

When working on bytecode emitter, sometimes the stack state goes wrong and hits the assertion failure stackDepth_ >= 0.

https://searchfox.org/mozilla-central/rev/8e2e05ea9683480d2258624fe217a9ab40bf3abf/js/src/frontend/BytecodeSection.cpp#172,179

void BytecodeSection::updateDepth(BytecodeOffset target) {
...
  MOZ_ASSERT(stackDepth_ >= 0);

it would be nice to dump the bytecode until that point, so that it's clearer how it goes wrong.

Blocks: sm-frontend
Severity: -- → N/A
You need to log in before you can comment on or make changes to this bug.