Alon Zakai
7d5be1566c
add a whitelist option for the emterpreter; #3129
2015-01-21 17:56:29 -08:00
sstj
fc5c62412a
Support .c++ file extension
...
capnproto uses this.
2015-01-21 22:44:12 +01:00
Alon Zakai
7433a4d621
profiling improvements in emterpreter
2015-01-16 16:32:43 -08:00
Alon Zakai
1554ced912
add option to defer expanding response files, and use that in EMTERPRETIFY_BLACKLIST, which we only need in the emterpreter
2015-01-15 15:06:43 -08:00
Alon Zakai
a7d67a3e77
Merge branch 'async-emterp' into incoming
2015-01-14 13:44:05 -08:00
Alon Zakai
ae821bda29
put emterpreter async support behind EMTERPRETIFY_ASYNC flag
2015-01-14 13:43:26 -08:00
Alon Zakai
49d1d23245
support saving and loading stack frames in emterpreter
2015-01-14 13:43:21 -08:00
Alon Zakai
3bc04cc4cc
proper error message when DLOPEN_SUPPORT is used on fastcomp; #2365
2015-01-14 11:38:15 -08:00
Alon Zakai
5eeccdefd3
update llvm version to 3.5 ; 1.29.1
2015-01-07 11:48:05 -08:00
Alon Zakai
16d378c78f
do not use an env var to communicate c++ mode
2015-01-01 19:48:54 -08:00
Alon Zakai
550729d643
fix lto in non-fastcomp
2015-01-01 11:14:32 -08:00
Alon Zakai
e4eb04c911
perform LLVM LTO in a separate invocation of opt, so that it does not mix with legalization and other stuff we do at link time
2014-12-31 14:23:35 -08:00
Alon Zakai
278ec84fbb
add SDL to list of libraries we don't need to issue link warnings about
2014-12-21 11:27:43 -08:00
Bruce Mitchener
c884a4be5f
Set ASM_JS default prior to processing command line.
...
This lets the user set ASM_JS to 2 and avoid a warning if they
also set ALLOW_MEMORY_GROWTH.
2014-12-10 15:06:04 +07:00
Bruce Mitchener
84bbf2a6e2
Disable warning when asm.js validation is already disabled.
...
When ASM_JS is already 2, no need to warn about allowing memory growth
as the user must have known about this and set ASM_JS to 2.
2014-12-10 14:50:31 +07:00
Bruce Mitchener
ed19562a35
Fix some typos.
2014-12-09 21:49:32 +07:00
Alon Zakai
11af4f4951
fix interleaving of native and js optimization passes
2014-12-07 20:00:57 -08:00
Alon Zakai
dcfd9a8445
emit 'minifyWhitespace only in 'last' pass, to unbreak EMCC_DEBUG=2 on minified final output
2014-12-07 14:08:35 -08:00
Alon Zakai
5af047e2e9
refactor emcc native/js optimizer interaction, and enable full native optimizer path
2014-12-06 12:09:42 -08:00
Alon Zakai
f63849ea7c
use native optimizer parsing
2014-11-28 21:47:11 -08:00
Alon Zakai
e87a68b62a
Merge branch 'incoming' into merge-3.4
...
Conflicts:
emscripten-version.txt
2014-11-19 16:56:36 -08:00
Alon Zakai
308d916b9d
update to llvm 3.4 ; 1.27.1
2014-11-19 16:51:05 -08:00
Jukka Jylanki
1362b20588
Fix another missing 'python emcc' vs 'emcc' for Windows in other.test_emconfigure_js_o.
2014-11-18 20:58:33 +02:00
Alon Zakai
f514007c8b
fix EMCONFIGURE_JS on object outputs; fixes #2994
2014-11-17 10:47:56 -08:00
Alon Zakai
7cd1439cfa
handle symbol map as an option on top of minifyNames
2014-11-14 13:27:16 -08:00
Alon Zakai
daf7715b58
turn minifyWhitespace into a global option in emcc, so that it is applied on all passes being run
2014-11-14 13:21:58 -08:00
Alon Zakai
98273eb6a2
Merge branch 'incoming' into cpp_optimizer
...
Conflicts:
tests/test_other.py
tools/js_optimizer.py
2014-11-13 15:59:42 -08:00
Alon Zakai
e900594be7
refactor decision to run in native optimizer
2014-11-13 15:56:04 -08:00
Alon Zakai
0a84b64a14
save intermediate json stages with suffix json
2014-11-12 17:56:54 -08:00
Aidan Hobson Sayers
99b67c963a
Convert js engine cfs to lists immediately after config read
2014-11-09 15:40:57 +00:00
Alon Zakai
db463c7fed
unify decisions on whether to run natively, and take into account source maps, which native cannot do
2014-11-04 17:11:11 -08:00
Alon Zakai
92747bfba7
fix EMCC_DEBUG=2 with native passes
2014-11-04 15:17:10 -08:00
Alon Zakai
f841398e9c
infrastructure to build and use native optimizer
2014-10-30 16:14:17 -07:00
Alon Zakai
94d1346f5d
handle just_split/just_concat when bridging js and native optimizers
2014-10-30 15:13:57 -07:00
Alon Zakai
8ba0aecb2a
write code to bridge js and native optimizers, serializing to json between then
2014-10-30 14:46:15 -07:00
Alon Zakai
f96028b406
refactor EMCC_DEBUG=2 code to reuse the normal mode code
2014-10-30 14:18:18 -07:00
Alon Zakai
1381c289d5
REMOVE use JSON in EMCC_DEBUG=2, and time results
2014-10-29 17:16:02 -07:00
Alon Zakai
b24449a907
simplify initial prettify phase in EMCC_DEBUG=2
2014-10-29 15:36:13 -07:00
Alon Zakai
d594ae6894
experimental option to emit JSON in EMCC_DEBUG=2 interim phases
2014-10-29 13:53:30 -07:00
Alon Zakai
0be6440dec
use system libs args processing in precompiled headers
2014-10-28 17:28:44 -07:00
Alon Zakai
eb6ac90760
EMULATE_FUNCTION_POINTER_CASTS option
2014-10-22 16:24:26 -07:00
Bruce Mitchener
5fce62d93c
[embind] Minimum RESERVED_FUNCITON_POINTERS not needed.
...
embind no longer calls Runtime.addFunction(), so a minimum
number of RESERVED_FUNCTION_POINTERS are no longer needed.
2014-10-22 13:26:24 +07:00
Alon Zakai
a7659ccb60
add emcc --show-ports
2014-10-21 13:17:27 -07:00
Alon Zakai
1d881c7d93
allow --clear-cache and --clear-ports in the same command
2014-10-21 11:21:22 -07:00
juj
e5025fe17a
Merge pull request #2898 from lovasoa/patch-2
...
Qick & dirty fix for #2836
2014-10-21 17:54:53 +03:00
Alon Zakai
4635342807
emcc --clear-ports option
2014-10-20 11:12:57 -07:00
Ophir LOJKINE
12aaad6e71
Qick & dirty fix for #2836
2014-10-19 20:56:53 +02:00
Alon Zakai
0c13a44534
move all ports specific code into separate files under tools/ports/ #2404
2014-10-18 12:04:53 -07:00
Alon Zakai
430989d06f
determine SDL system include paths in system_libs.py; #2404
2014-10-17 17:22:26 -07:00
Alon Zakai
95e003622b
preparations for emscripten-ports support; #2404
2014-10-17 17:03:25 -07:00
Alon Zakai
3b656a8133
Merge branch 'incoming' into emterpreter
2014-10-17 10:55:47 -07:00
Bruce Mitchener
941145eee1
Centralize --em-config handling.
...
Per request of Alon.
2014-10-16 07:19:49 +07:00
Alon Zakai
e084763951
Merge branch 'incoming' into emterpreter
...
Conflicts:
src/preamble.js
2014-10-15 13:28:00 -07:00
Alon Zakai
a8c8fadea6
finalize saved original code when it will be swapped in
2014-10-13 17:03:12 -07:00
Alon Zakai
722d8d4495
allow adding more functions to emterpreter blacklist
2014-10-10 11:04:35 -07:00
Bruce Mitchener
a223291dff
Configure the Emscripten cache directory from the command line.
...
This allows passing --cache to emcc to set the Emscripten cache
directory rather than only allowing this to be configured via
the EM_CACHE environment variable.
2014-10-10 17:58:03 +07:00
Alon Zakai
4fcace592c
make emterpreter optimization story more regular
2014-10-09 19:52:17 -07:00
Alon Zakai
3382b64a92
simple calculation of which variables need a zeroinit
2014-10-08 17:33:52 -07:00
Alon Zakai
7da4b18323
ensureLabelSet pass, and use it to avoid zeroing out all local vars in emterpreter
2014-10-06 12:18:15 -07:00
Alon Zakai
848eff209e
assume we have a full stack frame at the bottom of memory
2014-10-03 13:26:49 -07:00
Alon Zakai
c0a095052d
localCSE pass for emterpreter
2014-10-01 17:39:14 -07:00
Alon Zakai
e9642376f9
Merge branch 'incoming' into emterpreter
...
Conflicts:
emscripten.py
tests/test_core.py
tools/js-optimizer.js
2014-10-01 13:26:31 -07:00
Alon Zakai
af6b6f28aa
detect empty mem inits, but only emit them when emterpreting
2014-09-26 14:46:06 -07:00
Alon Zakai
de774e350a
add EMCC_JSOPT_BLACKLIST env var; fixes #2819
2014-09-25 16:46:18 -07:00
Alon Zakai
3128442e9d
ensure global names are unminified for emterpreter, for now
2014-09-24 17:25:02 -07:00
Alon Zakai
8b1ad9f6fe
check for mem init file for emterpreter
2014-09-22 14:15:32 -07:00
Alon Zakai
5b913ef705
EMTERPRETIFY option in emcc
2014-09-22 14:12:02 -07:00
Alon Zakai
dd2167dc45
do not warn on missing builtin libs like GL; #2808
2014-09-19 14:45:50 -07:00
Alon Zakai
c3e1ca251f
fix regression from fcd39b851e
on not optimizing files when -c provided without an -o
2014-09-18 11:53:45 -07:00
Alon Zakai
4faebc9fca
do not cleanup non-asm code if not finalizing
2014-09-16 15:35:58 -07:00
Alon Zakai
cb9477c41c
Merge pull request #2767 from rfk/rfk/lto-using-llvm-opts
...
Respect --llvm-opts when performing --llvm-lto=2
2014-09-10 20:27:07 -07:00
Alon Zakai
d849f3a31b
add general FINALIZE_ASM_JS for modes that need to avoid finalization, like side modules
2014-09-07 17:46:43 -07:00
Alon Zakai
7d11d3f379
refactor asmLastOpts to be called explicitly
2014-09-07 17:46:43 -07:00
Jukka Jylänki
882c16c7a6
Support --profiling in addition to -profiling, following the 'two dashes for words, one dash for letters convention.' Fixes #2679
2014-09-07 06:52:06 -04:00
Ryan Kelly
66553e26a8
Respect --llvm-opts when performing --llvm-lto=2
2014-09-07 17:02:29 +10:00
Bruce Mitchener
466e8715e7
[tracing] Integrate the tracing stuff.
2014-09-06 02:44:21 +07:00
Alon Zakai
8baf8346fd
experimental POINTER_MASKING option
2014-09-04 14:19:13 -07:00
Jukka Jylänki
b233147216
Implement a warning message when building an dynamic library .so, .dll or a .dylib, which are currently not supported. Closes #2562 .
2014-08-27 11:53:46 +03:00
Jukka Jylänki
87fcddc5f7
Make is_valid_abspath use path_from_root() to be more precise about what Emscripten root directory is.
2014-08-26 12:15:32 +03:00
Alon Zakai
63614dce21
improve warning
2014-08-25 11:24:22 -07:00
Jukka Jylanki
ff01ebc7de
Silence a lot of the absolute path include warnings by always accepting any path that has the directory emscripten in it.
2014-08-25 14:21:58 +03:00
Alon Zakai
919556db48
add --closure 2 option, to run closure even on the asm.js output
2014-08-22 13:07:02 -07:00
Alon Zakai
ae14052569
copy mem init file to temp dir, so EMCC_DEBUG intermediate files work in the temp dir
2014-08-22 11:23:12 -07:00
Alon Zakai
8a5c20aaf5
add settings.js note of when we are running fastcomp
2014-08-21 14:47:40 -07:00
Alon Zakai
392e7ff998
clean up emcc --help
2014-08-20 13:10:55 -07:00
Alon Zakai
206b05b7e8
use text output for local doc builds, and make emcc --help read and print its docs
2014-08-20 11:40:04 -07:00
Alon Zakai
f1f5001a0b
make the sphinx emcc docs the single source of information; emcc --help points to the local copy
2014-08-18 11:27:12 -07:00
Alon Zakai
7febd65fb3
save llvm debug info for source maps, even if js opts run
2014-08-14 11:27:51 -07:00
Alon Zakai
8c58c70960
do not save debug info if js opts will remove it anyhow
2014-08-13 20:39:21 -07:00
Alon Zakai
7054468bce
force llvm debug info in SAFE_HEAP>=2 in slowcomp
2014-08-13 20:27:40 -07:00
Alon Zakai
53c7b04119
clean up -g handling
2014-08-13 14:21:10 -07:00
Alon Zakai
fcd39b851e
avoid copying bitcode files in emcc when possible; copy them lazily when actually required
2014-08-13 11:43:08 -07:00
Alon Zakai
217d69691b
some commented-out logging options
2014-08-13 11:18:06 -07:00
Alon Zakai
70a171ee59
do not pass -g to LLVM if we were passed -gX with low X (less than 4, which is when we do include LLVM debug info); fixes #2657
2014-08-12 14:32:40 -07:00
Alon Zakai
c2295c7b3d
allow proxy-to-worker builds to run on the main thread, when noProxy is part of the url's search portion
2014-08-11 13:56:30 -07:00
Alon Zakai
c2d449216c
do not emit temp .o files to curr dir, if target is not them; fixes #2644
2014-08-11 12:34:15 -07:00
Alon Zakai
74d23a9741
revert 57b3f35a88
, which was wrong
2014-08-06 15:24:16 -07:00
Alon Zakai
95abca274e
Merge pull request #2555 from waywardmonkeys/embind-js-library-without-prefixing
...
Embind js library without prefixing
2014-08-05 15:29:39 -07:00
Alon Zakai
57b3f35a88
ensure -lX libraries are linked in last, not according to their order in the inputs; fixes regression from 6556a69f28
2014-08-04 16:32:53 -07:00
Alon Zakai
1c3412cccd
make .a link groups work also when linking just to bitcode; fixes #2568
2014-08-04 13:52:40 -07:00