Mercurial > pub > Jint1
comparison Jint.Runtime/VM/OpCodes/GteCmp.cs @ 5:cb13da6e3349
simple loop test
author | cin |
---|---|
date | Mon, 28 Oct 2013 00:49:15 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4:1ae5b10f7a10 | 5:cb13da6e3349 |
---|---|
1 using System; | |
2 using System.Collections.Generic; | |
3 using System.Linq; | |
4 using System.Text; | |
5 | |
6 namespace Jint.Runtime.VM.OpCodes { | |
7 class GteCmp: IInstruction { | |
8 int m_arg1; | |
9 int m_arg2; | |
10 int m_dest; | |
11 IInstruction m_next; | |
12 | |
13 public GteCmp(int arg1, int arg2, int dest) { | |
14 m_arg1 = arg1; | |
15 m_arg2 = arg2; | |
16 m_dest = dest; | |
17 } | |
18 | |
19 public IInstruction Chain(IInstruction next) { | |
20 return m_next = next; | |
21 } | |
22 | |
23 public IInstruction Invoke(Frame frame) { | |
24 frame.SetValue(m_dest, frame[m_arg1].InvokeCompareOperation(m_arg2, frame) >= 0); | |
25 return m_next; | |
26 } | |
27 } | |
28 } |