Eliminate InfoVars::cip (
bug 5844 part 7, r=ds).
1 #ifndef _INCLUDE_KNIGHT_KE_CODE_ALLOCATOR_H_
2 #define _INCLUDE_KNIGHT_KE_CODE_ALLOCATOR_H_
13 * @brief Creates a new code cache/allocator.
15 * @return New code cache allocator.
17 extern KeCodeCache *KE_CreateCodeCache();
20 * @brief Destroys a code cache allocator.
22 * @param cache Code cache object.
24 extern void KE_DestroyCodeCache(KeCodeCache *cache);
27 * @brief Allocates code memory that is readable, writable,
30 * The address returned wlil be aligned, minimally, on a 16-byte
33 * @param cache Code cache object.
34 * @param size Amount of memory needed.
35 * @return Address pointing to the memory.
37 extern void *KE_AllocCode(KeCodeCache *cache, size_t size);
40 * @brief Frees code memory.
42 * @param cache Code cache object.
43 * @param code Address of code memory.
45 extern void KE_FreeCode(KeCodeCache *cache, void *code);
48 #endif //_INCLUDE_KNIGHT_KE_CODE_ALLOCATOR_H_