Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultVirtualFrame.java @ 14991:64dcb92ee75a
Truffle: Change signature for Truffle calls from (PackedFrame, Arguments) to (Object[]).
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sun, 06 Apr 2014 17:46:24 +0200 |
parents | a12017c18d5d |
children | 94f16a759646 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultVirtualFrame.java Sat Apr 05 19:35:30 2014 +0200 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/impl/DefaultVirtualFrame.java Sun Apr 06 17:46:24 2014 +0200 @@ -31,40 +31,27 @@ /** * This is an implementation-specific class. Do not use or instantiate it. Instead, use - * {@link TruffleRuntime#createVirtualFrame(PackedFrame, Arguments, FrameDescriptor)} to create a + * {@link TruffleRuntime#createVirtualFrame(Object[], FrameDescriptor)} to create a * {@link VirtualFrame}. */ final class DefaultVirtualFrame implements VirtualFrame { private final FrameDescriptor descriptor; - private final PackedFrame caller; - private final Arguments arguments; + private final Object[] arguments; private Object[] locals; private byte[] tags; - DefaultVirtualFrame(FrameDescriptor descriptor, PackedFrame caller, Arguments arguments) { + DefaultVirtualFrame(FrameDescriptor descriptor, Object[] arguments) { this.descriptor = descriptor; - this.caller = caller; this.arguments = arguments; this.locals = new Object[descriptor.getSize()]; Arrays.fill(locals, descriptor.getTypeConversion().getDefaultValue()); this.tags = new byte[descriptor.getSize()]; } - @SuppressWarnings("unchecked") @Override - public <T extends Arguments> T getArguments(Class<T> clazz) { - return (T) arguments; - } - - @Override - public PackedFrame getCaller() { - return caller; - } - - @Override - public PackedFrame pack() { - return new DefaultPackedFrame(this); + public Object[] getArguments() { + return arguments; } @Override