Beispiel #1
0
        private static void EmitExceptionCall(ArmEmitterContext context, string name)
        {
            OpCode32Exception op = (OpCode32Exception)context.CurrOp;

            context.StoreToContext();

            context.Call(typeof(NativeInterface).GetMethod(name), Const(op.Address), Const(op.Id));

            context.LoadFromContext();
        }
Beispiel #2
0
        private static void EmitExceptionCall(ArmEmitterContext context, _Void_U64_S32 func)
        {
            OpCode32Exception op = (OpCode32Exception)context.CurrOp;

            context.StoreToContext();

            context.Call(func, Const(op.Address), Const(op.Id));

            context.LoadFromContext();

            if (context.CurrBlock.Next == null)
            {
                context.Return(Const(op.Address + 4));
            }
        }