Mercurial > pub > Jint1
view Jint.Runtime/VM/OpCodes/Add.cs @ 2:4aed85a1f558
implemented simple vm2
author | cin |
---|---|
date | Fri, 25 Oct 2013 15:52:16 +0400 |
parents | e113095f1de0 |
children |
line wrap: on
line source
using System; namespace Jint.Runtime.VM.OpCodes { public class Add: BinaryOperation { public Add(int a1,int a2, int res) : base(a1,a2,res) { } #region IBinaryOp implementation public override void Invoke<T> (T arg1, T arg2, IBinder<T> binder, Frame frame) { frame.Set(m_res, binder.OpAdd(arg1,arg2)); } #endregion } }