Changeset 293252 in webkit
- Timestamp:
- Apr 22, 2022 1:58:51 PM (3 months ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
wasm/WasmAirIRGenerator.cpp (modified) (2 diffs)
-
wasm/WasmB3IRGenerator.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r293220 r293252 1 2022-04-22 Geza Lore <glore@igalia.com> 2 3 [JSC]Throw consistent exceptions for memory.init and memory.copy 4 https://bugs.webkit.org/show_bug.cgi?id=239592 5 6 Reviewed by Yusuke Suzuki. 7 8 For a trapping Wasm memory.init and memory.copy instruction, the LLInt 9 used to throw OutOfBoundsMemoryAccess, but BBQ/OMG used to throw 10 OutOfBoundsTableAccess. 11 12 Changed BBQ/OMG to throw OutOfBoundsMemoryAccess as well. 13 14 * wasm/WasmAirIRGenerator.cpp: 15 (JSC::Wasm::AirIRGenerator::addMemoryCopy): 16 (JSC::Wasm::AirIRGenerator::addMemoryInit): 17 * wasm/WasmB3IRGenerator.cpp: 18 (JSC::Wasm::B3IRGenerator::addMemoryInit): 19 (JSC::Wasm::B3IRGenerator::addMemoryCopy): 20 1 21 2022-04-22 Mark Lam <mark.lam@apple.com> 2 22 -
trunk/Source/JavaScriptCore/wasm/WasmAirIRGenerator.cpp
r292773 r293252 1555 1555 return Inst(BranchTest32, nullptr, Arg::resCond(MacroAssembler::Zero), result, result); 1556 1556 }, [=, this] (CCallHelpers& jit, const B3::StackmapGenerationParams&) { 1557 this->emitThrowException(jit, ExceptionType::OutOfBounds TableAccess);1557 this->emitThrowException(jit, ExceptionType::OutOfBoundsMemoryAccess); 1558 1558 }); 1559 1559 … … 1581 1581 return Inst(BranchTest32, nullptr, Arg::resCond(MacroAssembler::Zero), result, result); 1582 1582 }, [=, this] (CCallHelpers& jit, const B3::StackmapGenerationParams&) { 1583 this->emitThrowException(jit, ExceptionType::OutOfBounds TableAccess);1583 this->emitThrowException(jit, ExceptionType::OutOfBoundsMemoryAccess); 1584 1584 }); 1585 1585 -
trunk/Source/JavaScriptCore/wasm/WasmB3IRGenerator.cpp
r292773 r293252 1250 1250 1251 1251 check->setGenerator([=, this] (CCallHelpers& jit, const B3::StackmapGenerationParams&) { 1252 this->emitExceptionCheck(jit, ExceptionType::OutOfBounds TableAccess);1252 this->emitExceptionCheck(jit, ExceptionType::OutOfBoundsMemoryAccess); 1253 1253 }); 1254 1254 } … … 1270 1270 1271 1271 check->setGenerator([=, this] (CCallHelpers& jit, const B3::StackmapGenerationParams&) { 1272 this->emitExceptionCheck(jit, ExceptionType::OutOfBounds TableAccess);1272 this->emitExceptionCheck(jit, ExceptionType::OutOfBoundsMemoryAccess); 1273 1273 }); 1274 1274 }
Note: See TracChangeset
for help on using the changeset viewer.