Fix compiler warnings in new wasm modules
Also don't output v8ExecutablePath in js.tests on each project configuration.
This commit is contained in:
committed by
Alexander Udalov
parent
84d1393711
commit
d96223a2ff
@@ -39,16 +39,19 @@ abstract class WasmExpressionBuilder {
|
||||
buildInstr(WasmOp.UNREACHABLE)
|
||||
}
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
fun buildBlock(label: String?, resultType: WasmType? = null) {
|
||||
numberOfNestedBlocks++
|
||||
buildInstr(WasmOp.BLOCK, WasmImmediate.BlockType.Value(resultType))
|
||||
}
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
fun buildLoop(label: String?, resultType: WasmType? = null) {
|
||||
numberOfNestedBlocks++
|
||||
buildInstr(WasmOp.LOOP, WasmImmediate.BlockType.Value(resultType))
|
||||
}
|
||||
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
fun buildIf(label: String?, resultType: WasmType? = null) {
|
||||
numberOfNestedBlocks++
|
||||
buildInstr(WasmOp.IF, WasmImmediate.BlockType.Value(resultType))
|
||||
|
||||
@@ -460,6 +460,7 @@ abstract class ByteWriter {
|
||||
|
||||
private fun writeUnsignedLeb128(v: UInt) {
|
||||
// Taken from Android source, Apache licensed
|
||||
@Suppress("NAME_SHADOWING")
|
||||
var v = v
|
||||
var remaining = v shr 7
|
||||
while (remaining != 0u) {
|
||||
@@ -474,6 +475,7 @@ abstract class ByteWriter {
|
||||
|
||||
private fun writeSignedLeb128(v: Long) {
|
||||
// Taken from Android source, Apache licensed
|
||||
@Suppress("NAME_SHADOWING")
|
||||
var v = v
|
||||
var remaining = v shr 7
|
||||
var hasMore = true
|
||||
@@ -508,4 +510,4 @@ abstract class ByteWriter {
|
||||
|
||||
override fun createTemp() = OutputStream(ByteArrayOutputStream())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user