view Jint.Runtime/VM/AbstractBox.cs @ 6:a6329b092499

Added scopes, function builder
author cin
date Wed, 30 Oct 2013 17:38:35 +0400
parents cb13da6e3349
children
line wrap: on
line source

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jint.Runtime.VM {
    using OpCodes;

    abstract class AbstractBox {

        protected AbstractBox(Type type) {
            holdingType = type;
        }

        public readonly Type holdingType;

        public abstract void InvokeBinaryOperation(Codes code, int arg2, int dest, Frame frame);
        public abstract void InvokeUnaryOperation(Codes code, int dest, Frame frame);
        public abstract int InvokeCompareOperation(int arg2, Frame frame);
        public abstract bool InvokeEqualityOperation(int arg2, Frame frame);
        public abstract T Convert<T>();
		public abstract void CopyTo (Frame frame, int dest);
    }
}