aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source
diff options
context:
space:
mode:
authorEduardo Julian2019-05-01 22:50:25 -0400
committerEduardo Julian2019-05-01 22:50:25 -0400
commit6e14d46da33a9aa5f5627475ac52b84101b234d6 (patch)
treed9c2cdf9d2a421302ab3412724519295898cc35e /new-luxc/source
parentb52409599fc5e93ad20e1aa61e44b75f5d6d2789 (diff)
Changed how the pattern-matching stack is built, in the hopes of optimizing peeks.
Diffstat (limited to '')
-rw-r--r--new-luxc/source/luxc/lang/translation/jvm/runtime.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/new-luxc/source/luxc/lang/translation/jvm/runtime.lux b/new-luxc/source/luxc/lang/translation/jvm/runtime.lux
index 175a60e80..26d98771b 100644
--- a/new-luxc/source/luxc/lang/translation/jvm/runtime.lux
+++ b/new-luxc/source/luxc/lang/translation/jvm/runtime.lux
@@ -133,12 +133,12 @@
))
(def: #export popI
- (|>> (_.int +0)
+ (|>> (_.int +1)
_.AALOAD
(_.CHECKCAST ($t.descriptor $Stack))))
(def: #export peekI
- (|>> (_.int +1)
+ (|>> (_.int +0)
_.AALOAD))
(def: pm-methods
@@ -172,11 +172,11 @@
(|>> (_.int +2)
(_.ANEWARRAY "java.lang.Object")
_.DUP
- (_.int +0)
+ (_.int +1)
(_.ALOAD 0)
_.AASTORE
_.DUP
- (_.int +1)
+ (_.int +0)
(_.ALOAD 1)
_.AASTORE
_.ARETURN))