Skip to content

Commit

Permalink
compiler.cfg.intrinsics: fix doc and make tests work on 32bit
Browse files Browse the repository at this point in the history
  • Loading branch information
bjourne committed Dec 1, 2015
1 parent 43f2592 commit a35895f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions basis/compiler/cfg/intrinsics/slots/slots-docs.factor
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
USING: classes classes.builtin compiler.tree
compiler.tree.propagation.info help.markup help.syntax layouts math
slots.private ;
USING: classes classes.builtin compiler.cfg.instructions compiler.tree
compiler.tree.propagation.info help.markup help.syntax kernel layouts
math slots.private ;
IN: compiler.cfg.intrinsics.slots

HELP: class-tag
Expand All @@ -15,13 +15,13 @@ HELP: class-tag
} ;

HELP: immediate-slot-offset?
{ $values { "value-info" value-info-state } { "?" "true or false" } }
{ $values { "object" object } { "?" "true or false" } }
{ $description
{ $link t } " if the value info is a literal " { $link fixnum } " that is small enough to fit into a machine register." }
{ $link t } " if the object is a " { $link fixnum } " that is small enough to fit into a machine register. It is used to determine whether immediate versions of the instructions " { $link ##set-slot } " and " { $link ##set-slot-imm } " can be emitted." }
{ $examples
{ $example
"USING: compiler.cfg.intrinsics.slots compiler.tree.propagation.info prettyprint ;"
"33 <literal-info> immediate-slot-offset? ."
"33 immediate-slot-offset? ."
"t"
}
} ;
Expand Down
8 changes: 4 additions & 4 deletions basis/compiler/cfg/intrinsics/slots/slots-tests.factor
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
USING: accessors arrays compiler.cfg compiler.cfg.instructions
compiler.cfg.intrinsics.slots compiler.test compiler.tree
compiler.tree.propagation.info kernel make math math.intervals
namespaces sequences slots.private tools.test ;
compiler.tree.propagation.info kernel layouts literals make math
math.intervals namespaces sequences slots.private tools.test ;
IN: compiler.cfg.intrinsics.slots.tests

: call-node-1 ( -- node )
Expand Down Expand Up @@ -121,13 +121,13 @@ IN: compiler.cfg.intrinsics.slots.tests
{ src 1 }
{ obj 2 }
{ slot 3 }
{ scale 3 }
{ scale $[ cell log2 ] }
{ tag 2 }
}
T{ ##write-barrier
{ src 2 }
{ slot 3 }
{ scale 3 }
{ scale $[ cell log2 ] }
{ tag 2 }
{ temp1 4 }
{ temp2 5 }
Expand Down

0 comments on commit a35895f

Please sign in to comment.