Mercurial > hg > graal-compiler
annotate graal/com.oracle.truffle.interop/src/com/oracle/truffle/interop/TruffleGlobalScope.java @ 21167:ab451b6de9f8
Interop: introduce separate global language scope
author | Matthias Grimmer <grimmer@ssw.jku.at> |
---|---|
date | Thu, 30 Apr 2015 17:27:53 +0200 |
parents | |
children | 8407957b067b |
rev | line source |
---|---|
21167
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
1 package com.oracle.truffle.interop; |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
2 |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
3 import com.oracle.truffle.api.frame.*; |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
4 import com.oracle.truffle.api.interop.*; |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
5 |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
6 public interface TruffleGlobalScope { |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
7 void exportTruffleObject(Object identifier, TruffleObject object); |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
8 |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
9 FrameSlot getFrameSlot(Object identifier); |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
10 |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
11 TruffleObject getTruffleObject(FrameSlot slot); |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
12 |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
13 boolean contains(Object identifier); |
ab451b6de9f8
Interop: introduce separate global language scope
Matthias Grimmer <grimmer@ssw.jku.at>
parents:
diff
changeset
|
14 } |