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

11352 Коммитов

Автор SHA1 Сообщение Дата
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
Boris Tsarev 81a3693dfc Wrapped 'srcIdBySrc' method in OpenAL to OPENAL_DEBUG 2014-08-18 17:29:40 +03:00
Boris Tsarev 882b3c1d7f Fixed OpenAL sources deeleting 2014-08-18 17:29:40 +03:00
Jukka Jylänki b464d9f282 Skip over updating already deleted OpenAL sources. 2014-08-18 17:09:46 +03:00
hamishwillee 8d1b6d84b5 Minor fixes the building from source and toolchain docs. Also filesystem docs. 2014-08-18 11:27:47 +10:00
Alon Zakai 0457f493f0 disable closure in non-fastcomp test_exceptions 2014-08-17 16:15:02 -07:00
Mark Logan fc95a31d13 Support for array attributes in WebIDL bindings. 2014-08-17 12:52:22 -07:00
Bruce Mitchener da4ac5c80b [doc] Fix a couple of typos. 2014-08-17 23:55:11 +07:00
Bruce Mitchener f87e1baff5 [doc] Building the libc & libcxx doesn't use make/configure. 2014-08-17 23:51:32 +07:00
Alon Zakai d40e039b04 Merge pull request #2675 from hamishwillee/incoming
Draft framework for bind.h
2014-08-16 17:49:54 -07:00
Alon Zakai e8113b001b use Module.locateFilePackage as a further way to more generally customize the remote package name in file packager; fixes #2680 2014-08-16 17:48:02 -07:00
Alon Zakai 40deab1f4d de-adjust pointers to run the proper destructor when virtual inheritance is involved; fixes #2682 2014-08-16 14:20:16 -07:00
Dan Gohman 40a68fc067 Fix FUNCTION_TABLE folding suppression.
The check that disables simplification of expressions within
FUNCTION_TABLE subscripts needs to run in the "pre" visitor, not the
"post" visitor.

Also drop a TODO which isn't important. Opportunities to convert an
indirect call into a direct one would normally be already optimized by
this point.
2014-08-16 13:43:34 -07:00
Alon Zakai 13837b8f4f clean up exception infos 2014-08-16 13:08:01 -07:00
Alon Zakai b7689597ad refactor exceptions info into JS objects 2014-08-16 12:45:30 -07:00
Alon Zakai a1db100df3 EXCEPTION_DEBUG additions 2014-08-16 12:28:33 -07:00
Alon Zakai e4c827a8f2 fix bindAttribLocation semantics in gl proxying - they take place not immediately, but after the next link 2014-08-15 17:42:54 -07:00
Alon Zakai 77359415b7 Merge pull request #2684 from sunfishcode/incoming
Optimize 'HEAP32[(46 + 2|0) >> 2' to 'HEAP32[12]'
2014-08-15 16:33:01 -07:00
Alon Zakai 4fe5e75d84 proxy some more gl calls 2014-08-15 16:08:07 -07:00
Dan Gohman dc98c8b1b8 Optimize 'HEAP32[(46 + 2|0) >> 2' to 'HEAP32[12]'
Merge joinAdditions and "num >> num" folding into simplifyBitops, and rename
it to simplifyOps. Make the main traversal in simplifyOps use a "post"
function rather than a pre function to allow optimizations to cascade.

