Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultVirtualFrame.java @ 13760:a12017c18d5d
Truffle API cleanup: Reduce the visibility of classes and constructors that are not intended to be instantiated by guest language implementations; provide abstract class RootCallTarget as a CallTarget to a RootNode
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Fri, 24 Jan 2014 18:13:38 -0800 |
parents | 833f8e96d0a5 |
children | 64dcb92ee75a |
comparison
equal
deleted
inserted
replaced
13759:eed1aafead0d | 13760:a12017c18d5d |
---|---|
27 import java.util.*; | 27 import java.util.*; |
28 | 28 |
29 import com.oracle.truffle.api.*; | 29 import com.oracle.truffle.api.*; |
30 import com.oracle.truffle.api.frame.*; | 30 import com.oracle.truffle.api.frame.*; |
31 | 31 |
32 public final class DefaultVirtualFrame implements VirtualFrame { | 32 /** |
33 * This is an implementation-specific class. Do not use or instantiate it. Instead, use | |
34 * {@link TruffleRuntime#createVirtualFrame(PackedFrame, Arguments, FrameDescriptor)} to create a | |
35 * {@link VirtualFrame}. | |
36 */ | |
37 final class DefaultVirtualFrame implements VirtualFrame { | |
33 | 38 |
34 private final FrameDescriptor descriptor; | 39 private final FrameDescriptor descriptor; |
35 private final PackedFrame caller; | 40 private final PackedFrame caller; |
36 private final Arguments arguments; | 41 private final Arguments arguments; |
37 private Object[] locals; | 42 private Object[] locals; |
38 private byte[] tags; | 43 private byte[] tags; |
39 | 44 |
40 public DefaultVirtualFrame(FrameDescriptor descriptor, PackedFrame caller, Arguments arguments) { | 45 DefaultVirtualFrame(FrameDescriptor descriptor, PackedFrame caller, Arguments arguments) { |
41 this.descriptor = descriptor; | 46 this.descriptor = descriptor; |
42 this.caller = caller; | 47 this.caller = caller; |
43 this.arguments = arguments; | 48 this.arguments = arguments; |
44 this.locals = new Object[descriptor.getSize()]; | 49 this.locals = new Object[descriptor.getSize()]; |
45 Arrays.fill(locals, descriptor.getTypeConversion().getDefaultValue()); | 50 Arrays.fill(locals, descriptor.getTypeConversion().getDefaultValue()); |