1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #ifndef SCM_JIT_H
- #define SCM_JIT_H
- #include "libguile/scm.h"
- struct scm_jit_function_data;
- struct scm_jit_state;
- #ifdef BUILDING_LIBGUILE
- struct scm_jit_function_data
- {
- uint8_t *mcode;
- uint32_t counter;
- int32_t start;
- int32_t end;
- #if SCM_SIZEOF_UINTPTR_T == 4
- #elif SCM_SIZEOF_UINTPTR_T == 8
- uint32_t pad;
- #else
- #error unhandled sizeof(uintptr_t)
- #endif
- };
- enum scm_jit_counter_value
- {
- SCM_JIT_COUNTER_ENTRY_INCREMENT = 30,
- SCM_JIT_COUNTER_LOOP_INCREMENT = 2,
- };
- #endif
- SCM_INTERNAL uint32_t scm_jit_counter_threshold;
- SCM_INTERNAL const uint8_t *scm_jit_compute_mcode (scm_thread *thread,
- struct scm_jit_function_data *data);
- SCM_INTERNAL void scm_jit_enter_mcode (scm_thread *thread,
- const uint8_t *mcode);
- SCM_INTERNAL void scm_jit_state_free (struct scm_jit_state *j);
- SCM_INTERNAL void scm_init_jit (void);
- #endif
|