diff options
| author | Drahflow <drahflow@gmx.de> | 2015-05-27 14:49:26 +0200 |
|---|---|---|
| committer | Drahflow <drahflow@gmx.de> | 2015-05-27 14:49:26 +0200 |
| commit | b8e4ab88e773ca79bd0468461f0a0bae581496be (patch) | |
| tree | 0443e6ef64f905787bffa1a9240bb16cea6042e9 /compiler/elymasAsmLib.ey | |
| parent | 614575d024fac518357e635723b13cd8b2709b35 (diff) | |
Mark and sweep cost into constant
Diffstat (limited to 'compiler/elymasAsmLib.ey')
| -rw-r--r-- | compiler/elymasAsmLib.ey | 5 |
1 files 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 |
