Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/SLRootNode.java @ 18485:e3c95cbbb50c
Truffle Instrumentation: major API revision, based around the Probe and Instrument classes; add Instrumentable API for language implementors, with most details automated; reimplemented to handle AST splitting automatically; more JUnit tests.
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Sun, 23 Nov 2014 16:07:23 -0800 |
parents | 3343ed66de79 |
children |
comparison
equal
deleted
inserted
replaced
18484:e97e1f07a3d6 | 18485:e3c95cbbb50c |
---|---|
20 * or visit www.oracle.com if you need additional information or have any | 20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.oracle.truffle.sl.nodes; | 23 package com.oracle.truffle.sl.nodes; |
24 | 24 |
25 import com.oracle.truffle.api.CompilerDirectives.CompilationFinal; | |
25 import com.oracle.truffle.api.*; | 26 import com.oracle.truffle.api.*; |
26 import com.oracle.truffle.api.CompilerDirectives.*; | |
27 import com.oracle.truffle.api.frame.*; | 27 import com.oracle.truffle.api.frame.*; |
28 import com.oracle.truffle.api.instrument.*; | |
28 import com.oracle.truffle.api.nodes.*; | 29 import com.oracle.truffle.api.nodes.*; |
29 import com.oracle.truffle.sl.builtins.*; | 30 import com.oracle.truffle.sl.builtins.*; |
30 import com.oracle.truffle.sl.nodes.controlflow.*; | 31 import com.oracle.truffle.sl.nodes.controlflow.*; |
31 import com.oracle.truffle.sl.runtime.*; | 32 import com.oracle.truffle.sl.runtime.*; |
32 | 33 |
78 public boolean isCloningAllowed() { | 79 public boolean isCloningAllowed() { |
79 return isCloningAllowed; | 80 return isCloningAllowed; |
80 } | 81 } |
81 | 82 |
82 @Override | 83 @Override |
84 public void applyInstrumentation() { | |
85 Probe.applyASTProbers(bodyNode); | |
86 } | |
87 | |
88 @Override | |
83 public String toString() { | 89 public String toString() { |
84 return "root " + name; | 90 return "root " + name; |
85 } | 91 } |
86 | 92 |
87 public SLContext getSLContext() { | 93 public SLContext getSLContext() { |