Logo
Explore Help
Register Sign In
azalea/kotlin-fork
1
0
Fork 0
You've already forked kotlin-fork
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
fa7809cd8079a142bc9c0aace1022b336da6e6c5
kotlin-fork/compiler/testData/codegen/bytecodeText/when
T
History
Mads Ager 05ff2b1292 [JVM_IR] Extend when to switch translation to deal with nested ors.
FIR translates:

```
when (x) {
  1, 2, 3 -> action
  else -> other_action
}
```

to an IR structure with nested ors:

```
if ((x == 1 || x == 2) || (x == 3)) action
else other_action
```

This change allows that to turn into switch instructions in the
JVM backend.
2021-02-16 03:20:07 -08:00
..
edgeCases.kt
…
exhaustiveWhenInitialization.kt
…
exhaustiveWhenReturn.kt
…
exhaustiveWhenSpecialCases.kt
…
exhaustiveWhenUnit.kt
…
exhaustiveWhenUnitStatement.kt
…
inlineConstValsInsideWhen.kt
…
integralWhenWithNoInlinedConstants.kt
…
kt18818.kt
…
lookupSwitch.kt
…
lookupSwitchWithSubjectVal.kt
…
noBoxingInDefaultWhenWithSpecialCases.kt
…
qualifiedConstValsInsideWhen.kt
…
sealedWhenInitialization.kt
…
simpleConstValsInsideWhen.kt
…
stringSwitchWithSubjectVal.kt
…
subjectValHasLocalVariableSlot.kt
…
subjectValInEnumWhenHasLocalVariableSlot.kt
…
subjectValInIntWhenHasLocalVariableSlot.kt
…
subjectValInStringWhenHasLocalVariableSlot.kt
…
switchOptimizationDuplicates.kt
[JVM_IR] Extend when to switch translation to deal with nested ors.
2021-02-16 03:20:07 -08:00
tableSwitch.kt
…
tableSwitchWithSubjectVal.kt
…
whenNull.kt
…
whenZero.kt
…
Powered by Gitea Version: 1.26.1 Page: 1327ms Template: 3ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API