annotate Jint.Runtime/VM/OpCodes/GteCmp.cs @ 8:5b2302d3ac4f default tip

Слияние
author cin
date Wed, 30 Oct 2013 20:44:42 +0400
parents cb13da6e3349
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
cb13da6e3349 simple loop test
cin
parents:
diff changeset
1 using System;
cb13da6e3349 simple loop test
cin
parents:
diff changeset
2 using System.Collections.Generic;
cb13da6e3349 simple loop test
cin
parents:
diff changeset
3 using System.Linq;
cb13da6e3349 simple loop test
cin
parents:
diff changeset
4 using System.Text;
cb13da6e3349 simple loop test
cin
parents:
diff changeset
5
cb13da6e3349 simple loop test
cin
parents:
diff changeset
6 namespace Jint.Runtime.VM.OpCodes {
cb13da6e3349 simple loop test
cin
parents:
diff changeset
7 class GteCmp: IInstruction {
cb13da6e3349 simple loop test
cin
parents:
diff changeset
8 int m_arg1;
cb13da6e3349 simple loop test
cin
parents:
diff changeset
9 int m_arg2;
cb13da6e3349 simple loop test
cin
parents:
diff changeset
10 int m_dest;
cb13da6e3349 simple loop test
cin
parents:
diff changeset
11 IInstruction m_next;
cb13da6e3349 simple loop test
cin
parents:
diff changeset
12
cb13da6e3349 simple loop test
cin
parents:
diff changeset
13 public GteCmp(int arg1, int arg2, int dest) {
cb13da6e3349 simple loop test
cin
parents:
diff changeset
14 m_arg1 = arg1;
cb13da6e3349 simple loop test
cin
parents:
diff changeset
15 m_arg2 = arg2;
cb13da6e3349 simple loop test
cin
parents:
diff changeset
16 m_dest = dest;
cb13da6e3349 simple loop test
cin
parents:
diff changeset
17 }
cb13da6e3349 simple loop test
cin
parents:
diff changeset
18
cb13da6e3349 simple loop test
cin
parents:
diff changeset
19 public IInstruction Chain(IInstruction next) {
cb13da6e3349 simple loop test
cin
parents:
diff changeset
20 return m_next = next;
cb13da6e3349 simple loop test
cin
parents:
diff changeset
21 }
cb13da6e3349 simple loop test
cin
parents:
diff changeset
22
cb13da6e3349 simple loop test
cin
parents:
diff changeset
23 public IInstruction Invoke(Frame frame) {
cb13da6e3349 simple loop test
cin
parents:
diff changeset
24 frame.SetValue(m_dest, frame[m_arg1].InvokeCompareOperation(m_arg2, frame) >= 0);
cb13da6e3349 simple loop test
cin
parents:
diff changeset
25 return m_next;
cb13da6e3349 simple loop test
cin
parents:
diff changeset
26 }
cb13da6e3349 simple loop test
cin
parents:
diff changeset
27 }
cb13da6e3349 simple loop test
cin
parents:
diff changeset
28 }