public ExecutableFunction(ExecutionTarget target, BytecodeInterpreter.ExecutionContext context, IRuntimeEntityIdentity runtimeIdentity) { CreatedDate = DateTime.Now; ExecutionTarget = target; CompiledName = runtimeIdentity.EditorName; RuntimeName = runtimeIdentity.RuntimeName; _context = context; }
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 static FunctionDeployedPackage DeployFunction(FunctionBuiltPackage builtPackage, ExecutionTarget target, ExecutionContext context) { context.LoadFunction(builtPackage.Function); return(new FunctionDeployedPackage(builtPackage.RuntimeEntityIdentity, target, context)); }
private FunctionDeployedPackage(IRuntimeEntityIdentity identity, ExecutionTarget executionTarget, ExecutionContext context) { DeployedPackageIdentity = identity; Executable = new ExecutableFunction(executionTarget, context, identity); }