@@ -860,7 +860,7 @@ class StringConstantInstruction extends VariableInstruction {
860
860
}
861
861
862
862
/**
863
- * An instruction whose result is computed from two register operands.
863
+ * An instruction whose result is computed from two operands.
864
864
*/
865
865
class BinaryInstruction extends Instruction {
866
866
BinaryInstruction ( ) { getOpcode ( ) instanceof BinaryOpcode }
@@ -905,19 +905,18 @@ class ArithmeticInstruction extends Instruction {
905
905
}
906
906
907
907
/**
908
- * An instruction whose result is computed by performing an arithmetic operation on two register
909
- * operands.
908
+ * An instruction that performs an arithmetic operation on two numeric operands.
910
909
*/
911
910
class BinaryArithmeticInstruction extends ArithmeticInstruction , BinaryInstruction { }
912
911
913
912
/**
914
913
* An instruction whose result is computed by performing an arithmetic operation on a single
915
- * register operand.
914
+ * numeric operand.
916
915
*/
917
916
class UnaryArithmeticInstruction extends ArithmeticInstruction , UnaryInstruction { }
918
917
919
918
/**
920
- * An instruction that computes the sum of two register operands.
919
+ * An instruction that computes the sum of two numeric operands.
921
920
*
922
921
* Both operands must have the same numeric type, which will also be the result type. The result of
923
922
* integer overflow is the infinite-precision result modulo 2^n. Floating-point addition is
@@ -928,7 +927,7 @@ class AddInstruction extends BinaryArithmeticInstruction {
928
927
}
929
928
930
929
/**
931
- * An instruction that computes the difference of two register operands.
930
+ * An instruction that computes the difference of two numeric operands.
932
931
*
933
932
* Both operands must have the same numeric type, which will also be the result type. The result of
934
933
* integer overflow is the infinite-precision result modulo 2^n. Floating-point subtraction is performed
@@ -939,7 +938,7 @@ class SubInstruction extends BinaryArithmeticInstruction {
939
938
}
940
939
941
940
/**
942
- * An instruction that computes the product of two register operands.
941
+ * An instruction that computes the product of two numeric operands.
943
942
*
944
943
* Both operands must have the same numeric type, which will also be the result type. The result of
945
944
* integer overflow is the infinite-precision result modulo 2^n. Floating-point multiplication is
@@ -950,7 +949,7 @@ class MulInstruction extends BinaryArithmeticInstruction {
950
949
}
951
950
952
951
/**
953
- * An instruction that computes the quotient of two register operands.
952
+ * An instruction that computes the quotient of two numeric operands.
954
953
*
955
954
* Both operands must have the same numeric type, which will also be the result type. The result of
956
955
* division by zero or integer overflow is undefined. Floating-point division is performed according
@@ -961,7 +960,7 @@ class DivInstruction extends BinaryArithmeticInstruction {
961
960
}
962
961
963
962
/**
964
- * An instruction that computes the remainder of two register operands.
963
+ * An instruction that computes the remainder of two integer operands.
965
964
*
966
965
* Both operands must have the same integer type, which will also be the result type. The result of
967
966
* division by zero or integer overflow is undefined.
@@ -971,7 +970,7 @@ class RemInstruction extends BinaryArithmeticInstruction {
971
970
}
972
971
973
972
/**
974
- * An instruction that computes the negation of a single register operand.
973
+ * An instruction that negates a single numeric operand.
975
974
*
976
975
* The operand must have a numeric type, which will also be the result type. The result of integer
977
976
* negation uses two's complement, and is computed modulo 2^n. The result of floating-point negation
@@ -989,19 +988,17 @@ class BitwiseInstruction extends Instruction {
989
988
}
990
989
991
990
/**
992
- * An instruction whose result is computed by performing a bitwise operation on two register
993
- * operands.
991
+ * An instruction that performs a bitwise operation on two integer operands.
994
992
*/
995
993
class BinaryBitwiseInstruction extends BitwiseInstruction , BinaryInstruction { }
996
994
997
995
/**
998
- * An instruction whose result is computed by performing a bitwise operation on a single register
999
- * operand.
996
+ * An instruction that performs a bitwise operation on a single integer operand.
1000
997
*/
1001
998
class UnaryBitwiseInstruction extends BitwiseInstruction , UnaryInstruction { }
1002
999
1003
1000
/**
1004
- * An instruction that computes the bitwise "and" of two register operands.
1001
+ * An instruction that computes the bitwise "and" of two integer operands.
1005
1002
*
1006
1003
* Both operands must have the same integer type, which will also be the result type.
1007
1004
*/
@@ -1010,7 +1007,7 @@ class BitAndInstruction extends BinaryBitwiseInstruction {
1010
1007
}
1011
1008
1012
1009
/**
1013
- * An instruction that computes the bitwise "or" of two register operands.
1010
+ * An instruction that computes the bitwise "or" of two integer operands.
1014
1011
*
1015
1012
* Both operands must have the same integer type, which will also be the result type.
1016
1013
*/
@@ -1019,7 +1016,7 @@ class BitOrInstruction extends BinaryBitwiseInstruction {
1019
1016
}
1020
1017
1021
1018
/**
1022
- * An instruction that computes the bitwise "xor" of two register operands.
1019
+ * An instruction that computes the bitwise "xor" of two integer operands.
1023
1020
*
1024
1021
* Both operands must have the same integer type, which will also be the result type.
1025
1022
*/
@@ -1028,8 +1025,8 @@ class BitXorInstruction extends BinaryBitwiseInstruction {
1028
1025
}
1029
1026
1030
1027
/**
1031
- * An instruction that computes its result by shifting its left operand to the left by the number of
1032
- * bits specified by its right operand.
1028
+ * An instruction that shifts its left operand to the left by the number of bits specified by its
1029
+ * right operand.
1033
1030
*
1034
1031
* Both operands must have an integer type. The result has the same type as the left operand. The
1035
1032
* rightmost bits are zero-filled.
@@ -1039,8 +1036,8 @@ class ShiftLeftInstruction extends BinaryBitwiseInstruction {
1039
1036
}
1040
1037
1041
1038
/**
1042
- * An instruction that computes its result by shifting its left operand to the right by the number
1043
- * of bits specified by its right operand.
1039
+ * An instruction that shifts its left operand to the right by the number of bits specified by its
1040
+ * right operand.
1044
1041
*
1045
1042
* Both operands must have an integer type. The result has the same type as the left operand. If the
1046
1043
* left operand has an unsigned integer type, the leftmost bits are zero-filled. If the left operand
@@ -1079,7 +1076,7 @@ class PointerOffsetInstruction extends PointerArithmeticInstruction {
1079
1076
}
1080
1077
1081
1078
/**
1082
- * An instruction that computes its result by adding an integer offset to a pointer.
1079
+ * An instruction that adds an integer offset to a pointer.
1083
1080
*
1084
1081
* The result is the byte address computed by adding the value of the right (integer) operand,
1085
1082
* multiplied by the element size, to the value of the left (pointer) operand. The result of pointer
@@ -1090,7 +1087,7 @@ class PointerAddInstruction extends PointerOffsetInstruction {
1090
1087
}
1091
1088
1092
1089
/**
1093
- * An instruction that computes its result by subtracting an integer offset from a pointer.
1090
+ * An instruction that subtracts an integer offset from a pointer.
1094
1091
*
1095
1092
* The result is the byte address computed by subtracting the value of the right (integer) operand,
1096
1093
* multiplied by the element size, from the value of the left (pointer) operand. The result of
@@ -1101,7 +1098,7 @@ class PointerSubInstruction extends PointerOffsetInstruction {
1101
1098
}
1102
1099
1103
1100
/**
1104
- * An instruction that computes the difference between two pointer operands .
1101
+ * An instruction that computes the difference between two pointers .
1105
1102
*
1106
1103
* The result must have an integer type whose size is the same as that of the pointer operands. The
1107
1104
* result is computed by subtracting the byte address in the right operand from the byte address in
@@ -1113,7 +1110,7 @@ class PointerDiffInstruction extends PointerArithmeticInstruction {
1113
1110
}
1114
1111
1115
1112
/**
1116
- * An instruction whose result is computed from a single register input operand.
1113
+ * An instruction whose result is computed from a single operand.
1117
1114
*/
1118
1115
class UnaryInstruction extends Instruction {
1119
1116
UnaryInstruction ( ) { getOpcode ( ) instanceof UnaryOpcode }
@@ -1124,7 +1121,7 @@ class UnaryInstruction extends Instruction {
1124
1121
}
1125
1122
1126
1123
/**
1127
- * An instruction that converts the value of a register operand to a value of a different type.
1124
+ * An instruction that converts the value of its operand to a value of a different type.
1128
1125
*/
1129
1126
class ConvertInstruction extends UnaryInstruction {
1130
1127
ConvertInstruction ( ) { getOpcode ( ) instanceof Opcode:: Convert }
0 commit comments