From 6f55c76f055fede3c595dc2a000ccd84e5218cff Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sun, 9 Sep 2018 23:21:47 +0200 Subject: [PATCH] - fix missing zero extend --- src/scripting/vm/jit.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/scripting/vm/jit.cpp b/src/scripting/vm/jit.cpp index 0383905a28..9ee7969a8a 100644 --- a/src/scripting/vm/jit.cpp +++ b/src/scripting/vm/jit.cpp @@ -458,25 +458,25 @@ private: void EmitLBU() { EmitNullPointerThrow(B, X_READ_NIL); - cc.mov(regD[A], asmjit::x86::byte_ptr(regA[B], konstd[C])); + cc.movzx(regD[A], asmjit::x86::byte_ptr(regA[B], konstd[C])); } void EmitLBU_R() { EmitNullPointerThrow(B, X_READ_NIL); - cc.mov(regD[A], asmjit::x86::byte_ptr(regA[B], regD[C])); + cc.movzx(regD[A].r8Lo(), asmjit::x86::byte_ptr(regA[B], regD[C])); } void EmitLHU() { EmitNullPointerThrow(B, X_READ_NIL); - cc.mov(regD[A], asmjit::x86::word_ptr(regA[B], konstd[C])); + cc.movzx(regD[A].r16(), asmjit::x86::word_ptr(regA[B], konstd[C])); } void EmitLHU_R() { EmitNullPointerThrow(B, X_READ_NIL); - cc.mov(regD[A], asmjit::x86::word_ptr(regA[B], regD[C])); + cc.movzx(regD[A].r16(), asmjit::x86::word_ptr(regA[B], regD[C])); } void EmitLSP() @@ -3054,7 +3054,7 @@ static void OutputJitLog(const asmjit::StringLogger &logger) JitFuncPtr JitCompile(VMScriptFunction *sfunc) { #if defined(DEBUG_JIT) - if (strcmp(sfunc->Name.GetChars(), "CanPickup") != 0) + if (strcmp(sfunc->PrintableName.GetChars(), "Key.ShouldStay") != 0) return nullptr; #else if (!JitCompiler::CanJit(sfunc))