more descriptive paths for self-hosted files
This commit is contained in:
parent
960ae96591
commit
b8701d3502
@ -350,14 +350,14 @@ void load_init() { // very last init function
|
|||||||
#ifndef ALL_R0
|
#ifndef ALL_R0
|
||||||
B runtime_0[] = {bi_floor,bi_ceil,bi_stile,bi_lt,bi_gt,bi_ne,bi_ge,bi_rtack,bi_ltack,bi_join,bi_pair,bi_take,bi_drop,bi_select,bi_const,bi_swap,bi_each,bi_fold,bi_atop,bi_over,bi_before,bi_after,bi_cond,bi_repeat};
|
B runtime_0[] = {bi_floor,bi_ceil,bi_stile,bi_lt,bi_gt,bi_ne,bi_ge,bi_rtack,bi_ltack,bi_join,bi_pair,bi_take,bi_drop,bi_select,bi_const,bi_swap,bi_each,bi_fold,bi_atop,bi_over,bi_before,bi_after,bi_cond,bi_repeat};
|
||||||
#else
|
#else
|
||||||
Block* runtime0_b = load_compImport("r0.bqn",
|
Block* runtime0_b = load_compImport("(self-hosted runtime0)",
|
||||||
#include "gen/runtime0"
|
#include "gen/runtime0"
|
||||||
);
|
);
|
||||||
B r0r = evalFunBlock(runtime0_b, 0); ptr_dec(runtime0_b);
|
B r0r = evalFunBlock(runtime0_b, 0); ptr_dec(runtime0_b);
|
||||||
B* runtime_0 = toHArr(r0r)->a;
|
B* runtime_0 = toHArr(r0r)->a;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Block* runtime_b = load_compImport("r1.bqn",
|
Block* runtime_b = load_compImport("(self-hosted runtime1)",
|
||||||
#include "gen/runtime1"
|
#include "gen/runtime1"
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -458,7 +458,7 @@ void load_init() { // very last init function
|
|||||||
#else // use compiler
|
#else // use compiler
|
||||||
B prevAsrt = runtime[n_asrt];
|
B prevAsrt = runtime[n_asrt];
|
||||||
runtime[n_asrt] = bi_casrt; // horrible but GC is off so it's fiiiiiine
|
runtime[n_asrt] = bi_casrt; // horrible but GC is off so it's fiiiiiine
|
||||||
Block* comp_b = load_compImport("c.bqn",
|
Block* comp_b = load_compImport("(compiler)",
|
||||||
#include "gen/compiles"
|
#include "gen/compiles"
|
||||||
);
|
);
|
||||||
runtime[n_asrt] = prevAsrt;
|
runtime[n_asrt] = prevAsrt;
|
||||||
@ -469,7 +469,7 @@ void load_init() { // very last init function
|
|||||||
|
|
||||||
|
|
||||||
#if FORMATTER
|
#if FORMATTER
|
||||||
Block* fmt_b = load_compImport("f.bqn",
|
Block* fmt_b = load_compImport("(formatter)",
|
||||||
#include "gen/formatter"
|
#include "gen/formatter"
|
||||||
);
|
);
|
||||||
B fmtM = evalFunBlock(fmt_b, 0); ptr_dec(fmt_b);
|
B fmtM = evalFunBlock(fmt_b, 0); ptr_dec(fmt_b);
|
||||||
|
|||||||
2
src/vm.c
2
src/vm.c
@ -1286,7 +1286,7 @@ static bool setTimer(i64 us) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void* profiler_makeMap();
|
void* profiler_makeMap();
|
||||||
i32 profiler_index(void* mapRaw, B comp);
|
i32 profiler_index(void** mapRaw, B comp);
|
||||||
void profiler_freeMap(void* mapRaw);
|
void profiler_freeMap(void* mapRaw);
|
||||||
|
|
||||||
bool profiler_alloc() {
|
bool profiler_alloc() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user