From 97051bb4a4e60fd58e67a0b0ed36f3c3ed1dd8e4 Mon Sep 17 00:00:00 2001 From: LDj3SNuD <35856442+LDj3SNuD@users.noreply.github.com> Date: Tue, 17 Sep 2019 20:52:06 +0200 Subject: [PATCH] Opt.. --- ARMeilleure/Translation/EmitterContext.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ARMeilleure/Translation/EmitterContext.cs b/ARMeilleure/Translation/EmitterContext.cs index af1764ca82..6da6bcaac1 100644 --- a/ARMeilleure/Translation/EmitterContext.cs +++ b/ARMeilleure/Translation/EmitterContext.cs @@ -7,6 +7,8 @@ using static ARMeilleure.IntermediateRepresentation.OperandHelper; namespace ARMeilleure.Translation { + using AOT; + class EmitterContext { private Dictionary _irLabels; @@ -83,7 +85,7 @@ namespace ARMeilleure.Translation DelegateInfo dlgInfo = Delegates.GetMathDelegateInfo(name); - return Call(Const(dlgInfo.FuncPtr.ToInt64(), true, name), dlgInfo.RetType, callArgs); + return Call(Const(dlgInfo.FuncPtr.ToInt64(), Aot.Enabled, name), dlgInfo.RetType, callArgs); } public Operand NativeInterfaceCall(string funcName, params Operand[] callArgs) @@ -92,7 +94,7 @@ namespace ARMeilleure.Translation DelegateInfo dlgInfo = Delegates.GetNativeInterfaceDelegateInfo(funcName); - return Call(Const(dlgInfo.FuncPtr.ToInt64(), true, funcName), dlgInfo.RetType, callArgs); + return Call(Const(dlgInfo.FuncPtr.ToInt64(), Aot.Enabled, funcName), dlgInfo.RetType, callArgs); } public Operand SoftFallbackCall(string funcName, params Operand[] callArgs) @@ -101,7 +103,7 @@ namespace ARMeilleure.Translation DelegateInfo dlgInfo = Delegates.GetSoftFallbackDelegateInfo(funcName); - return Call(Const(dlgInfo.FuncPtr.ToInt64(), true, funcName), dlgInfo.RetType, callArgs); + return Call(Const(dlgInfo.FuncPtr.ToInt64(), Aot.Enabled, funcName), dlgInfo.RetType, callArgs); } public Operand SoftFloatCall(string className, string funcName, params Operand[] callArgs) @@ -110,7 +112,7 @@ namespace ARMeilleure.Translation DelegateInfo dlgInfo = Delegates.GetSoftFloatDelegateInfo(name); - return Call(Const(dlgInfo.FuncPtr.ToInt64(), true, name), dlgInfo.RetType, callArgs); + return Call(Const(dlgInfo.FuncPtr.ToInt64(), Aot.Enabled, name), dlgInfo.RetType, callArgs); } public Operand Call(Operand address, OperandType returnType, params Operand[] callArgs) @@ -547,4 +549,4 @@ namespace ARMeilleure.Translation return new ControlFlowGraph(_irBlocks.First.Value, _irBlocks); } } -} \ No newline at end of file +}