public override Task <IDeployedPackage> DeploySinglePackageAsync(IBuiltPackage package, bool isTopLevel) { var functionDeployedPackage = LLVM.FunctionDeployedPackage.DeployFunction((LLVM.FunctionBuiltPackage)package, _executionTarget, _llvmExecutionContext); _executionTarget.OnExecutableCreated(functionDeployedPackage.Executable); return(Task.FromResult <IDeployedPackage>(functionDeployedPackage)); }
public override Task <IDeployedPackage> DeploySinglePackageAsync(IBuiltPackage package, bool isTopLevel) { IDeployedPackage deployedPackage = null; if (!RebarFeatureToggles.IsLLVMCompilerEnabled) { var functionDeployedPackage = BytecodeInterpreter.FunctionDeployedPackage.DeployFunction((BytecodeInterpreter.FunctionBuiltPackage)package, _executionTarget, _bytecodeInterpreterExecutionContext); _executionTarget.OnExecutableCreated(functionDeployedPackage.Executable); deployedPackage = functionDeployedPackage; } else { var functionDeployedPackage = LLVM.FunctionDeployedPackage.DeployFunction((LLVM.FunctionBuiltPackage)package, _executionTarget, _llvmExecutionContext); _executionTarget.OnExecutableCreated(functionDeployedPackage.Executable); deployedPackage = functionDeployedPackage; } return(Task.FromResult(deployedPackage)); }