Commit 64534bf
committed
ZJIT: Load Ruby params in bb0 instead of entry point
Previously, we stored the params at the wrong spots on the stack because after
gen_entry_params() we touched the SP in gen_function() for bb0 in
asm.frame_setup() and in the explicit stack pointer bump. Later, when we
read off of SP using the same offset we don't load what we stored
because SP has moved. (This is like the _iterator invalidation
problem_.)
Load the params in bb0 after all the SP movements.1 parent 8b965a1 commit 64534bf
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
| |||
216 | 215 | | |
217 | 216 | | |
218 | 217 | | |
| 218 | + | |
| 219 | + | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| |||
0 commit comments