Mercurial > hg > truffle
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/Probe.java @ 19488:2f676c3ca430
Truffle/Instrumentation: fix some optimization bugs; instrumentation PE tests now succeed after recent compiler work
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Wed, 18 Feb 2015 16:07:09 -0800 |
parents | 128586040207 |
children | 745ecef4c9cd |
comparison
equal
deleted
inserted
replaced
19487:fb38e004503c | 19488:2f676c3ca430 |
---|---|
26 | 26 |
27 import java.lang.ref.*; | 27 import java.lang.ref.*; |
28 import java.util.*; | 28 import java.util.*; |
29 | 29 |
30 import com.oracle.truffle.api.*; | 30 import com.oracle.truffle.api.*; |
31 import com.oracle.truffle.api.CompilerDirectives.CompilationFinal; | |
31 import com.oracle.truffle.api.nodes.*; | 32 import com.oracle.truffle.api.nodes.*; |
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 //TODO (mlvdv) migrate some of this to external documentation. | 36 //TODO (mlvdv) migrate some of this to external documentation. |
106 | 107 |
107 /** | 108 /** |
108 * The tag trap is a global setting; it only affects {@linkplain Probe probes} with the | 109 * The tag trap is a global setting; it only affects {@linkplain Probe probes} with the |
109 * {@linkplain SyntaxTag tag} specified . | 110 * {@linkplain SyntaxTag tag} specified . |
110 */ | 111 */ |
111 private static SyntaxTagTrap globalTagTrap = null; | 112 @CompilationFinal private static SyntaxTagTrap globalTagTrap = null; |
112 | 113 |
113 /** | 114 /** |
114 * Enables instrumentation at selected nodes in all subsequently constructed ASTs. | 115 * Enables instrumentation at selected nodes in all subsequently constructed ASTs. |
115 */ | 116 */ |
116 public static void registerASTProber(ASTProber prober) { | 117 public static void registerASTProber(ASTProber prober) { |