# HG changeset patch # User Lukas Stadler # Date 1422976156 -3600 # Node ID 71302ef5f55a098255bc15397868b680dcc49da1 # Parent 33a394749d13d51134e13d1c393329f0c0c5b63c small refactoring in DefaultTruffleSplittingStrategyNew diff -r 33a394749d13 -r 71302ef5f55a graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/DefaultTruffleSplittingStrategyNew.java --- a/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/DefaultTruffleSplittingStrategyNew.java Tue Feb 03 16:08:56 2015 +0100 +++ b/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/DefaultTruffleSplittingStrategyNew.java Tue Feb 03 16:09:16 2015 +0100 @@ -38,14 +38,14 @@ public DefaultTruffleSplittingStrategyNew(OptimizedDirectCallNode call) { this.call = call; this.splitStart = TruffleCompilerOptions.TruffleSplittingStartCallCount.getValue(); - this.splittingEnabled = isSplittingEnabled(); + this.splittingEnabled = isSplittingEnabled(call); this.argumentStamp = DefaultTruffleStamp.getInstance(); if (TruffleCompilerOptions.TruffleSplittingAggressive.getValue()) { splittingForced = true; } } - private boolean isSplittingEnabled() { + private static boolean isSplittingEnabled(OptimizedDirectCallNode call) { if (!TruffleCompilerOptions.TruffleSplitting.getValue()) { return false; }