Alon Zakai
a06d3f1722
strengthen relocation assert
2015-05-07 22:28:59 -07:00
Alon Zakai
a5ce9ce6ce
allow side modules to be validating asm.js
2015-05-07 17:20:37 -07:00
Alon Zakai
d0ed46f3e4
handle tempRet0 with a function call in relocatable modules, so that we can return i64s across them
2015-05-04 15:05:41 -07:00
Alon Zakai
c3f81bd292
harmonize the RELOCATABLE and *_MODULE settings
2015-04-30 16:40:08 -07:00
Alon Zakai
adf20658e3
access external variables in linkable modules through calls
2015-04-30 13:18:40 -07:00
Alon Zakai
ba249f5db4
emit proper redirect thunks in side modules
2015-04-28 21:39:20 -07:00
Alon Zakai
affcda88a4
one-sided class dynamic linking test
2015-04-28 21:16:03 -07:00
Alon Zakai
7c0d6593c9
ftCall in side modules must use the parent's global function tables
2015-04-28 15:25:08 -07:00
Alon Zakai
a8a4317206
unify globals and functionss in dynamic linking
2015-04-28 14:30:26 -07:00
Alon Zakai
426c94d070
Merge branch 'incoming' into linking
...
Conflicts:
emcc
emscripten.py
src/settings.js
tests/test_core.py
2015-04-27 16:38:01 -07:00
Bruce Mitchener
e100799006
Remove TARGET_ASMJS_UNKNOWN_EMSCRIPTEN
2015-04-27 22:13:09 +07:00
Alon Zakai
657a2ac02a
Merge branch 'incoming' into linking
...
Conflicts:
emcc
src/jsifier.js
src/shell_sharedlib.js
2015-04-26 16:11:50 -07:00
Alon Zakai
7c5403bc9f
use ftCall instead of dynCall when EMULATED_FUNCTION_POINTERS; enable test_dlfcn_longjmp
2015-04-26 11:11:03 -07:00
Alon Zakai
9efaec62e3
move asm consts off of the Runtime object, so that side modules can have their own
2015-04-26 10:49:33 -07:00
Alon Zakai
a7401df02f
remove DLOPEN_SUPPORT option; it works without it now, when build with RELOCATABLE and MAIN|SIDE_MODULE
2015-04-25 22:10:48 -07:00
Alon Zakai
18aef0e531
handle named globals in dlsym; enable test_dlfcn_data_and_fptr
2015-04-25 21:45:13 -07:00
Alon Zakai
b757e8bea0
use SIDE_FUNCTION_TABLE for side function tables, so that side module dynCall etcs can just override the parent's, and it will work since FUNCTION_TABLE is still the only important one, i.e. the one from the parent
2015-04-25 15:48:23 -07:00
Alon Zakai
8f66d84a38
fix side module memory initializer
2015-04-25 13:49:29 -07:00
Alon Zakai
d7bbc8f4d5
register function tables from side modules, enable test_dlfcn_qsort
2015-04-25 13:15:44 -07:00
Bruce Mitchener
acfcd51571
Remove CHEAP_HEAP_ALIGN and friends.
...
Your heart is not open so I must go
The spell has been broken, I loved you so
Freedom comes when you learn to let go
Creation comes when you learn to say no
2015-04-25 10:24:44 +07:00
Alon Zakai
9833addc6d
export function tables on Module when EMULATED_FUNCTION_POINTERS, so they can be accessed dynamically
2015-04-24 17:09:23 -07:00
Alon Zakai
a115500246
ensure exported_implemented_functions elements are unique
2015-04-24 14:33:06 -07:00
Alon Zakai
e940dff933
start to clean up dlopen code
2015-04-24 13:44:57 -07:00
Bruce Mitchener
f60332d716
Remove oldcomp's function indexing.
...
This is now handled in fastcomp.
2015-04-23 11:03:17 +07:00
Bruce Mitchener
dbab9fcf48
Remove ll_file parameter from compiler.js.
...
This wasn't used and removing it simplifies things a little bit.
2015-04-23 10:47:16 +07:00
Bruce Mitchener
0f64e5cf74
Remove 'phase' from compiler.js and friends.
...
This was always just 'glue' now, so we can remove and simplify.
2015-04-23 10:43:07 +07:00
Alon Zakai
388849a6ae
show better error when metadata parsing fails in emscripten.py
2015-04-22 17:47:13 -07:00
Alon Zakai
c99d17aedf
beginnings of RELOCATABLE option
2015-04-22 16:41:31 -07:00
Alon Zakai
65e3a4b517
properly fix EMULATE_FUNCTION_POINTER_CASTS + EMULATED_FUNCTION_POINTERS
2015-04-21 13:31:11 -07:00
Alon Zakai
be37671f60
mention function table mask errors when they happen in EMULATED_FUNCTION_POINTERS
2015-04-21 11:39:22 -07:00
Alon Zakai
14efac6c01
fix EMULATE_FUNCTION_POINTER_CASTS+EMULATED_FUNCTION_POINTERS
2015-04-21 11:36:40 -07:00
Alon Zakai
c0e1dd9787
improve function pointer error messages under EMULATE_FUNCTION_POINTERS
2015-04-21 11:30:00 -07:00
Alon Zakai
6fe31558b7
option for emulated function pointers
2015-04-20 17:25:55 -07:00
Alon Zakai
f663cb9714
Merge branch 'remove-pointer-masking' of https://github.com/JSStats/emscripten into incoming
2015-04-15 16:27:58 -07:00
Douglas Crosher
330e3a501a
Remove the pointer masking feature.
2015-04-15 16:37:51 +10:00
Bruce Mitchener
8d2ccfd214
Remove more of the old compiler.
2015-04-15 10:57:37 +07:00
Alon Zakai
313fac0092
Merge branch 'remove-relooper' of https://github.com/waywardmonkeys/emscripten into incoming
2015-04-14 17:36:19 -07:00
Alon Zakai
33424d7f5f
handle unicode in EM_ASMs #3348
2015-04-14 17:16:26 -07:00
Bruce Mitchener
3cc010afd5
Remove usages of the relooper.
2015-04-15 07:15:00 +07:00
Alon Zakai
550fefb3d0
emit emscripten_asm_const with arity info, to enable more optimized calls #2596
2015-04-13 14:32:39 -07:00
Bruce Mitchener
be9b193daa
Remove vestiges of support for non-asmjs-emcripten ABI.
2015-04-13 08:17:42 +07:00
Bruce Mitchener
b268e4ebfa
Remove jcache support.
...
This has been deprecated for a long time and does not work with
fastcomp. It is no longer supported to not use fastcomp, so these
code paths were all dead.
2015-04-07 10:06:43 +07:00
Tiago Quelhas
56fba621b8
remove jsCall
2015-04-03 22:23:34 +01:00
Tiago Quelhas
2599f3e747
call function pointers through jsCall_* instead of jsCall
2015-04-03 22:23:34 +01:00
Tiago Quelhas
0d4f7924c1
autogenerate jscall_* functions for asm
2015-04-03 22:23:34 +01:00
Alon Zakai
50506f9b54
cleanup a todo
2015-04-03 12:23:50 -07:00
Alon Zakai
e2bd4930fd
update EM_ASM docs
2015-04-03 11:47:04 -07:00
Alon Zakai
ef2dbd835d
accept a string as an EM_ASM
2015-04-02 17:45:19 -07:00
Alon Zakai
f996ffcfd2
receive asmConsts from backend as metadata, and emit them in the generated code directly as JS code, to avoid evals; #2596
2015-04-02 17:45:19 -07:00
Alon Zakai
9df2b3a82c
handle int|double casts in EMULATE_FUNCTION_POINTER_CASTS; fixes #3300
2015-04-01 20:30:15 -07:00