aboutsummaryrefslogtreecommitdiff
path: root/lux-jvm/source/luxc/lang/translation/jvm/reference.lux
diff options
context:
space:
mode:
authorEduardo Julian2020-06-01 20:16:32 -0400
committerEduardo Julian2020-06-01 20:16:32 -0400
commita6987ad82f107df49853e1601b73076d030d6fc8 (patch)
treeb5562ec12fcee4a87b0c6ca4d485e7ac82ffbfec /lux-jvm/source/luxc/lang/translation/jvm/reference.lux
parent1546feb83e8e821ee8bbf3dea736a49a072bcd52 (diff)
Implemented an optimization for getting fields/slots from records in the new compiler.
Diffstat (limited to '')
-rw-r--r--lux-jvm/source/luxc/lang/translation/jvm/reference.lux7
1 files changed, 4 insertions, 3 deletions
diff --git a/lux-jvm/source/luxc/lang/translation/jvm/reference.lux b/lux-jvm/source/luxc/lang/translation/jvm/reference.lux
index 6bcf4a2e5..61eac8dcc 100644
--- a/lux-jvm/source/luxc/lang/translation/jvm/reference.lux
+++ b/lux-jvm/source/luxc/lang/translation/jvm/reference.lux
@@ -10,7 +10,8 @@
["." type]]]
[tool
[compiler
- ["." reference (#+ Register Variable)]
+ [reference
+ ["." variable (#+ Register Variable)]]
["." phase ("operation@." monad)]
[meta
[archive (#+ Archive)]]
@@ -51,10 +52,10 @@
(def: #export (variable archive variable)
(-> Archive Variable (Operation Inst))
(case variable
- (#reference.Local variable)
+ (#variable.Local variable)
(operation@wrap (local variable))
- (#reference.Foreign variable)
+ (#variable.Foreign variable)
(foreign archive variable)))
(def: #export (constant archive name)