aboutsummaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'compiler')
-rw-r--r--compiler/elymasGlobal.ey17
1 files changed, 17 insertions, 0 deletions
diff --git a/compiler/elymasGlobal.ey b/compiler/elymasGlobal.ey
index 4435518..52f9aae 100644
--- a/compiler/elymasGlobal.ey
+++ b/compiler/elymasGlobal.ey
@@ -1158,6 +1158,23 @@
:retn
] /ey> defv
+ # switch parent of current scope to stack top object
+ # push current scope onto stack
+ # switch current scope to original parent
+ # 0 -> new parent
+ # 0 <- scope just exited
+ [
+ /rbx :popqReg
+ /rdx :popqReg
+ 16 /r14 /rax :movqMemDisp8Reg
+ /rdx 16 /r14 :movqRegMemDisp8
+ /r14 :pushqReg
+ /rax /r14 :movqRegReg
+ /rbx :pushqReg
+
+ :retn
+ ] /ey>' defv
+
# push current scope onto stack
# 0 <- current scope
[