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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
1 using System;
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
2
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
3 namespace Jint.Runtime.VM.OpCodes
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
4 {
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
5 public class Add: BinaryOperation
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
6 {
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
7 public Add(int a1,int a2, int res) : base(a1,a2,res) {
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
8 }
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
9
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
10 #region IBinaryOp implementation
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
11 public override void Invoke<T> (T arg1, T arg2, IBinder<T> binder, Frame frame)
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
12 {
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
13 frame.Set(m_res, binder.OpAdd(arg1,arg2));
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
14 }
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
15 #endregion
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
16 }
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
17 }
e113095f1de0 initial commit, proof of concept
cin
parents:
diff changeset
18