-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a single structure that contains the function pointer as well as the size of the fragment, the number of locals, and the 'magic bytecode' which is now constant.
- Loading branch information
Showing
13 changed files
with
683 additions
and
674 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
MVMJitCode MVM_jit_compile_graph(MVMThreadContext *tc, MVMJitGraph *graph, size_t *codesize_out); | ||
MVMuint8* MVM_jit_magic_bytecode(MVMThreadContext *tc); | ||
void MVM_enter_jit(MVMThreadContext *tc, MVMFrame *frame, MVMJitCode jitcode); | ||
|
||
|
||
struct MVMJitCode { | ||
MVMJitFunc func_ptr; | ||
size_t size; | ||
MVMuint8 *bytecode; | ||
MVMint16 num_locals; | ||
MVMStaticFrame *sf; | ||
}; | ||
|
||
MVMJitCode* MVM_jit_compile_graph(MVMThreadContext *tc, MVMJitGraph *graph); | ||
void MVM_jit_destroy_code(MVMThreadContext *tc, MVMJitCode *code); | ||
void MVM_jit_enter_code(MVMThreadContext *tc, MVMCompUnit *cu, | ||
MVMJitCode * code); |
Oops, something went wrong.