public ExecutableFunction(ExecutionTarget target, LLVM.ExecutionContext context, IRuntimeEntityIdentity runtimeIdentity) { CreatedDate = DateTime.Now; ExecutionTarget = target; CompiledName = runtimeIdentity.EditorName; RuntimeName = runtimeIdentity.RuntimeName; _llvmContext = context; }
private void HandleDeploymentStarting(IBuiltPackage topLevelPackage) { var executionServices = new HostExecutionServices(_executionTarget.Host); if (_llvmExecutionContext != null) { _llvmExecutionContext.Dispose(); } _llvmExecutionContext = new LLVM.ExecutionContext(executionServices); }
private void HandleDeploymentStarting(IBuiltPackage topLevelPackage) { var executionServices = new HostExecutionServices(_executionTarget.Host); if (!RebarFeatureToggles.IsLLVMCompilerEnabled) { _bytecodeInterpreterExecutionContext = new BytecodeInterpreter.ExecutionContext(executionServices); } else { _llvmExecutionContext = new LLVM.ExecutionContext(executionServices); } }
public ExecutableFunction( ExecutionTarget target, LLVM.ExecutionContext context, IRuntimeEntityIdentity runtimeIdentity, bool isAsync) { CreatedDate = DateTime.Now; ExecutionTarget = target; CompiledName = runtimeIdentity.EditorName; RuntimeName = FunctionCompileHandler.FunctionLLVMName(runtimeIdentity.EditorName); _llvmContext = context; IsAsync = isAsync; }
public override Task UnloadAllAsync() { _llvmExecutionContext.Dispose(); _llvmExecutionContext = null; return(Task.CompletedTask); }