public class CPU extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CPU.HandleErrorException
This is used to propagate the results of
handleError(WorkerExecutionContext) to the
main CPU instruction loop. |
Constructor and Description |
---|
CPU() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkCast(BValue rhsValue,
BType lhsType) |
static boolean |
checkFunctionTypeEquality(BFunctionType source,
BFunctionType target) |
static boolean |
checkStructEquivalency(BStructureType rhsType,
BStructureType lhsType) |
static void |
copyArgValueForWorkerReceive(WorkerData currentSF,
int regIndex,
BType paramType,
BRefType passedInValue) |
static void |
copyArgValues(WorkerData callerSF,
WorkerData calleeSF,
int[] argRegs,
BType[] paramTypes) |
static void |
copyValues(WorkerExecutionContext ctx,
WorkerData parent,
WorkerData workerSF) |
static void |
exec(WorkerExecutionContext ctx) |
static void |
handleError(WorkerExecutionContext ctx) |
static boolean |
isAssignable(BType sourceType,
BType targetType) |
static void |
traceCode(Instruction[] code) |
public static void traceCode(Instruction[] code)
public static void exec(WorkerExecutionContext ctx)
public static void copyArgValueForWorkerReceive(WorkerData currentSF, int regIndex, BType paramType, BRefType passedInValue)
public static void copyValues(WorkerExecutionContext ctx, WorkerData parent, WorkerData workerSF)
public static void copyArgValues(WorkerData callerSF, WorkerData calleeSF, int[] argRegs, BType[] paramTypes)
public static boolean checkStructEquivalency(BStructureType rhsType, BStructureType lhsType)
public static boolean checkFunctionTypeEquality(BFunctionType source, BFunctionType target)
public static void handleError(WorkerExecutionContext ctx)
Copyright © 2018 WSO2. All rights reserved.