Skip to content

Commit

Permalink
[Truffle] Push back boundaries wherever possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Apr 30, 2016
1 parent bef85a9 commit b3da711
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Expand Up @@ -61,6 +61,7 @@ public synchronized void setLineHasCode(LineLocation line) {
bitmap.set(line.getLineNumber() - 1);
}

@CompilerDirectives.TruffleBoundary
public void enable() {
if (enabled) {
throw new UnsupportedOperationException();
Expand Down
Expand Up @@ -30,7 +30,6 @@ public abstract class CoverageNodes {
@CoreMethod(names = "start", needsSelf = false)
public abstract static class CoverageStartNode extends CoreMethodArrayArgumentsNode {

@TruffleBoundary
@Specialization
public DynamicObject coverageStart() {
getContext().getCoverageManager().enable();
Expand Down

0 comments on commit b3da711

Please sign in to comment.