summaryrefslogtreecommitdiff
path: root/builtin.h
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-11-27 15:15:52 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2022-11-27 21:11:33 -0800
commit6844bcc6b4cdc50def1c0d30d4e8b5045fb43443 (patch)
treee76f3b03120395c52007d1fcaec6e42ace508561 /builtin.h
parent6d26f78f684607a39249882ea686a231f8768bd5 (diff)
downloadruby-6844bcc6b4cdc50def1c0d30d4e8b5045fb43443.tar.gz
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin.h b/builtin.h
index 7ad52f44f4..38ad5a1629 100644
--- a/builtin.h
+++ b/builtin.h
@@ -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) {\