mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-09 15:10:29 +02:00
Use an actual, invalid code, as last jit code.
This commit is contained in:
parent
1ce1d00db8
commit
e21db9c421
3 changed files with 5 additions and 5 deletions
|
@ -871,7 +871,7 @@ typedef enum {
|
||||||
#define jit_va_arg_d(u, v) jit_new_node_ww(jit_code_va_arg_d, u, v)
|
#define jit_va_arg_d(u, v) jit_new_node_ww(jit_code_va_arg_d, u, v)
|
||||||
jit_code_va_end,
|
jit_code_va_end,
|
||||||
#define jit_va_end(u) jit_new_node_w(jit_code_va_end, u)
|
#define jit_va_end(u) jit_new_node_w(jit_code_va_end, u)
|
||||||
#define jit_code_last_code jit_code_va_end
|
jit_code_last_code
|
||||||
} jit_code_t;
|
} jit_code_t;
|
||||||
|
|
||||||
typedef void* (*jit_alloc_func_ptr) (size_t);
|
typedef void* (*jit_alloc_func_ptr) (size_t);
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
/*
|
/*
|
||||||
* Initialization
|
* Initialization
|
||||||
*/
|
*/
|
||||||
static jit_int16_t _szs[jit_code_last_code + 1] = {
|
static jit_int16_t _szs[jit_code_last_code] = {
|
||||||
#if GET_JIT_SIZE
|
#if GET_JIT_SIZE
|
||||||
# define JIT_INSTR_MAX 256
|
# define JIT_INSTR_MAX 256
|
||||||
#else
|
#else
|
||||||
|
|
6
size.c
6
size.c
|
@ -22,7 +22,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "lib/jit_names.c"
|
#include "lib/jit_names.c"
|
||||||
|
|
||||||
jit_int16_t _szs[jit_code_last_code + 1];
|
jit_int16_t _szs[jit_code_last_code];
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
|
@ -40,7 +40,7 @@ main(int argc, char *argv[])
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
|
||||||
max = 0;
|
max = 0;
|
||||||
for (offset = 0; offset <= jit_code_last_code; offset++)
|
for (offset = 0; offset < jit_code_last_code; offset++)
|
||||||
if (max < _szs[offset])
|
if (max < _szs[offset])
|
||||||
max = _szs[offset];
|
max = _szs[offset];
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ main(int argc, char *argv[])
|
||||||
fprintf(fp, "#if defined(__powerpc__)\n");
|
fprintf(fp, "#if defined(__powerpc__)\n");
|
||||||
#endif
|
#endif
|
||||||
fprintf(fp, "#define JIT_INSTR_MAX %d\n", max);
|
fprintf(fp, "#define JIT_INSTR_MAX %d\n", max);
|
||||||
for (offset = 0; offset <= jit_code_last_code; offset++)
|
for (offset = 0; offset < jit_code_last_code; offset++)
|
||||||
fprintf(fp, " %d, /* %s */\n", _szs[offset], code_name[offset]);
|
fprintf(fp, " %d, /* %s */\n", _szs[offset], code_name[offset]);
|
||||||
#if defined(__arm__)
|
#if defined(__arm__)
|
||||||
fprintf(fp, "#endif /* __ARM_PCS_VFP */\n");
|
fprintf(fp, "#endif /* __ARM_PCS_VFP */\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue