Jez Ng
0939e80a79
Don't throw KeyboardInterrupt from a child process.
...
This should fix #1327 .
2013-07-10 13:40:23 -07:00
Alon Zakai
5d3ff92c55
add one-time loop when we need to handle control flow in outlined functions
2013-07-08 18:18:50 -07:00
Alon Zakai
28898039d2
analyze code flow in outlined code
2013-07-08 18:04:28 -07:00
Alon Zakai
9d8d9c3197
outline test does not pass yet, disable it
2013-07-08 17:44:20 -07:00
Alon Zakai
038807115d
recurse into outlined functions
2013-07-08 17:38:16 -07:00
Alon Zakai
4e32c28ba8
do not outline too-big a chunk out of a function
2013-07-08 17:30:54 -07:00
Alon Zakai
d24631b99e
Merge branch 'incoming' of github.com:kripken/emscripten into incoming
2013-07-08 17:02:27 -07:00
Alon Zakai
208893daff
Merge pull request #1355 from sunfishcode/incoming
...
Incoming
2013-07-08 17:02:03 -07:00
Alon Zakai
94dfbf75aa
add read/writes in outlined functions
2013-07-08 16:49:17 -07:00
Alon Zakai
24471090e1
add variable info to outlined functions
2013-07-08 16:43:10 -07:00
Alon Zakai
cbaf90d3d6
generate functions for split-out code
2013-07-08 16:35:52 -07:00
Alon Zakai
c041a3f9c4
read results from outlined code
2013-07-08 16:27:18 -07:00
Alon Zakai
cc89726efd
emit statements in outlining
2013-07-08 16:00:38 -07:00
Alon Zakai
ec9b04b118
start to emit spills
2013-07-08 15:57:03 -07:00
Alon Zakai
39a7f21511
testing for existing sp in outliner
2013-07-08 14:34:32 -07:00
Alon Zakai
c01e960003
infrastructure to analyze functions and variables in outliner
2013-07-08 14:29:15 -07:00
Alon Zakai
58743deec9
start to outline code
2013-07-08 14:09:49 -07:00
Alon Zakai
f568dd0d01
outlining tweaks
2013-07-08 13:59:50 -07:00
Alon Zakai
818c81aa50
initial recursive logic for outlining
2013-07-08 13:44:12 -07:00
Alon Zakai
47090b2172
setup for outlining of code chunks
2013-07-08 12:11:51 -07:00
Alon Zakai
3f75ed559f
begin work on outliner pass to break up large functions. part 1: aggressive variable elimination, to reduce spilling
2013-07-08 11:40:38 -07:00
Dan Gohman
30d6e3ce7d
Add '!==' as a comparison operator.
2013-07-08 11:25:12 -07:00
Dan Gohman
b090967580
Xor optimizations.
...
Optimize x^-1 to ~x; this comes up because LLVM does not have a bitwise
negate operator. Optimize x&1^1 to !x; this comes up because of how LLVM
lowers C++ bool variables.
Also, add an optimization to simplifyExpressionsPre to eliminate |0 from
'~' expressions in more cases.
2013-07-08 11:23:18 -07:00
Alon Zakai
3117fa129f
update test
2013-07-08 11:07:58 -07:00
Alon Zakai
798a2619a5
remove code after a return in a block of statements
2013-07-08 11:04:01 -07:00
Alon Zakai
272e961c06
rename __stackbase__ to sp
2013-07-07 16:48:12 -07:00
Alon Zakai
6dff9374e3
comment on ccall array type being 8 bit
2013-07-07 12:06:25 -07:00
Alon Zakai
50f60cb3b5
keep free() alive like malloc()
2013-07-07 11:06:28 -07:00
Alon Zakai
caf93e9b56
disable -fno-threadsafe-statics, issue #1289
2013-07-06 16:18:47 -07:00
Alon Zakai
0d84667ad3
comments
2013-07-04 16:36:03 -07:00
Alon Zakai
c9027f5ae5
improve warning text
2013-07-03 21:54:06 -07:00
Alon Zakai
c1ea8dc5d5
fix test_static_link for the case where spidermonkey shell is not in JS_ENGINES
2013-07-03 21:32:21 -07:00
Alon Zakai
455fc9b35a
Merge pull request #1341 from inolen/pointer_stringify_hang
...
assert on bad pointer in Pointer_stringify
2013-07-03 18:31:57 -07:00
Alon Zakai
753cf7f4a6
move emlink docs to wiki; add link to them
2013-07-03 17:43:39 -07:00
Alon Zakai
f272e0e484
add working bullet static linking test
2013-07-03 16:58:01 -07:00
Alon Zakai
6ad418da82
force-include .a contents of multiple archives when they are the only inputs aside from linked libraries
2013-07-03 16:57:44 -07:00
Alon Zakai
0903bbc29c
enable working zlib static linking test
2013-07-03 16:18:57 -07:00
Alon Zakai
e6c426b74b
force-include .a contents when it is the only input aside from linked libraries
2013-07-03 16:18:29 -07:00
Alon Zakai
2e570754a5
fix test_source_map
2013-07-03 15:52:42 -07:00
Alon Zakai
dea79e5f61
parse i64-to-ptr conversions of constants at compile time
2013-07-03 15:50:45 -07:00
Alon Zakai
0774a0acf9
fix test_openjpeg
2013-07-03 15:38:02 -07:00
Alon Zakai
405d75e8b1
stop emitting no-longer-needed alias constants
2013-07-03 15:31:05 -07:00
Alon Zakai
a4d526cf91
move runPostSets into asm module
2013-07-03 15:31:05 -07:00
Alon Zakai
1804c48e60
run postSets in a global initializer, before all other global initializers
2013-07-03 15:31:05 -07:00
Alon Zakai
c8065da220
remove old comment
2013-07-03 15:31:05 -07:00
Alon Zakai
26576167eb
add function pointers test
2013-07-03 15:31:05 -07:00
Alon Zakai
c3965c1799
fix test harness
2013-07-03 15:31:05 -07:00
Alon Zakai
b9f5f84190
fix f_bases handling in static linker
2013-07-03 15:31:05 -07:00
Alon Zakai
1ff89fa153
refactor static link test and add todo
2013-07-03 15:31:05 -07:00
Alon Zakai
729e1fe7be
emit F_BASE
2013-07-03 15:31:05 -07:00