mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 00:08:12 +02:00
+ introduced the AT_WASM_GLOBAL asm symbol type
This commit is contained in:
parent
8226233aa3
commit
812732cb6a
@ -70,7 +70,9 @@ interface
|
||||
{ Thread-local symbol (ELF targets) }
|
||||
AT_TLS,
|
||||
{ GNU indirect function (ELF targets) }
|
||||
AT_GNU_IFUNC
|
||||
AT_GNU_IFUNC,
|
||||
{ WebAssembly global variable }
|
||||
AT_WASM_GLOBAL
|
||||
);
|
||||
|
||||
{ is the label only there for getting an DataOffset (e.g. for i/o
|
||||
|
@ -1761,7 +1761,7 @@ implementation
|
||||
|
||||
g_fingerprint(list);
|
||||
|
||||
list.Concat(taicpu.op_sym(a_global_get,current_asmdata.RefAsmSymbol(STACK_POINTER_SYM,AT_LABEL)));
|
||||
list.Concat(taicpu.op_sym(a_global_get,current_asmdata.RefAsmSymbol(STACK_POINTER_SYM,AT_WASM_GLOBAL)));
|
||||
incstack(list,1);
|
||||
list.Concat(taicpu.op_ref(a_local_set,pd.base_pointer_ref));
|
||||
decstack(list,1);
|
||||
@ -1777,7 +1777,7 @@ implementation
|
||||
decstack(list,1);
|
||||
list.Concat(taicpu.op_ref(a_local_get,pd.frame_pointer_ref));
|
||||
incstack(list,1);
|
||||
list.Concat(taicpu.op_sym(a_global_set,current_asmdata.RefAsmSymbol(STACK_POINTER_SYM,AT_LABEL)));
|
||||
list.Concat(taicpu.op_sym(a_global_set,current_asmdata.RefAsmSymbol(STACK_POINTER_SYM,AT_WASM_GLOBAL)));
|
||||
decstack(list,1);
|
||||
end;
|
||||
end;
|
||||
@ -1789,7 +1789,7 @@ implementation
|
||||
pd:=tcpuprocdef(current_procinfo.procdef);
|
||||
list.Concat(taicpu.op_ref(a_local_get,pd.base_pointer_ref));
|
||||
incstack(list,1);
|
||||
list.Concat(taicpu.op_sym(a_global_set,current_asmdata.RefAsmSymbol(STACK_POINTER_SYM,AT_LABEL)));
|
||||
list.Concat(taicpu.op_sym(a_global_set,current_asmdata.RefAsmSymbol(STACK_POINTER_SYM,AT_WASM_GLOBAL)));
|
||||
decstack(list,1);
|
||||
|
||||
list.concat(taicpu.op_none(a_return));
|
||||
|
Loading…
Reference in New Issue
Block a user