The result is that given an expression like 'HEAP32[(46 + 2|0) >> 2',
simplifyOps can start by folding the '46 + 2', and then work its way out
and fold in the '>> 2', and arrive at 'HEAP32[12]'.
2014-08-15 16:06:42 -07:00
Alon Zakai 6a14c99241 fix async assertion for asm 2014-08-15 14:49:49 -07:00
Alon Zakai 7bc8e4bf1e comment on worker failure in emrun_file_dump 2014-08-15 11:09:13 -07:00
Alon Zakai cd0d4a00f6 forward document.URL to worker 2014-08-15 10:55:50 -07:00
Alon Zakai 568d32ec75 wait for window:load to run emrun_register_handlers 2014-08-15 10:41:39 -07:00
juj c7dbd47634 Merge pull request #2648 from anthonyliot/incoming
Add OpenAL function for Unigine Engine
2014-08-15 12:56:40 +03:00
Jukka Jylänki d859997709 Make --emrun startup pre-js not fail when running in conjunction with --proxy-to-worker. 2014-08-15 12:51:31 +03:00
juj bde01e3c9e Merge pull request #2677 from waywardmonkeys/typo-fix
[doc] Fix typo.
2014-08-15 12:37:28 +03:00
Bruce Mitchener dcfc6be204 [doc] Fix typo. 2014-08-15 08:53:58 +07:00
hamishwillee 17e4ca035b Finished draft framework for bind.h 2014-08-15 11:05:15 +10:00
Alon Zakai acfec62ba8 make cDefine error at compile time on missing defines; fixes #2672 2014-08-14 16:33:31 -07:00
Alon Zakai e5c29207a8 fix coroutine asm coercion 2014-08-14 16:27:46 -07:00
Alon Zakai 0bf7091681 Merge pull request #2671 from hamishwillee/incoming
Fixes to the downloads section and building from source.
2014-08-14 15:07:56 -07:00
Alon Zakai 795ce2d9f2 Merge pull request #2673 from coolwanglu/coroutine_asm_fix
fix asm.js validation for coroutine
2014-08-14 15:04:03 -07:00
Lu Wang bc308abe8b fix asm.js validation for coroutine 2014-08-14 15:01:40 -07:00
Alon Zakai d28b528e77 ensure emscripten heap is at least 64K 2014-08-14 13:16:55 -07:00
Alon Zakai c2788e0bf9 fix testcase 1 of #1714, proper handling of resumeException, and remove hack in __cxa_begin_catch 2014-08-14 12:55:05 -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 024f6a4349 better warning when no java 2014-08-14 10:48:36 -07:00
hamishwillee a13d442f35 Fixes to the downloads section and building from source. First draft of val.h. Partial first draft of bind.h 2014-08-14 17:22:13 +10: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 dcf835b803 add an optional node to FS.ErrnoError, and use it in stat to tell if an error is about the relevant file - if not, it occurred when looking up its parents, and we should emit ENOTDIR; fixes #2669 2014-08-13 16:43:27 -07:00
Alon Zakai 17d260c5cf Merge pull request #2670 from coolwanglu/pr2
fix doc for emscripten_push_**_main_loop
2014-08-13 15:26:44 -07:00
Lu Wang 21fdc82e91 fix doc for emscripten_push_**_main_loop 2014-08-13 15:24:02 -07:00
Коренберг Марк (imac) 7571ca88c3 Fix invalid usage of Math.floor + simplify code
First:
Math.floor(3.2) -> 3
Math.floor(3.7) -> 3
Math.floor(-3.7) -> -4
Math.floor(-3.2) -> -4

Second:
3.2|0  -> 3
-3.2|0 -> -3

So, behaviour of these approaches are DIFFERENT on negative values. So:
http://stackoverflow.com/questions/596467/how-do-i-convert-a-number-to-an-integer-in-javascript

src/analyzer.c: simplified code.
src/library.js:
* Simplify code, potentially fix bugs with negative time values in many places.
* FIX bugs in handling of negative numbers in modf(), modff() and div()

Simplify code for other functions where we need integer part of floating-point number.
2014-08-14 04:23:55 +06:00
Alon Zakai 19eb7328ec whitespace fix 2014-08-13 15:22:07 -07:00
Alon Zakai 13ea48e371 Merge pull request #2612 from coolwanglu/coroutine
support coroutine
2014-08-13 15:21:38 -07:00
Alon Zakai 6e466b27fb fix extra _ in docs; fixes #2659 2014-08-13 15:19:03 -07:00
Alon Zakai 89c5555ba6 Merge pull request #2661 from hamishwillee/incoming
Building from source site section updates
2014-08-13 15:15:19 -07:00
Alon Zakai 7472dafbda add faq entry about using main() to know when it is safe to call compiled methods, after startup is all complete 2014-08-13 15:00:40 -07:00