Mercurial > hg > graal-compiler
view graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/ReadOnlyFrame.java @ 22186:652d8bc53ef9
ReadOnlyFrame methods are not intended to be Truffle compiled
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Wed, 08 Jul 2015 10:11:49 -0700 |
parents | 0e095e2c24e2 |
children | 05183a084a08 |
line wrap: on
line source
/* * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package com.oracle.graal.truffle; import jdk.internal.jvmci.common.*; import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary; import com.oracle.truffle.api.frame.*; class ReadOnlyFrame implements Frame { private final Frame delegate; public ReadOnlyFrame(Frame delegate) { this.delegate = delegate; } @TruffleBoundary public FrameDescriptor getFrameDescriptor() { return delegate.getFrameDescriptor(); } @TruffleBoundary public Object[] getArguments() { return delegate.getArguments().clone(); } @TruffleBoundary public Object getObject(FrameSlot slot) throws FrameSlotTypeException { return delegate.getObject(slot); } @TruffleBoundary public void setObject(FrameSlot slot, Object value) { throw JVMCIError.shouldNotReachHere(); } @TruffleBoundary public byte getByte(FrameSlot slot) throws FrameSlotTypeException { return delegate.getByte(slot); } @TruffleBoundary public void setByte(FrameSlot slot, byte value) { throw JVMCIError.shouldNotReachHere(); } @TruffleBoundary public boolean getBoolean(FrameSlot slot) throws FrameSlotTypeException { return delegate.getBoolean(slot); } @TruffleBoundary public void setBoolean(FrameSlot slot, boolean value) { throw JVMCIError.shouldNotReachHere(); } @TruffleBoundary public int getInt(FrameSlot slot) throws FrameSlotTypeException { return delegate.getInt(slot); } @TruffleBoundary public void setInt(FrameSlot slot, int value) { throw JVMCIError.shouldNotReachHere(); } @TruffleBoundary public long getLong(FrameSlot slot) throws FrameSlotTypeException { return delegate.getLong(slot); } @TruffleBoundary public void setLong(FrameSlot slot, long value) { throw JVMCIError.shouldNotReachHere(); } @TruffleBoundary public float getFloat(FrameSlot slot) throws FrameSlotTypeException { return delegate.getFloat(slot); } @TruffleBoundary public void setFloat(FrameSlot slot, float value) { throw JVMCIError.shouldNotReachHere(); } @TruffleBoundary public double getDouble(FrameSlot slot) throws FrameSlotTypeException { return delegate.getDouble(slot); } @TruffleBoundary public void setDouble(FrameSlot slot, double value) { throw JVMCIError.shouldNotReachHere(); } @TruffleBoundary public Object getValue(FrameSlot slot) { return delegate.getValue(slot); } @TruffleBoundary public MaterializedFrame materialize() { throw JVMCIError.shouldNotReachHere(); } @TruffleBoundary public boolean isObject(FrameSlot slot) { return delegate.isObject(slot); } @TruffleBoundary public boolean isByte(FrameSlot slot) { return delegate.isByte(slot); } @TruffleBoundary public boolean isBoolean(FrameSlot slot) { return delegate.isBoolean(slot); } @TruffleBoundary public boolean isInt(FrameSlot slot) { return delegate.isInt(slot); } @TruffleBoundary public boolean isLong(FrameSlot slot) { return delegate.isLong(slot); } @TruffleBoundary public boolean isFloat(FrameSlot slot) { return delegate.isFloat(slot); } @TruffleBoundary public boolean isDouble(FrameSlot slot) { return delegate.isDouble(slot); } }