diff --git a/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/nodes/plugins/NullPlugin.java b/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/nodes/plugins/NullPlugin.java index 148cfcc7a..6294c5e05 100644 --- a/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/nodes/plugins/NullPlugin.java +++ b/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/nodes/plugins/NullPlugin.java @@ -29,6 +29,15 @@ import de.hpi.swa.trufflesqueak.util.MiscUtils; public final class NullPlugin extends AbstractPrimitiveFactoryHolder { + @GenerateNodeFactory + @SqueakPrimitive(names = "primitiveScreenScaleFactor") + protected abstract static class PrimScreenScaleFactorNode extends AbstractPrimitiveNode { + @Specialization + protected static final double doGet(@SuppressWarnings("unused") final Object receiver) { + return 1.0d; + } + } + @GenerateNodeFactory @SqueakPrimitive(names = "primitiveHighResClock") protected abstract static class PrimHighResClockNode extends AbstractPrimitiveNode { @@ -49,7 +58,7 @@ protected final boolean doGet(@SuppressWarnings("unused") final Object receiver) @GenerateNodeFactory @SqueakPrimitive(names = "primitiveMultipleBytecodeSetsActive") - protected abstract static class PrimMultipleBytecodeSetsActive1Node extends AbstractPrimitiveNode { + protected abstract static class PrimMultipleBytecodeSetsActive1Node extends AbstractPrimitiveNode implements BinaryPrimitiveFallback { @Specialization protected final boolean doSet(@SuppressWarnings("unused") final Object receiver, final boolean value) { final int imageFormat = getContext().imageFormat;