Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultVirtualFrame.java @ 7307:dc3e86fd3be1
Introduce cutomization capability for canonicalizer.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Thu, 20 Dec 2012 14:38:06 +0100 |
parents | a4b84ba6dc2e |
children | 5e3d1a68664e |
comparison
equal
deleted
inserted
replaced
7280:f368ec89e231 | 7307:dc3e86fd3be1 |
---|---|
25 import java.util.*; | 25 import java.util.*; |
26 | 26 |
27 import com.oracle.truffle.api.*; | 27 import com.oracle.truffle.api.*; |
28 import com.oracle.truffle.api.frame.*; | 28 import com.oracle.truffle.api.frame.*; |
29 | 29 |
30 final class DefaultVirtualFrame implements VirtualFrame { | 30 public final class DefaultVirtualFrame implements VirtualFrame { |
31 | 31 |
32 private static final Object UNDEFINED_OBJECT = null; | 32 private static final Object UNDEFINED_OBJECT = null; |
33 private static final Boolean UNDEFINED_BOOLEAN = false; | 33 private static final Boolean UNDEFINED_BOOLEAN = false; |
34 private static final Integer UNDEFINED_INTEGER = 0; | 34 private static final Integer UNDEFINED_INTEGER = 0; |
35 private static final Float UNDEFINED_FLOAT = 0.0f; | 35 private static final Float UNDEFINED_FLOAT = 0.0f; |
41 private final Arguments arguments; | 41 private final Arguments arguments; |
42 private FrameVersion currentVersion; | 42 private FrameVersion currentVersion; |
43 protected Object[] locals; | 43 protected Object[] locals; |
44 protected Class[] tags; | 44 protected Class[] tags; |
45 | 45 |
46 DefaultVirtualFrame(FrameDescriptor descriptor, PackedFrame caller, Arguments arguments) { | 46 public DefaultVirtualFrame(FrameDescriptor descriptor, PackedFrame caller, Arguments arguments) { |
47 this.descriptor = descriptor; | 47 this.descriptor = descriptor; |
48 this.caller = caller; | 48 this.caller = caller; |
49 this.arguments = arguments; | 49 this.arguments = arguments; |
50 this.currentVersion = descriptor.getCurrentVersion(); | 50 this.currentVersion = descriptor.getCurrentVersion(); |
51 this.locals = new Object[descriptor.getSize()]; | 51 this.locals = new Object[descriptor.getSize()]; |