Mercurial > pub > Jint1
comparison Jint.Runtime/VM/Machine.cs @ 3:aced2ae9957f
temp commit, new virtual machine concept (strongly typed version of VM2).
| author | cin |
|---|---|
| date | Sun, 27 Oct 2013 17:23:25 +0400 |
| parents | |
| children | a6329b092499 |
comparison
equal
deleted
inserted
replaced
| 2:4aed85a1f558 | 3:aced2ae9957f |
|---|---|
| 1 using System; | |
| 2 using System.Collections.Generic; | |
| 3 using System.Linq; | |
| 4 using System.Text; | |
| 5 | |
| 6 namespace Jint.Runtime.VM { | |
| 7 class Machine { | |
| 8 Frame m_frame; | |
| 9 | |
| 10 public void Run(IInstruction prog) { | |
| 11 while (prog != null) | |
| 12 prog = prog.Invoke(m_frame); | |
| 13 } | |
| 14 } | |
| 15 } |
