Commit Graph

61432 Commits

Author SHA1 Message Date
nickysn
0e23b9288c * fixed thlcgwasm.a_load_loc_stack for LOC_REFERENCE
git-svn-id: branches/wasm@47971 -
2021-01-02 13:39:16 +00:00
nickysn
a5fafea8d1 * more updates to attempt to get a larger part of the full RTL to compile for WASM32
git-svn-id: branches/wasm@47970 -
2021-01-02 13:01:39 +00:00
nickysn
5a2a9f1dcc * simplified a_call_name and avoid internal errors, inherited from the jvm code generator
git-svn-id: branches/wasm@47969 -
2021-01-02 12:44:34 +00:00
nickysn
8c05ba538d * fixed formatting in wasm32 instr writer write instruction
git-svn-id: branches/wasm@47968 -
2021-01-02 12:28:00 +00:00
nickysn
5dfdaf870f - removed redundant code from wasm32 instruction writer
git-svn-id: branches/wasm@47967 -
2021-01-02 12:26:04 +00:00
nickysn
09ae46cfdd - removed unused code from TWASM32InstrWriter.WriteInstruction
git-svn-id: branches/wasm@47966 -
2021-01-02 12:25:12 +00:00
nickysn
35489718f3 * fixed call_indirect for the llvm-mc asm writer
git-svn-id: branches/wasm@47965 -
2021-01-02 12:21:30 +00:00
nickysn
56f65799d3 + functype creation moved to tcpuprocdef.create_functype
git-svn-id: branches/wasm@47964 -
2021-01-02 12:06:05 +00:00
nickysn
763ca253c1 + introduced the TWasmFuncType class - used to hold a Wasm function signature
git-svn-id: branches/wasm@47963 -
2021-01-02 11:54:41 +00:00
nickysn
bb42589829 + added DebugWriteLn
git-svn-id: branches/wasm@47961 -
2021-01-02 10:47:04 +00:00
nickysn
1911fcd8ce * fixed StrLen double definition when compiling WASI with -dFULL_RTL
git-svn-id: branches/wasm@47960 -
2021-01-02 09:02:32 +00:00
nickysn
80fd387a51 - removed the tcpupropertysym overrides from the jvm, because they're not needed for wasm
git-svn-id: branches/wasm@47959 -
2021-01-02 08:59:12 +00:00
nickysn
9bd8b66e86 + first attempts to compile a full WASI rtl
git-svn-id: branches/wasm@47958 -
2021-01-02 08:05:02 +00:00
nickysn
4c85306f69 + added wasm32 type defines
git-svn-id: branches/wasm@47957 -
2021-01-02 07:58:33 +00:00
nickysn
0ec39281f9 + added rtl directory and some rtl include files for wasm32
git-svn-id: branches/wasm@47956 -
2021-01-02 07:57:17 +00:00
nickysn
b01a0a7018 + define the CPUWASM32 system macro for wasm32
git-svn-id: branches/wasm@47955 -
2021-01-02 07:54:53 +00:00
nickysn
76a3014e3a + added DebugWriteHexByte
git-svn-id: branches/wasm@47954 -
2021-01-02 07:30:21 +00:00
nickysn
7221e9fe7f + added DebugWriteHexDigit
git-svn-id: branches/wasm@47953 -
2021-01-02 07:28:56 +00:00
nickysn
b80a650c7d + added DebugWriteChar
git-svn-id: branches/wasm@47952 -
2021-01-02 07:27:13 +00:00
nickysn
017b7903cf + added validation for the base and index registers in taicpu.op_ref
git-svn-id: branches/wasm@47951 -
2021-01-02 07:26:43 +00:00
nickysn
64a02834ff - commented out thlcgwasm.g_copyvalueparas
git-svn-id: branches/wasm@47950 -
2021-01-02 07:22:01 +00:00
nickysn
91ed9f12ac - removed unused local var from thlcgwasm.prepare_stack_for_ref
git-svn-id: branches/wasm@47949 -
2021-01-02 06:55:44 +00:00
nickysn
065d2c718d * no need to copy the local var paramater in StrLen()
git-svn-id: branches/wasm@47948 -
2021-01-02 06:37:52 +00:00
nickysn
c24446c037 * copy all wasm parameters to the local stack, so that their address can be taken
git-svn-id: branches/wasm@47947 -
2021-01-02 06:36:20 +00:00
nickysn
40e4dadcdf - removed wrong comment from tcpuparamanager.create_paraloc_info_intern
git-svn-id: branches/wasm@47946 -
2021-01-02 06:23:41 +00:00
nickysn
c470e851ba + generic implementation of thlcgwasm.a_loadaddr_ref_reg that should handle all possible combinations of base, index
and scalefactor

