Slava Pestov
65dea0aa26
PowerPC backend fixes
2008-11-08 20:36:14 -06:00
Slava Pestov
57242951b9
Better error reporting in FROM: and RENAME: words
2008-11-08 19:33:15 -06:00
Eduardo Cavazos
8262b50c87
ui.gadgets.scrollers: minor tweak in 'new-scroller'
2008-11-08 16:23:06 -06:00
Eduardo Cavazos
8e44e783cf
ui.gadgets.lists: minor tweak to 'select-gadget'
2008-11-08 15:59:21 -06:00
Peter Burns
a4cecaaf40
swap drop === nip
2008-11-08 13:45:45 -08:00
Peter Burns
64cdabf57a
A bit more refactoring and testing of json.reader
2008-11-08 12:08:58 -08:00
Slava Pestov
9cc193ea5b
Add unportable tags and fix my-arch word
2008-11-07 22:37:40 -06:00
Peter Burns
bca998bba5
Merge branch 'master' of git://factorcode.org/git/factor into json
2008-11-07 20:00:42 -08:00
Peter Burns
706da24b8c
Refactored json.reader, added a couple more unit tests, no more rationals
2008-11-07 20:00:19 -08:00
Slava Pestov
eb83b542d6
Fix unix x86.64 bootstrap
2008-11-07 21:54:13 -06:00
Slava Pestov
000affca5a
Merge branch 'master' of git://factorcode.org/git/factor
2008-11-07 21:09:45 -06:00
Slava Pestov
1b744ab14b
Updating code for boot image renaming
2008-11-07 21:09:42 -06:00
unknown
de0cc7f99a
Merge branch 'master' of git://factorcode.org/git/factor
2008-11-07 20:49:42 -06:00
Slava Pestov
639da2d335
Refactor OS-specific parts of PowerPC backend
2008-11-07 20:45:25 -06:00
unknown
cc7ab11881
Add more unit tests
2008-11-07 20:34:04 -06:00
unknown
7365959f01
Starting work on Win64 port
2008-11-07 20:33:32 -06:00
Peter Burns
6e22f39f46
Rewrote json.reader to use peg.ebnf
2008-11-06 21:45:24 -08:00
sheeple
070432d140
Merge branch 'master' of git://factorcode.org/git/factor
2008-11-06 19:15:13 -06:00
sheeple
d1f248dac6
Fixing PowerPC backend: prolog register clobberage, spilling, and general stack frame usage. Add some lame tests for spilling
2008-11-06 19:00:56 -06:00
Doug Coleman
a7595665fc
Merge branch 'master' of git://factorcode.org/git/factor
2008-11-06 16:54:05 -06:00
Doug Coleman
46aa56730b
better parsing for anchors
2008-11-06 16:53:00 -06:00
Slava Pestov
b7dc7296db
Implement stream-read on memory-streams. This allows alien>string to work with utf16 encoding
2008-11-06 13:42:53 -06:00
Doug Coleman
dd1b28ba7a
Merge branch 'master' of git://factorcode.org/git/factor
2008-11-06 13:17:54 -06:00
Doug Coleman
811026ce4d
removing some uses of at* in favor of at, simplifying code
2008-11-06 13:16:33 -06:00
Slava Pestov
63a9975a0e
Support inline, foldable, flushable on methods; add declarations in a couple of places for ricing purposes
2008-11-06 13:13:37 -06:00
Slava Pestov
751426f283
Remove dead code from math.intervals; we no longer need the operations to support f anymore
2008-11-06 11:57:31 -06:00
Slava Pestov
4e55cd973b
If a #dispatch branch is a call to another word which is not an intrinsic, we avoid generating the dispatch branch and just jump to the word directly
2008-11-06 11:48:55 -06:00
Slava Pestov
9366ad650d
Add unportable tag
2008-11-06 09:29:21 -06:00
Slava Pestov
64cbf619a9
Add more algebraic simplifications: comparison of a comparison, comparison where first is immediate
2008-11-06 09:27:52 -06:00
Slava Pestov
1c1333fbe9
Compile not and >boolean as branchless intrinsics by having the CFG builder detect certain code patterns
2008-11-06 09:09:21 -06:00
Peter Burns
e631e1ca08
Normalized spacing to 4 space tabs in json modules
2008-11-06 04:41:53 -08:00
Peter Burns
986ea40835
Changed json-null to a SINGLETON for method dispatch
2008-11-06 04:38:12 -08:00
sheeple
d2ec46e38f
PowerPC backend almost functional; some new compiler unit tests added,
...
better compilation of 'f eq?'; f becomes an immediate operand
move aux-offset to compiler.constants
2008-11-06 06:27:27 -06:00
Peter Burns
260862603c
Added some tests for json.writer, fixed a bug with t >json and json-null >json
2008-11-06 04:26:49 -08:00
Slava Pestov
7741096bff
Tweak PPC register usage; gcc doesn't like it when you mess with r31 for some reason
2008-11-06 03:36:46 -06:00
Slava Pestov
6f432811f5
Fix mirrors
2008-11-06 02:52:54 -06:00
Slava Pestov
29279f305e
Fix 32-bit bootstrap
2008-11-06 01:58:07 -06:00
Slava Pestov
5def7c5dea
Don't load random number generator on bootstrap
2008-11-06 01:30:59 -06:00
Slava Pestov
53cd75b06c
Add string-nth intrinsic
2008-11-06 01:11:28 -06:00
Slava Pestov
bfd119e3b5
I/O ricing: various hints added so that UTF8 and ASCII fastpaths compile with less dispatch. 25% improvement on reverse-complement
2008-11-06 00:02:44 -06:00
Slava Pestov
be798dd5e9
We need to internalize tuple layouts in bootstrap, but since they're arrays we have to use a predicate class to detect them
2008-11-06 00:01:50 -06:00
Slava Pestov
cc879fa9b7
Tuple layouts are now arrays, instead of built-in types. The superclass
...
array is now part of the tuple layout object itself, and class hashcodes
are stored alongside class words there. This removes 2 indirections when
reading a superclass, and 3 when reading a superclass hashcode.
2008-11-05 22:20:29 -06:00
Slava Pestov
fbb958da82
Fix lambda-method forget
2008-11-05 18:59:58 -06:00
Slava Pestov
4fd1767768
Old fix for classes-intersect? no-method bug was incorrect; we were
...
ignoring anonymous classes in compiled-generic-crossref. Also,
forget* now calls reset-word so that references to predicates of
forgotten classes don't break the compiler with a similar error.
2008-11-05 18:32:02 -06:00
Slava Pestov
7f59942219
Change title to be more consistent
2008-11-05 04:28:13 -06:00
Slava Pestov
affb48a067
Fix docs
2008-11-05 04:27:12 -06:00
Slava Pestov
2239f4fb99
More work on PowerPC backend; change register usage, free up some more integer and float regs (untested)
2008-11-05 04:20:35 -06:00
Slava Pestov
7aa530c64e
Fix ABOUT: docs
2008-11-05 04:16:15 -06:00
Slava Pestov
dae41147fe
%bignum>integer now takes a temporary register since this is useful on both x86 and ppc
2008-11-05 04:16:08 -06:00
Slava Pestov
8b7c47a68b
Clean up x86 backend: move cpu.x86.architecture to cpu.x86, use branchless arithmetic in some intrinsics
2008-11-05 04:15:48 -06:00
Slava Pestov
10d3b4a55d
New PPC backend (untested)
2008-11-05 00:31:08 -06:00
Slava Pestov
c8521ad826
Add tool to dump live intervals
2008-11-04 17:23:20 -06:00
Slava Pestov
22f11f24c9
Move simple-table. to prettyprint since its generally useful and not specific to tools.time
2008-11-04 17:23:08 -06:00
Slava Pestov
d8345b5eda
Update PPC non-optimizing compiler backend: there are three new sub-primitives to support
2008-11-04 06:07:19 -06:00
Slava Pestov
46830bb38d
Fix another name clash in tests; putting all compiler tests in compiler.tests vocab is probably not good
2008-11-04 00:46:06 -06:00
Slava Pestov
4a37bcb757
Strip out remake-generics-hook, since otherwise it slurps in a lot of meta-programming machinery, increasing deployed image size by about 200kb for hello-world
2008-11-04 00:36:16 -06:00
Slava Pestov
1af3b8ed65
If a register is spilled and the reload location is also a copy, we chicken out and don't coalesce. This is suboptimal but it's not clear to me how to implement it cleanly, and SSA graph coloring will solve this problem eventually anyway
2008-11-04 00:32:56 -06:00
Slava Pestov
efcb916e35
Handle a jump to a jump by cloning the block, in the same way we optimize jumps to returns
2008-11-03 21:02:34 -06:00
Slava Pestov
3e75e0f8b5
Update word naming conventions
2008-11-03 21:00:27 -06:00
Slava Pestov
06b99c31ee
Fix regression. If a parsing word called the compiler, it might compile a caller of a generic before the generic gets built, which would throw an error since the inferred effect of the generic might have less inputs than the combination's dispatch#
2008-11-03 20:59:48 -06:00
Slava Pestov
dc85ed3d56
Fix help lint: links to obsolete article
2008-11-03 08:08:28 -06:00
Slava Pestov
82e9eedd39
Forgot about float= intrinsic
2008-11-03 07:15:09 -06:00
Slava Pestov
75e9708488
Oops
2008-11-03 06:50:59 -06:00
Slava Pestov
e6f6cd5d93
Fix USING: -- you can now make ppc images, they just don't work yet
2008-11-03 06:40:14 -06:00
Slava Pestov
b649c01de6
Fix name clash with templates.factor
2008-11-03 06:34:56 -06:00
Slava Pestov
59f4f25b91
Loop alignment: appears to be a small win for reverse-complement
2008-11-03 06:20:51 -06:00
Slava Pestov
cdb5c30bd3
Only build a generic word once, even if a compilation unit defines several methods on it, by adding generics to a set and building them at the end. 25% improvement on bootstrap time
2008-11-03 03:51:28 -06:00
Slava Pestov
2445a83cb9
Clean up recursive-state usage
2008-11-03 03:06:11 -06:00
Slava Pestov
0250d7c1d2
Forgot a drop in unit test
2008-11-03 01:53:27 -06:00
Slava Pestov
08b277e892
Fix alias anlaysis bug: result of ##box-alien and ##box-float did not get an AC, so calling hi-tag would not compile
2008-11-03 01:52:55 -06:00
Slava Pestov
3230e0010f
-trace-compilation command line switch
2008-11-03 01:19:20 -06:00
Slava Pestov
7f3282bb39
Better error reporting
2008-11-03 01:19:06 -06:00
Slava Pestov
f253e74942
Inline subprimitives in optimizing compiler
2008-11-03 01:18:54 -06:00
Slava Pestov
44a2499c17
fixnum-shift-fast and fixnum-mod subprimitives
2008-11-03 01:18:35 -06:00
Slava Pestov
dd20b39cd6
fixnum-shift-fast subprimitive
2008-11-03 00:03:39 -06:00
Slava Pestov
1aefde994f
Cleanup
2008-11-03 00:03:22 -06:00
Slava Pestov
0d83873174
Fix regression
2008-11-03 00:03:15 -06:00
Slava Pestov
abb02f1784
Flesh out shift instructions
2008-11-03 00:03:00 -06:00
Slava Pestov
449c1191cc
Add another debug var
2008-11-02 23:25:42 -06:00
Slava Pestov
445e353337
Optimize away useless jumps
2008-11-02 23:09:31 -06:00
Slava Pestov
d11a779fdd
RicE
2008-11-02 03:58:32 -06:00
Slava Pestov
998637109a
Merge branch 'master' into new_codegen
2008-11-02 03:10:40 -06:00
Slava Pestov
3834eaeb05
Don't generate GC checks if the allocation instruction is optimized out
2008-11-02 01:50:48 -06:00
Slava Pestov
8df1aba71d
Coalescing
2008-11-02 01:49:57 -06:00
Doug Coleman
c5293819ce
Merge branch 'master' of git://factorcode.org/git/factor
2008-11-01 19:40:18 -05:00
Doug Coleman
9c5bd1e96d
remove debug from regexp
2008-11-01 19:39:49 -05:00
Slava Pestov
46b1fd652b
Merge branch 'master' of git://factorcode.org/git/factor into new_codegen
2008-11-01 19:11:40 -05:00
slava
1cd2874072
Uncomment a test
2008-11-01 18:56:12 -05:00
Slava Pestov
b5c3c19ebe
Merge branch 'master' of git://factorcode.org/git/factor into new_codegen
2008-11-01 16:38:04 -05:00
Doug Coleman
8a494a0da4
fix the way postgresql creates functions
2008-11-01 15:24:05 -05:00
Slava Pestov
804c6f93ea
Fix x86.32
2008-10-31 21:07:41 -05:00
Slava Pestov
db4db19cd9
Start working on coalescing
2008-10-28 02:38:37 -07:00
Slava Pestov
492a15e345
Move insn class to compiler.cfg.instructions
2008-10-24 09:17:06 -05:00
Doug Coleman
2937f71702
more usings
2008-10-23 13:38:26 -05:00
Doug Coleman
a42c8d4ab7
fix using
2008-10-23 13:37:14 -05:00
Doug Coleman
03d96cc1bd
rename name to mount-point
2008-10-23 13:18:00 -05:00
Slava Pestov
1912c57bb5
Fix comment
2008-10-23 05:55:50 -05:00
Slava Pestov
69a0ad5e42
Ricing locals
2008-10-23 05:49:32 -05:00
Slava Pestov
1c7d9c1066
Merge branch 'master' into new_codegen
2008-10-23 05:29:09 -05:00
Slava Pestov
885adc8dc9
Various improvements
2008-10-23 05:27:54 -05:00
Slava Pestov
7fb39a14c1
Compile compiler early
2008-10-23 02:49:55 -05:00
Slava Pestov
52967c5bf1
Improved value numbering
2008-10-23 02:49:26 -05:00
Doug Coleman
d7cbf8b1f3
Merge branch 'master' of git://factorcode.org/git/factor
2008-10-22 22:03:00 -05:00
Doug Coleman
e776bd29e1
add type to file-system-info
2008-10-22 22:02:33 -05:00
Slava Pestov
d723b69990
Value numbering
2008-10-22 21:59:07 -05:00
Slava Pestov
084e64d0bc
Tweak inheritance
2008-10-22 21:58:46 -05:00
Slava Pestov
ba0ed21e1d
Better error message
2008-10-22 21:58:37 -05:00
Doug Coleman
b85b0f6820
fix typo
2008-10-22 21:43:19 -05:00
Doug Coleman
c9167e2ab2
better file-system-info on mac
2008-10-22 20:32:39 -05:00
erg
bccf9d9698
add device-name and type to file-system-info
2008-10-22 20:28:30 -05:00
Doug Coleman
4ddfc83423
id_t type
2008-10-22 20:22:35 -05:00
Doug Coleman
46fbd8c520
mounton -> name
2008-10-22 20:18:58 -05:00
erg
278b55ee57
include mount point in file-system-info
2008-10-22 20:04:10 -05:00
Doug Coleman
89e9fa8b6b
mounted* -> mounted
2008-10-22 19:56:46 -05:00
erg
b4b02d29fa
fix mounted on linux
2008-10-22 19:54:22 -05:00
Doug Coleman
f9b90d035b
implement mounted on linux
2008-10-22 19:01:45 -05:00
Doug Coleman
371b1f8f20
fix mounted on macosx
2008-10-22 18:46:24 -05:00
Slava Pestov
9a07760542
CFG optimizer
2008-10-22 18:41:37 -05:00
Slava Pestov
3711aa3bca
Stack height normalization
2008-10-22 18:41:26 -05:00
Slava Pestov
6d812aaa52
Write barrier elimination
2008-10-22 18:41:10 -05:00
Slava Pestov
1f693b50b3
Massive focused action
2008-10-22 18:39:41 -05:00
Slava Pestov
73d01452cb
Replace ##gc with a gc flag in the basic block
2008-10-22 18:38:30 -05:00
Slava Pestov
f09813f6fd
Alias analysis
2008-10-22 18:37:47 -05:00
Doug Coleman
1d750b26d2
Merge branch 'master' of git://factorcode.org/git/factor
2008-10-21 23:44:02 -05:00
Doug Coleman
b9e043effe
move >file-system-info
2008-10-21 23:43:36 -05:00
Slava Pestov
dc74d1a9b6
Merge branch 'master' into new_codegen
2008-10-21 23:40:03 -05:00
Slava Pestov
84820244dd
Merge branch 'master' into new_codegen
2008-10-21 23:19:20 -05:00
Slava Pestov
ebd6776fc4
Merge branch 'master' of git://factorcode.org/git/factor
2008-10-21 23:18:49 -05:00
Slava Pestov
52020c2fe3
Fixing x86 instruction encoding for addressing with base = ESP or R12
2008-10-21 23:18:27 -05:00
Slava Pestov
1b06ab1b39
Fixing various bugs
2008-10-21 23:17:32 -05:00
Doug Coleman
9870a7d7cd
fix bug with printing docs directory
2008-10-21 21:03:37 -05:00
Doug Coleman
003000b7cf
timeval>seconds
2008-10-21 04:19:50 -05:00
Slava Pestov
87e9fbb34c
Comparison operations
2008-10-21 03:21:29 -05:00
Doug Coleman
1423577d89
typo
2008-10-21 03:21:17 -05:00
Slava Pestov
94a2bfa2ea
Working on comparison operations, clearing out remaining dead wood
2008-10-21 03:20:48 -05:00
Doug Coleman
33948aa024
linux32 and linx64 filesystem info objects instead of only one type
2008-10-21 03:16:48 -05:00
Doug Coleman
09c1f8cc01
split up linux statfs
2008-10-21 03:11:26 -05:00
Doug Coleman
69aad251c1
use common statfs fields on linux for now
2008-10-21 02:53:34 -05:00
Slava Pestov
ca49ab09c9
Merge branch 'master' into new_codegen
2008-10-20 23:28:51 -05:00
Slava Pestov
a8d1ec34f8
Fix an UI bug and remove some pick usages
2008-10-20 23:28:02 -05:00
Slava Pestov
4b20266235
Merge branch 'master' into new_codegen
2008-10-20 22:06:11 -05:00
Slava Pestov
1df08ba8c8
Unit tests no longer use hard-coded ports
2008-10-20 22:05:22 -05:00
Slava Pestov
d7ad12207c
Merge branch 'master' of git://factorcode.org/git/factor
2008-10-20 21:09:01 -05:00
Slava Pestov
8d5135682f
Print a message when tests fail
2008-10-20 21:07:46 -05:00
Slava Pestov
df498c21a3
Trim USING:
2008-10-20 20:46:47 -05:00
Slava Pestov
0cc0a41e57
Update for compiler.intrinsics removal
2008-10-20 20:40:36 -05:00
Slava Pestov
4d75baf268
Update for ##allot change
2008-10-20 20:40:28 -05:00
Slava Pestov
e92f795a76
More work on intrinsics; memory allocation and slot access now expands correctly
2008-10-20 20:40:15 -05:00
Doug Coleman
b90aeee25c
use readdir on openbsd until we upgrade so the build machine is ok
2008-10-20 11:32:55 -05:00
Slava Pestov
0c89575632
Merge branch 'master' into new_codegen
2008-10-20 05:56:44 -05:00
Slava Pestov
508b1f52b8
Update x86 backend for SSA codegen
2008-10-20 05:55:57 -05:00
Slava Pestov
37cf7d9a9c
Add SSA comparison instructions, fix various problems
2008-10-20 05:55:20 -05:00
Doug Coleman
1b03aaf63e
typos
2008-10-20 04:35:15 -05:00
Doug Coleman
74dab4f90a
netbsd work
2008-10-20 04:30:01 -05:00
Doug Coleman
d686ea1293
netbsd work
2008-10-20 03:01:44 -05:00
Doug Coleman
ff918546c1
ffi work
2008-10-20 02:08:33 -05:00
Doug Coleman
70fb131e82
add netbsd
2008-10-20 02:27:09 -05:00
Doug Coleman
fe67aae4f4
add netbsd statvfs struct
2008-10-20 02:05:15 -05:00
Slava Pestov
af6b8c4e97
Merge branch 'master' into new_codegen
2008-10-20 01:59:52 -05:00
erg
84a9a49416
Merge branch 'master' of git://factorcode.org/git/factor
2008-10-20 01:57:29 -05:00
Slava Pestov
f092622fac
CFG IR is now pure SSA
2008-10-20 01:56:28 -05:00
erg
deb4526bd1
ffi work
2008-10-20 01:55:40 -05:00
Doug Coleman
fe16f4d560
Merge branch 'master' of git://factorcode.org/git/factor
2008-10-20 01:14:29 -05:00
Doug Coleman
dc4a1bc902
fix netbsd stat struct
2008-10-20 01:14:07 -05:00
Doug Coleman
e2880e8dd7
add statfs stuff
2008-10-20 00:47:51 -05:00
Doug Coleman
dba41cfe60
Merge branch 'master' of git://factorcode.org/git/factor
2008-10-20 00:46:43 -05:00
Doug Coleman
0121d0f678
add file-system-info
2008-10-20 00:30:24 -05:00
Doug Coleman
763f4f7503
move constants to bsd.factor
2008-10-19 22:01:14 -05:00
Doug Coleman
54819c0f95
more tags
2008-10-19 20:45:34 -05:00
Doug Coleman
6037ed413d
add unportable tags
2008-10-19 20:45:04 -05:00
Doug Coleman
e9c79ee85e
fix directory.
2008-10-19 20:42:27 -05:00
Doug Coleman
3dc4002c35
fix subdirs
2008-10-19 20:37:11 -05:00
Doug Coleman
16f2a281d6
typo
2008-10-19 20:30:54 -05:00
Doug Coleman
022473234d
Merge branch 'master' of git://factorcode.org/git/factor
2008-10-19 20:00:07 -05:00
Doug Coleman
d77771eec8
fix test
2008-10-19 19:47:37 -05:00
erg
dcd534292e
fixes
2008-10-19 19:45:54 -05:00
Doug Coleman
16f7c09b54
try to fix bootstrap
2008-10-19 19:43:46 -05:00
Doug Coleman
4f948ef5ce
try to make bootstrap work again
2008-10-19 19:39:20 -05:00
Doug Coleman
e4b6cd7578
directory throws now instead of returning nicely if does not exist
2008-10-19 18:47:23 -05:00
Doug Coleman
e310e382c5
fix io monitors recusive
2008-10-19 18:30:51 -05:00
Doug Coleman
f5f6c400db
change windows file-system-info implementation
2008-10-19 18:19:15 -05:00
Slava Pestov
b6ec4dc6ff
Merge branch 'master' of git://factorcode.org/git/factor into new_codegen
2008-10-19 18:10:48 -05:00
Doug Coleman
4221f2c963
the windows file-system-info now works on any path, not just directories
2008-10-19 17:46:51 -05:00
Doug Coleman
b9e5c98ce7
fix file-system-info
2008-10-19 17:43:22 -05:00
Doug Coleman
623a21256a
win32 ffi work
2008-10-19 17:41:46 -05:00
Doug Coleman
ca17c11270
try to add winnt space-free
2008-10-21 02:27:39 -05:00
Doug Coleman
dfef28e715
make a word generic
2008-10-21 01:27:15 -05:00
Doug Coleman
b9d23a2ce7
more ffi work
2008-10-21 01:17:49 -05:00
Doug Coleman
34fa12a737
tabs
2008-10-21 01:08:36 -05:00
Doug Coleman
d5c33a865f
usings
2008-10-21 01:07:07 -05:00
Doug Coleman
4ff38b2148
pull in unix.statfs in the io code
2008-10-21 01:05:41 -05:00
Doug Coleman
bfeec2e9aa
ready to push now, expect some more bugs..
2008-10-21 00:52:04 -05:00
Doug Coleman
236aaf4a35
more moving
2008-10-20 23:43:50 -05:00
Doug Coleman
76e460860d
moving stuff around
2008-10-20 23:43:36 -05:00
Doug Coleman
e6754ab62e
Merge branch 'master' of git://factorcode.org/git/factor
2008-10-20 23:40:15 -05:00
Doug Coleman
7e734ead14
add freebsd and openbsd structs
2008-10-20 23:25:40 -05:00
Doug Coleman
f40fc145de
remove openbsd shiz
2008-10-20 23:23:17 -05:00
Doug Coleman
0ad47e21c8
using bug
2008-10-19 16:50:34 -05:00
Doug Coleman
307ad5e9e6
Merge branch 'master' of git://factorcode.org/git/factor
2008-10-19 15:41:19 -05:00
Doug Coleman
c9b15e9879
fix logging
2008-10-19 15:41:04 -05:00