style fixes - indenting slots and word bodies
parent
3177e7851c
commit
720edcbd3b
|
@ -81,9 +81,9 @@ M: insn insn. tuple>array but-last [
|
||||||
: cfgs. ( cfgs -- )
|
: cfgs. ( cfgs -- )
|
||||||
[ nl ] [ cfg. ] interleave ;
|
[ nl ] [ cfg. ] interleave ;
|
||||||
|
|
||||||
: ssa. ( quot -- ) test-ssa cfgs. ;
|
: ssa. ( quot/word -- ) test-ssa cfgs. ;
|
||||||
: flat. ( quot -- ) test-flat cfgs. ;
|
: flat. ( quot/word -- ) test-flat cfgs. ;
|
||||||
: regs. ( quot -- ) test-regs cfgs. ;
|
: regs. ( quot/word -- ) test-regs cfgs. ;
|
||||||
|
|
||||||
! Prettyprinting
|
! Prettyprinting
|
||||||
: pprint-loc ( loc word -- ) <block pprint-word n>> pprint* block> ;
|
: pprint-loc ( loc word -- ) <block pprint-word n>> pprint* block> ;
|
||||||
|
|
|
@ -29,11 +29,16 @@ CONSTANT: deck-bits 18
|
||||||
: segment-start-offset ( -- n ) 0 bootstrap-cells ; inline
|
: segment-start-offset ( -- n ) 0 bootstrap-cells ; inline
|
||||||
: segment-end-offset ( -- n ) 2 bootstrap-cells ; inline
|
: segment-end-offset ( -- n ) 2 bootstrap-cells ; inline
|
||||||
|
|
||||||
! Offsets in vm struct
|
! Offsets in vm struct. Should be kept in sync with:
|
||||||
: vm-context-offset ( -- n ) 0 bootstrap-cells ; inline
|
! vm/vm.hpp
|
||||||
: vm-spare-context-offset ( -- n ) 1 bootstrap-cells ; inline
|
: vm-context-offset ( -- n )
|
||||||
: vm-signal-handler-addr-offset ( -- n ) 8 bootstrap-cells ; inline
|
0 bootstrap-cells ; inline
|
||||||
: vm-fault-flag-offset ( -- n ) 9 bootstrap-cells ; inline
|
: vm-spare-context-offset ( -- n )
|
||||||
|
1 bootstrap-cells ; inline
|
||||||
|
: vm-signal-handler-addr-offset ( -- n )
|
||||||
|
8 bootstrap-cells ; inline
|
||||||
|
: vm-fault-flag-offset ( -- n )
|
||||||
|
9 bootstrap-cells ; inline
|
||||||
: vm-special-object-offset ( n -- offset )
|
: vm-special-object-offset ( n -- offset )
|
||||||
bootstrap-cells 10 bootstrap-cells + ;
|
bootstrap-cells 10 bootstrap-cells + ;
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,19 @@ STRUCT: zone
|
||||||
{ end cell_t }
|
{ end cell_t }
|
||||||
{ size cell_t } ;
|
{ size cell_t } ;
|
||||||
|
|
||||||
|
! dispatch-statistics should be kept in sync with:
|
||||||
|
! vm/dispatch.hpp
|
||||||
|
STRUCT: dispatch-statistics
|
||||||
|
{ megamorphic-cache-hits cell_t }
|
||||||
|
{ megamorphic-cache-misses cell_t }
|
||||||
|
|
||||||
|
{ cold-call-to-ic-transitions cell_t }
|
||||||
|
{ ic-to-pic-transitions cell_t }
|
||||||
|
{ pic-to-mega-transitions cell_t }
|
||||||
|
|
||||||
|
{ pic-tag-count cell_t }
|
||||||
|
{ pic-tuple-count cell_t } ;
|
||||||
|
|
||||||
STRUCT: vm
|
STRUCT: vm
|
||||||
{ ctx context* }
|
{ ctx context* }
|
||||||
{ spare-ctx context* }
|
{ spare-ctx context* }
|
||||||
|
@ -86,19 +99,6 @@ STRUCT: gc-event
|
||||||
{ compaction-time cell_t }
|
{ compaction-time cell_t }
|
||||||
{ temp-time ulonglong } ;
|
{ temp-time ulonglong } ;
|
||||||
|
|
||||||
! dispatch-statistics should be kept in sync with:
|
|
||||||
! vm/dispatch.hpp
|
|
||||||
STRUCT: dispatch-statistics
|
|
||||||
{ megamorphic-cache-hits cell_t }
|
|
||||||
{ megamorphic-cache-misses cell_t }
|
|
||||||
|
|
||||||
{ cold-call-to-ic-transitions cell_t }
|
|
||||||
{ ic-to-pic-transitions cell_t }
|
|
||||||
{ pic-to-mega-transitions cell_t }
|
|
||||||
|
|
||||||
{ pic-tag-count cell_t }
|
|
||||||
{ pic-tuple-count cell_t } ;
|
|
||||||
|
|
||||||
! gc-info should be kept in sync with:
|
! gc-info should be kept in sync with:
|
||||||
! vm/gc_info.hpp
|
! vm/gc_info.hpp
|
||||||
STRUCT: gc-info
|
STRUCT: gc-info
|
||||||
|
|
Loading…
Reference in New Issue