diff options
-rw-r--r-- | yjit_codegen.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/yjit_codegen.c b/yjit_codegen.c index ebb75cbdad..388c8b1e17 100644 --- a/yjit_codegen.c +++ b/yjit_codegen.c @@ -128,9 +128,17 @@ jit_type_of_value(VALUE val) return TYPE_FIXNUM; } else if (NIL_P(val)) { return TYPE_NIL; + } else if (val == Qtrue) { + return TYPE_TRUE; + } else if (val == Qfalse) { + return TYPE_FALSE; + } else if (STATIC_SYM_P(val)) { + return TYPE_STATIC_SYMBOL; + } else if (FLONUM_P(val)) { + return TYPE_FLONUM; } else { - // generic immediate - return TYPE_IMM; + RUBY_ASSERT(false); + UNREACHABLE_RETURN(TYPE_IMM); } } else { switch (BUILTIN_TYPE(val)) { |