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

798 Коммитов

Автор SHA1 Сообщение Дата
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
Bruce Mitchener 350f199fb9 Convert embind/emval to JS library format. 2014-08-03 08:20:12 +07:00
Jukka Jylänki 568a70776f Fix more of #2133 \r\r\n line endings. 2014-07-30 22:21:08 +03:00
Lu Wang 394f308b6f support ASYNCIFY 2014-07-24 17:30:25 -07:00
Alon Zakai ac641733e2 run sanity checks with -v + an input file 2014-07-23 12:07:12 -07:00
Alon Zakai 7e9e2436a5 Module.memoryInitializerPrefixURL option; #2542 2014-07-21 16:29:23 -07:00
Alon Zakai 18789e196d do not set EMCC_DEBUG=1 when -v; fixes #2538 2014-07-21 15:58:03 -07:00
Alon Zakai 812f051215 DEMANGLE_SUPPORT option to use libcxxabi's demangler in stackTrace() 2014-07-21 14:26:38 -07:00
Alon Zakai 2acb8de340 use compiler opts in -E, to use our target, system dirs, etc.; fixes #2534 2014-07-17 18:48:50 -07:00
Alon Zakai 1f4ad8a57b mention that .mem must be alongside .js 2014-07-17 18:17:14 -07:00
Alon Zakai 19ac7edd38 document -v saving temp files; #2538 2014-07-17 18:12:45 -07:00
Jukka Jylänki e9fe6202d5 Fix missing param in docs for --js-opts. 2014-07-15 11:07:25 +02:00
Alon Zakai 89cd8eb191 Merge pull request #2512 from waywardmonkeys/fix-windows-settings-issue
avoid the need for replacing backslashes with slashes on windows for some settings
2014-07-10 17:07:59 -07:00
Chad Austin c4b0f741fa avoid the need for replacing backslashes with slashes on windows for some settings 2014-07-10 22:18:53 +07:00
Alon Zakai 28f1413d46 move check for noExitRuntime into exit(), and fix up tests 2014-07-09 13:28:27 -07:00
Jukka Jylänki 3257531978 Add comment explaining why .dll is not present in DYNAMICLIB_ENDINGS. 2014-07-09 13:48:49 +03:00
Jukka Jylänki f3cb551046 Remove ".dll" from DYNAMICLIB_ENDINGS, since on Windows one never links to a .dll file directly (e.g. via a command line -lFile -> libFile.dll) either, but instead separate import libraries with suffix .lib are used. Note that for crosscompiling, it is _not_ recommended to generate Emscripten static bitcode libraries with suffix .lib, but instead generating files with suffixes .bc (or .a) is better form. 2014-07-08 17:02:37 +03:00
Alon Zakai 1703048fc6 re-enable optimizeShifts in non-asm builds; fixes #2481 2014-07-05 15:56:26 -07:00
Alon Zakai e6811d0e2d emit memory initialization file by default in -O2+ 2014-07-03 14:48:19 -07:00
Alon Zakai ada1288ddb PROXY_TO_WORKER_FILENAME option 2014-06-17 15:50:43 -07:00
Alon Zakai ac2c7bda57 support --proxy-to-worker with js target, emitting 2 files for client and worker 2014-06-16 16:10:46 -07:00
Alon Zakai 89d745163d cleanup 2014-06-16 15:33:48 -07:00
Alon Zakai ba387574f2 Merge branch 'incoming' into proxyGL 2014-06-16 14:40:45 -07:00
Alon Zakai 5bbcaa3df5 do not modify textual memory initializer when emitting source maps, as it messes up line numbers; fixes #2410 2014-06-09 15:18:28 -07:00
Alon Zakai 2fe530336f show an error on NO_DYNAMIC_EXECUTION with embind 2014-06-08 09:33:35 -07:00
Alon Zakai e543d370ae generalize context proxying to support not just 2d contexts 2014-06-05 16:04:03 -07:00
Alon Zakai 03d78f8afd export everything in the main module, so side modules can access it 2014-06-04 10:32:21 -07:00
Alon Zakai b2e680a109 NO_DYNAMIC_EXECUTION option to disable features using eval() or new Function() 2014-05-29 13:47:02 -07:00
Alon Zakai a0bb46803b fix case of exceptions whitelist being empty 2014-05-28 13:16:58 -07:00
Alon Zakai deaf15da84 clean up shell code using uglify, in optimized builds, when not using closure 2014-05-27 16:08:23 -07:00
Alon Zakai cad88b317c proper error message for linkable modules not supported in fastcomp 2014-05-27 11:36:57 -07:00
Alon Zakai d46e9600bc set MAX_SETJMPS to fastcomp; 1.18.4 2014-05-27 11:26:40 -07:00
Ryan Sturgell ca5246e413 Add whitelist of supported link flags 2014-05-23 10:50:12 -07:00
Alon Zakai 447f96296b Merge branch 'archive_groups' of github.com:rsturgell/emscripten into incoming
Conflicts:
	AUTHORS
