rust/example
bjorn3 3f6a3b5ebe Implement lazy compilation in JIT mode
Lazy compilation has the potential to significantly improve the startup
time of a program. While functions have to be codegened when called, it
is expected that a significant amount of all code is only required when
an error occurs or only when the program is used in certain ways.

The basic approach is to first codegen a shim for each function. This
shim calls the `__cg_clif_jit` function of cg_clif with a pointer to the
`Instance` corresponding to the function for which it is a shim.
`__cg_clif_jit` function then codegens this function and uses the hot
code swapping support of SimpleJIT to redirect future calls to the
function to the real version. Finally it calls the newly codegened
function.
2020-12-25 12:08:21 +01:00
..
alloc_example.rs Fix warnings in alloc_example.rs 2020-06-16 10:42:44 +02:00
arbitrary_self_types_pointers_and_wrappers.rs Call panic lang item on failed TerminatorKind::Assert 2020-04-25 19:07:53 +02:00
dst-field-align.rs Correctly align offset for dst field projections 2019-09-02 20:09:37 +02:00
example.rs Make everything in example.rs public 2020-07-11 11:02:23 +02:00
mini_core_hello_world.rs Update Cranelift 2020-11-01 09:50:33 +01:00
mini_core.rs Rustup to rustc 1.50.0-nightly (72da5a9d8 2020-11-26) 2020-11-27 18:01:01 +01:00
mod_bench.rs Don't benchmark mod_bench anymore 2020-09-18 14:45:52 +02:00
std_example.rs Implement lazy compilation in JIT mode 2020-12-25 12:08:21 +01:00
subslice-patterns-const-eval.rs Rustup to rustc 1.43.0-nightly (4ad624882 2020-03-03) 2020-03-04 15:04:28 +01:00
track-caller-attribute.rs Rustup to rustc 1.46.0-nightly (f781babf8 2020-07-01) 2020-07-02 19:48:03 +02:00