On non RUBY_DEBUG builds, assert() compiles to nothing and the compiler
warns about uninitialized variables in those code paths. Replace
those asserts with rb_bug() to fix the warnings and do the assert in
all builds.
Also put YJIT_STATS check for function delcaration that is only defined
in YJIT_STATS builds.
On non RUBY_DEBUG builds, assert() compiles to nothing and the compiler warns about uninitialized variables in those code paths. Replace those asserts with rb_bug() to fix the warnings and do the assert in all builds.
Also put YJIT_STATS check for function delcaration that is only defined in YJIT_STATS builds.