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

521 Коммитов

Автор SHA1 Сообщение Дата
max99x b6b5430d73 Implemented support for environment variables. 2011-07-29 22:32:29 +03:00
max99x 1ac86ad03d Implemented sys/utsname.h. 2011-07-29 14:23:37 +03:00
max99x 16f60de7f2 Implemented most of stdio.h and updated all references. 2011-07-28 14:01:08 +03:00
max99x 4c3f2fb804 Added a --disable-cms argument to the poppler test to avoid using lcms. 2011-07-28 13:49:53 +03:00
Alon Zakai f8c8b9af20 improve function overloading in bindings generator 2011-07-25 22:03:18 -07:00
Alon Zakai 78241b0617 support for binding static functions 2011-07-23 23:43:01 -07:00
max99x 211884f299 Fixed unistd sleep test to be more flexible. 2011-07-24 05:26:25 +03:00
max99x 5aea0ba878 Added _formatString() special-case for null values (similar to glibc). 2011-07-24 05:25:45 +03:00
Alon Zakai 18acbda893 support for default arguments in bindings 2011-07-23 18:25:36 -07:00
max99x a48bfddf2b Fixed a silly global variable leakage in a test. 2011-07-23 06:33:14 +03:00
max99x 942bbd8757 Updated the Lua build with metadata. 2011-07-23 06:12:18 +03:00
max99x 136756f734 Added unistd tests; fixed a lot of unistd bugs and deficiencies. 2011-07-23 05:49:48 +03:00
max99x 586d229ec3 Resolved some old filesystem TODOs. 2011-07-23 05:47:08 +03:00
max99x 5f9646ca26 Added FS.analyzePath() which will simplify some library functions. 2011-07-22 23:31:57 +03:00
max99x 818de314d4 Implemented <poll.h>. 2011-07-21 04:08:42 +03:00
max99x 10ca04685b Implemented <fcntl.h>. 2011-07-21 02:48:24 +03:00
max99x 9d2a722e0f Updated python.ll to a new 2.7.2 build with metadata. 2011-07-20 05:29:21 +03:00
max99x 08a7f5d20f Fixed various metadata parsing error and activated -g by default in settings and emmaken. 2011-07-20 04:39:44 +03:00
max99x 51df7dfe82 Implemented <sys/statvfs.h>. 2011-07-19 21:55:58 +03:00
max99x d021b10644 Merge remote-tracking branch 'upstream/master' 2011-07-18 12:20:48 +03:00
Alon Zakai 9bcf21de1f let generateStructInfo process nested structs 2011-07-17 22:06:26 -07:00
max99x 0f5a619177 Added tests for <sys/stat.h>. 2011-07-18 02:19:28 +03:00
max99x 512e39f7a2 Implemented utime.h. 2011-07-16 15:01:43 +03:00
max99x 00b6ecfcee Implemented dirname() and basename() from libgen.h. 2011-07-16 14:09:00 +03:00
max99x 7784274c68 Initial part of the filesystem implementation. Basic folder access done. 2011-07-16 11:53:12 +03:00
Alon Zakai 414f1dc849 option to provide type info at run time 2011-07-15 19:35:40 -07:00
max99x 1e8f828cb5 Removed errno global since it's implemented via __errno_location(). 2011-07-14 18:53:57 +03:00
max99x f1507e847d Added errno and glibc-defined error codes; implemented strerror(). 2011-07-14 01:46:44 +03:00
max99x 3c07ebaefd Making the infinity test sign-agnostic (clang compatibility). 2011-07-13 23:34:00 +03:00
max99x 81c4df8f8b Micro-improvement for the infinity test. 2011-07-13 23:32:26 +03:00
max99x 3159de633f Fixed finite() and isinf(), added tests for it. 2011-07-13 23:25:44 +03:00
max99x 9ee300c190 Switched from argparse to optparse in emscripten.py, for older Python. 2011-07-13 22:30:29 +03:00
max99x fcacb4c13c Merge branch 'master' of github.com:max99x/emscripten 2011-07-13 21:44:19 +03:00
Alon Zakai 2a0f3ba466 fscanf 2011-07-12 07:43:52 -07:00
Alon Zakai 8f49ea85f5 clear errors for exceptions inside emscripten.py from test runner 2011-07-11 18:53:30 -07:00
Alon Zakai 6c101f3ad8 bindings generator cleanup 2011-07-09 19:24:20 -07:00
kripken c79828f6b8 Merge pull request #47 from max99x/master
Emscripten.py rewrite
2011-07-09 10:28:19 -07:00
max99x 11e404d7a8 Polish for emscripten.py and its tests. 2011-07-09 20:14:00 +03:00
max99x 8ffd5c52ca Merge remote-tracking branch 'upstream/master' 2011-07-08 12:53:20 +03:00
max99x b84bb001de Added hyperbolic math functions;
Fixed trailing zero stripping in formatString().
2011-07-08 11:46:20 +03:00
max99x b5b48bab8b Improved clock() test to verify time() <-> clock(). 2011-07-08 09:14:26 +03:00
max99x 1bd1893888 * Added support for automatically determining llvm-gcc/clang data layout in emscripten.py.
* Added a dlmalloc linking test.
* Fixed double-evaling of JSON in emscripten.py when --dlmalloc is passed.
2011-07-08 08:39:31 +03:00
max99x 631e2dc9a4 Added a test for running emscripten.py straight on a .bc file. 2011-07-08 07:33:37 +03:00
max99x 9cfc7d9e9d Added a test for unannotated LL. 2011-07-08 07:23:03 +03:00
max99x f0bb154229 * Moved pick_llvm_opts() to tools/shared.py.
* Using pick_llvm_opts() instead of hardcoding -O3 in emscripten.py.
* Reassembling only when needed in emscripten.py.
2011-07-08 07:04:38 +03:00
Alon Zakai 1a599856b4 comment about test_cases 2011-07-07 17:58:35 -07:00
max99x 7dcdb044d3 Rewrite of emscripten.py:
* Uses option arguments instead of positional ones.
* Allows linking to dlmalloc.
* Accepts both .bc and .ll files and takes care of annotations.
* Allows running the LLVM optimization pass automatically.
* Updated test runner to use the new emscripten.py interface.

