Philipp Winkler
12bb659251
Merge branch 'master' of git://factorcode.org/git/factor
2009-06-04 16:39:35 -07:00
Doug Coleman
60a0170e38
renamd parsed-tiff to loading-tiff
2009-06-04 16:17:26 -05:00
Doug Coleman
a3f0c6c057
use singletons instead of subclassing the image class
2009-06-04 16:09:38 -05:00
Doug Coleman
a0b01a51b7
create initializers vocab when constructors is used. this should really go in bootstrap instead
2009-06-04 15:30:17 -05:00
Doug Coleman
580ff7fd32
fix loading of bitmaps when computed size is 0
2009-06-04 15:06:33 -05:00
Doug Coleman
7734042b58
use initial values in constructors when approriate
2009-06-04 14:57:10 -05:00
Philipp Winkler
7922628abb
Add a hand parser. Improves speed from 23 seconds to 0.03 seconds when parsing a 123Kb string.
2009-06-04 11:25:33 -07:00
John Benediktsson
7338792121
Merge branch 'master' of git://factorcode.org/git/factor
2009-06-04 08:50:06 -07:00
Doug Coleman
4cead52ba6
constructor foo now creates an initialize-foo word in the initializers vocabualary. <foo> is instantiated with boa constructors now, so constructors handle read-only slots
2009-06-04 10:17:09 -05:00
John Benediktsson
b1136c77b5
Merge branch 'master' of git://factorcode.org/git/factor
2009-06-03 21:50:09 -07:00
Doug Coleman
a506ddbbfc
Merge branch 'master' of git://factorcode.org/git/factor
2009-06-03 21:36:37 -05:00
Doug Coleman
31595542d3
clean up bitmap code, support a lot more bitmaps like 1/4/16 bit
2009-06-03 21:36:03 -05:00
Doug Coleman
3550621341
rename run-length's uncompress word
2009-06-03 21:22:19 -05:00
Doug Coleman
b9100e5077
add a word to make a sequence from a byte-array by taking n bits at a time
2009-06-03 21:21:51 -05:00
Doug Coleman
175b03c134
add a <limited-file-reader> word to open a limited stream from a file correctly
2009-06-03 21:21:21 -05:00
John Benediktsson
0c0f796267
Merge branch 'master' of git://factorcode.org/git/factor
2009-06-03 10:00:43 -07:00
Joe Groff
d951052ab1
Merge branch 'master' of git://factorcode.org/git/factor
2009-06-03 11:03:45 -05:00
Joe Groff
0169934f6d
null-world class for interactive OpenGL use
2009-06-03 11:03:34 -05:00
Joe Groff
6599beefd6
typo in opengl.gl
2009-06-03 11:02:41 -05:00
Slava Pestov
49f670be05
Fix 32-bit bootstrap
2009-06-03 03:23:55 -05:00
Slava Pestov
9fa3240b85
Merge branch 'master' of git://factorcode.org/git/factor
2009-06-03 03:23:04 -05:00
Slava Pestov
ade5db2405
cpu.x86: fix small register intrinsics on x86-64
2009-06-03 03:22:46 -05:00
Slava Pestov
6d04bf9c4a
Linear scan: build live ranges
2009-06-03 03:22:27 -05:00
Doug Coleman
f31c3f867a
support run-length encoding in bitmaps
2009-06-02 23:29:04 -05:00
Doug Coleman
367623e375
report unhandled compression modes
2009-06-02 23:20:07 -05:00
John Benediktsson
2d236fac3c
Merge branch 'master' of git://factorcode.org/git/factor
2009-06-02 19:22:18 -07:00
Daniel Ehrenberg
43bcfd2944
Merge branch 'master' of git://factorcode.org/git/factor
2009-06-02 21:20:36 -05:00
Daniel Ehrenberg
8ec2e12b22
fixing images unit test
2009-06-02 21:17:45 -05:00
Daniel Ehrenberg
ba5b582e01
Redoing images.loader to work with jpeg
2009-06-02 20:39:51 -05:00
Slava Pestov
9da8cfe942
Merge branch 'master' of git://factorcode.org/git/factor
2009-06-02 18:30:25 -05:00
Slava Pestov
2d231f066a
GC checks now save and restore registers
2009-06-02 18:23:47 -05:00
Daniel Ehrenberg
1162e337d9
Merge branch 'master' of git://factorcode.org/git/factor
2009-06-01 22:40:19 -05:00
Daniel Ehrenberg
52017e22f3
unbits word in math.bits vocab
2009-06-01 22:39:02 -05:00
Daniel Ehrenberg
29395bf900
Words in images to get and set pixels
2009-06-01 22:37:44 -05:00
John Benediktsson
938f33c786
Merge branch 'master' of git://factorcode.org/git/factor
2009-06-01 12:45:30 -07:00
Doug Coleman
19d6285035
fix load error
2009-06-01 09:34:28 -05:00
Slava Pestov
7dd08892b2
Fix for recent word renaming
2009-06-01 03:19:35 -05:00
Slava Pestov
9e987e8642
Merge branch 'master' into global_optimization
2009-06-01 03:12:32 -05:00
Slava Pestov
d558545b65
Remove obsolete optimization
2009-06-01 03:05:49 -05:00
Slava Pestov
3a9922d161
Fix compiler errors
2009-06-01 03:00:10 -05:00
Slava Pestov
f09b36424c
Code cleanup
2009-06-01 02:32:42 -05:00
Slava Pestov
b389dcf441
Redo compiler.codegen.fixup and get %dispatch to work
2009-06-01 02:32:36 -05:00
Slava Pestov
e38e805015
math.functions: fix ^ for complex numbers
2009-05-31 23:28:29 -05:00
Slava Pestov
fc152ef210
Various improvements aimed at getting local optimization regressions fixed:
...
- Rename _gc to ##gc
- Absolute labels are now supported
- Generate _dispatch-label
2009-05-31 23:28:08 -05:00
Slava Pestov
2c8223fdaf
Fix loop handling in stack-analysis
2009-05-31 19:04:26 -05:00
Slava Pestov
32f17f3e14
Fix scoping issue in compiler.cfg.linear-scan.assignment
2009-05-31 18:21:23 -05:00
Slava Pestov
1a52414bb1
Rename _gc to ##gc
2009-05-31 18:21:11 -05:00
Slava Pestov
0091558ff6
Merge branch 'master' of git://factorcode.org/git/factor
2009-05-31 15:02:30 -05:00
Slava Pestov
617e57fc75
cpu.x86.features: add RDTSC support. This is a new vocabulary with words: sse2? instruction-counter count-instructions
2009-05-31 15:02:14 -05:00
Slava Pestov
692b479302
Split off local-optimization combinator into compiler.cfg.local, factor out CFG -> MR into compiler.cfg.mr, split off GC check insertion into a new compiler.cfg.gc-checks pass
2009-05-31 12:20:46 -05:00
Doug Coleman
802283c94c
fix help for new-threaded-server
2009-05-30 19:24:11 -05:00
Doug Coleman
50e6fac013
change threaded-server and managed-server to take an encoding
2009-05-30 19:15:53 -05:00
Slava Pestov
3e00dc8c8d
Start cleaning up stack analysis
2009-05-30 13:22:30 -05:00
Slava Pestov
e04df76f60
Various codegen improvements:
...
- new-insn word to construct instructions
- cache RPO in the CFG
- re-organize low-level optimizer so that MR is built after register allocation
- register allocation now stores instruction numbers in the instructions themselves
- split defs-vregs into defs-vregs and temp-vregs
2009-05-29 13:11:34 -05:00
Slava Pestov
280736ab00
On second thought, linearization will be done after SSA destruction so live-in is accurate
2009-05-29 05:45:40 -05:00
Slava Pestov
743550f19c
Put GC checks in the right place when linearizing, and generate _dispatch-labels
2009-05-29 05:36:04 -05:00
Slava Pestov
76d74c16af
Fixing various bugs; alias analysis wasn't handling ##phi nodes, stack analysis incorrectly handled height-changing back edges and ##fixnum-*, clean up ##dispatch generation
2009-05-29 01:39:14 -05:00
Slava Pestov
ceb332f596
compiler.cfg.alias-analysis: ##peek needs to set alias class of output value
2009-05-28 18:19:01 -05:00
Slava Pestov
dbf18927b9
compiler.cfg.liveness: correct handling of phi nodes
2009-05-28 17:54:27 -05:00
John Benediktsson
71f9a4c2ae
Merge branch 'master' of git://factorcode.org/git/factor
2009-05-28 14:11:19 -07:00
Slava Pestov
fc5587bda3
Test updates
2009-05-28 02:50:07 -05:00
Slava Pestov
ecece1d08b
CFG checker now checks consistency of successors and predecessors lists; fix long-standing bug in useless-blocks optimization
2009-05-28 02:49:51 -05:00
Slava Pestov
1fa465d77f
Fix alias analysis
2009-05-28 02:48:58 -05:00
Slava Pestov
d442167354
tools.annotations: work better on generic words
2009-05-27 19:36:52 -05:00
Slava Pestov
7b88756fd0
Add a with-scope so that optimize-tree doesn't pollute namespace
2009-05-27 18:58:54 -05:00
Slava Pestov
117cb78d6b
Fixing local optimizations
2009-05-27 18:58:41 -05:00
Slava Pestov
f3688c9373
Better CFG checker
2009-05-27 18:58:14 -05:00
Slava Pestov
dadb9a2c50
Add phi elimination pass
2009-05-27 18:58:01 -05:00
Slava Pestov
3b79d61496
Add a new ##allocation union to remove some code duplication
2009-05-27 18:55:49 -05:00
Slava Pestov
2025823ba6
Remove old local DCE pass
2009-05-27 17:55:15 -05:00
John Benediktsson
aa7d24eec6
Resolved merge.
2009-05-26 22:20:53 -07:00
Slava Pestov
ce25e0ad8d
New local-optimization combinator removes some boilerplate
2009-05-26 19:56:56 -05:00
Slava Pestov
1db81da264
Refactoring low-level optimizer to support stack analysis pass
2009-05-26 19:31:19 -05:00
Slava Pestov
eda44f28a6
Move maybe-set-at to assocs
2009-05-26 18:45:37 -05:00
Doug Coleman
38a8e80ba9
unbackwardsify hmac keys
2009-05-26 17:46:41 -05:00
Doug Coleman
1bc39df838
fix using, make sure article-only title sort works
2009-05-26 12:01:28 -05:00
Doug Coleman
0d45dafdd0
fix formatting
2009-05-26 11:55:48 -05:00
Doug Coleman
daf1594390
fix human sort -- wrap all elements so that integers dont get compared against strings directly
2009-05-26 10:05:55 -05:00
Slava Pestov
ccb662c60e
Fix another bug in stack-analysis
2009-05-26 03:42:39 -05:00
Slava Pestov
7ea4e255fb
compiler.cfg.stack-analysis: make it pass more tests
2009-05-26 02:59:14 -05:00
Slava Pestov
8b022f926c
compiler.cfg.dce: new global dead code elimination pass
2009-05-26 02:58:57 -05:00
Slava Pestov
e0841fa695
compiler.cfg.checker: new check-rpo word
2009-05-26 02:58:40 -05:00
Doug Coleman
16b288aac8
remove whitespace
2009-05-25 21:25:56 -05:00
Doug Coleman
0cb7b408b4
remove clamp-to-range and associated words, update jamshred
2009-05-25 21:24:12 -05:00
Slava Pestov
a08bbde2e7
compiler.cfg.stack-analysis: progress
2009-05-25 19:18:13 -05:00
Slava Pestov
dead771b3f
compiler.cfg.checker: new vocabulary for checking CFG invariants
2009-05-25 19:16:58 -05:00
Slava Pestov
a2b982e247
compiler.cfg.builder: don't make basic blocks after terminating calls
2009-05-25 19:16:36 -05:00
Doug Coleman
407377fc98
rename peek -> last and update all usages
2009-05-25 16:38:33 -05:00
Doug Coleman
3722c0ad62
move some words to private vocabs
2009-05-25 15:35:50 -05:00
Doug Coleman
95837d53bc
use iota
2009-05-25 15:18:20 -05:00
Doug Coleman
5a3a14d1c9
remove at-default. it was hardly used and it's just '?at drop'
2009-05-24 21:46:59 -05:00
Doug Coleman
a54c78007b
add a clamp word to math.order, use clamp word throughout libraries
2009-05-24 21:35:50 -05:00
Doug Coleman
86a1b06034
add a mode word
2009-05-24 15:45:25 -05:00
John Benediktsson
f594d96906
Merge branch 'master' of git://factorcode.org/git/factor
2009-05-24 09:52:42 -07:00
Slava Pestov
2322f30df2
Merge branch 'master' into global_optimization
2009-05-23 15:57:23 -05:00
Slava Pestov
98d282dd90
Merge branch 'master' of git://factorcode.org/git/factor
2009-05-23 15:57:13 -05:00
Slava Pestov
b8aa633d58
Merge branch 'master' into global_optimization
2009-05-23 15:55:04 -05:00
Slava Pestov
43a1834e0b
stack-checker: fix case where invalid code could infer
2009-05-23 15:50:35 -05:00
Slava Pestov
145f1dbeef
compiler.cfg.stack-analysis: change how inc-d/inc-r work
2009-05-23 15:47:08 -05:00
Joe Groff
8e06eab2f2
Merge branch 'master' of git://factorcode.org/git/factor
2009-05-23 08:39:17 -05:00