卜部昌平
1fb4e28002
skip inlining cexpr! that are not attr! inline
...
Requested by ko1.
2020-07-16 11:49:09 +09:00
卜部昌平
8d3a084572
_mjit_compile_invokebuiltin: sp_inc can be negative
...
Was my bad to assume sp_inc was positive. Real criteria is the
calculated sp is non-negative. We have to assert that.
2020-07-14 13:15:06 +09:00
卜部昌平
927fe2422f
mk_builtin_loader.rb: STACK_ADDR_FROM_TOP unusable
...
Stacks are emulated in MJIT, must not touch the original VM stack.
See also http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/3061353
2020-07-13 12:30:43 +09:00
卜部昌平
7e536b3be2
builtin.h: avoid copy&paste
...
Instead of doubling the invokebuiltin logic here and there, use the same
insns.def definition for both MJIT/non-JIT situations.
2020-07-13 08:56:18 +09:00
卜部昌平
f66e0212ef
precalc invokebuiltin destinations
...
Noticed that struct rb_builtin_function is a purely compile-time
constant. MJIT can eliminate some runtime calculations by statically
generate dedicated C code generator for each builtin functions.
2020-07-13 08:56:18 +09:00