Repository navigation
Commit 1fb0b45
committed
Fix GH-24391: JIT: switch on constant null takes default instead of case 0
There was simply a mismatch in how the VM and JIT handled the types.
I reworked how the jump target is chose, and hopefully made the code
easier to understand in the process.
Closes GH-24393.1 parent fd3a97d commit 1fb0b45
3 files changed
Lines changed: 50 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15997 | 15997 | | |
15998 | 15998 | | |
15999 | 15999 | | |
| 16000 | + | |
16000 | 16001 | | |
16001 | 16002 | | |
| 16003 | + | |
| 16004 | + | |
16002 | 16005 | | |
16003 | 16006 | | |
16004 | 16007 | | |
| 16008 | + | |
| 16009 | + | |
16005 | 16010 | | |
16006 | 16011 | | |
16007 | 16012 | | |
16008 | 16013 | | |
| 16014 | + | |
| 16015 | + | |
16009 | 16016 | | |
16010 | 16017 | | |
16011 | 16018 | | |
| |||
16016 | 16023 | | |
16017 | 16024 | | |
16018 | 16025 | | |
| 16026 | + | |
| 16027 | + | |
| 16028 | + | |
16019 | 16029 | | |
16020 | | - | |
16021 | | - | |
16022 | | - | |
16023 | | - | |
16024 | | - | |
16025 | | - | |
16026 | | - | |
16027 | 16030 | | |
16028 | 16031 | | |
16029 | | - | |
16030 | | - | |
16031 | | - | |
16032 | | - | |
16033 | | - | |
| 16032 | + | |
16034 | 16033 | | |
16035 | 16034 | | |
16036 | 16035 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments