factor/basis/vm/vm.factor

23 lines
483 B
Factor
Raw Normal View History

! Copyright (C) 2009 Phil Dawes.
! See http://factorcode.org/license.txt for BSD license.
USING: classes.struct alien.c-types alien.syntax ;
IN: vm
2009-08-20 15:20:35 -04:00
TYPEDEF: void* cell
TYPEDEF: void* context*
2009-08-20 15:20:35 -04:00
2009-09-23 20:42:00 -04:00
STRUCT: zone
{ start cell }
{ here cell }
{ size cell }
{ end cell } ;
2009-08-20 15:20:35 -04:00
2009-09-23 20:42:00 -04:00
STRUCT: vm
{ stack_chain context* }
{ nursery zone }
{ cards_offset cell }
{ decks_offset cell }
{ userenv cell[70] } ;
2009-09-23 20:42:00 -04:00
: vm-field-offset ( field -- offset ) vm offset-of ; inline