Mercurial > pub > Jint1
comparison Jint.Runtime/VM2/Machine.cs @ 1:033ebe7432d5
vm v2
author | cin |
---|---|
date | Thu, 24 Oct 2013 19:45:57 +0400 |
parents | |
children | 4aed85a1f558 |
comparison
equal
deleted
inserted
replaced
0:e113095f1de0 | 1:033ebe7432d5 |
---|---|
1 using System; | |
2 using System.Collections.Generic; | |
3 | |
4 namespace Jint.Runtime.VM2 | |
5 { | |
6 public class Machine | |
7 { | |
8 RuntimeContext m_context; | |
9 Stack<object[]> m_frames; | |
10 object[] m_frame; | |
11 | |
12 | |
13 public Machine () | |
14 { | |
15 } | |
16 | |
17 public void Execute(Instruction[] instructions) { | |
18 foreach (var op in instructions) { | |
19 | |
20 } | |
21 } | |
22 | |
23 private object[] MakeArgs(int[] regs) { | |
24 object[] args = new object[regs.Length]; | |
25 for (int i=0; i< regs.Length; i++) | |
26 args = m_frame [regs [i]]; | |
27 } | |
28 } | |
29 } | |
30 |