aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-08 18:31:56 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-08 18:31:56 -0800
commite0fe8d85edff16483f0fa1e82653f0415c703cf2 (patch)
tree68f2262a1be44005a1705fd301210a26d5b449c3
parentde3c3ca816dd92103802b9d222d00f561666208e (diff)
fix temporary workaround for register names
-rw-r--r--tools/js_optimizer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/js_optimizer.py b/tools/js_optimizer.py
index 6a2f4091..8c5edefb 100644
--- a/tools/js_optimizer.py
+++ b/tools/js_optimizer.py
@@ -47,14 +47,14 @@ class Minifier:
for a in init_possibles:
for b in later_possibles:
if len(self.names) >= MAX_NAMES: break
- if a == 'r' and b in string.digits: continue # TODO: minify registerize names
+ if a in 'id' and b in string.digits: continue # TODO: minify registerize names
curr = a + b
if curr not in INVALID_2: self.names.append(curr)
for a in init_possibles:
for b in later_possibles:
for c in later_possibles:
if len(self.names) >= MAX_NAMES: break
- if a == 'r' and b in string.digits and c in string.digits: continue # TODO: minify registerize names
+ if a in 'id' and b in string.digits and c in string.digits: continue # TODO: minify registerize names
curr = a + b + c
if curr not in INVALID_3: self.names.append(curr)
#print >> sys.stderr, self.names