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

846 Коммитов

Автор SHA1 Сообщение Дата
Bruce Mitchener d0f52eefe7 emcc: Remove EMCC_LEAVE_INPUTS_RAW from env.
If emcc is running with LEAVE_INPUTS_RAW and then launches an
emcc to build something like the struct info, then we don't want
LEAVE_INPUTS_RAW to be active in that emcc subprocess.

This is an issue for people who use emscripten and do their own
bitcode processing and optimization.
2015-04-08 20:45:21 +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
Aidan Hobson Sayers 25999c92d3 Make DEAD_FUNCTIONS work, add test 2015-04-06 20:55:27 +01:00
Alon Zakai 6d7cd58175 Merge remote-tracking branch 'origin/incoming' into merge-mar-13-2015 2015-03-23 15:09:09 -07:00
Alon Zakai 27f63a4ad0 run safeLabelSetting in -O0 emterpreter as well, and ensure we run all js opt passes before emterpretify 2015-03-20 14:02:51 -07:00
Alon Zakai e9d7a109ba no need for semicolons in python 2015-03-19 12:16:17 -07:00
Douglas Crosher 0824bd0516 Update the POINTER_MASKING feature.
The POINTER_MASKING argument is now a boolean rather than the mask and
indicates whether pointers can be masked to a power-of-two heap
length.

A POINTER_MASKING_OVERFLOW setting has been added to specify the
length added to the TOTAL_MEMORY to allow the compiler to derive that
accesses are within bounds even when adding small constant offsets.

A POINTER_MASKING_DYNAMIC setting has been added, disabled by
default. When disabled, the masking and heap length are baked in at
compile time. When enabled, the masking and heap length are set at
runtime and the POINTER_MASKING_DEFAULT_ENABLED setting sets the
default in this mode.

A heap length declaration function is now emitted for the benefit of
Odin. The masks are emitted using a 'const' rather than a 'var' for
the benefit of Odin.
2015-03-19 12:28:18 +11:00
Alon Zakai dfa799541f Merge branch 'incoming' into merge-mar-13-2015 2015-03-18 16:19:47 -07:00
Alon Zakai e14559250c run safeLabelSetting in all optimization modes in emterpreter 2015-03-18 16:14:47 -07:00
Alon Zakai 8e1d6c584f make sure to set label if label is used in the emterpreter, as we will run aggressiveVariableElimination after it is no longer identifiable 2015-03-18 15:19:53 -07:00
Alon Zakai 321d281498 Merge branch 'incoming' into merge-mar-13-2015 2015-03-18 14:54:18 -07:00
Alon Zakai 919d74e9bd make sure to set label if label is used in the emterpreter, as we will run aggressiveVariableElimination after it is no longer identifiable 2015-03-18 14:46:35 -07:00
Alon Zakai 94ff4e59e0 Merge pull request #3264 from waywardmonkeys/no-auto-lto-for-embind
No auto LTO for embind
2015-03-17 14:50:58 -07:00
Bruce Mitchener 7cfe87254a [embind] embind no longer needs LLVM LTO enabled.
This was previously enabled by default to fix "pointer issues",
but that hasn't been an issue for a long time. (IMVU hasn't been
running LLVM LTO and makes heavy use of embind.)

