195 |
int local_size; |
int local_size; |
196 |
/* Code size. */ |
/* Code size. */ |
197 |
sljit_uw size; |
sljit_uw size; |
198 |
|
/* For statistical purposes. */ |
199 |
|
sljit_uw executable_size; |
200 |
|
|
201 |
#if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) |
#if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) |
202 |
int args; |
int args; |
293 |
SLJIT_API_FUNC_ATTRIBUTE void* sljit_generate_code(struct sljit_compiler *compiler); |
SLJIT_API_FUNC_ATTRIBUTE void* sljit_generate_code(struct sljit_compiler *compiler); |
294 |
SLJIT_API_FUNC_ATTRIBUTE void sljit_free_code(void* code); |
SLJIT_API_FUNC_ATTRIBUTE void sljit_free_code(void* code); |
295 |
|
|
296 |
|
/* |
297 |
|
After the code generation we can retrieve the allocated executable memory size, |
298 |
|
although this area may not be fully filled with instructions depending on some |
299 |
|
optimizations. This function is useful only for statistical purposes. |
300 |
|
|
301 |
|
Before a successful code generation, this function returns with 0. |
302 |
|
*/ |
303 |
|
static SLJIT_INLINE sljit_uw sljit_get_generated_code_size(struct sljit_compiler *compiler) { return compiler->executable_size; } |
304 |
|
|
305 |
/* Instruction generation. Returns with error code. */ |
/* Instruction generation. Returns with error code. */ |
306 |
|
|
307 |
/* |
/* |