toplevel lookup should be cheaper

This commit is contained in:
Danny Yoo 2012-02-27 18:34:44 -05:00
parent 8dae95902c
commit 9aa1ac12d8
3 changed files with 4 additions and 5 deletions

View File

@ -171,9 +171,9 @@
(for/list ([modprovide (get-provided-names bytecode)]
[i (in-naturals)])
(string-append
(format "modrec.getNamespace().set(~s,exports[~s]);\n"
(symbol->string (ModuleProvide-internal-name modprovide))
(symbol->string (ModuleProvide-external-name modprovide)))
; (format "modrec.getNamespace().set(~s,exports[~s]);\n"
; (symbol->string (ModuleProvide-internal-name modprovide))
; (symbol->string (ModuleProvide-external-name modprovide)))
(format "modrec.prefix[~a]=exports[~s];\n"
i
(symbol->string (ModuleProvide-external-name modprovide)))))))

View File

@ -88,7 +88,6 @@
};
ModuleRecord.prototype.finalizeModuleInvokation = function () {
var i, len = this.prefix.names.length;
this.namespace.refreshPrefixMapping();
};

View File

@ -7,4 +7,4 @@
(provide version)
(: version String)
(define version "1.188")
(define version "1.189")