We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f8739c commit 683564dCopy full SHA for 683564d
src/vm/jvm/Truffle.nqp
@@ -6,14 +6,15 @@ my $VOID := -1; # Value of this type shouldn't exist
6
my $CALL_ARG := 5; # Something that will be passed to a sub/method call
7
my $RETVAL := 8; # Something that will be returned from a sub/method call
8
9
-my %type_names;
10
-%type_names{$OBJ} := 'OBJ';
11
-%type_names{$INT} := 'INT';
12
-%type_names{$NUM} := 'NUM';
13
-%type_names{$STR} := 'STR';
14
-%type_names{$VOID} := 'VOID';
15
-%type_names{$CALL_ARG} := 'CALL_ARG';
16
-%type_names{$RETVAL} := 'RETVAL';
+my %type_names := nqp::hash(
+ $OBJ, 'OBJ',
+ $INT, 'INT',
+ $NUM, 'NUM',
+ $STR, 'STR',
+ $VOID, 'VOID',
+ $CALL_ARG, 'CALL_ARG',
+ $RETVAL, 'RETVAL',
17
+);
18
19
# Constant mapping.
20
my %const_map := nqp::hash(
0 commit comments