Mercurial > hg > graal-compiler
annotate graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameSlotKind.java @ 19442:936f9d0b58e2
Small simplifications of FrameWithoutBoxing.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 17 Feb 2015 00:08:51 +0100 |
parents | 5b2589732c45 |
children |
rev | line source |
---|---|
9321
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
1 /* |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
4 * |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
11279
494b818b527c
Adding "Classpath" exception to the classes in the com.oracle.truffle.api and the com.oracle.truffle.api.dsl package.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
9321
diff
changeset
|
7 * published by the Free Software Foundation. Oracle designates this |
494b818b527c
Adding "Classpath" exception to the classes in the com.oracle.truffle.api and the com.oracle.truffle.api.dsl package.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
9321
diff
changeset
|
8 * particular file as subject to the "Classpath" exception as provided |
494b818b527c
Adding "Classpath" exception to the classes in the com.oracle.truffle.api and the com.oracle.truffle.api.dsl package.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
9321
diff
changeset
|
9 * by Oracle in the LICENSE file that accompanied this code. |
9321
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
10 * |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
11 * This code is distributed in the hope that it will be useful, but WITHOUT |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
14 * version 2 for more details (a copy is included in the LICENSE file that |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
15 * accompanied this code). |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
16 * |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
17 * You should have received a copy of the GNU General Public License version |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
18 * 2 along with this work; if not, write to the Free Software Foundation, |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
20 * |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
22 * or visit www.oracle.com if you need additional information or have any |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
23 * questions. |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
24 */ |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
25 package com.oracle.truffle.api.frame; |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
26 |
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
27 public enum FrameSlotKind { |
19308
5b2589732c45
Truffle: store byte and boolean as int in FrameWithoutBoxing
Andreas Woess <andreas.woess@oracle.com>
parents:
19307
diff
changeset
|
28 Object, |
5b2589732c45
Truffle: store byte and boolean as int in FrameWithoutBoxing
Andreas Woess <andreas.woess@oracle.com>
parents:
19307
diff
changeset
|
29 Illegal, |
5b2589732c45
Truffle: store byte and boolean as int in FrameWithoutBoxing
Andreas Woess <andreas.woess@oracle.com>
parents:
19307
diff
changeset
|
30 Long, |
5b2589732c45
Truffle: store byte and boolean as int in FrameWithoutBoxing
Andreas Woess <andreas.woess@oracle.com>
parents:
19307
diff
changeset
|
31 Int, |
5b2589732c45
Truffle: store byte and boolean as int in FrameWithoutBoxing
Andreas Woess <andreas.woess@oracle.com>
parents:
19307
diff
changeset
|
32 Double, |
5b2589732c45
Truffle: store byte and boolean as int in FrameWithoutBoxing
Andreas Woess <andreas.woess@oracle.com>
parents:
19307
diff
changeset
|
33 Float, |
5b2589732c45
Truffle: store byte and boolean as int in FrameWithoutBoxing
Andreas Woess <andreas.woess@oracle.com>
parents:
19307
diff
changeset
|
34 Boolean, |
5b2589732c45
Truffle: store byte and boolean as int in FrameWithoutBoxing
Andreas Woess <andreas.woess@oracle.com>
parents:
19307
diff
changeset
|
35 Byte; |
19442
936f9d0b58e2
Small simplifications of FrameWithoutBoxing.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
19308
diff
changeset
|
36 |
936f9d0b58e2
Small simplifications of FrameWithoutBoxing.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
19308
diff
changeset
|
37 public final byte tag; |
936f9d0b58e2
Small simplifications of FrameWithoutBoxing.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
19308
diff
changeset
|
38 |
936f9d0b58e2
Small simplifications of FrameWithoutBoxing.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
19308
diff
changeset
|
39 private FrameSlotKind() { |
936f9d0b58e2
Small simplifications of FrameWithoutBoxing.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
19308
diff
changeset
|
40 this.tag = (byte) ordinal(); |
936f9d0b58e2
Small simplifications of FrameWithoutBoxing.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
19308
diff
changeset
|
41 } |
9321
cd1a1d92b3e3
Frame API: Introduce FrameSlotKind.
Andreas Woess <andreas.woess@jku.at>
parents:
diff
changeset
|
42 } |