src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/LIR.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/LIR.java
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/LIR.java
Print this page
*** 27,36 ****
--- 27,37 ----
import java.util.List;
import org.graalvm.compiler.core.common.cfg.AbstractBlockBase;
import org.graalvm.compiler.core.common.cfg.AbstractControlFlowGraph;
import org.graalvm.compiler.core.common.cfg.BlockMap;
+ import org.graalvm.compiler.debug.DebugContext;
import org.graalvm.compiler.lir.StandardOp.BlockEndOp;
import org.graalvm.compiler.lir.StandardOp.LabelOp;
import org.graalvm.compiler.lir.gen.LIRGenerator;
import org.graalvm.compiler.options.OptionValues;
*** 60,88 ****
private boolean hasArgInCallerFrame;
private final OptionValues options;
/**
* Creates a new LIR instance for the specified compilation.
*/
! public LIR(AbstractControlFlowGraph<?> cfg, AbstractBlockBase<?>[] linearScanOrder, AbstractBlockBase<?>[] codeEmittingOrder, OptionValues options) {
this.cfg = cfg;
this.codeEmittingOrder = codeEmittingOrder;
this.linearScanOrder = linearScanOrder;
this.lirInstructions = new BlockMap<>(cfg);
this.options = options;
}
public AbstractControlFlowGraph<?> getControlFlowGraph() {
return cfg;
}
public OptionValues getOptions() {
return options;
}
/**
* Determines if any instruction in the LIR has debug info associated with it.
*/
public boolean hasDebugInfo() {
for (AbstractBlockBase<?> b : linearScanOrder()) {
--- 61,96 ----
private boolean hasArgInCallerFrame;
private final OptionValues options;
+ private final DebugContext debug;
+
/**
* Creates a new LIR instance for the specified compilation.
*/
! public LIR(AbstractControlFlowGraph<?> cfg, AbstractBlockBase<?>[] linearScanOrder, AbstractBlockBase<?>[] codeEmittingOrder, OptionValues options, DebugContext debug) {
this.cfg = cfg;
this.codeEmittingOrder = codeEmittingOrder;
this.linearScanOrder = linearScanOrder;
this.lirInstructions = new BlockMap<>(cfg);
this.options = options;
+ this.debug = debug;
}
public AbstractControlFlowGraph<?> getControlFlowGraph() {
return cfg;
}
public OptionValues getOptions() {
return options;
}
+ public DebugContext getDebug() {
+ return debug;
+ }
+
/**
* Determines if any instruction in the LIR has debug info associated with it.
*/
public boolean hasDebugInfo() {
for (AbstractBlockBase<?> b : linearScanOrder()) {
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/LIR.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File