The previous commit that this is reverting is 681ab3e915.
2015-03-17 16:48:30 +07:00
Alon Zakai 62f240732a partially revert the changes to emcc in 44fb046358 , so that emcc with no arguments still runs sanity checks 2015-03-16 15:31:57 -07:00
Alon Zakai 6fd3fc9d2d remove -disable-internalize workaround during lto, which was removed from llvm, and appears no longer needed 2015-03-16 13:10:08 -07:00
Aidan Hobson Sayers 44fb046358 Error on fastcomp=0 in key places where EMCC_FAST_COMPILER is checked 2015-03-16 02:19:45 +00:00
Alon Zakai bc1426f758 allow emterpreter-async yieldlist to be added to, and add a test of sdl audio with yielding sleep 2015-03-09 17:17:19 -07:00
Alon Zakai 74661c9181 run registerizeHarder in -Os and -Oz 2015-03-02 16:35:29 -08:00
Alon Zakai 3702801d1f add EMCONFIGURE_JS=2 option, to force js checks 2015-02-23 16:51:30 -08:00
Jukka Jylänki 5aff002407 Refactor tools/shared.py to not create a emscripten_temp_xxxxx directory immediately on import, but only when asked. Fixes #706. 2015-02-20 15:25:08 +02:00
Alon Zakai 1f5a0f326b enable ALLOW_MEMORY_GROWTH by default 2015-02-18 17:09:45 -08:00
Alon Zakai 5f0aec6642 support heap growth memory safety in emterpreter 2015-02-18 16:16:32 -08:00
Matt McCormick ed48c6c514 Do not warn about missing m library.
According to Issue #2600, the math library, linked with -lm, is implemented in
the musl libc that is already used. Do not emit:

WARNING  root: emcc: cannot find library "m"
2015-02-17 11:29:23 -05:00
Alon Zakai ed278574eb EMTERPRETIFY_ADVISE and test 2015-02-16 10:02:13 -08:00
Alon Zakai 062d80a5a9 error on closure 2 with emterpreter 2015-02-14 20:45:24 -08:00
Alon Zakai 6caec783c4 clean up js optimizer output temp files in emcc 2015-02-14 18:02:18 -08:00
Alon Zakai 7d104e1645 fix EMCONFIGURE_JS check that was broken in 9be0275876 2015-02-14 10:49:47 -08:00
Alon Zakai 1976f9d68c fround support in emterpreter 2015-02-12 14:29:54 -08:00
Alon Zakai 21e91d472e pass assertions to emterpretify 2015-02-09 15:34:25 -08:00
Alon Zakai 9be0275876 enable EMCONFIGURE_JS by default, i.e., run configure tests by compiling to js 2015-02-09 14:03:07 -08:00
Alon Zakai 720f5d0efc exit with the right return code in EMCONFIGURE_JS 2015-02-09 14:03:07 -08:00
Alon Zakai 8451c3c345 enable emterpreter profiling when --profiling-funcs is used 2015-02-06 11:42:01 -08:00
Alon Zakai 79ddeb8566 clean up js_opts usage in emcc 2015-02-06 11:37:01 -08:00
Alon Zakai 6d21306d23 run asmLastOpts only in opt level >=2 2015-02-06 11:34:48 -08:00
Alon Zakai ddd9429853 enable memory init file automatically when emterpreter is being used 2015-02-06 10:42:09 -08:00
Alon Zakai fc0304a6d6 mark JS opts as going to be run, if we run the emterpreter 2015-02-06 10:31:57 -08:00
Alon Zakai f35e8bd6c4 add --profiling-funcs option, to minify completely normally and optimally, except for keeping method names, for minimal profiling purposes 2015-02-03 16:00:40 -08:00
Alon Zakai 7c0b5730bd add ; in MODULARIZE 2015-02-03 12:00:47 -08:00
Alon Zakai 6a736486b2 add MODULARIZE option to wrap code in a function, and avoid polluting/using the global scope; #3167 2015-02-03 11:36:28 -08:00
Alon Zakai d47dd129bd update fastcomp docs link 2015-01-31 10:55:02 -08:00
Alon Zakai ffc950c29e mark FORCE_ALIGNED_MEMORY as not supported in fastcomp 2015-01-31 10:54:50 -08:00
Alon Zakai a4763c017a do not litter with temp files in emterpreter; fixes #3156 2015-01-28 15:54:25 -08:00
Alon Zakai 8f624300ab clean up debug logging of js optimizer passes 2015-01-28 14:45:49 -08:00
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