/home/travis/build/MoarVM/MoarVM/src/core/compunit.h
Line | Count | Source (jump to first uncovered line) |
1 | | MVMCompUnit * MVM_cu_from_bytes(MVMThreadContext *tc, MVMuint8 *bytes, MVMuint32 size); |
2 | | MVMCompUnit * MVM_cu_map_from_file(MVMThreadContext *tc, const char *filename); |
3 | | MVMCompUnit * MVM_cu_map_from_file_handle(MVMThreadContext *tc, uv_file fd, MVMuint64 pos); |
4 | | MVMuint16 MVM_cu_callsite_add(MVMThreadContext *tc, MVMCompUnit *cu, MVMCallsite *cs); |
5 | | MVMuint32 MVM_cu_string_add(MVMThreadContext *tc, MVMCompUnit *cu, MVMString *str); |
6 | | MVMString * MVM_cu_obtain_string(MVMThreadContext *tc, MVMCompUnit *cu, MVMuint32 idx); |
7 | | |
8 | 0 | MVM_STATIC_INLINE MVMString * MVM_cu_string(MVMThreadContext *tc, MVMCompUnit *cu, MVMuint32 idx) { |
9 | 0 | MVMString *s = cu->body.strings[idx]; |
10 | 0 | return s ? s : MVM_cu_obtain_string(tc, cu, idx); |
11 | 0 | } |
12 | | |
13 | 0 | MVM_STATIC_INLINE void MVM_cu_ensure_string_decoded(MVMThreadContext *tc, MVMCompUnit *cu, MVMuint32 idx) { |
14 | 0 | if (!cu->body.strings[idx]) |
15 | 0 | MVM_cu_obtain_string(tc, cu, idx); |
16 | 0 | } |