Refactoring:
* Moved settings.py to root folder. It no longer applies just to tests.
* Updated references to settings.py.
* Added an __init__.py to tools, so we don't have to hack around imports.
2011-07-07 12:24:09 +03:00
max99x d94b2423ae Added proper clock() test; fixed inverted clock() sign. 2011-07-07 07:34:16 +03:00
Alon Zakai 8e4dc2caa6 improved bindings generator 2011-07-06 20:50:04 -07:00
max99x dedb83b9e1 Merge remote-tracking branch 'upstream/master' 2011-07-06 16:37:28 +03:00
max99x 13ac46b2c9 Fixed time.h timezone bug. 2011-07-06 16:36:35 +03:00
Alon Zakai 1aeee076cf ensure binding functions are not DFE'd away 2011-07-04 12:17:06 -07:00
Alon Zakai a4262aa2c9 support for llvm aliases 2011-07-04 11:51:22 -07:00
Alon Zakai 7653c3b900 initial work on bindings generator, using CppHeaderParser and ply. llvm-gcc only for now 2011-07-03 23:51:38 -07:00
max99x a440e9845a Merge remote-tracking branch 'upstream/master' 2011-07-03 07:42:26 +03:00
max99x 48a2a87eba Implemented a large part of <time.h>. 2011-07-03 07:36:10 +03:00
max99x 5356a8857b Implemented a little more of fstat(), getcwd();
Fixed minor Python test formatting mistake (test passes either way).
2011-07-03 07:34:23 +03:00
Alon Zakai 9104355625 normalize memops benchmark 2011-07-01 19:56:14 -07:00
Alon Zakai 1c1d291964 handle complex expressions in br. fixes issue 39 2011-07-01 07:51:10 -07:00
Alon Zakai 7d8e65edda refactoring+cleanup, to add type info where it was missing. allows proper function indexing by type, and not recognizing the identifier. fixes issue 38 2011-06-30 18:30:50 -07:00
Alon Zakai a326e6a1ec backout previous broken commit 2011-06-29 20:28:57 -07:00
max99x 7cecdd0d94 Merge remote-tracking branch 'upstream/master' 2011-06-30 05:19:19 +03:00
Alon Zakai 0e9344a428 indexize external functions (for shared libraries, primarily), +some code cleanup around that. fixed issues 38 2011-06-29 19:16:08 -07:00
Alon Zakai 8fc2acdc4e prevent silly overflow in memops benchmark, to make it more fair 2011-06-29 14:54:23 -07:00
max99x dba00a5c7c Minor polish:
* Removed auto-added `.js` from dynamically loaded libs.
* Removed redundant bit fiddling in _formatString. Uses unSign/reSign instead.
2011-06-29 11:25:15 +03:00
kripken 70edb25e68 Merge pull request #37 from max99x/master
Printf/_formatString polish
2011-06-28 18:26:18 -07:00
Alon Zakai 145c2f66d9 support for blockaddress/indirectbr. fixes issue 34 2011-06-28 18:24:06 -07:00
max99x 6fe80d00d6 Removed erroneous printf test cases that triggered GCC warnings. 2011-06-28 14:07:32 +03:00
max99x 126df9fa21 Added proper argument size support to _formatString/printf. 2011-06-28 13:34:23 +03:00
max99x 0ea0b71b34 Proper handling of unknown specifiers in _formatString/printf; minor refactor. 2011-06-28 09:32:11 +03:00
max99x bef407f174 Properly padding infinity/NaN in _formatString/printf. 2011-06-28 09:03:24 +03:00
max99x 3a0e9450e8 Added support for %n in _formatString/printf. 2011-06-28 08:56:33 +03:00
Alon Zakai 7e39bae464 fix for just-broken poppler 2011-06-27 20:21:32 -07:00
max99x 26d16fbbca Replaced brainded float formatting with a much cleaner (and more precise) version. 2011-06-28 03:42:53 +03:00
max99x a0ac176b22 Fixed some strict mode problems; added test for -Infinity. 2011-06-27 21:23:46 +03:00
max99x bb908423d3 Fixed unsigned number printing; updated Lua test with correct format (same as GCC produces). 2011-06-27 20:34:33 +03:00
max99x 6d6c9c4171 Minor printf() bugfix. 2011-06-27 11:29:37 +03:00
max99x 24f83c080f Fixed a few boneheaded mistakes; added test for strtod(). 2011-06-27 10:39:31 +03:00
max99x 4c2ba0ca7d Implemented a GCC-alike printf/_formatString. 2011-06-27 10:10:40 +03:00
max99x 0575efbfaf Fixes for review notes. 2011-06-26 05:39:05 +03:00
max99x 7c07cb3fd5 Tests for dlfch.h. 2011-06-26 04:57:06 +03:00
Alon Zakai 936ccd93b9 indexize Math.* properly. fixes issue 29 2011-06-25 07:49:01 -07:00
Alon Zakai 5aec040f3f minor fixes for merge 2011-06-23 18:22:56 -07:00
Alon Zakai 866f54c895 libc seek tests 2011-06-23 17:54:23 -07:00
Alon Zakai cad53ce8a7 fix bug with adding null terminator in readBinary 2011-06-23 15:38:30 -07:00
Alon Zakai f83a7e7429 support for customizing interactive input by setting Module.stdin 2011-06-19 12:03:10 -07:00
Alon Zakai 09006bd29f fixes for web text input 2011-06-18 23:15:14 -07:00
Alon Zakai 6800c29528 optional nonportable optimizations in test runner 2011-06-17 18:39:18 -07:00
Alon Zakai 4d0f6917ba add dlmalloc benchmark 2011-06-16 16:19:58 -07:00
Alon Zakai 2595c6c17c improve memops benchmark 2011-06-12 14:44:05 -07:00
Alon Zakai 24c7a4378b fix # of benchmark tests 2011-06-11 19:21:08 -07:00
Alon Zakai 3c8451a078 optimize memset and memcpy in ta2 2011-06-11 19:05:20 -07:00
Alon Zakai 30537ea5fc disable ta2 in benchmark - still slower 2011-06-11 14:14:23 -07:00
Alon Zakai 2418f58a29 add comparison to native speed to benchmarks 2011-06-11 13:52:03 -07:00
Alon Zakai ecd0edf168 improve fasta benchmark 2011-06-11 12:03:10 -07:00
Alon Zakai baf8505096 strengthen dlmalloc 2011-06-11 11:42:25 -07:00
Alon Zakai 8e6f0e536b fix operator precedence bug with overflow correction, improve dlmalloc test 2011-06-11 11:29:19 -07:00
Alon Zakai ccab860828 always sign/unsign constants at compile time 2011-06-11 10:32:16 -07:00
Alon Zakai 399d78d9c2 disable bullet in ta2 2011-06-10 07:40:45 -07:00
Alon Zakai cbeef5e06a use ta2 in benchmark 2011-06-09 21:43:01 -07:00
Alon Zakai 6a4ed46be4 enable ta2 2011-06-09 18:42:05 -07:00
Alon Zakai e9e7efa370 sign analyzer for ta==2 2011-06-09 15:53:55 -07:00
Alon Zakai fa4c3a7de1 test tweaks 2011-06-08 19:11:25 -07:00
Alon Zakai aa1b54bbb5 fixes for USE_TYPED_ARRAYS == 2 2011-06-06 07:40:27 -07:00
Alon Zakai e068f02137 fix alignment issues with USE_TYPED_ARRAYS == 2 2011-06-05 19:17:53 -07:00
Alon Zakai 0428d4846f refactor makeCopyValues and add makeSetValues 2011-06-04 14:08:51 -07:00
Alon Zakai acaee4231b refactor call and invoke into a single method, so invoke supports all possible inputs 2011-06-03 19:25:21 -07:00
Alon Zakai cafdc3cca8 refactoring in preparation for TYPED_ARRAYS==2 (disabled) 2011-06-03 14:40:15 -07:00
Alon Zakai f1fd3b6f4d fixes for closure compiler advanced opts 2011-05-28 23:15:36 -07:00
Alon Zakai 2f0867998f fix bug with invalid [#uses=?] parsing 2011-05-27 12:46:32 -07:00
Alon Zakai 196cc4113a improve AUTO_OPTIMIZE 2011-05-26 16:29:59 -07:00
Alon Zakai 78ee9a8f64 improve CHECK_* options, add initial version of AUTO_OPTIMIZE 2011-05-26 13:32:57 -07:00
Alon Zakai d3efb7dcb7 allow 2 and 3 in SAFE_HEAP and CHECK_* options. 2 is only these, 3 is all but these 2011-05-25 15:00:11 -07:00
Alon Zakai 2f07663738 do not use strict mode in benchmarks 2011-05-25 10:53:50 -07:00
Alon Zakai 55dd99e760 disable v8 in bullet due to v8 issue 1407 2011-05-25 08:28:12 -07:00
Alon Zakai f0b0519c98 64-bit bitops 2011-05-25 07:16:26 -07:00
Alon Zakai bcdfcfbfed remove obsolete fastops; generalize load with parseLLVM/finalizeLLVM; fix issue 14 2011-05-24 15:07:49 -07:00
Alon Zakai 77cacaa2fd handle shifts with more than 32 bits 2011-05-24 07:33:53 -07:00
Alon Zakai 2ad8eb7761 make autodebugger output smaller 2011-05-22 10:31:47 -07:00
Alon Zakai 1be1268669 remove compiler argument to emscripten.py - use ~/.emscripten instead 2011-05-15 19:07:12 -07:00
Alon Zakai 798e635cf9 support for reading files synchronously 2011-05-15 16:26:57 -07:00
Alon Zakai 3afb3d53d7 indexize necessary library functions 2011-05-15 08:04:34 -07:00
Alon Zakai 9d376d8bde additional sdl and browser stuff 2011-05-14 11:03:17 -07:00
Alon Zakai d2f680e7a4 clean up shell.js 2011-05-12 15:10:11 -07:00
Alon Zakai 5fd849d5e0 testcase for last commit 2011-05-11 09:51:18 -07:00
Alon Zakai df7285ed9e misc emmaken improvements 2011-05-09 17:23:26 -07:00
Alon Zakai 3ef5028d5a only INIT_STACK in tests that actually need it 2011-04-26 15:44:18 -07:00
Alon Zakai 7dba1a416e Merge branch 'master' of github.com:kripken/emscripten 2011-04-26 08:26:25 -07:00
Alon Zakai 10c721e022 properly handle calls to varargs functions without additional args 2011-04-26 08:26:00 -07:00
Alon Zakai ebe6abb171 prevent SAFE_HEAP warning in bullet test when INIT_STACK is off 2011-04-25 18:25:11 -07:00
Alon Zakai 8700a32317 tweak relooper, improves fannkuch 2011-04-25 16:01:47 -07:00
Alon Zakai d78652a9b9 fix bug with build caching in test runner 2011-04-25 07:44:53 -07:00
Alon Zakai cdef584dfe do not initialize stack in benchmarks 2011-04-24 20:19:43 -07:00
Alon Zakai aa3b844a15 use quantum of 1 in benchmarks 2011-04-24 19:51:51 -07:00
Alon Zakai 0a2001bf4f dead function elimination tool 2011-04-24 17:57:01 -07:00
Alon Zakai 6327b8b954 add commented out updates to pick_llvm_opts 2011-04-23 13:24:55 -07:00
Alon Zakai 3db6531308 run freetype test in v8 2011-04-23 11:05:22 -07:00
Alon Zakai 2266026593 optional debug saving of generated js in test runner 2011-04-22 17:25:01 -07:00
Alon Zakai 2ecdc770ee run some QUANTUM=1 tests 2011-04-22 13:23:37 -07:00
Alon Zakai c37042e3f9 work towards QUANTUM_SIZE=1 (unused) 2011-04-22 07:53:31 -07:00
Alon Zakai 887ce3dde8 update bullet test to compile from source 2011-04-21 17:55:35 -07:00
Alon Zakai b3f4022e35 fix for new python warning from last commit 2011-04-21 13:23:17 -07:00
Alon Zakai e1de4d430a line-specific exceptions to SAFE_HEAP 2011-04-21 13:17:24 -07:00
Alon Zakai 3d4cc9e931 fix for printing very small floats 2011-04-21 10:45:57 -07:00
Alon Zakai 46e3b2a787 refactor assertions and parsing code 2011-04-18 17:43:43 -07:00
Alon Zakai f72cf76360 finalize parameters in getGetElementPtrIndexes 2011-04-17 18:39:00 -07:00
Alon Zakai b48fb4d831 proper support for packed structs 2011-04-16 16:35:08 -07:00
Alon Zakai 0f49ca13af fixes for llvm 2.9 2011-04-09 10:27:26 -07:00
Alon Zakai 8e8b207e05 add fasta to benchmarks, and document benchmarks 2011-04-02 10:35:22 -07:00
Alon Zakai e4f2ab8fe2 disable unneeded qt in poppler test 2011-03-29 19:39:50 -07:00
Alon Zakai b956a15fb4 poppler-related tweaks 2011-03-21 19:50:03 -07:00
Alon Zakai 24856d2069 optimize FUNCTION_POINTER and exporting 2011-03-21 19:48:26 -07:00
Alon Zakai ee9393ae04 support for llvm 2.9 2011-03-19 10:00:57 -07:00
Alon Zakai cad92b918b poppler test 2011-03-16 17:19:57 -07:00
Alon Zakai ae5aa84484 write to file directly in emscripten.py 2011-03-16 15:31:12 -07:00
Alon Zakai 5524f8bf30 stop using lots of memory to manage strings at the end of compilation 2011-03-15 20:13:57 -07:00
Alon Zakai 6c22a66671 misc compiler tweaks 2011-03-13 12:13:21 -07:00
Alon Zakai f534adece7 test runner improvements 2011-03-12 13:37:44 -08:00
Alon Zakai c06b543a3e re-enable advanced optimizations in closure compiler 2011-03-06 14:23:01 -08:00
Alon Zakai 749e2d5031 openjpeg demo 2011-03-05 18:41:15 -08:00
Alon Zakai 7d2f7540ed optimize openjpeg test 2011-03-05 13:30:17 -08:00
Alon Zakai 1de99037e8 correct signs in equality comparisons 2011-03-05 08:02:38 -08:00
Alon Zakai 1545aaf14f integer rounding fixes and CORRECT_ROUNDINGS option 2011-03-04 20:02:31 -08:00
Alon Zakai 4d51d0b276 autodebug improvements 2011-03-03 07:39:33 -08:00
Alon Zakai c3408af269 autodebugger tool 2011-03-02 19:12:13 -08:00
Alon Zakai 841d890872 faster openjpeg test 2011-03-02 19:12:12 -08:00
Alon Zakai 9feb459b52 comments 2011-02-27 20:36:30 -08:00
Alon Zakai 6b7f4ffa84 openjpeg test 2011-02-27 16:55:53 -08:00
Alon Zakai 40ab3e2847 debugging info and test runner fixes 2011-02-27 16:54:21 -08:00
Alon Zakai 26ab22af91 debugging info for zlib 2011-02-27 16:53:42 -08:00
Alon Zakai acbb1e6a0b generate strict mode javascript 2011-02-20 19:03:14 -08:00
Alon Zakai e82689262a fixes for benchmarks 2011-02-20 19:03:11 -08:00
Alon Zakai 8855d03cc5 use line-specific corrections in zlib test 2011-02-19 22:44:16 -08:00
Alon Zakai f81feaff96 line-specific CORRECT_OVERFLOWS and CORRECT_SIGNS 2011-02-19 15:45:17 -08:00
Alon Zakai 6ccab6bbb7 parse debugging metadata for original filenames 2011-02-18 22:40:29 -08:00
Alon Zakai a24e070ab3 tweak sign and overflow checks 2011-02-13 21:01:26 -08:00
Alon Zakai 4c884d8526 debugging fixes 2011-02-13 09:50:08 -08:00
Alon Zakai 93d0b2f1d4 missing freetype files 2011-02-12 21:20:34 -08:00
Alon Zakai bace573eb4 line number debugging info 2011-02-12 19:36:02 -08:00
Alon Zakai ffb61d77ca emscripten_run_script API 2011-02-12 19:35:45 -08:00
Alon Zakai 96b74d5914 drop RELOOP for clang in freetype test 2011-02-12 16:44:07 -08:00
Alon Zakai 8162e10341 add parens in mathops 2011-02-11 18:37:04 -08:00
Alon Zakai f509bad6cf use clang in emmaken and in freetype&zlib tests 2011-02-10 20:03:01 -08:00
Alon Zakai 4af7d2dbc4 prep for freetype demo 2011-02-08 11:21:58 -08:00
Alon Zakai 2946fab42a use GUARD_SIGNS only in tests that need it; benchmarks fast again 2011-02-06 13:57:13 -08:00
Alon Zakai fd1b1d81d1 strengthen SAFE_HEAP checks for copied values 2011-02-06 11:32:38 -08:00
Alon Zakai d2ba2dcfc1 zlib test 2011-02-05 21:01:26 -08:00
Alon Zakai 0805b2bec3 mathop fixes +test 2011-02-05 20:06:11 -08:00
Alon Zakai 94db193155 unsign in zext to prevent a sign error 2011-02-04 20:58:35 -08:00
Alon Zakai b6aeefa650 overflow checks in getelementptr 2011-02-01 22:56:02 -08:00
Alon Zakai 9c584561a8 misc cleanups and fixes 2011-01-31 07:43:01 -08:00
Alon Zakai 1c32385c50 disable the combination of llvm opts+reloop in freetype test, due to slowness 2011-01-30 11:46:33 -08:00
Alon Zakai 82baf498bf freetype test, plus some unix-specific file IO stuff 2011-01-29 21:52:21 -08:00
Alon Zakai eb4d457ade fix for structure alignment handling +test 2011-01-29 16:55:59 -08:00
Alon Zakai 5958a6a754 reSign parallel to unSign to fix rare signing issues; CHECK_SIGNS option 2011-01-27 21:31:20 -08:00
Alon Zakai df10a98f50 minor fixes and optimizations 2011-01-23 18:23:44 -08:00
Alon Zakai 326b36f840 clarify -show-annotations in settings.py 2011-01-20 19:49:45 -08:00
Alon Zakai 8422a8ee2c Optimize out some loop labels 2011-01-19 22:57:53 -08:00
Alon Zakai 835183152d lower closure optimizations to SIMPLE; no speed difference, and ADVANCED clash with our _STDIO object 2011-01-19 22:57:52 -08:00
Alon Zakai 23515d0605 handle odd llvm with branches in the middle of labels; all tests pass 2011-01-17 19:01:19 -08:00