Slava Pestov
d630e1494c
Fix struct field alignment on PowerPC
2009-11-10 19:34:14 -06:00
Daniel Ehrenberg
6b8233e350
Refactoring bitfields to not use number tower
2009-10-07 21:35:12 -05:00
Daniel Ehrenberg
635aa1860c
Adding bit fields to STRUCT:
2009-10-07 01:43:32 -05:00
Doug Coleman
026761ed62
Merge branch 'master' of git://factorcode.org/git/factor
...
Conflicts:
basis/classes/struct/struct-tests.factor
basis/functors/functors-tests.factor
basis/specialized-arrays/specialized-arrays-tests.factor
2009-09-20 23:02:49 -05:00
Doug Coleman
47fab85a00
replace usages of <" with """
2009-09-20 22:42:40 -05:00
Joe Groff
4a1422e7fe
move some allocation words that don't really have much to do with c types out of alien.c-types into a new alien.data vocab
2009-09-17 22:36:05 -05:00
Joe Groff
18c59bd43e
update classes.struct tests to use word c-types
2009-09-15 22:43:11 -05:00
Joe Groff
334e93bbbf
get things to a point where they bootstrap again
2009-09-15 21:43:18 -05:00
Joe Groff
fa79e86743
fix failing classes.struct tests
2009-09-15 19:10:05 -05:00
Joe Groff
02b797f11b
struct classes now make their own C type without help from alien.structs. remove alien.structs dependencies from everywhere outside of alien and compiler, and have the FFI handle both alien.structs and classes.struct c-types
2009-09-15 17:38:49 -05:00
Slava Pestov
8aecdf13ab
classes.struct: fix some bugs
...
- STRUCT: foo<ENTER> in listener threw an error
- S{ did not throw an error when used with non-struct types
- attempting to subclass a struct class now fails
- forgetting a struct class now removes the corresponding C type
- 'see'ing a struct class now indents correctly
2009-09-10 15:59:27 -05:00
Slava Pestov
527db8995a
Specialized array overhaul
...
- Replace hand-written specialized-arrays.* subvocabularies with new system; instead of USE:ing specialized-arrays.T, do SPECIALIZED-ARRAY: T
- Ditto for specialized-vectors; use SPECIALIZED-VECTOR:
- io.mmap.functor: removed entirely, use <mapped-array> instead
- struct-arrays and struct-vectors have been removed because specialized arrays and vectors subsume them entirely
2009-09-09 22:33:34 -05:00
Slava Pestov
0b35d79aee
compiler.tree.propagation.call-effect: stronger call( inlining; now can inline 'a [ b ] curry call(' where 'a' is literal, [ b ] doesn't infer, but [ a b ] does infer. This simplifies classes.struct:memory>struct
2009-09-07 17:45:03 -05:00
Slava Pestov
9fca70d965
Fix unit tests for specialized-arrays.direct change
2009-09-05 02:26:06 -05:00
Slava Pestov
430f4a83f9
specialized-arrays.direct is no more; instead, every specialized-array.<foo> vocabulary has a <direct-T-array> constructor
2009-09-04 22:01:55 -05:00
Joe Groff
f58abdcea2
put a more useful mirror over structs
2009-08-31 22:26:03 -05:00
Joe Groff
a3b54377e2
update classes.struct tests, and make struct prettyprinting work again
2009-08-31 20:46:33 -05:00
Joe Groff
57ed942dfa
hashcode* for structs
2009-08-31 10:51:45 -05:00
Joe Groff
69f258c521
refactor struct slot parsing so that there's a <struct-slot-spec> word for easily constructing struct slots outside classes.struct
2009-08-30 22:37:37 -05:00
Joe Groff
486f04607c
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-30 21:14:33 -05:00
Slava Pestov
29374bb1d9
classes.struct: add more unit tests for clone method, and fix clone breakage when the struct class word is not a symbol
2009-08-30 21:01:44 -05:00
Joe Groff
4fb204b00e
likewise, an S@ word for structs
2009-08-30 20:46:31 -05:00
Joe Groff
3a7e6b157f
implement clone on struct classes to copy the struct contents
2009-08-29 22:54:56 -05:00
Joe Groff
400e01d390
change malloc-struct to initialize struct from initial values; add (malloc-struct) and (struct) words that leave their memory uninitialized
2009-08-29 22:40:13 -05:00
Joe Groff
5cd24e5002
support { type dimension } c-type syntax in STRUCT: definitions
2009-08-27 21:39:43 -05:00
Joe Groff
5cc1ce3d8a
throw a friendlier error when attempting to create a struct without slots
2009-08-26 22:37:59 -05:00
Joe Groff
a9683e80c4
test that array slots in structs optimize down
2009-08-26 21:50:12 -05:00
Joe Groff
1ec0d1290a
test that struct-arrays and struct construction optimize down
2009-08-26 21:38:00 -05:00
Joe Groff
3bb895dcdf
bitwise equal? for struct objects
2009-08-26 18:05:38 -05:00
Joe Groff
1bab289258
move classes.struct from extra to basis
2009-08-26 15:55:01 -05:00