[Wasm] Add compiler flag to disable exception handling proposal
Fail with unreachable instead of throwing an exception Merge-request: KT-MR-11481 Merged-by: Svyatoslav Kuzmich <svyatoslav.kuzmich@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
ec73815f80
commit
47ade4530c
@@ -123,9 +123,11 @@ class WasmIrToBinary(
|
||||
}
|
||||
|
||||
// tag section
|
||||
appendSection(WasmBinary.Section.TAG) {
|
||||
appendVectorSize(tags.size)
|
||||
tags.forEach { appendTag(it) }
|
||||
if (tags.isNotEmpty()) {
|
||||
appendSection(WasmBinary.Section.TAG) {
|
||||
appendVectorSize(tags.size)
|
||||
tags.forEach { appendTag(it) }
|
||||
}
|
||||
}
|
||||
|
||||
appendSection(WasmBinary.Section.GLOBAL) {
|
||||
@@ -607,7 +609,7 @@ abstract class ByteWriter {
|
||||
fun writeUByte(v: UByte) {
|
||||
writeByte(v.toByte())
|
||||
}
|
||||
|
||||
|
||||
fun writeUInt32(v: UInt) {
|
||||
writeByte(v.toByte())
|
||||
writeByte((v shr 8).toByte())
|
||||
|
||||
Reference in New Issue
Block a user