From 300553a21f58f7bc33f36fa6d4f36823d694d3a2 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Fri, 12 Oct 2018 08:02:35 +0200 Subject: [PATCH] - add more names to asmjit objects --- src/scripting/vm/jit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripting/vm/jit.cpp b/src/scripting/vm/jit.cpp index 21258df7984..28b642a5d69 100644 --- a/src/scripting/vm/jit.cpp +++ b/src/scripting/vm/jit.cpp @@ -221,7 +221,7 @@ void JitCompiler::Setup() cc.setArg(3, ret); cc.setArg(4, numret); - auto stackalloc = cc.newStack(sizeof(VMReturn) * MAX_RETURNS, alignof(VMReturn)); + auto stackalloc = cc.newStack(sizeof(VMReturn) * MAX_RETURNS, alignof(VMReturn), "stackalloc"); callReturns = cc.newIntPtr("callReturns"); cc.lea(callReturns, stackalloc); @@ -283,7 +283,7 @@ void JitCompiler::Setup() { // This is a simple frame with no constructors or destructors. Allocate it on the stack ourselves. - auto vmstack = cc.newStack(sfunc->StackSize, 16); + auto vmstack = cc.newStack(sfunc->StackSize, 16, "vmstack"); cc.lea(vmframe, vmstack); auto slowinit = cc.newLabel(); @@ -335,7 +335,7 @@ void JitCompiler::Setup() #endif cc.bind(slowinit); - auto sfuncptr = cc.newIntPtr(); + auto sfuncptr = newTempIntPtr(); cc.mov(sfuncptr, imm_ptr(sfunc)); if (cc.is64Bit()) cc.mov(x86::qword_ptr(vmframe, offsetof(VMFrame, Func)), sfuncptr);