Joe Groff
aa06caed8c
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-29 17:17:44 -05:00
Joe Groff
2203b0c9fa
use calloc in malloc-struct for consistency with malloc-object and malloc-array
2009-08-29 17:17:25 -05:00
Joe Groff
1c3ee6034a
change malloc-object back to using calloc
2009-08-29 15:28:31 -05:00
Samuel Tardieu
48ef66e45c
Ensure that random-prime result has the right size
...
As noted by Slava, choosing the next prime following a random number
with a specified number of bits may give a number one more bit long.
2009-08-29 21:42:15 +02:00
Joe Groff
1d646c8231
change malloc-object and <c-object> not to be in terms of malloc-array and <c-array>
2009-08-29 12:45:59 -05:00
Joe Groff
711af71ca6
typo in alien.c-types docs
2009-08-29 12:23:09 -05:00
Joe Groff
ee4735eec9
update cocoa and core-foundation stuff to use classes.struct and boxed malloc-arrays
2009-08-29 12:22:55 -05:00
Joe Groff
3a06bfaf2d
deprecate <c-array>, and make malloc-array box its returned buffer in a direct array
2009-08-29 11:15:23 -05:00
Samuel Tardieu
89374e2a25
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-29 16:23:13 +02:00
Slava Pestov
fa64522421
compiler.cfg.value-numbering: fix ##box-displaced-alien simplification
2009-08-28 19:05:49 -05:00
Slava Pestov
f30aa5d20e
compiler: add fixnum-min/max intrinsics; ~10% speedup on benchmark.yuv-to-rgb
2009-08-28 19:02:59 -05:00
Slava Pestov
32657551fc
tools.deprecation: suppress 'computing usage index...' message
2009-08-28 05:32:34 -05:00
Slava Pestov
a53653bc00
tools.deprecation: don't bail out if a word's usages are not all words
2009-08-28 05:31:27 -05:00
Slava Pestov
b0d5fffd49
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-28 05:22:05 -05:00
Slava Pestov
99bf9fadfb
Performance improvements to make struct-arrays benchmark faster
...
- improved optimization of ##unbox-any-c-ptr on ##box-displaced-alien; convert it to ##unbox-c-ptr where possible using class info stored in the ##bda instruction
- make fcos, fsin, etc inline again; everything in math.libm inline again, except for fsqrt which is an intrinsic
- convert min and max on floats to float-min and float-max
- make min and max not inline, so that the above can work
- struct-arrays: rice a bit so that more fixnums come up
2009-08-28 05:21:16 -05:00
Joe Groff
d155b44d51
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-27 21:51:15 -05:00
Joe Groff
64b59dcf1e
deprecate C-STRUCT:, C-UNION:, and old-school struct accessors
2009-08-27 21:51:08 -05:00
Slava Pestov
418e3ca126
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-27 21:49:47 -05:00
Slava Pestov
55b5b63b63
alien: move code for supporting CONSTANT: foo 123 { "int" foo } C types into one place instead of the old scattershot approach
2009-08-27 21:49:25 -05:00
Joe Groff
5cd24e5002
support { type dimension } c-type syntax in STRUCT: definitions
2009-08-27 21:39:43 -05:00
Joe Groff
3859579c72
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-27 21:17:17 -05:00
Joe Groff
a74a0151c3
return YES from cocoa app delegate's applicationShouldHandleReopen: method. this allows app-icon-minimized windows on snow leopard to automatically restore when the dock icon is clicked
2009-08-27 21:16:41 -05:00
Doug Coleman
1df4ec0d83
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-27 20:36:19 -05:00
Doug Coleman
850475c2ab
newstructify PIXELFORMAT
2009-08-27 20:35:37 -05:00
Slava Pestov
41f65c45dc
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-27 20:30:08 -05:00
Slava Pestov
36b04676ae
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-27 20:30:15 -05:00
Slava Pestov
d4986fba10
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-27 20:29:28 -05:00
Slava Pestov
57bafa6860
tools.deploy: remove malloc debugging better, and don't set next-method word prop for methods that don't call-next-method
2009-08-27 20:29:16 -05:00
Slava Pestov
dc951c4ad1
tools.deploy.test: give PowerPC an extra 100kb
2009-08-27 20:27:35 -05:00
Doug Coleman
c09b07baa3
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-27 19:53:46 -05:00
Joe Groff
8e85b5ef96
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-27 19:23:20 -05:00
Joe Groff
ee8c48bbb8
ui.backend.cocoa.views: yield in drawRect: impl so that windows will redraw while being resized on snow leopard
2009-08-27 19:21:38 -05:00
Slava Pestov
5f33f7306f
compiler.tree.propagation.transforms: don't fail to compile if 'at' called on something that's not an assoc
2009-08-27 18:57:56 -05:00
Doug Coleman
49af91cfd0
spacing
2009-08-27 11:43:19 -05:00
Doug Coleman
37b661560e
use constant
2009-08-27 11:24:26 -05:00
sheeple
8970cbc961
cpu.ppc: fix ##box-displaced-alien
2009-08-27 04:43:45 -05:00
Slava Pestov
c9cba1cc00
compiler.cfg.instructions: forgot that ##box-displaced-alien needs a GC check; fixes segfault in benchmark.mandel
2009-08-27 04:09:35 -05:00
Slava Pestov
a9de542550
A few inline declarations
2009-08-27 04:09:12 -05:00
Slava Pestov
881677752f
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-27 00:06:30 -05:00
Slava Pestov
9caf3f9248
compiler: new inline intrinsic for <displaced-alien> where the inputs have known types; value numbering now eliminates unnecessary allocation of displaced aliens if the result is immediately unboxed again
2009-08-27 00:06:19 -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
46b124c056
require struct-arrays after alien.structs is loaded
2009-08-26 22:24:55 -05:00
Joe Groff
a9683e80c4
test that array slots in structs optimize down
2009-08-26 21:50:12 -05:00
Joe Groff
aeee614215
inline sequence methods on direct-arrays
2009-08-26 21:49:45 -05:00
Joe Groff
1ec0d1290a
test that struct-arrays and struct construction optimize down
2009-08-26 21:38:00 -05:00
Joe Groff
f28b6ccf68
make struct-prototype foldable so that <struct> compiles efficiently
2009-08-26 21:27:12 -05:00
Joe Groff
629e8bc89b
add a partial eval for memory>struct so that it compiles efficiently when the struct class is known
2009-08-26 21:18:19 -05:00
Joe Groff
d5bc08cdea
more inlines on struct-arrays to make the optimizing go down smoother
2009-08-26 19:56:22 -05:00
Joe Groff
8dbd25b6cd
fix struct-array of struct class; inline memory>struct so the compiler can optimize a little better
2009-08-26 19:20:20 -05:00
Joe Groff
48c47740c6
trying to memory>struct a non-struct class is feptastic
2009-08-26 19:09:38 -05:00
Joe Groff
5a3ee347aa
prettyprint struct-arrays
2009-08-26 18:22:51 -05:00
Joe Groff
f9d989b1ae
literal syntax for struct-arrays
2009-08-26 18:09:02 -05:00
Joe Groff
3bb895dcdf
bitwise equal? for struct objects
2009-08-26 18:05:38 -05:00
Joe Groff
690c6b01bc
use struct class in struct-arrays test
2009-08-26 17:38:33 -05:00
Joe Groff
e9a0c96563
box elements of struct-arrays when a struct class is used as the element type
2009-08-26 17:19:30 -05:00
Joe Groff
1bab289258
move classes.struct from extra to basis
2009-08-26 15:55:01 -05:00
Joe Groff
27164bdbee
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-26 14:59:18 -05:00
Joe Groff
a49f50c24a
core-text: always create at least a 1x1 bitmap context. snow leopard refuses to create 0x0 contexts
2009-08-26 14:58:15 -05:00
Doug Coleman
f6e4db899a
remove debug, fix bootstrap
2009-08-26 14:45:02 -05:00
Doug Coleman
913c0fa597
support loading images from streams, add load-http-image
2009-08-26 14:27:01 -05:00
Joe Groff
efca30ced7
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-26 14:07:33 -05:00
Doug Coleman
c700447192
support seeking on limited streams
2009-08-26 13:48:41 -05:00
Joe Groff
ea9aff148f
store struct class in struct-array
2009-08-26 13:13:19 -05:00
Doug Coleman
c6a59da11e
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-26 11:02:58 -05:00
Doug Coleman
546367b88a
use structs
2009-08-26 11:01:39 -05:00
Doug Coleman
270cbdc3c5
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-26 09:40:49 -05:00
Joe Groff
c908bd3868
windows.ole32 guid functions don't need to box the byte-arrays themselves anymore
2009-08-26 09:28:10 -05:00
Doug Coleman
be57edbff2
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-26 09:15:33 -05:00
Slava Pestov
40b522c9d0
compiler.cfg.linear-scan: fix unit tests for new fake-representations
2009-08-26 08:58:00 -05:00
Slava Pestov
45e34a1435
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-26 07:17:44 -05:00
Slava Pestov
02ec791ab7
compiler: only run float test in low-level-ir if float intrinsics enabled; fixes SIGILL on non-sse2 x86 machines
2009-08-26 06:58:47 -05:00
Joe Groff
b6c7f05cae
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-25 23:50:38 -05:00
Joe Groff
5d574995e1
fix directory-entries so we can bootstrap again
2009-08-25 23:50:27 -05:00
Slava Pestov
0a3612686a
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-25 23:44:29 -05:00
Slava Pestov
d5fb53d417
compiler.cfg.debugger: fix fake-representations so that low-level-ir tests can pass on x86
2009-08-25 23:44:01 -05:00
Joe Groff
c81012bf92
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-25 23:22:43 -05:00
Slava Pestov
4fe0257169
cpu.x86: use SQRTSD instruction for math.libm:fsqrt word
2009-08-25 23:22:15 -05:00
Slava Pestov
6093ca03f1
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-25 22:37:28 -05:00
Slava Pestov
e44b2eb875
cpu.ppc.assembler: LOAD32 assembler macro was busted
2009-08-25 22:37:10 -05:00
Joe Groff
a56dcd7307
box array c-types into direct-arrays
2009-08-25 21:36:25 -05:00
Joe Groff
938ab5e748
no really, support <c-type-array> of structs using struct-arrays
2009-08-25 20:57:23 -05:00
Joe Groff
8a7c3fbd6f
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-25 20:43:51 -05:00
Joe Groff
db57757871
support <c-type-array> of structs using struct-arrays
2009-08-25 20:43:48 -05:00
Joe Groff
2a6200a91d
support <c-type-array> on complex ffi types
2009-08-25 19:58:04 -05:00
sheeple
2f789f735d
basis/compiler/tests/low-level-ir: add ##copy double-float-rep test
2009-08-25 19:41:17 -05:00
Slava Pestov
ece198bbfb
Merge branch 'master' of git://factorcode.org/git/factor
2009-08-25 19:39:24 -05:00
Slava Pestov
9805dde418
basis/cpu: eliminate some usages of rot
2009-08-25 19:38:48 -05:00
Slava Pestov
e9818be8ae
cpu.ppc.assembler: fix FMR and FMR. opcodes
2009-08-25 19:33:35 -05:00
Joe Groff
a5585f80d8
specialized-arrays.direct: define byte-length on direct arrays
2009-08-25 18:54:15 -05:00
Joe Groff
8ec44ce486
docs for require-c-type-arrays, <c-type-array>, <c-type-direct-array>
2009-08-25 18:51:56 -05:00
Joe Groff
719f3b0b33
throw a better error if <c-type*-array> is called when specialized array vocab isn't loaded. fix <c-type-direct-array>
2009-08-25 18:24:49 -05:00
Doug Coleman
3991e30a39
more structs
2009-08-25 18:19:34 -05:00
Joe Groff
a9b9ca01f8
associate specialized-arrays vocabs with c-types; add words for requiring vocabs and constructing arrays by C type
2009-08-25 17:56:01 -05:00
Doug Coleman
ca0452c9e2
use structs in process launcher
2009-08-25 17:46:07 -05:00
Doug Coleman
8341c22cca
less aggressive open-file for file-times, use FILETIME struct now
2009-08-25 17:34:06 -05:00
Doug Coleman
198c340ed5
use structs in a few places in windows backend
2009-08-25 17:23:23 -05:00
Doug Coleman
96120dc8e5
update new structs again
2009-08-25 16:31:58 -05:00
Joe Groff
8baae18cdc
add an X-sequence mixin class for each specialized array type to span X-array, X-vector, and direct-X-array
2009-08-25 15:58:18 -05:00
Doug Coleman
3fa6500cd2
update compiler.tests.alien to joe's latest changes
2009-08-25 12:00:06 -05:00
Doug Coleman
3d05dd1abf
use new structs wherever possible in compiler tests
2009-08-25 11:59:33 -04:00