1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
// -*- c -*-
// DO NOT MODIFY THIS FILE DIRECTLY.
// auto-generated file
// by ./tool/mk_builtin_loader.rb
// with yjit.rb
#include "internal/compilers.h" /* for MAYBE_UNUSED */
#include "internal/warnings.h" /* for COMPILER_WARNING_PUSH */
#include "ruby/ruby.h" /* for VALUE */
#include "builtin.h" /* for RB_BUILTIN_FUNCTION */
struct rb_execution_context_struct; /* in vm_core.h */
static VALUE builtin_inline_class_13(struct rb_execution_context_struct *ec, const VALUE self)
{
#line 13 "yjit.rb"
return RBOOL(rb_yjit_enabled_p);
#line 17 "yjit.rbinc"
}
void Init_builtin_yjit(void)
{
// table definition
static const struct rb_builtin_function yjit_table[] = {
RB_BUILTIN_FUNCTION(0, _bi13, builtin_inline_class_13, 0),
RB_BUILTIN_FUNCTION(1, rb_yjit_stats_enabled_p, rb_yjit_stats_enabled_p, 0),
RB_BUILTIN_FUNCTION(2, rb_yjit_log_enabled_p, rb_yjit_log_enabled_p, 0),
RB_BUILTIN_FUNCTION(3, rb_yjit_trace_exit_locations_enabled_p, rb_yjit_trace_exit_locations_enabled_p, 0),
RB_BUILTIN_FUNCTION(4, rb_yjit_reset_stats_bang, rb_yjit_reset_stats_bang, 0),
RB_BUILTIN_FUNCTION(5, rb_yjit_enable, rb_yjit_enable, 4),
RB_BUILTIN_FUNCTION(6, rb_yjit_get_exit_locations, rb_yjit_get_exit_locations, 0),
RB_BUILTIN_FUNCTION(7, rb_yjit_get_stats, rb_yjit_get_stats, 1),
RB_BUILTIN_FUNCTION(8, rb_yjit_get_log, rb_yjit_get_log, 0),
RB_BUILTIN_FUNCTION(9, rb_yjit_disasm_iseq, rb_yjit_disasm_iseq, 1),
RB_BUILTIN_FUNCTION(10, rb_yjit_insns_compiled, rb_yjit_insns_compiled, 1),
RB_BUILTIN_FUNCTION(11, rb_yjit_code_gc, rb_yjit_code_gc, 0),
RB_BUILTIN_FUNCTION(12, rb_yjit_simulate_oom_bang, rb_yjit_simulate_oom_bang, 0),
RB_BUILTIN_FUNCTION(13, yjit_c_builtin_p, yjit_c_builtin_p, 0),
RB_BUILTIN_FUNCTION(14, rb_yjit_print_stats_p, rb_yjit_print_stats_p, 0),
RB_BUILTIN_FUNCTION(-1, NULL, NULL, 0),
};
// arity_check
COMPILER_WARNING_PUSH
#if GCC_VERSION_SINCE(5, 1, 0) || defined __clang__
COMPILER_WARNING_ERROR(-Wincompatible-pointer-types)
#endif
if (0) rb_builtin_function_check_arity0(builtin_inline_class_13);
if (0) rb_builtin_function_check_arity0(rb_yjit_stats_enabled_p);
if (0) rb_builtin_function_check_arity0(rb_yjit_log_enabled_p);
if (0) rb_builtin_function_check_arity0(rb_yjit_trace_exit_locations_enabled_p);
if (0) rb_builtin_function_check_arity0(rb_yjit_reset_stats_bang);
if (0) rb_builtin_function_check_arity4(rb_yjit_enable);
if (0) rb_builtin_function_check_arity0(rb_yjit_get_exit_locations);
if (0) rb_builtin_function_check_arity1(rb_yjit_get_stats);
if (0) rb_builtin_function_check_arity0(rb_yjit_get_log);
if (0) rb_builtin_function_check_arity1(rb_yjit_disasm_iseq);
if (0) rb_builtin_function_check_arity1(rb_yjit_insns_compiled);
if (0) rb_builtin_function_check_arity0(rb_yjit_code_gc);
if (0) rb_builtin_function_check_arity0(rb_yjit_simulate_oom_bang);
if (0) rb_builtin_function_check_arity0(yjit_c_builtin_p);
if (0) rb_builtin_function_check_arity0(rb_yjit_print_stats_p);
COMPILER_WARNING_POP
// load
rb_load_with_builtin_functions("yjit", yjit_table);
}
|