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
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
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
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
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
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
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
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
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
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
1f3de5c76e
libcxx test; support for linking in test runner; failure in clang_0_1.test_libcxx
2011-01-17 15:36:26 -08:00
Alon Zakai
13a520ed49
sscanf
2011-01-16 23:22:57 -08:00
Alon Zakai
9eb5dd2a45
support for writing to files in stdio
2011-01-16 15:29:06 -08:00
Alon Zakai
6a6e842688
initial emulation for stdio file reading, and other preparations for poppler
2011-01-16 13:52:25 -08:00
Alon Zakai
9d209878f9
refactor shared components of python tools, and add emmaken.py
2011-01-14 22:44:52 -08:00
Alon Zakai
1a2f55979d
enable llvm opts on tests with precompiled .ll (python, bullet, lua); fix minor uncovered bugs; disable some dangerous llvm opts
2011-01-07 20:44:14 -08:00
Alon Zakai
044ce8ea7c
optimize mod operator, and primes benchmark
2011-01-02 21:26:22 -08:00
Alon Zakai
78aa032b23
fix benchmarks
2011-01-01 22:59:55 -08:00
Alon Zakai
785e01b0d0
CORRECT_OVERFLOWS option; strengthening of various tests, and fixes a bug in python with typed arrays
2011-01-01 16:56:22 -08:00
Alon Zakai
0a2735ebc7
allow SAFE_HEAP with typed arrays; fix minor uncovered bugs; add SAFE_HEAP_LOG option
2010-12-31 22:49:25 -08:00
Alon Zakai
1b7500b59c
nicer test runner output
2010-12-29 21:33:28 -08:00
Alon Zakai
77c9c660dd
handle env of 0 as a third parameter for main()
2010-12-28 20:36:26 -08:00
dglead
5b7fda278c
handle memmove of 0
2010-12-28 19:52:41 -08:00
dglead
27c9f996cf
prevent strings with C-style comments from breaking helpful comments in generated code
2010-12-28 19:52:20 -08:00