2014-05-20 12:58:27 -07:00
Ryan Sturgell 6ccf5ba0e4 Archive groups code review changes. 2014-05-19 23:15:17 -07:00
Alon Zakai d3e3d803ad warn on bad exports, fixes #2338 2014-05-12 11:35:58 -07:00
Ryan Sturgell 6556a69f28 Track original flag positions in emcc.
Source files, libs, and linker flags all need to be separately
processed.  This allows them to be correctly shuffled back together for
further link processing.
2014-05-07 16:44:31 -07:00
Alon Zakai 77aa2a72f3 emit a global const for Math_fround(0) to avoid function call overheads in the fround polyfill 2014-05-03 12:29:23 -07:00
Alon Zakai 63f913cc53 fix return code when precompiling headers 2014-04-30 13:26:47 -07:00
Alon Zakai 9f99c740d8 allow registerizeHarder with outlining 2014-04-30 13:19:13 -07:00
Alon Zakai d5cf59ac87 support -o with precompiled headers; fixes #2320 2014-04-29 14:45:40 -07:00
Chad Austin ef5c2dfb21 enable asm.js when using embind 2014-04-13 09:28:41 -07:00
Alon Zakai 3d43191017 Merge pull request #2232 from abergmeier/empkg_prerequisites
Empkg prerequisites
2014-04-03 13:09:48 -07:00
Andreas Bergmeier 7bcb4e0be2 Apply requested formatting changes. 2014-04-03 15:44:19 +02:00
Andreas Bergmeier 5d3c5f80ff Add valid_abspath option to emcc --help. 2014-04-03 15:36:02 +02:00
Alon Zakai cde38c81c2 fix the case where emcc's input and output is a bitcode file 2014-03-28 16:52:28 -07:00
Alon Zakai 20bfe6cf84 emcc logging improvements 2014-03-28 16:33:34 -07:00
Alon Zakai 9ce739dbab improve debug logging of emcc invocation 2014-03-27 13:25:18 -07:00
Alon Zakai e01dac87da typo in .d code generation 2014-03-26 17:43:57 -07:00
Alon Zakai c4038a1fc9 handle --default-object-ext properly, and other emcc fixes 2014-03-26 10:43:07 -07:00
Alon Zakai 78d5d9c1e1 let emcc directly access bitcode files when possible, to emit proper .d files and avoid unnecessary copies 2014-03-25 17:55:34 -07:00
Alon Zakai 5817cd8af0 --emit-symbol-map option 2014-03-24 20:23:11 -07:00
Alon Zakai 5cd4da6dee comment on webrtc test 2014-03-18 12:25:55 -07:00
Alon Zakai dc797a4570 make simplifyIfs a settings option 2014-03-17 17:56:17 -07:00
Alon Zakai 6c31546ced uncommaify between ifs that can potentially be simplified 2014-03-17 17:56:17 -07:00