/home/travis/build/MoarVM/MoarVM/src/jit/interface.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* Function for getting effective (JIT/specialized/original) bytecode. */ |
2 | 0 | MVM_STATIC_INLINE MVMuint8 * MVM_frame_effective_bytecode(MVMFrame *f) { |
3 | 0 | MVMSpeshCandidate *spesh_cand = f->spesh_cand; |
4 | 0 | if (spesh_cand) |
5 | 0 | return spesh_cand->jitcode ? spesh_cand->jitcode->bytecode : spesh_cand->bytecode; |
6 | 0 | return f->static_info->body.bytecode; |
7 | 0 | } |
8 | | |
9 | | void MVM_jit_code_enter(MVMThreadContext *tc, MVMJitCode *code, MVMCompUnit *cu); |
10 | | void * MVM_jit_code_get_current_position(MVMThreadContext *tc, MVMJitCode *code, MVMFrame *frame); |
11 | | void MVM_jit_code_set_current_position(MVMThreadContext *tc, MVMJitCode *code, MVMFrame *frame, void *position); |
12 | | MVMint32 MVM_jit_code_get_active_deopt_idx(MVMThreadContext *tc, MVMJitCode *code, MVMFrame *frame); |
13 | | /* split iterators because we don't want to allocate on this path */ |
14 | | MVMint32 MVM_jit_code_get_active_handlers(MVMThreadContext *tc, MVMJitCode *code, void *current_position, MVMint32 i); |
15 | | MVMint32 MVM_jit_code_get_active_inlines(MVMThreadContext *tc, MVMJitCode *code, void *current_position, MVMint32 i); |
16 | | |
17 | | /* hackish interface */ |
18 | | void MVM_jit_code_trampoline(MVMThreadContext *tc); |