mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 23:19:29 +02:00
+ WebAssembly internal asm support for the ref.null instruction
This commit is contained in:
parent
11712658b0
commit
2039509cfb
@ -581,7 +581,9 @@ uses
|
||||
a_i64_trunc_sat_f64_s,
|
||||
a_i64_trunc_sat_f64_u,
|
||||
a_memory_size,
|
||||
a_memory_grow:
|
||||
a_memory_grow,
|
||||
a_ref_null_funcref,
|
||||
a_ref_null_externref:
|
||||
result:=2;
|
||||
a_memory_copy:
|
||||
result:=4;
|
||||
@ -1991,6 +1993,16 @@ uses
|
||||
WriteByte($FC);
|
||||
WriteByte($07);
|
||||
end;
|
||||
a_ref_null_funcref:
|
||||
begin
|
||||
WriteByte($D0);
|
||||
WriteByte($70);
|
||||
end;
|
||||
a_ref_null_externref:
|
||||
begin
|
||||
WriteByte($D0);
|
||||
WriteByte($6F);
|
||||
end;
|
||||
else
|
||||
internalerror(2021092624);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user