git-svn-id: branches/wasm@47945 -
2021-01-02 06:08:38 +00:00
nickysn
e4f4f25c44 + handle any base and no index in the second if case in thlcgwasm.a_loadaddr_ref_reg
git-svn-id: branches/wasm@47944 -
2021-01-02 05:52:19 +00:00
nickysn
2084fede95 + handle all constant address (regardless of whether they are relative to a symbol or not) in thlcgwasm.a_loadaddr_ref_reg
git-svn-id: branches/wasm@47943 -
2021-01-02 05:48:40 +00:00
nickysn
ded9afb787 + check and generate an internal error if you attempt to take the address of a reference that exists in the local
stack in thlcgwasm.a_loadaddr_ref_reg

git-svn-id: branches/wasm@47942 -
2021-01-02 05:44:19 +00:00
nickysn
a1f5b57070 + also check for ref.index and ref.symbol in the NR_LOCAL_FRAME_POINTER_REG base case in thlcgwasm.a_loadaddr_ref_reg
git-svn-id: branches/wasm@47941 -
2021-01-02 05:40:17 +00:00
nickysn
46bf123fcd + also ensure that ref.base and ref.index are not set for symbols in thlcgwasm.a_loadaddr_ref_reg
git-svn-id: branches/wasm@47940 -
2021-01-02 05:35:31 +00:00
nickysn
15387514b4 * changed the formatting in thlcgwasm.a_loadaddr_ref_reg to fit the style of the other compiler code
git-svn-id: branches/wasm@47939 -
2021-01-02 05:30:22 +00:00
nickysn
88d42344db - removed comment thlcgwasm.a_loadaddr_ref_reg that is not true for wasm
git-svn-id: branches/wasm@47938 -
2021-01-02 05:25:32 +00:00
nickysn
f87f9969a7 * synchronized with trunk
git-svn-id: branches/wasm@47937 -
2021-01-02 04:55:50 +00:00
Mattias Gaertner
f0122bd4a0 fcl-passrc: resolver: parse library
git-svn-id: trunk@47936 -
2021-01-01 22:29:58 +00:00
florian
e6037961e3 * refactored constant folding code
git-svn-id: trunk@47935 -
2021-01-01 21:58:12 +00:00
florian
97abf6b495 * first part of fixing #38267: do not bail out early during constant folding
if the constant is 1 or -1

git-svn-id: trunk@47933 -
2021-01-01 15:26:13 +00:00
marco
8311837468 --no-offset option for chmls, makes it easier to compare listings.
git-svn-id: trunk@47932 -
2021-01-01 13:45:28 +00:00
nickysn
4b9397fce4 * our_iov converted to a local var
git-svn-id: branches/wasm@47931 -
2020-12-31 18:37:59 +00:00
nickysn
82e9cb0189 * our_nwritten converted to a local var
git-svn-id: branches/wasm@47930 -
2020-12-31 18:37:07 +00:00
nickysn
acb13602ea * fixed getting the address of local variables
git-svn-id: branches/wasm@47929 -
2020-12-31 18:36:45 +00:00
nickysn
08ae48aebf * i in strlen converted to a local variable, because that now works
git-svn-id: branches/wasm@47928 -
2020-12-31 18:24:16 +00:00
nickysn
31bc357c1b * fixed internal error 2019083002 with e.g. inc(local)
git-svn-id: branches/wasm@47927 -
2020-12-31 18:23:49 +00:00
florian
b4a6c22234 * do not check inlined exit nodes for unset results, resolves #38259
git-svn-id: trunk@47926 -
2020-12-31 15:52:02 +00:00
florian
3482121831 * patch by Christo Crause: Fix missed optimization opportunities, resolves #38285
git-svn-id: trunk@47925 -
2020-12-31 15:33:39 +00:00
nickysn
0858579b50 * the gp: pchar global variable converted to local, because the code generator can now cope with this
git-svn-id: branches/wasm@47922 -
2020-12-31 08:18:00 +00:00
nickysn
46a09bd8e4 * fixed thlcgwasm.a_load_ref_ref for NR_EVAL_STACK_BASE source references
git-svn-id: branches/wasm@47921 -
2020-12-31 08:11:55 +00:00
nickysn
361594bafd * synchronized with trunk
git-svn-id: branches/wasm@47920 -
2020-12-31 04:00:04 +00:00
Mattias Gaertner
c1a2b6279e pastojs: fixed delay init specialized interface
git-svn-id: trunk@47919 -
2020-12-31 01:07:33 +00:00
marco
4353d36516 * commited patch(-5) by Andrey Sobol from mantis #38153 .
git-svn-id: trunk@47915 -
2020-12-30 20:37:24 +00:00