Esempio n. 1
0
        private void ApplyRuleForMoveIntLiteral(ref bool appliedRule, Core.InstructionMoveLiteralInt inst)
        {
            var destType = TypeResolver.GetDataAccessType(session, funct, inst.destination);
            var srcType  = Core.TypeStruct.Of(session.PrimitiveInt);

            var inferredDest = TypeInferencer.Try(session, srcType, ref destType);

            if (inferredDest)
            {
                appliedRule = ApplyToDataAccess(inst.destination, destType);
            }
        }
Esempio n. 2
0
 private void CheckMoveIntLiteral(List <InitStatus> statusList, Core.InstructionMoveLiteralInt inst)
 {
     CheckAndInitDestination(statusList, inst.destination);
 }
Esempio n. 3
0
        private void CheckMoveIntLiteral(Core.InstructionMoveLiteralInt inst)
        {
            var destType = TypeResolver.GetDataAccessType(this.session, this.funct, inst.destination);

            CheckMove(inst.destination, inst.type, inst.span);
        }