Logo
Explore Help
Sign In
azalea/kotlin-fork
Watch 1
Star 0
Fork 0
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
42dd8aa12dd348c6f92644fbcac94e7a64fee5f5
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
…
tableSwitch.kt
…
tableSwitchWithSubjectVal.kt
…
whenNull.kt
…
whenZero.kt
…
Powered by Gitea Version: 1.27.3 Page: 1088ms Template: 4ms
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