aboutsummaryrefslogtreecommitdiff
path: root/emlink.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-25 11:54:56 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-07-03 15:31:03 -0700
commit9663d80beb46c11df527935c4507db87aa34dab7 (patch)
treeb19108554ce89d6753e2d116116ae287c78f5192 /emlink.py
parentcdea2d3385bcb761f9bab982196d5e499858eaf1 (diff)
cleanup
Diffstat (limited to 'emlink.py')
-rw-r--r--emlink.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/emlink.py b/emlink.py
index e54f8c5e..8e7cbb9c 100644
--- a/emlink.py
+++ b/emlink.py
@@ -55,11 +55,12 @@ class AsmModule():
def relocate_into(self, main):
# heap initializer TODO
+ # global initializers TODO
+
# imports
main_imports = set(main.imports)
new_imports = [imp for imp in self.imports if imp not in main_imports]
- print 'new imports', new_imports
- #main.imports_js += '\n'.join(new_imports)
+ main.imports_js += '\n'.join(new_imports)
# Find function name replacements TODO: do not rename duplicate names with duplicate contents, just merge them
main_funcs = set(main.funcs)
@@ -69,7 +70,6 @@ class AsmModule():
while rep in main_funcs:
rep += '_'
replacements[func] = rep
- #print replacements
temp = shared.Building.js_optimizer(self.filename, ['asm', 'relocate'], extra_info={ 'replacements': replacements })
relocated_funcs = AsmModule(temp)