diff options
author | Takashi Kokubun <[email protected]> | 2022-11-27 15:15:52 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2022-11-27 21:11:33 -0800 |
commit | 6844bcc6b4cdc50def1c0d30d4e8b5045fb43443 (patch) | |
tree | e76f3b03120395c52007d1fcaec6e42ace508561 /builtin.h | |
parent | 6d26f78f684607a39249882ea686a231f8768bd5 (diff) |
MJIT: Use a String buffer in builtin compilers
instead of FILE*.
Using C.fprintf is slower than String manipulation on memory. I'm going
to change the way MJIT writes files, and this is a prerequisite for it.
Diffstat (limited to 'builtin.h')
-rw-r--r-- | builtin.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ struct rb_builtin_function { const char * const name; // for jit - void (*compiler)(FILE *, long, unsigned, bool); + void (*compiler)(VALUE, long, unsigned, bool); }; #define RB_BUILTIN_FUNCTION(_i, _name, _fname, _arity, _compiler) {\ |