Mercurial > pub > Jint1
diff Jint.Runtime/VM2/Machine.cs @ 1:033ebe7432d5
vm v2
author | cin |
---|---|
date | Thu, 24 Oct 2013 19:45:57 +0400 |
parents | |
children | 4aed85a1f558 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Jint.Runtime/VM2/Machine.cs Thu Oct 24 19:45:57 2013 +0400 @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; + +namespace Jint.Runtime.VM2 +{ + public class Machine + { + RuntimeContext m_context; + Stack<object[]> m_frames; + object[] m_frame; + + + public Machine () + { + } + + public void Execute(Instruction[] instructions) { + foreach (var op in instructions) { + + } + } + + private object[] MakeArgs(int[] regs) { + object[] args = new object[regs.Length]; + for (int i=0; i< regs.Length; i++) + args = m_frame [regs [i]]; + } + } +} +