Skip to content

Commit 7be9af0

Browse files
Update asm to 9.6 (#18712)
2 parents af6a2ef + 71c8573 commit 7be9af0

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

compiler/src/dotty/tools/backend/jvm/BackendUtils.scala

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class BackendUtils(val postProcessor: PostProcessor) {
3636
case "19" => asm.Opcodes.V19
3737
case "20" => asm.Opcodes.V20
3838
case "21" => asm.Opcodes.V21
39+
case "22" => asm.Opcodes.V22
3940
}
4041

4142
lazy val extraProc: Int = {

compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ScalaSettings extends SettingGroup with AllScalaSettings
2020
object ScalaSettings:
2121
// Keep synchronized with `classfileVersion` in `BackendUtils`
2222
private val minTargetVersion = 8
23-
private val maxTargetVersion = 21
23+
private val maxTargetVersion = 22
2424

2525
def supportedTargetVersions: List[String] =
2626
(minTargetVersion to maxTargetVersion).toList.map(_.toString)

project/Build.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ object Build {
594594

595595
// get libraries onboard
596596
libraryDependencies ++= Seq(
597-
"org.scala-lang.modules" % "scala-asm" % "9.5.0-scala-1", // used by the backend
597+
"org.scala-lang.modules" % "scala-asm" % "9.6.0-scala-1", // used by the backend
598598
Dependencies.compilerInterface,
599599
"org.jline" % "jline-reader" % "3.19.0", // used by the REPL
600600
"org.jline" % "jline-terminal" % "3.19.0",

tests/pos-with-compiler-cc/backend/jvm/BCodeIdiomatic.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ trait BCodeIdiomatic extends Pure {
5555
case "18" => asm.Opcodes.V18
5656
case "19" => asm.Opcodes.V19
5757
case "20" => asm.Opcodes.V20
58-
case "21" => asm.Opcodes.V21*/
58+
case "21" => asm.Opcodes.V21
59+
case "22" => asm.Opcodes.V22*/
5960
}
6061

6162
lazy val majorVersion: Int = (classfileVersion & 0xFF)

tests/pos-with-compiler-cc/dotc/config/ScalaSettings.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ScalaSettings extends SettingGroup with AllScalaSettings
1717
object ScalaSettings:
1818
// Keep synchronized with `classfileVersion` in `BCodeIdiomatic`
1919
private val minTargetVersion = 8
20-
private val maxTargetVersion = 21
20+
private val maxTargetVersion = 22
2121

2222
def supportedTargetVersions: List[String] =
2323
(minTargetVersion to maxTargetVersion).toList.map(_.toString)

0 commit comments

Comments
 (0)