Mercurial > hg > graal-compiler
annotate graal/com.oracle.truffle.interop/src/com/oracle/truffle/interop/TruffleGlobalScope.java @ 21168:8407957b067b
Interop: add missing header
author | Matthias Grimmer <grimmer@ssw.jku.at> |
---|---|
date | Fri, 01 May 2015 21:32:02 +0200 |
parents | ab451b6de9f8 |
children |
rev | line source |
---|---|
21168
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
1 /* |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
4 * |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
7 * published by the Free Software Foundation. Oracle designates this |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
8 * particular file as subject to the "Classpath" exception as provided |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
9 * by Oracle in the LICENSE file that accompanied this code. |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
10 * |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
11 * This code is distributed in the hope that it will be useful, but WITHOUT |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
14 * version 2 for more details (a copy is included in the LICENSE file that |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
15 * accompanied this code). |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
16 * |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
17 * You should have received a copy of the GNU General Public License version |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
18 * 2 along with this work; if not, write to the Free Software Foundation, |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
20 * |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
22 * or visit www.oracle.com if you need additional information or have any |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
23 * questions. |
8407957b067b
Interop: add missing header
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
21167
diff
changeset
|
24 */ |
21167
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
25 package com.oracle.truffle.interop; |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
26 |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
27 import com.oracle.truffle.api.frame.*; |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
28 import com.oracle.truffle.api.interop.*; |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
29 |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
30 public interface TruffleGlobalScope { |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
31 void exportTruffleObject(Object identifier, TruffleObject object); |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
32 |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
33 FrameSlot getFrameSlot(Object identifier); |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
34 |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
35 TruffleObject getTruffleObject(FrameSlot slot); |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
36 |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
37 boolean contains(Object identifier); |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
38 } |