Skip to content

Commit

Permalink
Map and enable SmallFloat primitives (541-559)
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Dec 16, 2018
1 parent 50eb581 commit 922e74d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private static int digitSize(final long value) {
}

@GenerateNodeFactory
@SqueakPrimitive(indices = {1, 21, 41}, name = "primDigitAdd")
@SqueakPrimitive(indices = {1, 21, 41, 541}, name = "primDigitAdd")
public abstract static class PrimAddNode extends AbstractArithmeticBinaryPrimitiveNode {

public PrimAddNode(final CompiledMethodObject method) {
Expand Down Expand Up @@ -160,7 +160,7 @@ protected final Object doFloat(final FloatObject a, final FloatObject b) {
}

@GenerateNodeFactory
@SqueakPrimitive(indices = {2, 22, 42}, name = "primDigitSubtract")
@SqueakPrimitive(indices = {2, 22, 42, 542}, name = "primDigitSubtract")
public abstract static class PrimSubstractNode extends AbstractArithmeticBinaryPrimitiveNode {
public PrimSubstractNode(final CompiledMethodObject method) {
super(method);
Expand Down Expand Up @@ -197,7 +197,7 @@ protected final Object doFloat(final FloatObject a, final FloatObject b) {
}

@GenerateNodeFactory
@SqueakPrimitive(indices = {9, 29, 49}, name = "primDigitMultiplyNegative")
@SqueakPrimitive(indices = {9, 29, 49, 549}, name = "primDigitMultiplyNegative")
public abstract static class PrimMultiplyNode extends AbstractArithmeticBinaryPrimitiveNode {
public PrimMultiplyNode(final CompiledMethodObject method) {
super(method);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ protected final Object doFloatDouble(final FloatObject a, final double b) {
}

@GenerateNodeFactory
@SqueakPrimitive(indices = {3, 23, 43})
@SqueakPrimitive(indices = {3, 23, 43, 543})
protected abstract static class PrimLessThanNode extends AbstractArithmeticBinaryPrimitiveNode {
protected PrimLessThanNode(final CompiledMethodObject method) {
super(method);
Expand Down Expand Up @@ -144,7 +144,7 @@ protected final Object doFloat(final FloatObject a, final FloatObject b) {
}

@GenerateNodeFactory
@SqueakPrimitive(indices = {4, 24, 44})
@SqueakPrimitive(indices = {4, 24, 44, 544})
protected abstract static class PrimGreaterThanNode extends AbstractArithmeticBinaryPrimitiveNode {
protected PrimGreaterThanNode(final CompiledMethodObject method) {
super(method);
Expand Down Expand Up @@ -176,7 +176,7 @@ protected final Object doFloat(final FloatObject a, final FloatObject b) {
}

@GenerateNodeFactory
@SqueakPrimitive(indices = {5, 25, 45})
@SqueakPrimitive(indices = {5, 25, 45, 545})
protected abstract static class PrimLessOrEqualNode extends AbstractArithmeticBinaryPrimitiveNode {
protected PrimLessOrEqualNode(final CompiledMethodObject method) {
super(method);
Expand Down Expand Up @@ -208,7 +208,7 @@ protected final Object doFloat(final FloatObject a, final FloatObject b) {
}

@GenerateNodeFactory
@SqueakPrimitive(indices = {6, 26, 46})
@SqueakPrimitive(indices = {6, 26, 46, 546})
protected abstract static class PrimGreaterOrEqualNode extends AbstractArithmeticBinaryPrimitiveNode {
protected PrimGreaterOrEqualNode(final CompiledMethodObject method) {
super(method);
Expand Down Expand Up @@ -240,7 +240,7 @@ protected final Object doFloat(final FloatObject a, final FloatObject b) {
}

@GenerateNodeFactory
@SqueakPrimitive(indices = {7, 27, 47})
@SqueakPrimitive(indices = {7, 27, 47, 547})
protected abstract static class PrimEqualNode extends AbstractArithmeticBinaryPrimitiveNode {
protected PrimEqualNode(final CompiledMethodObject method) {
super(method);
Expand Down Expand Up @@ -278,7 +278,7 @@ protected final boolean doNil(final Object a, final NilObject b) {
}

@GenerateNodeFactory
@SqueakPrimitive(indices = {8, 28, 48})
@SqueakPrimitive(indices = {8, 28, 48, 548})
protected abstract static class PrimNotEqualNode extends AbstractArithmeticBinaryPrimitiveNode {
protected PrimNotEqualNode(final CompiledMethodObject method) {
super(method);
Expand Down Expand Up @@ -606,7 +606,7 @@ protected final FloatObject doLong(final long receiver) {
}

@GenerateNodeFactory
@SqueakPrimitive(index = 50)
@SqueakPrimitive(indices = {50, 550})
protected abstract static class PrimFloatDivideNode extends AbstractArithmeticPrimitiveNode implements BinaryPrimitive {
protected PrimFloatDivideNode(final CompiledMethodObject method) {
super(method);
Expand Down Expand Up @@ -644,7 +644,7 @@ protected final FloatObject doFloatDouble(final FloatObject a, final double b) {
}

@GenerateNodeFactory
@SqueakPrimitive(index = 51)
@SqueakPrimitive(indices = {51, 551})
protected abstract static class PrimFloatTruncatedNode extends AbstractArithmeticPrimitiveNode implements UnaryPrimitive {
protected PrimFloatTruncatedNode(final CompiledMethodObject method) {
super(method);
Expand All @@ -667,7 +667,7 @@ protected final long doFloatObject(final FloatObject receiver) {
}

@GenerateNodeFactory
@SqueakPrimitive(index = 52)
@SqueakPrimitive(indices = {52, 552})
protected abstract static class PrimFloatFractionPartNode extends AbstractArithmeticPrimitiveNode implements UnaryPrimitive {
protected PrimFloatFractionPartNode(final CompiledMethodObject method) {
super(method);
Expand All @@ -685,7 +685,7 @@ protected final FloatObject doFloatObject(final FloatObject receiver) {
}

@GenerateNodeFactory
@SqueakPrimitive(index = 53)
@SqueakPrimitive(indices = {53, 553})
protected abstract static class PrimFloatExponentNode extends AbstractArithmeticPrimitiveNode implements UnaryPrimitive {
protected PrimFloatExponentNode(final CompiledMethodObject method) {
super(method);
Expand All @@ -708,7 +708,7 @@ protected static final long doFloat(final FloatObject receiver) {
}

@GenerateNodeFactory
@SqueakPrimitive(index = 54)
@SqueakPrimitive(indices = {54, 554})
protected abstract static class PrimFloatTimesTwoPowerNode extends AbstractArithmeticPrimitiveNode implements BinaryPrimitive {
private static final int UNDERFLOW_LIMIT = FloatObject.EMIN - FloatObject.PRECISION + 1;

Expand Down Expand Up @@ -834,7 +834,7 @@ protected static final boolean lessThanUNDERFLOWLIMIT(final double argument) {
}

@GenerateNodeFactory
@SqueakPrimitive(index = 55)
@SqueakPrimitive(indices = {55, 555})
protected abstract static class PrimSquareRootNode extends AbstractArithmeticPrimitiveNode implements UnaryPrimitive {
protected PrimSquareRootNode(final CompiledMethodObject method) {
super(method);
Expand Down Expand Up @@ -862,7 +862,7 @@ protected final FloatObject doFloat(final FloatObject a) {
}

@GenerateNodeFactory
@SqueakPrimitive(index = 56)
@SqueakPrimitive(indices = {56, 556})
protected abstract static class PrimSinNode extends AbstractArithmeticPrimitiveNode implements UnaryPrimitive {
protected PrimSinNode(final CompiledMethodObject method) {
super(method);
Expand All @@ -880,7 +880,7 @@ protected final FloatObject doFloat(final FloatObject a) {
}

@GenerateNodeFactory
@SqueakPrimitive(index = 57)
@SqueakPrimitive(indices = {57, 557})
protected abstract static class PrimArcTanNode extends AbstractArithmeticPrimitiveNode implements UnaryPrimitive {
protected PrimArcTanNode(final CompiledMethodObject method) {
super(method);
Expand All @@ -898,7 +898,7 @@ protected final FloatObject doFloat(final FloatObject a) {
}

@GenerateNodeFactory
@SqueakPrimitive(index = 58)
@SqueakPrimitive(indices = {58, 558})
protected abstract static class PrimLogNNode extends AbstractArithmeticPrimitiveNode implements UnaryPrimitive {
protected PrimLogNNode(final CompiledMethodObject method) {
super(method);
Expand All @@ -916,7 +916,7 @@ protected final FloatObject doFloat(final FloatObject a) {
}

@GenerateNodeFactory
@SqueakPrimitive(index = 59)
@SqueakPrimitive(indices = {59, 559})
protected abstract static class PrimExpNode extends AbstractArithmeticPrimitiveNode implements UnaryPrimitive {
protected PrimExpNode(final CompiledMethodObject method) {
super(method);
Expand Down

0 comments on commit 922e74d

Please sign in to comment.