Skip to content

Commit

Permalink
Add dummy support for primitiveScreenScaleFactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed May 22, 2022
1 parent 0a9c853 commit 138ffa4
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
Expand Down

1 comment on commit 138ffa4

@TruffleSqueak-Bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Performance Report (138ffa4)

Benchmarks ran on graalvm-ce-java17-22.1.0.

Steady (after 50 iterations)

Benchmark Name Min Geomean Median Mean Max Total (ms) Total (min)
Bounce 173 180 174.11 174 174.11 34822 0.58
DeltaBlue 295 601 410.35 411 407.7 82070 1.37
Havlak 1589 1773 1630.85 1626.5 1630.66 326170 5.44
Json 720 727 723.88 724 723.88 144776 2.41
List 889 998 892.99 890 892.91 178598 2.98
Mandelbrot 144 149 145.1 145 145.1 29020 0.48
NBody 276 287 279.23 279 279.22 55846 0.93
Permute 228 237 230.31 229 230.3 46061 0.77
Queens 255 263 256.99 257 256.99 51398 0.86
Richards 1084 1118 1088.03 1088 1088.02 217605 3.63
Sieve 210 219 211.35 211 211.35 42270 0.7
Storage 270 283 273.2 274 273.19 54639 0.91
Towers 342 368 345.08 343 345.04 69015 1.15
6475 7203 6661.45 6651.5 6658.46 1332290 22.2

138ffa4-2-steady.svg

Warmup (first 50 iterations)

138ffa4-3-warmup.svg

Please sign in to comment.