Include ruby/ruby.h before vm_core.h

This is how vm.c does it, and if we don't follow it in yjit
compilation units, rb_vm_t would have a conflicting size.
This commit is contained in:
Alan Wu 2021-03-12 12:25:58 -05:00
Родитель fe3bd57007
Коммит cee597bd01
3 изменённых файлов: 5 добавлений и 20 удалений

Просмотреть файл

@ -1,14 +1,10 @@
#include "vm_core.h"
#include "vm_callinfo.h"
#include "builtin.h"
#include "insns.inc"
#include "insns_info.inc"
#include "vm_sync.h"
#include "yjit_asm.h"
#include "yjit_utils.h"
#include "yjit_iface.h"
#include "yjit_core.h"
#include "yjit_codegen.h"
#include "vm_sync.h"
#include "builtin.h"
// Maximum number of versions per block
#define MAX_VERSIONS 4

Просмотреть файл

@ -1,7 +1,7 @@
#include <assert.h>
#include "ruby/ruby.h"
#include "vm_core.h"
#include "insns.inc"
#include "internal.h"
#include "vm_core.h"
#include "vm_sync.h"
#include "vm_callinfo.h"
#include "builtin.h"

Просмотреть файл

@ -6,21 +6,10 @@
#ifndef YJIT_IFACE_H
#define YJIT_IFACE_H 1
#include "stddef.h"
#include "stdint.h"
#include "stdbool.h"
#include "internal.h"
#include "ruby/internal/attr/nodiscard.h"
#include "ruby/ruby.h"
#include "vm_core.h"
#include "vm_callinfo.h"
#include "builtin.h"
#include "yjit_core.h"
#ifndef rb_callcache
struct rb_callcache;
#define rb_callcache rb_callcache
#endif
#define YJIT_DECLARE_COUNTERS(...) struct rb_yjit_runtime_counters { \
int64_t __VA_ARGS__; \
}; \