1
|
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
|