diff options
author | Eduardo Julian | 2019-05-01 22:33:17 -0400 |
---|---|---|
committer | Eduardo Julian | 2019-05-01 22:33:17 -0400 |
commit | b52409599fc5e93ad20e1aa61e44b75f5d6d2789 (patch) | |
tree | db39a8208b316c0e47d9d0fffce12108e2e7b82a /new-luxc/source/luxc/lang/translation/jvm/case.lux | |
parent | 868c300ada4095e0e32ad4495b61aed02b23bfc0 (diff) |
Now inlining the pattern-matching POP and PEEK operations.
Diffstat (limited to '')
-rw-r--r-- | new-luxc/source/luxc/lang/translation/jvm/case.lux | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/new-luxc/source/luxc/lang/translation/jvm/case.lux b/new-luxc/source/luxc/lang/translation/jvm/case.lux index 3c50f6124..63d440c72 100644 --- a/new-luxc/source/luxc/lang/translation/jvm/case.lux +++ b/new-luxc/source/luxc/lang/translation/jvm/case.lux @@ -36,21 +36,7 @@ (def: peekI Inst (|>> _.DUP - (_.INVOKESTATIC //.runtime-class - "pm_peek" - ($t.method (list runtime.$Stack) - (#.Some $Object) - (list)) - #0))) - -(def: popI - Inst - (|>> (_.INVOKESTATIC //.runtime-class - "pm_pop" - ($t.method (list runtime.$Stack) - (#.Some runtime.$Stack) - (list)) - #0))) + runtime.peekI)) (def: pushI Inst @@ -65,7 +51,7 @@ (-> Phase Nat Label Label Path (Operation Inst)) (.case path #synthesis.Pop - (operation@wrap popI) + (operation@wrap runtime.popI) (#synthesis.Bind register) (operation@wrap (|>> peekI |