Граф коммитов

40 Коммитов

Автор SHA1 Сообщение Дата
Alon Zakai 218696cdd2 add a naming to globals that can be linked and used across modules 2013-07-03 15:31:05 -07:00
Alon Zakai cde6b80d99 warn on undefined global variables after linking 2013-07-03 15:31:05 -07:00
Alon Zakai f4adccef1a refactor sendings linking 2013-07-03 15:31:05 -07:00
Alon Zakai 4f9dfa2025 refactor linking of imports 2013-07-03 15:31:04 -07:00
Alon Zakai a98a8a9c8f add missing newline 2013-07-03 15:31:04 -07:00
Alon Zakai 461478fbb7 testing for using libc in a side module, and forcing inclusion of libc making it work 2013-07-03 15:31:04 -07:00
Alon Zakai 650a1d7857 finalize floats during relocation in side modules 2013-07-03 15:31:04 -07:00
Alon Zakai 2c44a12bc7 docs 2013-07-03 15:31:04 -07:00
Alon Zakai 0a77a104d3 simplify heap initializer merging 2013-07-03 15:31:04 -07:00
Alon Zakai 48edb13044 emit proper filler functions in merged function tables 2013-07-03 15:31:04 -07:00
Alon Zakai 8544ce1cc7 do not add imports that are implemented by the main module 2013-07-03 15:31:04 -07:00
Alon Zakai 8c44f912d8 handle function table updates with nested braces 2013-07-03 15:31:04 -07:00
Alon Zakai 41645b7415 fix enlarging of merged function tables 2013-07-03 15:31:04 -07:00
Alon Zakai fd7ca56909 finish function table merging and enable testing 2013-07-03 15:31:04 -07:00
Alon Zakai 7596d284a0 refactor invoke generation and add missing invokes when linking 2013-07-03 15:31:04 -07:00
Alon Zakai dda4942ef8 assert on no nesting in function table updates during linking 2013-07-03 15:31:04 -07:00
Alon Zakai ca79765924 update function table masks 2013-07-03 15:31:04 -07:00
Alon Zakai ca59b247ae merge function tables 2013-07-03 15:31:04 -07:00
Alon Zakai 91e27ccada link docs 2013-07-03 15:31:04 -07:00
Alon Zakai 11db72239d apply replacements to module defs, and add testing for merging of overlapping global initializers 2013-07-03 15:31:03 -07:00
Alon Zakai 0de466d64e apply replacements to exports 2013-07-03 15:31:03 -07:00
Alon Zakai 077b37c1f6 apply replacements in global initializer merging 2013-07-03 15:31:03 -07:00
Alon Zakai 585b3d76ee merge global initializers 2013-07-03 15:31:03 -07:00
Alon Zakai 0561274642 fix memory initializer counting and add test for merging of two of them 2013-07-03 15:31:03 -07:00
Alon Zakai 5e01920010 fix heap merging, add padding and offset adjustment, basic test passes in reverse as well 2013-07-03 15:31:03 -07:00
Alon Zakai b0e85bc8de merge module defs 2013-07-03 15:31:03 -07:00
Alon Zakai 405928b697 merge exports 2013-07-03 15:31:03 -07:00
Alon Zakai 20e81c4073 begin work on memory relocation 2013-07-03 15:31:03 -07:00
Alon Zakai 8c72d67953 move memory initializer pattern to shared 2013-07-03 15:31:03 -07:00
Alon Zakai 9663d80beb cleanup 2013-07-03 15:31:03 -07:00
Alon Zakai 74e60024e3 cleanups 2013-07-03 15:31:03 -07:00
Alon Zakai 5e2839ddb6 remove duplicate function marker 2013-07-03 15:31:03 -07:00
Alon Zakai 54aecffa44 allow extra info in js optimizer, and send relocate pass info that way 2013-07-03 15:31:03 -07:00
Alon Zakai 5cee70c892 invoke relocation pass in js optimizer 2013-07-03 15:31:03 -07:00
Alon Zakai b65d9c36bf start writing out a combined module 2013-07-03 15:31:03 -07:00
Alon Zakai 754ba99108 refactor and calculate new imports 2013-07-03 15:31:03 -07:00
Alon Zakai 0af083b4a0 start to parse imports 2013-07-03 15:31:03 -07:00
Alon Zakai f2178dcdd5 start to parse asm modules 2013-07-03 15:31:03 -07:00
Alon Zakai c8ba74664f comment 2013-07-03 15:31:03 -07:00
Alon Zakai fac77c3ff0 initial setup 2013-07-03 15:31:02 -07:00