Files
mruby-mruby/include/mruby
Yukihiro "Matz" Matsumoto 613b03ac18 mruby-compiler: add no_return_value context flag for script optimization
when running scripts via mruby -e or file, return values are unused.
this adds a no_return_value flag to skip generating unnecessary code.

for parallel assignment like a,b = 1,2:
- before: 18 bytes, 5 registers, creates temporary array
- after: 5 bytes, 3 registers, direct register assignment, no RETURN

the flag is set only for the main program, not for libraries loaded
with -r option. eval() and mirb continue returning values correctly.

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-21 17:26:49 +09:00
..
2024-06-27 22:46:13 +02:00
2025-03-07 17:17:50 +09:00
2023-05-03 22:12:59 +10:00
2024-09-10 21:07:43 +09:00
2025-11-02 21:18:18 +09:00
2024-12-01 19:16:54 +09:00
2019-08-18 20:12:44 +09:00
2025-06-25 10:46:23 +10:00