You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: smalig/grammar.yaml
+3-3
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@
27
27
args_info: ""
28
28
short_desc: "No operation"
29
29
long_desc: "Does nothing, Waste cycles."
30
-
note: 'Data-bearing pseudo-instructions are tagged with this opcode, in which case the high-order byte of the opcode unit indicates the nature of the data. See "packed-switch-payload Format", "sparse-switch-payload Format", and "fill-array-data-payload Format".'
30
+
note: "Data-bearing pseudo-instructions are tagged with this opcode, in which case the high-order byte of the opcode unit indicates the nature of the data. See `packed-switch-payload Format`, `sparse-switch-payload Format`, and `fill-array-data-payload Format`."
31
31
example: "0000 - nop"
32
32
example_desc: "Does nothing, Waste cycles"
33
33
@@ -399,7 +399,7 @@
399
399
args_info: "A: reference-bearing register (8 bits), B: type index (16 bits)"
400
400
short_desc: "Throw a ClassCastException if the reference in the given register cannot be cast to the indicated type."
401
401
long_desc: "Check that the object referenced by vAA is an instance of the class resolved by type@BBBB. If it is not, throw a ClassCastException."
402
-
note: "Since 'A' must always be a reference (and not a primitive value), this will necessarily fail at runtime (that is, it will throw an exception) if 'B' refers to a primitive type."
402
+
note: "Since $A$ must always be a reference (and not a primitive value), this will necessarily fail at runtime (that is, it will throw an exception) if $B$ refers to a primitive type."
example_desc: "Checks whether the object reference in v4 can be cast to type@0001 (entry #1 in the type id table) and throws a ClassCastException if it cannot."
405
405
@@ -411,7 +411,7 @@
411
411
args_info: "A: destination register (4 bits), B: reference-bearing register (4 bits), C: type index (16 bits)"
412
412
short_desc: "Store in the given destination register 1 if the indicated reference is an instance of the given type, or 0 if not."
413
413
long_desc: "Check whether the object referenced by vB is an instance of the class resolved by type@CCCC. If it is, the value 1 is stored in vA; otherwise, the value 0 is stored in vA."
414
-
note: "Since 'B' must always be a reference (and not a primitive value), this will always result in 0 being stored if C refers to a primitive type. In short, This will always result in 0 if the type is primitive."
414
+
note: "Since $B$ must always be a reference (and not a primitive value), this will always result in 0 being stored if C refers to a primitive type. In short, This will always result in 0 if the type is primitive."
0 commit comments