From 6e14d46da33a9aa5f5627475ac52b84101b234d6 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Wed, 1 May 2019 22:50:25 -0400 Subject: Changed how the pattern-matching stack is built, in the hopes of optimizing peeks. --- new-luxc/source/luxc/lang/translation/jvm/runtime.lux | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'new-luxc/source') 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)) -- cgit v1.2.3