]> gitweb.factorcode.org Git - factor.git/commitdiff
Fixing test failures
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 11 Nov 2009 08:40:24 +0000 (02:40 -0600)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 11 Nov 2009 08:40:24 +0000 (02:40 -0600)
basis/compiler/cfg/cfg.factor
basis/compiler/tests/intrinsics.factor
core/io/pathnames/pathnames-docs.factor

index a595a87b3b781a6a720c857e221c79d07556ecc6..035cc63b1e3977a9ca643bea222d969d269a0408 100644 (file)
@@ -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
index b2159e9c095dd17e971140a71bad44eaec00db00..7fe5e2b60110e9ab2060093e3ad8d4d5106d29fb 100755 (executable)
@@ -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
index 07664ba3318eb933133c2c49fbf31c90b13dbb4e..8dacef6f8c5699f0277281a0312da233f104761b 100644 (file)
@@ -134,7 +134,7 @@ $nl
 "If a pathname begins with " { $snippet "vocab:" } ", then it will be searched for in all current vocabulary roots (see " { $link "add-vocab-roots" } ")." ;
 
 ARTICLE: "io.pathnames.presentations" "Pathname presentations"
-"Pathname presentations are objects that wrap a pathname string.  Clicking a pathname presentation in the UI brings up the file in one of the supported editors. See " { $link "editor" } " for more details."
+"Pathname presentations are objects that wrap a pathname string. Clicking a pathname presentation in the UI brings up the file in one of the supported editors. See " { $link "editor" } " for more details."
 { $subsections
     pathname
     <pathname>