2020-04-10 01:11:40 -04:00
|
|
|
#ifndef INTERNAL_COMPILE_H /*-*-C-*-vi:se ft=c:*/
|
|
|
|
#define INTERNAL_COMPILE_H
|
|
|
|
/**
|
2019-11-29 01:18:34 -05:00
|
|
|
* @file
|
2020-04-08 00:28:13 -04:00
|
|
|
* @author Ruby developers <ruby-core@ruby-lang.org>
|
2019-11-29 01:18:34 -05:00
|
|
|
* @copyright This file is a part of the programming language Ruby.
|
|
|
|
* Permission is hereby granted, to either redistribute and/or
|
|
|
|
* modify this file, provided that the conditions mentioned in the
|
|
|
|
* file COPYING are met. Consult the file for details.
|
2020-04-08 00:28:13 -04:00
|
|
|
* @brief Internal header for the compiler.
|
2019-11-29 01:18:34 -05:00
|
|
|
*/
|
2020-05-08 05:31:09 -04:00
|
|
|
#include "ruby/internal/config.h"
|
2019-12-03 02:12:39 -05:00
|
|
|
#include <stddef.h> /* for size_t */
|
|
|
|
#include "ruby/ruby.h" /* for rb_event_flag_t */
|
|
|
|
|
|
|
|
struct rb_iseq_struct; /* in vm_core.h */
|
2019-11-29 01:18:34 -05:00
|
|
|
|
|
|
|
/* compile.c */
|
|
|
|
int rb_dvar_defined(ID, const struct rb_iseq_struct *);
|
|
|
|
int rb_local_defined(ID, const struct rb_iseq_struct *);
|
2019-12-03 02:12:39 -05:00
|
|
|
const char *rb_insns_name(int i);
|
2019-11-29 01:18:34 -05:00
|
|
|
VALUE rb_insns_name_array(void);
|
2019-12-03 02:12:39 -05:00
|
|
|
|
|
|
|
/* iseq.c */
|
2019-11-29 01:18:34 -05:00
|
|
|
int rb_vm_insn_addr2insn(const void *);
|
|
|
|
|
2019-12-03 02:12:39 -05:00
|
|
|
MJIT_SYMBOL_EXPORT_BEGIN
|
|
|
|
/* iseq.c (export) */
|
|
|
|
rb_event_flag_t rb_iseq_event_flags(const struct rb_iseq_struct *iseq, size_t pos);
|
|
|
|
MJIT_SYMBOL_EXPORT_END
|
|
|
|
|
2019-11-29 01:18:34 -05:00
|
|
|
#endif /* INTERNAL_COMPILE_H */
|