summaryrefslogtreecommitdiff
path: root/builtin.h
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-07-12 14:53:54 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-07-13 08:56:18 +0900
commit7e536b3be26ae48738a036a58be8dfa380bd21da (patch)
tree426cb1018cf6afc4b7a97c204d3c863622436fb6 /builtin.h
parent802bcd3ec81c1f5de77dbfbe8d9934c5760c85d7 (diff)
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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3305
Diffstat (limited to 'builtin.h')
-rw-r--r--builtin.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/builtin.h b/builtin.h
index be7bb16a28..0da200f961 100644
--- a/builtin.h
+++ b/builtin.h
@@ -80,20 +80,4 @@ struct builtin_binary {
size_t bin_size;
};
-// mjit
-
-RBIMPL_ATTR_MAYBE_UNUSED()
-static void
-mjit_invokebuiltin_default_compiler(FILE *f, const struct rb_builtin_function *bf, long index)
-{
- if (index >= 0) {
- fprintf(f, "val = vm_invoke_builtin(ec, GET_CFP(), %p, STACK_ADDR_FROM_TOP(%d));\n",
- (const void *)bf, bf->argc);
- }
- else {
- fprintf(f, "val = vm_invoke_builtin_delegate(ec, GET_CFP(), %p, %ld);\n",
- (const void *)bf, index);
- }
-}
-
#endif // BUILTIN_H_INCLUDED