Skip to content

Commit 3dc94a0

Browse files
author
rocky
committed
Start going over Graal 22 opcodes
1 parent e0a47e4 commit 3dc94a0

File tree

3 files changed

+159
-152
lines changed

3 files changed

+159
-152
lines changed

xdis/op_imports.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
"3.8": opcode_38,
148148
"3.8PyPy": opcode_38pypy,
149149
"3.8.0PyPy": opcode_38pypy,
150+
'3.8.5Graal (16)': opcode_38graal,
150151
"3.8.12PyPy": opcode_38pypy,
151152
"3.8.13PyPy": opcode_38pypy,
152153
"3.8.14PyPy": opcode_38pypy,

xdis/opcodes/opcode_310graal.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# along with this program; if not, write to the Free Software
1515
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1616
"""
17-
Python Graal 3.10 (graal-23.0.0) bytecode opcodes
17+
Python Graal 3.10 (graalpy-23) bytecode opcodes
1818
1919
See com.oracle.graal.python/src/com/oracle/graal/python/compiler/OpCodes.java
2020
"""
@@ -390,23 +390,24 @@
390390
# calling
391391
# -------
392392

393-
# calls method on an object using an array as args. the receiver is taken from the first
394-
# element of the array. the method name is determined by the immediate operand which indexes
393+
#
394+
# Calls method on an object using an array as args. The receiver is taken from the first
395+
# element of the array. The method name is determined by the immediate operand which indexes
395396
# the names array ({@code co_names}).
396397
#
397-
# pops: args ({@code object[]} of size >= 1)
398+
# Pops: args ({@code Object[]} of size >= 1)
398399
#
399-
# pushes: call result
400+
# Pushes: call result
400401
#
401-
call_op_graal(loc, "call_method_varargs", 0x41, 1, 1, 1)
402+
call_op_graal(loc, "CALL_METHOD_VARARGS", 65, 1, 1, 1)
402403
#
403-
# calls method on an object using a number of stack args determined by the first immediate
404+
# Calls method on an object using a number of stack args determined by the first immediate
404405
# operand.
405406
#
406-
# pops: multiple arguments depending on the first immediate operand, then the method and the
407+
# Pops: multiple arguments depending on the first immediate operand, then the method and the
407408
# receiver
408409
#
409-
# pushes: call result
410+
# Pushes: call result
410411
#
411412
call_op_graal(
412413
loc, "CALL_METHOD", 0x42, 1, 1, 1

0 commit comments

Comments
 (0)