Mercurial > pub > Jint1
annotate Jint.Runtime/VM/OpCodes/Add.cs @ 1:033ebe7432d5
vm v2
| author | cin |
|---|---|
| date | Thu, 24 Oct 2013 19:45:57 +0400 |
| parents | e113095f1de0 |
| children |
| rev | line source |
|---|---|
| 0 | 1 using System; |
| 2 | |
| 3 namespace Jint.Runtime.VM.OpCodes | |
| 4 { | |
| 5 public class Add: BinaryOperation | |
| 6 { | |
| 7 public Add(int a1,int a2, int res) : base(a1,a2,res) { | |
| 8 } | |
| 9 | |
| 10 #region IBinaryOp implementation | |
| 11 public override void Invoke<T> (T arg1, T arg2, IBinder<T> binder, Frame frame) | |
| 12 { | |
| 13 frame.Set(m_res, binder.OpAdd(arg1,arg2)); | |
| 14 } | |
| 15 #endregion | |
| 16 } | |
| 17 } | |
| 18 |
