From 0e5a699f01e63ef44e40bf30033e17c5f4731ab8 Mon Sep 17 00:00:00 2001 From: Andrew Chambers Date: Wed, 13 Oct 2021 14:07:29 +1300 Subject: Add parsev interning. --- asm.peg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'asm.peg') diff --git a/asm.peg b/asm.peg index f181cfe..8d16458 100644 --- a/asm.peg +++ b/asm.peg @@ -126,9 +126,9 @@ pop = call = "call" 'q'? ws ( '*' t:m - { $$.call = (Call){ .kind = ASM_CALL, .target.indirect=dupv(&t), .indirect=1 } ; } + { $$.call = (Call){ .kind = ASM_CALL, .target.indirect=internparsev(&t), .indirect=1 } ; } | '*' t:r64 - { $$.call = (Call){ .kind = ASM_CALL, .target.indirect=dupv(&t), .indirect=1 } ; } + { $$.call = (Call){ .kind = ASM_CALL, .target.indirect=internparsev(&t), .indirect=1 } ; } | t:value { $$.call = (Call){ .kind = ASM_CALL, .target.direct=t.value, .indirect=0 } ; } ) -- cgit v1.2.3