Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameSlotKind.java @ 19308:5b2589732c45
Truffle: store byte and boolean as int in FrameWithoutBoxing
author | Andreas Woess <andreas.woess@oracle.com> |
---|---|
date | Wed, 11 Feb 2015 15:47:14 +0100 |
parents | 16a2ea2078bc |
children | 936f9d0b58e2 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameSlotKind.java Wed Feb 11 14:03:06 2015 +0100 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameSlotKind.java Wed Feb 11 15:47:14 2015 +0100 @@ -24,25 +24,13 @@ */ package com.oracle.truffle.api.frame; -import java.nio.*; - public enum FrameSlotKind { - Object(0), - Illegal(0), - Long(0), - Int(0), - Double(0), - Float(0), - Boolean(3), - Byte(3); - - private final int byteOffset; - - private FrameSlotKind(int bigEndianByteOffset) { - this.byteOffset = ByteOrder.nativeOrder() == ByteOrder.BIG_ENDIAN ? bigEndianByteOffset : 0; - } - - public int getByteOffset() { - return byteOffset; - } + Object, + Illegal, + Long, + Int, + Double, + Float, + Boolean, + Byte; }