diff options
author | Takashi Kokubun <[email protected]> | 2020-06-24 22:58:22 -0700 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2020-06-24 22:59:34 -0700 |
commit | bb4a2351cb86ae7e2603e1280e1eb756c89c7029 (patch) | |
tree | 0bd7fa2ec56ef630497608ef4e93297f9ae786b6 /mjit.h | |
parent | ab62aa7037f30dbab04a9455a328496287c968da (diff) |
Do not JIT inline builtin methods
It's probably not worth it because there's nothing we can optimize in
such builtin methods. It's worth JIT only when inlined.
Diffstat (limited to 'mjit.h')
-rw-r--r-- | mjit.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -108,6 +108,7 @@ static inline int mjit_target_iseq_p(struct rb_iseq_constant_body *body) { return (body->type == ISEQ_TYPE_METHOD || body->type == ISEQ_TYPE_BLOCK) + && !body->builtin_inline_p && body->iseq_size < JIT_ISEQ_SIZE_THRESHOLD; } |