make err NOINLINE
This commit is contained in:
parent
726451ed0c
commit
1fd61c5467
@ -131,7 +131,7 @@ void harrP_visit(Value* x) { assert(x->type==t_harrPartial);
|
|||||||
usz am = *((HArr*)x)->sh;
|
usz am = *((HArr*)x)->sh;
|
||||||
for (usz i = 0; i < am; i++) mm_visit(p[i]);
|
for (usz i = 0; i < am; i++) mm_visit(p[i]);
|
||||||
}
|
}
|
||||||
B harrP_get(B x, usz n) { return err("getting item from t_harrPartial"); }
|
B harrP_get(B x, usz n) { err("getting item from t_harrPartial"); }
|
||||||
void harrP_print(B x) {
|
void harrP_print(B x) {
|
||||||
B* p = c(HArr,x)->a;
|
B* p = c(HArr,x)->a;
|
||||||
usz am = *c(HArr,x)->sh;
|
usz am = *c(HArr,x)->sh;
|
||||||
|
|||||||
@ -3,6 +3,14 @@
|
|||||||
#include "../utils/utf.h"
|
#include "../utils/utf.h"
|
||||||
#include "../utils/talloc.h"
|
#include "../utils/talloc.h"
|
||||||
|
|
||||||
|
|
||||||
|
NORETURN NOINLINE void err(char* s) {
|
||||||
|
puts(s); fflush(stdout);
|
||||||
|
print_vmStack();
|
||||||
|
__builtin_trap();
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
B bi_emptyHVec, bi_emptyIVec, bi_emptyCVec, bi_emptySVec;
|
B bi_emptyHVec, bi_emptyIVec, bi_emptyCVec, bi_emptySVec;
|
||||||
|
|
||||||
NOINLINE TStack* ts_e(TStack* o, u32 elsz, u64 am) { u64 size = o->size;
|
NOINLINE TStack* ts_e(TStack* o, u32 elsz, u64 am) { u64 size = o->size;
|
||||||
|
|||||||
7
src/h.h
7
src/h.h
@ -282,12 +282,7 @@ void print_vmStack();
|
|||||||
B validate(B x);
|
B validate(B x);
|
||||||
Value* validateP(Value* x);
|
Value* validateP(Value* x);
|
||||||
#endif
|
#endif
|
||||||
static NORETURN B err(char* s) {
|
NORETURN NOINLINE void err(char* s);
|
||||||
puts(s); fflush(stdout);
|
|
||||||
print_vmStack();
|
|
||||||
__builtin_trap();
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// tag checks
|
// tag checks
|
||||||
#ifdef ATOM_I32
|
#ifdef ATOM_I32
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user