get compiler tests loading
parent
6dc6886bd9
commit
01d2ef415a
|
@ -126,7 +126,7 @@ M: struct-c-type c-type ;
|
||||||
M: struct-c-type c-type-stack-align? drop f ;
|
M: struct-c-type c-type-stack-align? drop f ;
|
||||||
|
|
||||||
: if-value-struct ( ctype true false -- )
|
: if-value-struct ( ctype true false -- )
|
||||||
[ dup value-struct? ] 2dip '[ drop "void*" @ ] if ; inline
|
[ dup value-struct? ] 2dip '[ drop void* @ ] if ; inline
|
||||||
|
|
||||||
M: struct-c-type unbox-parameter
|
M: struct-c-type unbox-parameter
|
||||||
[ %unbox-large-struct ] [ unbox-parameter ] if-value-struct ;
|
[ %unbox-large-struct ] [ unbox-parameter ] if-value-struct ;
|
||||||
|
|
|
@ -5,6 +5,7 @@ io.streams.string kernel math memory namespaces
|
||||||
namespaces.private parser quotations sequences
|
namespaces.private parser quotations sequences
|
||||||
specialized-arrays stack-checker stack-checker.errors
|
specialized-arrays stack-checker stack-checker.errors
|
||||||
system threads tools.test words ;
|
system threads tools.test words ;
|
||||||
|
FROM: alien.c-types => float short ;
|
||||||
SPECIALIZED-ARRAY: float
|
SPECIALIZED-ARRAY: float
|
||||||
SPECIALIZED-ARRAY: char
|
SPECIALIZED-ARRAY: char
|
||||||
IN: compiler.tests.alien
|
IN: compiler.tests.alien
|
||||||
|
|
|
@ -4,6 +4,7 @@ namespaces.private slots.private sequences.private byte-arrays alien
|
||||||
alien.accessors layouts words definitions compiler.units io
|
alien.accessors layouts words definitions compiler.units io
|
||||||
combinators vectors grouping make alien.c-types combinators.short-circuit
|
combinators vectors grouping make alien.c-types combinators.short-circuit
|
||||||
math.order math.libm math.parser ;
|
math.order math.libm math.parser ;
|
||||||
|
FROM: math => float ;
|
||||||
QUALIFIED: namespaces.private
|
QUALIFIED: namespaces.private
|
||||||
IN: compiler.tests.codegen
|
IN: compiler.tests.codegen
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ hashtables.private byte-arrays system random layouts vectors
|
||||||
sbufs strings.private slots.private alien math.order
|
sbufs strings.private slots.private alien math.order
|
||||||
alien.accessors alien.c-types alien.syntax alien.strings
|
alien.accessors alien.c-types alien.syntax alien.strings
|
||||||
namespaces libc io.encodings.ascii classes compiler ;
|
namespaces libc io.encodings.ascii classes compiler ;
|
||||||
|
FROM: math => float ;
|
||||||
IN: compiler.tests.intrinsics
|
IN: compiler.tests.intrinsics
|
||||||
|
|
||||||
! Make sure that intrinsic ops compile to correct code.
|
! Make sure that intrinsic ops compile to correct code.
|
||||||
|
|
|
@ -16,6 +16,7 @@ compiler.tree.propagation
|
||||||
compiler.tree.propagation.info
|
compiler.tree.propagation.info
|
||||||
compiler.tree.checker
|
compiler.tree.checker
|
||||||
compiler.tree.debugger ;
|
compiler.tree.debugger ;
|
||||||
|
FROM: math => float ;
|
||||||
IN: compiler.tree.cleanup.tests
|
IN: compiler.tree.cleanup.tests
|
||||||
|
|
||||||
[ t ] [ [ [ 1 ] [ 2 ] if ] cleaned-up-tree [ #if? ] contains-node? ] unit-test
|
[ t ] [ [ [ 1 ] [ 2 ] if ] cleaned-up-tree [ #if? ] contains-node? ] unit-test
|
||||||
|
|
|
@ -10,6 +10,7 @@ compiler.tree.debugger compiler.tree.checker
|
||||||
slots.private words hashtables classes assocs locals
|
slots.private words hashtables classes assocs locals
|
||||||
specialized-arrays system sorting math.libm
|
specialized-arrays system sorting math.libm
|
||||||
math.intervals quotations effects alien ;
|
math.intervals quotations effects alien ;
|
||||||
|
FROM: math => float ;
|
||||||
SPECIALIZED-ARRAY: double
|
SPECIALIZED-ARRAY: double
|
||||||
IN: compiler.tree.propagation.tests
|
IN: compiler.tree.propagation.tests
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ stack-params \ (stack-value) c-type (>>rep) >>
|
||||||
: flatten-small-struct ( c-type -- seq )
|
: flatten-small-struct ( c-type -- seq )
|
||||||
struct-types&offset split-struct [
|
struct-types&offset split-struct [
|
||||||
[ c-type c-type-rep reg-class-of ] map
|
[ c-type c-type-rep reg-class-of ] map
|
||||||
int-regs swap member? "void*" "double" ? c-type
|
int-regs swap member? void* double ? c-type
|
||||||
] map ;
|
] map ;
|
||||||
|
|
||||||
: flatten-large-struct ( c-type -- seq )
|
: flatten-large-struct ( c-type -- seq )
|
||||||
|
|
Loading…
Reference in New Issue