From 6939753ca04416082720a0e773a3491686f25a4d Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Mon, 13 Jan 2020 16:41:06 -0500 Subject: [PATCH] TAMER: POC: Output xmle This is a working proof-of-concept that will be finalized in future commits. --- .rev-xmle | 2 +- build-aux/Makefile.am | 3 +- src/current/compiler/js.xsl | 32 ++-- src/current/compiler/linker.xsl | 29 --- src/current/standalone.xsl | 22 ++- tamer/src/ir/asg/object.rs | 17 ++ tamer/src/ir/legacyir.rs | 28 +++ tamer/src/ld/poc.rs | 310 ++++++++++++++++++++++++++++++-- tamer/src/obj/xmlo/reader.rs | 233 +++++++++++++++++++++++- 9 files changed, 595 insertions(+), 81 deletions(-) diff --git a/.rev-xmle b/.rev-xmle index d895b0af..791ebc98 100644 --- a/.rev-xmle +++ b/.rev-xmle @@ -1,4 +1,4 @@ # This number is incremented for every linker change to force rebuilding # of xmle files. -0 +1 diff --git a/build-aux/Makefile.am b/build-aux/Makefile.am index 9c955715..e8ab2664 100644 --- a/build-aux/Makefile.am +++ b/build-aux/Makefile.am @@ -132,7 +132,8 @@ standalones: $(dest_standalone) strip: $(dest_standalone_strip) ui/package.strip.js %.xmle: %.xmlo $(path_tame)/.rev-xmle $(TAME_TS) - $(TAME) link $< $@ + @echo "WARNING: using WIP proof-of-concept linker!" + set -o pipefail; $(path_tame)/tamer/target/release/tameld $< | awk '/^ $@ %.js: %.xmle $(TAME_TS) $(TAME) standalone $< $@ diff --git a/src/current/compiler/js.xsl b/src/current/compiler/js.xsl index cba86787..a756db1a 100644 --- a/src/current/compiler/js.xsl +++ b/src/current/compiler/js.xsl @@ -62,7 +62,7 @@ @return compiled JS --> -