aboutsummaryrefslogtreecommitdiff
path: root/src/execute.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/execute.c')
-rw-r--r--src/execute.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/execute.c b/src/execute.c
index 7da1a1a..cfa64fb 100644
--- a/src/execute.c
+++ b/src/execute.c
@@ -1,16 +1,10 @@
#include <posthaste/execute.h>
#include <posthaste/lower.h>
#include <posthaste/vec.h>
+#include <ejit/ejit.h>
void execute()
{
struct fn *f = find_fn(0);
- void (*p)(int64_t *globals) = f->arena;
-
- struct vec globals = vec_create(sizeof(int64_t));
- vec_reserve(&globals, num_globals());
-
- p(globals.buf);
-
- vec_destroy(&globals);
+ ejit_run_func(f->f, 0, NULL);
}