Пример #1
0
        public static HLLabelInstruction Create(HLMethod pMethod, HLLabel pLabel)
        {
            HLLabelInstruction instruction = new HLLabelInstruction(pMethod);

            instruction.mLabel = pLabel;
            return(instruction);
        }
Пример #2
0
        public static HLGotoInstruction Create(HLMethod pMethod, HLLabel pTargetLabel)
        {
            HLGotoInstruction instruction = new HLGotoInstruction(pMethod);

            instruction.mTargetLabel = pTargetLabel;
            return(instruction);
        }
Пример #3
0
 public static HLBranchInstruction Create(HLMethod pMethod, HLLocation pConditionSource, HLLabel pTrueLabel, HLLabel pFalseLabel)
 {
     HLBranchInstruction instruction = new HLBranchInstruction(pMethod);
     instruction.mConditionSource = pConditionSource;
     instruction.mTrueLabel = pTrueLabel;
     instruction.mFalseLabel = pFalseLabel;
     return instruction;
 }
Пример #4
0
 public static HLSwitchInstruction Create(HLMethod pMethod, HLLocation pConditionSource, HLLabel pDefaultLabel, List<Tuple<HLLiteralLocation, HLLabel>> pCases)
 {
     HLSwitchInstruction instruction = new HLSwitchInstruction(pMethod);
     instruction.mConditionSource = pConditionSource;
     instruction.mDefaultLabel = pDefaultLabel;
     instruction.mCases = new List<Tuple<HLLiteralLocation, HLLabel>>(pCases);
     return instruction;
 }
Пример #5
0
 public static HLGotoInstruction Create(HLMethod pMethod, HLLabel pTargetLabel)
 {
     HLGotoInstruction instruction = new HLGotoInstruction(pMethod);
     instruction.mTargetLabel = pTargetLabel;
     return instruction;
 }
Пример #6
0
        public static HLSwitchInstruction Create(HLMethod pMethod, HLLocation pConditionSource, HLLabel pDefaultLabel, List <Tuple <HLLiteralLocation, HLLabel> > pCases)
        {
            HLSwitchInstruction instruction = new HLSwitchInstruction(pMethod);

            instruction.mConditionSource = pConditionSource;
            instruction.mDefaultLabel    = pDefaultLabel;
            instruction.mCases           = new List <Tuple <HLLiteralLocation, HLLabel> >(pCases);
            return(instruction);
        }
Пример #7
0
        public static HLBranchInstruction Create(HLMethod pMethod, HLLocation pConditionSource, HLLabel pTrueLabel, HLLabel pFalseLabel)
        {
            HLBranchInstruction instruction = new HLBranchInstruction(pMethod);

            instruction.mConditionSource = pConditionSource;
            instruction.mTrueLabel       = pTrueLabel;
            instruction.mFalseLabel      = pFalseLabel;
            return(instruction);
        }
Пример #8
0
 public static HLLabelInstruction Create(HLMethod pMethod, HLLabel pLabel)
 {
     HLLabelInstruction instruction = new HLLabelInstruction(pMethod);
     instruction.mLabel = pLabel;
     return instruction;
 }