Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/Node.java @ 17382:e1da729b3e4e
make Truffle Node source section @CompilationFinal
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Wed, 08 Oct 2014 10:50:18 +0200 |
parents | f8998c828bed |
children | 763a34f283f9 |
comparison
equal
deleted
inserted
replaced
17381:40dce17629ac | 17382:e1da729b3e4e |
---|---|
27 import java.lang.annotation.*; | 27 import java.lang.annotation.*; |
28 import java.util.*; | 28 import java.util.*; |
29 import java.util.concurrent.*; | 29 import java.util.concurrent.*; |
30 | 30 |
31 import com.oracle.truffle.api.*; | 31 import com.oracle.truffle.api.*; |
32 import com.oracle.truffle.api.CompilerDirectives.CompilationFinal; | |
32 import com.oracle.truffle.api.source.*; | 33 import com.oracle.truffle.api.source.*; |
33 import com.oracle.truffle.api.utilities.*; | 34 import com.oracle.truffle.api.utilities.*; |
34 | 35 |
35 /** | 36 /** |
36 * Abstract base class for all Truffle nodes. | 37 * Abstract base class for all Truffle nodes. |
37 */ | 38 */ |
38 public abstract class Node implements Cloneable { | 39 public abstract class Node implements Cloneable { |
39 | 40 |
40 private Node parent; | 41 private Node parent; |
41 | 42 |
42 private SourceSection sourceSection; | 43 @CompilationFinal private SourceSection sourceSection; |
43 | 44 |
44 /** | 45 /** |
45 * Marks array fields that are children of this node. | 46 * Marks array fields that are children of this node. |
46 */ | 47 */ |
47 @Retention(RetentionPolicy.RUNTIME) | 48 @Retention(RetentionPolicy.RUNTIME) |