Skip to content

Commit 9ab6d5a

Browse files
committed
kotlin 2.1.20
1 parent 3519448 commit 9ab6d5a

File tree

5 files changed

+21
-20
lines changed

5 files changed

+21
-20
lines changed

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ hilt-integrations = "1.2.0"
3636

3737
junit = "4.13.2"
3838

39-
kotlin = "2.1.0"
39+
kotlin = "2.1.20"
4040
k-poet = "1.18.1"
4141
kotlinter = "5.0.1"
4242

@@ -48,7 +48,7 @@ kotlinx-io = "0.6.0"
4848
kotlinx-serialization = "1.8.0"
4949
kotlinx-test-resources = "0.10.0"
5050

51-
ksp = "2.1.0-1.0.29"
51+
ksp = "2.1.20-1.0.31"
5252

5353
result = "2.0.1"
5454

gradle/plugins/kmp-conventions/src/main/kotlin/kmp-conventions.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ kotlin {
3131
compilerOptions {
3232
extraWarnings.set(true)
3333

34-
freeCompilerArgs.add("-Xjdk-release=" + libs.versions.java.bytecode.version.get().toInt())
3534
freeCompilerArgs.add("-opt-in=kotlin.ExperimentalUnsignedTypes")
3635

3736
freeCompilerArgs.add("-Xsuppress-warning=NOTHING_TO_INLINE")
@@ -44,6 +43,8 @@ kotlin {
4443

4544
jvm {
4645
compilerOptions {
46+
freeCompilerArgs.add("-Xjdk-release=" + libs.versions.java.bytecode.version.get().toInt())
47+
4748
freeCompilerArgs.add("-Xno-call-assertions")
4849
freeCompilerArgs.add("-Xno-param-assertions")
4950
freeCompilerArgs.add("-Xno-receiver-assertions")

memory/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ kotlin {
3838

3939
configure<PublishingConventionsExtension> {
4040
name = "memory"
41-
description = "chasms memory instance functionality"
41+
description = "a kotlin multiplatform wasm linear memory implementation"
4242
}

predecoder/src/commonMain/kotlin/io/github/charlietap/chasm/predecoder/LoadFactory.kt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,28 @@ internal inline fun LoadFactory(
1313
): LoadOp {
1414
return context.loadCache.getOrPut(operand) {
1515
when (operand) {
16-
is FusedOperand.I32Const -> {
17-
{ operand.const.toLong() }
16+
is FusedOperand.I32Const -> { _ ->
17+
operand.const.toLong()
1818
}
19-
is FusedOperand.I64Const -> {
20-
{ operand.const }
19+
is FusedOperand.I64Const -> { _ ->
20+
operand.const
2121
}
22-
is FusedOperand.F32Const -> {
23-
{ operand.const.toRawBits().toLong() }
22+
is FusedOperand.F32Const -> { _ ->
23+
operand.const.toRawBits().toLong()
2424
}
25-
is FusedOperand.F64Const -> {
26-
{ operand.const.toRawBits() }
25+
is FusedOperand.F64Const -> { _ ->
26+
operand.const.toRawBits()
2727
}
2828
is FusedOperand.GlobalGet -> {
2929
val address = context.instance.globalAddress(operand.index).value
3030
val global = context.store.global(address);
3131
{ global.value }
3232
}
33-
is FusedOperand.LocalGet -> {
34-
{ stack -> stack.getLocal(operand.index.idx) }
33+
is FusedOperand.LocalGet -> { stack ->
34+
stack.getLocal(operand.index.idx)
3535
}
36-
is FusedOperand.ValueStack -> {
37-
{ stack -> stack.pop() }
36+
is FusedOperand.ValueStack -> { stack ->
37+
stack.pop()
3838
}
3939
}
4040
}

predecoder/src/commonMain/kotlin/io/github/charlietap/chasm/predecoder/StoreFactory.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ internal inline fun StoreFactory(
1818
val global = context.store.global(address);
1919
{ value, _ -> global.value = value }
2020
}
21-
is FusedDestination.LocalSet -> {
22-
{ value, stack -> stack.setLocal(destination.index.idx, value) }
21+
is FusedDestination.LocalSet -> { value, stack ->
22+
stack.setLocal(destination.index.idx, value)
2323
}
24-
FusedDestination.ValueStack -> {
25-
{ value, stack -> stack.push(value) }
24+
FusedDestination.ValueStack -> { value, stack ->
25+
stack.push(value)
2626
}
2727
}
2828
}

0 commit comments

Comments
 (0)