nickysn
|
ded9afb787
+ check and generate an internal error if you attempt to take the address of a reference that exists in the local
|
4 years ago |
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
|
4 years ago |
nickysn
|
46bf123fcd
+ also ensure that ref.base and ref.index are not set for symbols in thlcgwasm.a_loadaddr_ref_reg
|
4 years ago |
nickysn
|
15387514b4
* changed the formatting in thlcgwasm.a_loadaddr_ref_reg to fit the style of the other compiler code
|
4 years ago |
nickysn
|
88d42344db
- removed comment thlcgwasm.a_loadaddr_ref_reg that is not true for wasm
|
4 years ago |
nickysn
|
acb13602ea
* fixed getting the address of local variables
|
4 years ago |
nickysn
|
31bc357c1b
* fixed internal error 2019083002 with e.g. inc(local)
|
4 years ago |
nickysn
|
46a09bd8e4
* fixed thlcgwasm.a_load_ref_ref for NR_EVAL_STACK_BASE source references
|
4 years ago |
nickysn
|
08580ed628
+ introduced ttgwasm(tg).allocframepointer and .allocbasepointer
|
4 years ago |
nickysn
|
90251d7050
* allocate the base and frame pointer correctly as locals after the previous commit
|
4 years ago |
nickysn
|
bfb13fb848
- get rid of treference.islocal. Instead, use checks whether treference.base
|
4 years ago |
nickysn
|
2c56514135
- removed thlcgwasm.a_load_const_stack_intern - it comes from the JVM code
|
4 years ago |
nickysn
|
c0bbe6d8c0
* 64-bit constants take a single stack slot in WebAssembly. Don't incstack a
|
4 years ago |
nickysn
|
99482051a8
* write the unsupported parameter type in thlcgwam.g_procdef, when compiler is compiled with EXTDEBUG
|
4 years ago |
nickysn
|
fbe9e975e5
+ support dup in some more cases in thlcgwasm.prepare_stack_for_ref
|
4 years ago |
nickysn
|
d2a4e3b441
- removed debug writeln from thlcgwasm.prepare_stack_for_ref
|
4 years ago |
nickysn
|
3c3a8ce111
* fixed bug in thlcgwasm.a_cmp_const_ref_label
|
4 years ago |
nickysn
|
c46f308749
+ support dup for symbols in prepare_stack_for_ref
|
4 years ago |
nickysn
|
64b2d8ef85
* wasm base and index reference access fixes
|
4 years ago |
nickysn
|
d15e9717e3
* treference parameter of prepare_stack_for_ref changed to var
|
4 years ago |
nickysn
|
0bb255709f
* formatting
|
4 years ago |
nickysn
|
9972d0e7d9
+ internal error in thlcgwasm.prepare_stack_for_ref for symbol with registers
|
4 years ago |
nickysn
|
5128c07e68
* fixed writing to global variables
|
4 years ago |
nickysn
|
8211bcbd4c
* fixed getting the address of a global variable
|
4 years ago |
nickysn
|
bbe5e3d0e7
- removed spurious load of global symbols in thlcgwasm.prepare_stack_for_ref
|
4 years ago |
nickysn
|
fe4f041436
* procdef directive code generation moved to a separate method
|
4 years ago |
nickysn
|
5ee6e9d593
* declare end_function as an instruction, instead of a directive
|
4 years ago |
nickysn
|
c69dce34c4
+ add a .text section directive before each procedure
|
4 years ago |
nickysn
|
fc96ad5afd
+ write the end_function directive
|
4 years ago |
nickysn
|
4a5e2dbd23
* refactored the handling of the frame pointer and base pointer to use local temps instead
|
4 years ago |