@@ -860,7 +860,7 @@ class StringConstantInstruction extends VariableInstruction {
860860}
861861
862862/**
863- * An instruction whose result is computed from two register operands.
863+ * An instruction whose result is computed from two operands.
864864 */
865865class BinaryInstruction extends Instruction {
866866 BinaryInstruction ( ) { getOpcode ( ) instanceof BinaryOpcode }
@@ -905,19 +905,18 @@ class ArithmeticInstruction extends Instruction {
905905}
906906
907907/**
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.
910909 */
911910class BinaryArithmeticInstruction extends ArithmeticInstruction , BinaryInstruction { }
912911
913912/**
914913 * An instruction whose result is computed by performing an arithmetic operation on a single
915- * register operand.
914+ * numeric operand.
916915 */
917916class UnaryArithmeticInstruction extends ArithmeticInstruction , UnaryInstruction { }
918917
919918/**
920- * An instruction that computes the sum of two register operands.
919+ * An instruction that computes the sum of two numeric operands.
921920 *
922921 * Both operands must have the same numeric type, which will also be the result type. The result of
923922 * integer overflow is the infinite-precision result modulo 2^n. Floating-point addition is
@@ -928,7 +927,7 @@ class AddInstruction extends BinaryArithmeticInstruction {
928927}
929928
930929/**
931- * An instruction that computes the difference of two register operands.
930+ * An instruction that computes the difference of two numeric operands.
932931 *
933932 * Both operands must have the same numeric type, which will also be the result type. The result of
934933 * integer overflow is the infinite-precision result modulo 2^n. Floating-point subtraction is performed
@@ -939,7 +938,7 @@ class SubInstruction extends BinaryArithmeticInstruction {
939938}
940939
941940/**
942- * An instruction that computes the product of two register operands.
941+ * An instruction that computes the product of two numeric operands.
943942 *
944943 * Both operands must have the same numeric type, which will also be the result type. The result of
945944 * integer overflow is the infinite-precision result modulo 2^n. Floating-point multiplication is
@@ -950,7 +949,7 @@ class MulInstruction extends BinaryArithmeticInstruction {
950949}
951950
952951/**
953- * An instruction that computes the quotient of two register operands.
952+ * An instruction that computes the quotient of two numeric operands.
954953 *
955954 * Both operands must have the same numeric type, which will also be the result type. The result of
956955 * division by zero or integer overflow is undefined. Floating-point division is performed according
@@ -961,7 +960,7 @@ class DivInstruction extends BinaryArithmeticInstruction {
961960}
962961
963962/**
964- * An instruction that computes the remainder of two register operands.
963+ * An instruction that computes the remainder of two integer operands.
965964 *
966965 * Both operands must have the same integer type, which will also be the result type. The result of
967966 * division by zero or integer overflow is undefined.
@@ -971,7 +970,7 @@ class RemInstruction extends BinaryArithmeticInstruction {
971970}
972971
973972/**
974- * An instruction that computes the negation of a single register operand.
973+ * An instruction that negates a single numeric operand.
975974 *
976975 * The operand must have a numeric type, which will also be the result type. The result of integer
977976 * 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 {
989988}
990989
991990/**
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.
994992 */
995993class BinaryBitwiseInstruction extends BitwiseInstruction , BinaryInstruction { }
996994
997995/**
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.
1000997 */
1001998class UnaryBitwiseInstruction extends BitwiseInstruction , UnaryInstruction { }
1002999
10031000/**
1004- * An instruction that computes the bitwise "and" of two register operands.
1001+ * An instruction that computes the bitwise "and" of two integer operands.
10051002 *
10061003 * Both operands must have the same integer type, which will also be the result type.
10071004 */
@@ -1010,7 +1007,7 @@ class BitAndInstruction extends BinaryBitwiseInstruction {
10101007}
10111008
10121009/**
1013- * An instruction that computes the bitwise "or" of two register operands.
1010+ * An instruction that computes the bitwise "or" of two integer operands.
10141011 *
10151012 * Both operands must have the same integer type, which will also be the result type.
10161013 */
@@ -1019,7 +1016,7 @@ class BitOrInstruction extends BinaryBitwiseInstruction {
10191016}
10201017
10211018/**
1022- * An instruction that computes the bitwise "xor" of two register operands.
1019+ * An instruction that computes the bitwise "xor" of two integer operands.
10231020 *
10241021 * Both operands must have the same integer type, which will also be the result type.
10251022 */
@@ -1028,8 +1025,8 @@ class BitXorInstruction extends BinaryBitwiseInstruction {
10281025}
10291026
10301027/**
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.
10331030 *
10341031 * Both operands must have an integer type. The result has the same type as the left operand. The
10351032 * rightmost bits are zero-filled.
@@ -1039,8 +1036,8 @@ class ShiftLeftInstruction extends BinaryBitwiseInstruction {
10391036}
10401037
10411038/**
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.
10441041 *
10451042 * Both operands must have an integer type. The result has the same type as the left operand. If the
10461043 * 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 {
10791076}
10801077
10811078/**
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.
10831080 *
10841081 * The result is the byte address computed by adding the value of the right (integer) operand,
10851082 * 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 {
10901087}
10911088
10921089/**
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.
10941091 *
10951092 * The result is the byte address computed by subtracting the value of the right (integer) operand,
10961093 * multiplied by the element size, from the value of the left (pointer) operand. The result of
@@ -1101,7 +1098,7 @@ class PointerSubInstruction extends PointerOffsetInstruction {
11011098}
11021099
11031100/**
1104- * An instruction that computes the difference between two pointer operands .
1101+ * An instruction that computes the difference between two pointers .
11051102 *
11061103 * The result must have an integer type whose size is the same as that of the pointer operands. The
11071104 * 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 {
11131110}
11141111
11151112/**
1116- * An instruction whose result is computed from a single register input operand.
1113+ * An instruction whose result is computed from a single operand.
11171114 */
11181115class UnaryInstruction extends Instruction {
11191116 UnaryInstruction ( ) { getOpcode ( ) instanceof UnaryOpcode }
@@ -1124,7 +1121,7 @@ class UnaryInstruction extends Instruction {
11241121}
11251122
11261123/**
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.
11281125 */
11291126class ConvertInstruction extends UnaryInstruction {
11301127 ConvertInstruction ( ) { getOpcode ( ) instanceof Opcode:: Convert }
0 commit comments