Kaynağa Gözat

passing haxe unit tests in win64

ncannasse 7 yıl önce
ebeveyn
işleme
23d8b3edaa
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      src/jit.c

+ 3 - 3
src/jit.c

@@ -252,7 +252,7 @@ static int RCPU_SCRATCH_REGS[] = { Eax, Ecx, Edx };
 
 
 #define BREAK()		B(0xCC)
 #define BREAK()		B(0xCC)
 
 
-#if defined(HL_64) && defined(HL_VCC) && defined(_DEBUG)
+#if defined(HL_64) && defined(HL_VCC)
 #	define JIT_CUSTOM_LONGJUMP
 #	define JIT_CUSTOM_LONGJUMP
 #endif
 #endif
 
 
@@ -2682,9 +2682,9 @@ static void make_dyn_cast( jit_ctx *ctx, vreg *dst, vreg *v ) {
 	tmp = alloc_native_arg(ctx);
 	tmp = alloc_native_arg(ctx);
 	op64(ctx,MOV,tmp,REG_AT(Ebp));
 	op64(ctx,MOV,tmp,REG_AT(Ebp));
 	if( v->stackPos >= 0 )
 	if( v->stackPos >= 0 )
-		op32(ctx,ADD,tmp,pconst(&p,v->stackPos));
+		op64(ctx,ADD,tmp,pconst(&p,v->stackPos));
 	else
 	else
-		op32(ctx,SUB,tmp,pconst(&p,-v->stackPos));
+		op64(ctx,SUB,tmp,pconst(&p,-v->stackPos));
 	set_native_arg(ctx,tmp);
 	set_native_arg(ctx,tmp);
 	call_native(ctx,get_dyncast(dst->t),size);
 	call_native(ctx,get_dyncast(dst->t),size);
 	store_result(ctx, dst);
 	store_result(ctx, dst);