Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r249221 - Wasm's AirIRGenerator::addLocal() and B3IRGenerator::…
…addLocal() are doing unnecessary overflow checks. https://bugs.webkit.org/show_bug.cgi?id=201006 <rdar://problem/52053991> Reviewed by Yusuke Suzuki. We already ensured that it is not possible to overflow in Wasm::FunctionParser's parse(). It is unnecessary and misleading to do those overflow checks in AirIRGenerator and B3IRGenerator. The only check that is necessary is that m_locals.tryReserveCapacity() is successful, otherwise, we have an out of memory situation. This patch changes these unnecessary checks to assertions instead. * wasm/WasmAirIRGenerator.cpp: (JSC::Wasm::AirIRGenerator::addLocal): * wasm/WasmB3IRGenerator.cpp: (JSC::Wasm::B3IRGenerator::addLocal): * wasm/WasmValidate.cpp: (JSC::Wasm::Validate::addLocal):
- Loading branch information
1 parent
764bce3
commit 121c8d7
Showing
4 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters