JIT: always use buffer padding of 200

The main intent of this change is to raise the buffer size
for ARM, but that would leave only 32-bit x86 at size 100, so
just make it size large for all machines.
This commit is contained in:
Matthew Flatt 2015-12-12 14:11:17 -07:00
parent c6b8ba7c4a
commit d01aec1b32
2 changed files with 2 additions and 5 deletions

View File

@ -1315,11 +1315,7 @@ static void emit_indentation(mz_jit_state *jitter)
/* jitstate */
/**********************************************************************/
#if defined(SIXTY_FOUR_BIT_INTEGERS) || defined(MZ_USE_JIT_PPC)
#define JIT_BUFFER_PAD_SIZE 200
#else
# define JIT_BUFFER_PAD_SIZE 100
#endif
#define PAST_LIMIT() ((uintptr_t)jit_get_raw_ip() > (uintptr_t)jitter->limit)
#define CHECK_LIMIT() if (PAST_LIMIT()) return past_limit(jitter, __FILE__, __LINE__);

View File

@ -1709,6 +1709,7 @@ static int generate_call_path_with_unboxes(mz_jit_state *jitter, int direct_flos
/* Reset V1 to rator for slow path: */
scheme_generate(rator, jitter, 0, 0, 0, JIT_V1, NULL, NULL);
CHECK_LIMIT();
mz_rs_sync();
return 1;