Fixing test failures
							parent
							
								
									2afd7ce244
								
							
						
					
					
						commit
						41c17f0429
					
				| 
						 | 
				
			
			@ -4,6 +4,7 @@ USING: kernel math vectors arrays accessors namespaces ;
 | 
			
		|||
IN: compiler.cfg
 | 
			
		||||
 | 
			
		||||
TUPLE: basic-block < identity-tuple
 | 
			
		||||
id
 | 
			
		||||
number
 | 
			
		||||
{ instructions vector }
 | 
			
		||||
{ successors vector }
 | 
			
		||||
| 
						 | 
				
			
			@ -11,10 +12,13 @@ number
 | 
			
		|||
 | 
			
		||||
: <basic-block> ( -- bb )
 | 
			
		||||
    basic-block new
 | 
			
		||||
        \ basic-block counter >>id
 | 
			
		||||
        V{ } clone >>instructions
 | 
			
		||||
        V{ } clone >>successors
 | 
			
		||||
        V{ } clone >>predecessors ;
 | 
			
		||||
 | 
			
		||||
M: basic-block hashcode* nip id>> ;
 | 
			
		||||
 | 
			
		||||
TUPLE: cfg { entry basic-block } word label
 | 
			
		||||
spill-area-size reps
 | 
			
		||||
post-order linear-order
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -585,16 +585,16 @@ TUPLE: alien-accessor-regression { b byte-array } { i fixnum } ;
 | 
			
		|||
    swap [
 | 
			
		||||
        { tuple } declare 1 slot
 | 
			
		||||
    ] [
 | 
			
		||||
        0 slot
 | 
			
		||||
        1 slot
 | 
			
		||||
    ] if ;
 | 
			
		||||
 | 
			
		||||
[ t ] [ f B{ } mutable-value-bug-1 byte-array type-number = ] unit-test
 | 
			
		||||
[ 0 ] [ f { } mutable-value-bug-1 ] unit-test
 | 
			
		||||
 | 
			
		||||
: mutable-value-bug-2 ( a b -- c )
 | 
			
		||||
    swap [
 | 
			
		||||
        0 slot
 | 
			
		||||
        1 slot
 | 
			
		||||
    ] [
 | 
			
		||||
        { tuple } declare 1 slot
 | 
			
		||||
    ] if ;
 | 
			
		||||
 | 
			
		||||
[ t ] [ t B{ } mutable-value-bug-2 byte-array type-number = ] unit-test
 | 
			
		||||
[ 0 ] [ t { } mutable-value-bug-2 ] unit-test
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue