JIT: more buffer-limit adjustments

To cut down on PPC-specific problems, make the JIT buffer's padding
larger on that platform (since instructions tend to be larger).
This commit is contained in:
Matthew Flatt 2012-11-20 06:25:00 -07:00
parent 95541928f1
commit fc68d02027
2 changed files with 2 additions and 1 deletions

View File

@ -1426,6 +1426,7 @@ static int generate_non_tail_with_branch(Scheme_Object *obj, mz_jit_state *jitte
LOG_IT(("non-tail\n"));
if (mark_pos_ends)
scheme_generate_non_tail_mark_pos_prefix(jitter);
CHECK_LIMIT();
if (!jitter->local1_busy) {
mz_tl_ldi_p(JIT_R2, tl_scheme_current_cont_mark_stack);
using_local1 = 1;

View File

@ -1154,7 +1154,7 @@ static void emit_indentation(mz_jit_state *jitter)
/* jitstate */
/**********************************************************************/
#ifdef SIXTY_FOUR_BIT_INTEGERS
#if defined(SIXTY_FOUR_BIT_INTEGERS) || defined(MZ_USE_JIT_PPC)
# define JIT_BUFFER_PAD_SIZE 200
#else
# define JIT_BUFFER_PAD_SIZE 100