still trying to optimizing module variable lookup

This commit is contained in:
Danny Yoo 2012-02-28 23:33:03 -05:00
parent d3ab24d6c8
commit fc521f6f7b
3 changed files with 4 additions and 4 deletions

View File

@ -262,7 +262,7 @@
(define (assemble-prefix-reference a-ref)
(cond
[(EnvPrefixReference-modvar? a-ref)
(format "M.e[M.e.length-~a][~a].prefix[M.e[M.e.length-~a][~a].offset]"
(format "M.e[M.e.length-~a][~a][0][M.e[M.e.length-~a][~a][1]]"
(add1 (EnvPrefixReference-depth a-ref))
(EnvPrefixReference-pos a-ref)
(add1 (EnvPrefixReference-depth a-ref))

View File

@ -57,11 +57,11 @@
(symbol->string
(ModuleLocator-name
(ModuleVariable-module-name n))))
(format "{moduleName:~s,name:~s,prefix:M.modules[~s].prefix,offset:M.modules[~s].getPrefixOffset(~s)}"
(format "[M.modules[~s].prefix,M.modules[~s].getPrefixOffset(~s),{moduleName:~s,name:~s}]"
module-name
module-name
(symbol->string (ModuleVariable-name n))
module-name
module-name
(symbol->string (ModuleVariable-name n)))])]))
names)
",")

View File

@ -7,4 +7,4 @@
(provide version)
(: version String)
(define version "1.194")
(define version "1.195")