Commit 9123ef4
vm: add OP_SEND0 and OP_SSEND0 for zero-argument method calls
These opcodes use BB format instead of BBB, saving 1 byte per call.
In the standard library, this saves ~790 bytes (568 SEND0 + 222 SSEND0).
Co-authored-by: Claude <noreply@anthropic.com>1 parent f7988c9 commit 9123ef4
File tree
4 files changed
+30
-3
lines changed- include/mruby
- mrbgems/mruby-compiler/core
- src
4 files changed
+30
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3643 | 3643 | | |
3644 | 3644 | | |
3645 | 3645 | | |
3646 | | - | |
| 3646 | + | |
| 3647 | + | |
| 3648 | + | |
| 3649 | + | |
| 3650 | + | |
| 3651 | + | |
| 3652 | + | |
| 3653 | + | |
| 3654 | + | |
3647 | 3655 | | |
3648 | 3656 | | |
3649 | 3657 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
339 | 342 | | |
340 | 343 | | |
341 | 344 | | |
| |||
344 | 347 | | |
345 | 348 | | |
346 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
347 | 353 | | |
348 | 354 | | |
349 | 355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2211 | 2211 | | |
2212 | 2212 | | |
2213 | 2213 | | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
2214 | 2220 | | |
2215 | 2221 | | |
2216 | 2222 | | |
| |||
2219 | 2225 | | |
2220 | 2226 | | |
2221 | 2227 | | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
2222 | 2233 | | |
2223 | 2234 | | |
2224 | 2235 | | |
| |||
2259 | 2270 | | |
2260 | 2271 | | |
2261 | 2272 | | |
2262 | | - | |
| 2273 | + | |
2263 | 2274 | | |
2264 | 2275 | | |
2265 | 2276 | | |
| |||
2280 | 2291 | | |
2281 | 2292 | | |
2282 | 2293 | | |
2283 | | - | |
| 2294 | + | |
2284 | 2295 | | |
2285 | 2296 | | |
2286 | 2297 | | |
| |||
0 commit comments