diff options
| author | Drahflow <drahflow@gmx.de> | 2015-06-19 16:04:50 +0200 |
|---|---|---|
| committer | Drahflow <drahflow@gmx.de> | 2015-06-19 16:04:50 +0200 |
| commit | e44813e6629e0cd8854397eb3b830db9dfcbcdab (patch) | |
| tree | 52e355992bebd9ed24470cbcc2742f218cb3f5cc | |
| parent | 350c441e9b6c1a5fc095263e7ddf8be9918c626c (diff) | |
Documented the , functions
| -rw-r--r-- | TODO | 1 | ||||
| -rw-r--r-- | compiler/elymasGlobal.ey | 6 | ||||
| -rw-r--r-- | doc/global.md | 30 |
3 files changed, 34 insertions, 3 deletions
@@ -1,3 +1,4 @@ +* rewrite [ ... ] conds when everything is inline * apply the trace extractor to non-tail situations * forward scope-cannot-escape information * inline trivial functions when optimizer generates ... /rax :movqImmReg /rax :callqReg sequence diff --git a/compiler/elymasGlobal.ey b/compiler/elymasGlobal.ey index b35aa7a..0a48385 100644 --- a/compiler/elymasGlobal.ey +++ b/compiler/elymasGlobal.ey @@ -1111,7 +1111,7 @@ :retn ]] /ey,-- defv - # move topmost position marker left/upwards and shift stack + # move topmost position marker left/downwards and shift stack [[ /rbx :popqReg /rsp /rsi :movqRegReg @@ -1130,7 +1130,7 @@ :retn ]] /ey--, defv - # access element left (higher up in stack) of topmost position marker + # access element left (below in stack) of topmost position marker [[ /rbx :popqReg /rsp /rdi :movqRegReg @@ -1143,7 +1143,7 @@ :retn ]] /ey_, defv - # access element right (lower in stack) of topmost position marker + # access element right (above in stack) of topmost position marker [[ /rbx :popqReg /rsp /rdi :movqRegReg diff --git a/doc/global.md b/doc/global.md index 8880d5d..fbc9009 100644 --- a/doc/global.md +++ b/doc/global.md @@ -909,3 +909,33 @@ Takes two integers. Returns the larger one. ----- Takes two integers. Returns the smaller one. + + +`,` +--- +Puts a position marker on the stack. + + +`,--` +----- +Deletes the topmost position marker within the stack and compacts the stack contents to cover the hole. + + +`--,` +----- +Deletes whatever is below the topmost position marker in the stack and compacts the stack contents to cover the hole. + + +`_,` +---- +Copies the stack element below the topmost position marker to the top of the stack. + + +`,_` +---- +Copies the stack element above the topmost position marker to the top of the stack. + + +`,---` +------ +Deletes all stack contents up to and including the topmost position marker. |
