예제 #1
0
        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));
        }
예제 #2
0
        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));
        }