Mercurial > hg > truffle
changeset 22362:5d62f7cfe0e1
RootNode.reportLoopCount should never be part of compilation
author | Andreas Woess <andreas.woess@oracle.com> |
---|---|
date | Wed, 11 Nov 2015 14:47:40 +0100 |
parents | 3ed94f641d52 |
children | a360c82ba357 |
files | truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/RootNode.java |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/RootNode.java Thu Nov 12 11:50:42 2015 -0800 +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/RootNode.java Wed Nov 11 14:47:40 2015 +0100 @@ -24,6 +24,7 @@ */ package com.oracle.truffle.api.nodes; +import com.oracle.truffle.api.CompilerAsserts; import com.oracle.truffle.api.CompilerDirectives.CompilationFinal; import com.oracle.truffle.api.CompilerOptions; import com.oracle.truffle.api.ExecutionContext; @@ -106,6 +107,7 @@ * heuristics can use the loop count to guide compilation and inlining. */ public final void reportLoopCount(int count) { + CompilerAsserts.neverPartOfCompilation(); if (getCallTarget() instanceof LoopCountReceiver) { ((LoopCountReceiver) getCallTarget()).reportLoopCount(count); }