/home/travis/build/MoarVM/MoarVM/src/gc/allocation.h
Line | Count | Source (jump to first uncovered line) |
1 | | void * MVM_gc_allocate_nursery(MVMThreadContext *tc, size_t size); |
2 | | void * MVM_gc_allocate_zeroed(MVMThreadContext *tc, size_t size); |
3 | | MVMSTable * MVM_gc_allocate_stable(MVMThreadContext *tc, const MVMREPROps *repr, MVMObject *how); |
4 | | MVMObject * MVM_gc_allocate_type_object(MVMThreadContext *tc, MVMSTable *st); |
5 | | MVMObject * MVM_gc_allocate_object(MVMThreadContext *tc, MVMSTable *st); |
6 | | MVMFrame * MVM_gc_allocate_frame(MVMThreadContext *tc); |
7 | | void MVM_gc_allocate_gen2_default_set(MVMThreadContext *tc); |
8 | | void MVM_gc_allocate_gen2_default_clear(MVMThreadContext *tc); |
9 | | |
10 | 0 | MVM_STATIC_INLINE void * MVM_gc_allocate(MVMThreadContext *tc, size_t size) { |
11 | 0 | return tc->allocate_in_gen2 |
12 | 0 | ? MVM_gc_gen2_allocate_zeroed(tc->gen2, size) |
13 | 0 | : MVM_gc_allocate_nursery(tc, size); |
14 | 0 | } |