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

391 Коммитов

Автор SHA1 Сообщение Дата
max99x 7f735afe5e Merge remote-tracking branch 'upstream/master' 2011-07-31 04:48:43 +03:00
max99x c756aa5c86 Fixed ctype to force testing of __ctype_b_loc. 2011-07-31 04:44:26 +03:00
Alon Zakai f6e02c614a workarounds for js engine bugs 2011-07-30 10:26:30 -07:00
max99x d1ed9565a7 Added various library functions, mostly as stubs, aliases or TODOs;
Now every function used by CPython is implemented or marked with a TODO.
2011-07-30 16:13:42 +03:00
max99x ee54249f11 Fixed ctype.h implementation; added test for it. 2011-07-30 16:12:36 +03:00
max99x af695b99f5 Merge remote-tracking branch 'upstream/master' 2011-07-30 11:43:11 +03:00
Alon Zakai 778b071526 make sure we have one test without -g 2011-07-29 20:09:49 -07:00
kripken d49f169b48 Merge pull request #57 from max99x/master
Filesystem, unistd, and others
2011-07-29 18:03:37 -07:00
max99x a6e44cf635 Merge remote-tracking branch 'upstream/master' 2011-07-30 04:02:27 +03:00
max99x efacab6cd2 Merge branch 'master' of github.com:max99x/emscripten 2011-07-30 04:01:50 +03:00
max99x 7412ceb37a Minor polish in response to review comments. 2011-07-30 02:46:20 +03:00
Alon Zakai dece1080e8 js engine and emmaken fixes 2011-07-29 15:16:50 -07:00
Alon Zakai df145aa4b2 updates for latest spidermonkey trunk 2011-07-29 13:07:57 -07:00
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 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 136756f734 Added unistd tests; fixed a lot of unistd bugs and deficiencies. 2011-07-23 05:49:48 +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 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 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
Alon Zakai 8e4dc2caa6 improved bindings generator 2011-07-06 20:50:04 -07: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
Alon Zakai 145c2f66d9 support for blockaddress/indirectbr. fixes issue 34 2011-06-28 18:24:06 -07:00
Alon Zakai 7e39bae464 fix for just-broken poppler 2011-06-27 20:21:32 -07: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 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 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