diff options
author | Eduardo Julian | 2020-06-01 20:16:32 -0400 |
---|---|---|
committer | Eduardo Julian | 2020-06-01 20:16:32 -0400 |
commit | a6987ad82f107df49853e1601b73076d030d6fc8 (patch) | |
tree | b5562ec12fcee4a87b0c6ca4d485e7ac82ffbfec /lux-jvm/source/luxc/lang/translation/jvm/reference.lux | |
parent | 1546feb83e8e821ee8bbf3dea736a49a072bcd52 (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.lux | 7 |
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) |