Browse Source

x86: Minor interpreter optimization.

Mike Pall 10 years ago
parent
commit
31e66838d8
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/vm_x86.dasc

+ 1 - 2
src/vm_x86.dasc

@@ -5320,8 +5320,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop)
     |  jnz <4
     |  movzx RA, PC_RA
     |  not RAa
-    |  lea RA, [BASE+RA*8]
-    |  mov LFUNC:KBASE, [RA-8]		// Need to prepare KBASE.
+    |  mov LFUNC:KBASE, [BASE+RA*8-8]	// Need to prepare KBASE.
     |  mov KBASE, LFUNC:KBASE->pc
     |  mov KBASE, [KBASE+PC2PROTO(k)]
     |  jmp <4