Mercurial > paraspace
diff paraspace/dex_deptracker.py @ 125:b9688a3badaa
Add compute_size() for DEX types that missed it
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 07 Aug 2011 23:02:08 +0800 |
parents | 8e42b2816893 |
children | ff6f869273b7 |
line wrap: on
line diff
--- a/paraspace/dex_deptracker.py Sun Aug 07 22:07:08 2011 +0800 +++ b/paraspace/dex_deptracker.py Sun Aug 07 23:02:08 2011 +0800 @@ -816,6 +816,7 @@ obj_clazz, parent_clazz = _resolve_name_path(name_path) if isinstance(obj_clazz, dexfile.depend): + obj_clazz.compute_size(obj) moff(obj_clazz.sizeof(obj)) continue @@ -848,6 +849,7 @@ name = name_path.split('.')[-1] _dex_tree_set_child(parent, name, obj) pass + obj_clazz.compute_size(obj) moff(obj_clazz.sizeof(obj)) continue