src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/alloc/lsra/IntervalWalker.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/alloc/lsra/IntervalWalker.java	Fri Jul  7 09:30:38 2017
--- new/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/alloc/lsra/IntervalWalker.java	Fri Jul  7 09:30:38 2017

*** 20,30 **** --- 20,30 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ package org.graalvm.compiler.lir.alloc.lsra; ! import org.graalvm.compiler.debug.DebugContext; import org.graalvm.compiler.debug.Indent; import org.graalvm.compiler.lir.alloc.lsra.Interval.RegisterBinding; import org.graalvm.compiler.lir.alloc.lsra.Interval.RegisterBindingLists; import org.graalvm.compiler.lir.alloc.lsra.Interval.State;
*** 231,241 **** --- 231,242 ---- // call walkTo even if currentPosition == id walkTo(State.Active, opId); walkTo(State.Inactive, opId); try (Indent indent = Debug.logAndIndent("walk to op %d", opId)) { + DebugContext debug = allocator.getDebug(); + try (Indent indent = debug.logAndIndent("walk to op %d", opId)) { currentInterval.state = State.Active; if (activateCurrent(currentInterval)) { activeLists.addToListSortedByCurrentFromPositions(currentBinding, currentInterval); intervalMoved(currentInterval, State.Unhandled, State.Active); }
*** 255,266 **** --- 256,268 ---- } private void intervalMoved(Interval interval, State from, State to) { // intervalMoved() is called whenever an interval moves from one interval list to another. // In the implementation of this method it is prohibited to move the interval to any list. if (Debug.isLogEnabled()) { Debug.log("interval moved from %s to %s: %s", from, to, interval.logString(allocator)); + DebugContext debug = allocator.getDebug(); + if (debug.isLogEnabled()) { + debug.log("interval moved from %s to %s: %s", from, to, interval.logString(allocator)); } } /** * Move {@linkplain #unhandledLists unhandled} stack intervals to

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/alloc/lsra/IntervalWalker.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File