aboutsummaryrefslogtreecommitdiff
path: root/compiler/elymasAsmLib.ey
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/elymasAsmLib.ey')
-rw-r--r--compiler/elymasAsmLib.ey5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/elymasAsmLib.ey b/compiler/elymasAsmLib.ey
index 1c04d4e..a2eba57 100644
--- a/compiler/elymasAsmLib.ey
+++ b/compiler/elymasAsmLib.ey
@@ -633,13 +633,18 @@
/rdi /ecx :movlMemReg
8 /rdi :addqImm8Reg
16 /rcx :subqImm8Reg
+
@markFunctionCodeLoop
+ /rdi /r11 :cmpqMemReg
+ /codePartNotObject :jbeLbl32 # pointing above the heap
/rdi :pushqReg
/rcx :pushqReg
/rdi /rdi :movqMemReg
/markObject :callqLbl32
/rcx :popqReg
/rdi :popqReg
+
+ @codePartNotObject
/rdi :incqReg
/markFunctionCodeLoop :loopLbl8
:retn