aboutsummaryrefslogtreecommitdiff
path: root/new-luxc/source/luxc/lang/translation/jvm/reference.lux
diff options
context:
space:
mode:
authorEduardo Julian2020-04-18 04:10:45 -0400
committerEduardo Julian2020-04-18 04:10:45 -0400
commit4955cfe6f248a039e95b404f26abfae04204740f (patch)
treec86f33b80a6fe944e4aff78641f91bb66103bd91 /new-luxc/source/luxc/lang/translation/jvm/reference.lux
parentae72864af3e95e46a042277873d38c3006361c79 (diff)
Generating module IDs in a similar way to artifact IDs.
Diffstat (limited to '')
-rw-r--r--new-luxc/source/luxc/lang/translation/jvm/reference.lux16
1 files changed, 8 insertions, 8 deletions
diff --git a/new-luxc/source/luxc/lang/translation/jvm/reference.lux b/new-luxc/source/luxc/lang/translation/jvm/reference.lux
index ff5d7a96c..4eafecec0 100644
--- a/new-luxc/source/luxc/lang/translation/jvm/reference.lux
+++ b/new-luxc/source/luxc/lang/translation/jvm/reference.lux
@@ -34,11 +34,11 @@
[partial-name "p"]
)
-(def: (foreign variable)
- (-> Register (Operation Inst))
+(def: (foreign archive variable)
+ (-> Archive Register (Operation Inst))
(do phase.monad
- [class-name (:: @ map //runtime.class-name
- generation.context)]
+ [class-name (:: @ map //.class-name
+ (generation.context archive))]
(wrap (|>> (_.ALOAD 0)
(_.GETFIELD (type.class class-name (list))
(|> variable .nat foreign-name)
@@ -48,18 +48,18 @@
(-> Register Inst)
(|>> _.ALOAD))
-(def: #export (variable variable)
- (-> Variable (Operation Inst))
+(def: #export (variable archive variable)
+ (-> Archive Variable (Operation Inst))
(case variable
(#reference.Local variable)
(operation@wrap (local variable))
(#reference.Foreign variable)
- (foreign variable)))
+ (foreign archive variable)))
(def: #export (constant archive name)
(-> Archive Name (Operation Inst))
(do phase.monad
- [class-name (:: @ map //runtime.class-name
+ [class-name (:: @ map //.class-name
(generation.remember archive name))]
(wrap (_.GETSTATIC (type.class class-name (list)) //.value-field //.$Value))))