From b8e4ab88e773ca79bd0468461f0a0bae581496be Mon Sep 17 00:00:00 2001 From: Drahflow Date: Wed, 27 May 2015 14:49:26 +0200 Subject: Mark and sweep cost into constant --- compiler/elymasAsmLib.ey | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/elymasAsmLib.ey b/compiler/elymasAsmLib.ey index 5625df7..fb6bd76 100644 --- a/compiler/elymasAsmLib.ey +++ b/compiler/elymasAsmLib.ey @@ -96,6 +96,7 @@ # 4096 16 mul 8 mul 64 mul ==ALLOCCHUNKSIZE # FIXME: there is still some wonkyness with freezing 32 ==FREELISTCOUNT + 4096 ==MARKANDSWEEPCOST < # current end of heap memory (grows upwards) @@ -372,10 +373,10 @@ /markAndSweep :callqLbl32 markAndSweepCosts /rax :movqImmReg - 4096 /rdx :movqImmReg + MARKANDSWEEPCOST /rdx :movqImmReg /rdx /rax :addqRegMem - 5000 /rdx :movqImmReg + MARKANDSWEEPCOST 16 add /rdx :movqImmReg /rdx /rax :cmpqRegMem /allocateFromSystemAtLeastOnce :jaeLbl8 -- cgit v1.2.3