| 5 | 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 LteCmp: IInstruction { | 
|  | 8         int m_arg1; | 
|  | 9         int m_arg2; | 
|  | 10         int m_dest; | 
|  | 11         IInstruction m_next; | 
|  | 12 | 
|  | 13         public LteCmp(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 } |