public class CounterBasedCompilationPolicy extends Object implements CompilationPolicy
Modifier and Type | Field and Description |
---|---|
private boolean |
compilationFailed |
Constructor and Description |
---|
CounterBasedCompilationPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
recordCompilationFailure(Throwable t) |
boolean |
shouldCompile(CompilationProfile profile,
com.oracle.truffle.api.CompilerOptions options) |
private boolean compilationFailed
public CounterBasedCompilationPolicy()
public boolean shouldCompile(CompilationProfile profile, com.oracle.truffle.api.CompilerOptions options)
shouldCompile
in interface CompilationPolicy
public void recordCompilationFailure(Throwable t)
recordCompilationFailure
in interface CompilationPolicy