summaryrefslogtreecommitdiff
path: root/yjit_codegen.h
diff options
context:
space:
mode:
Diffstat (limited to 'yjit_codegen.h')
-rw-r--r--yjit_codegen.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/yjit_codegen.h b/yjit_codegen.h
index cbb3640dea..1e87c85393 100644
--- a/yjit_codegen.h
+++ b/yjit_codegen.h
@@ -1,14 +1,6 @@
#ifndef YJIT_CODEGEN_H
#define YJIT_CODEGEN_H 1
-#include "stddef.h"
-#include "yjit_core.h"
-
-// Code blocks we generate code into
-extern codeblock_t *cb;
-extern codeblock_t *ocb;
-extern uint32_t yjit_codepage_frozen_bytes;
-
typedef enum codegen_status {
YJIT_END_BLOCK,
YJIT_KEEP_COMPILING,
@@ -18,10 +10,10 @@ typedef enum codegen_status {
// Code generation function signature
typedef codegen_status_t (*codegen_fn)(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb);
-uint8_t *yjit_entry_prologue(codeblock_t *cb, const rb_iseq_t *iseq);
+static uint8_t *yjit_entry_prologue(codeblock_t *cb, const rb_iseq_t *iseq);
-void yjit_gen_block(block_t *block, rb_execution_context_t *ec);
+static void yjit_gen_block(block_t *block, rb_execution_context_t *ec);
-void yjit_init_codegen(void);
+static void yjit_init_codegen(void);
#endif // #ifndef YJIT_CODEGEN_H