use of org.graalvm.compiler.lir.ValueConsumer in project graal by oracle.
the class RegStackValueSet method addLiveValues.
public void addLiveValues(ReferenceMapBuilder refMap) {
ValueConsumer addLiveValue = new ValueConsumer() {
@Override
public void visitValue(Value value, OperandMode mode, EnumSet<OperandFlag> flags) {
refMap.addLiveValue(value);
}
};
registers.visitEach(null, null, null, addLiveValue);
stack.visitEach(null, null, null, addLiveValue);
if (extraStack != null) {
for (Value v : extraStack) {
refMap.addLiveValue(v);
}
}
}
Aggregations