Mercurial > pub > Jint1
annotate Jint.Runtime/VM2/Box.cs @ 2:4aed85a1f558
implemented simple vm2
author | cin |
---|---|
date | Fri, 25 Oct 2013 15:52:16 +0400 |
parents | 033ebe7432d5 |
children |
rev | line source |
---|---|
1 | 1 using System; |
2 | |
3 namespace Jint.Runtime.VM2 | |
4 { | |
5 using OpCodes; | |
6 | |
7 public class Box | |
8 { | |
9 public Operation[] impl; | |
10 public object value; | |
11 | |
2 | 12 public Box(object boxValue,Operation[] opImpl) { |
13 value = boxValue; | |
14 impl = opImpl; | |
15 } | |
16 | |
1 | 17 public Type HoldingType { |
18 get { | |
19 return value == null ? null : value.GetType (); | |
20 } | |
21 } | |
22 } | |
23 } | |
24 |