Mercurial > hg > truffle
annotate graal/GraalCompiler/src/com/sun/c1x/value/FrameStateAccess.java @ 2853:0635ba16afe4
Reintroduce Logic subclasses, creating some Canonicalization related classes
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Tue, 07 Jun 2011 15:52:55 +0200 |
parents | 75e0d39833a0 |
children |
rev | line source |
---|---|
2617
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
1 /* |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
2 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
4 * |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
8 * |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
13 * accompanied this code). |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
14 * |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License version |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
18 * |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
21 * questions. |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
22 */ |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
23 package com.sun.c1x.value; |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
24 |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
25 import com.sun.c1x.ir.*; |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
26 |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
27 public interface FrameStateAccess { |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
28 |
2636
8c02ca1e9eb1
Fixed bci for stateBefore in BlockBegin
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
2621
diff
changeset
|
29 FrameState duplicate(int newBci); |
2617
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
30 |
2621
dd115f80acf8
changed stateAfter FrameState to successor (instead of input), checkstyle fixes, added fixed root node to graph
Lukas Stadler <lukas.stadler@jku.at>
parents:
2617
diff
changeset
|
31 int localsSize(); |
2617
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
32 |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
33 int stackSize(); |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
34 |
2621
dd115f80acf8
changed stateAfter FrameState to successor (instead of input), checkstyle fixes, added fixed root node to graph
Lukas Stadler <lukas.stadler@jku.at>
parents:
2617
diff
changeset
|
35 int locksSize(); |
dd115f80acf8
changed stateAfter FrameState to successor (instead of input), checkstyle fixes, added fixed root node to graph
Lukas Stadler <lukas.stadler@jku.at>
parents:
2617
diff
changeset
|
36 |
dd115f80acf8
changed stateAfter FrameState to successor (instead of input), checkstyle fixes, added fixed root node to graph
Lukas Stadler <lukas.stadler@jku.at>
parents:
2617
diff
changeset
|
37 Value valueAt(int i); |
dd115f80acf8
changed stateAfter FrameState to successor (instead of input), checkstyle fixes, added fixed root node to graph
Lukas Stadler <lukas.stadler@jku.at>
parents:
2617
diff
changeset
|
38 |
dd115f80acf8
changed stateAfter FrameState to successor (instead of input), checkstyle fixes, added fixed root node to graph
Lukas Stadler <lukas.stadler@jku.at>
parents:
2617
diff
changeset
|
39 Value localAt(int i); |
dd115f80acf8
changed stateAfter FrameState to successor (instead of input), checkstyle fixes, added fixed root node to graph
Lukas Stadler <lukas.stadler@jku.at>
parents:
2617
diff
changeset
|
40 |
dd115f80acf8
changed stateAfter FrameState to successor (instead of input), checkstyle fixes, added fixed root node to graph
Lukas Stadler <lukas.stadler@jku.at>
parents:
2617
diff
changeset
|
41 Value lockAt(int i); |
2617
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
42 |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
43 Value stackAt(int i); |
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
44 |
2707
7ed72769d51a
exception handling related changes:
Lukas Stadler <lukas.stadler@jku.at>
parents:
2636
diff
changeset
|
45 FrameState duplicateWithEmptyStack(int bci); |
7ed72769d51a
exception handling related changes:
Lukas Stadler <lukas.stadler@jku.at>
parents:
2636
diff
changeset
|
46 |
2763
5e8a69041cd7
Model phi inputs as direct inputs in the graph instead of referring to the framestates of the predecessors.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
2707
diff
changeset
|
47 void setValueAt(int j, Value v); |
5e8a69041cd7
Model phi inputs as direct inputs in the graph instead of referring to the framestates of the predecessors.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
2707
diff
changeset
|
48 |
2840
75e0d39833a0
new CompilerGraph, create only one Return and one Unwind per CompilerGraph
Lukas Stadler <lukas.stadler@jku.at>
parents:
2763
diff
changeset
|
49 Value outerFrameState(); |
75e0d39833a0
new CompilerGraph, create only one Return and one Unwind per CompilerGraph
Lukas Stadler <lukas.stadler@jku.at>
parents:
2763
diff
changeset
|
50 |
2617
1be9b1ddd5c1
added FrameStateAccess interface
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
51 } |