From 7401fda65d0c2bb83f8472d6a5f182316ebf0c0b Mon Sep 17 00:00:00 2001 From: Andreas Gal Date: Sun, 13 Jul 2014 09:28:19 -0700 Subject: [PATCH] cleanup classinfo, resolve it earlier, don't keep classImage in memory --- classes.js | 18 ++++++++-------- classinfo.js | 58 +++++++++++++++------------------------------------- frame.js | 8 ++++---- native.js | 4 ++-- 4 files changed, 32 insertions(+), 56 deletions(-) diff --git a/classes.js b/classes.js index 80d7ab4e..bb2e1332 100644 --- a/classes.js +++ b/classes.js @@ -41,7 +41,7 @@ Classes.prototype.loadFile = function(fileName) { Classes.prototype.loadClassBytes = function(bytes) { var classInfo = new ClassInfo(bytes); - this.classes[classInfo.getClassName()] = classInfo; + this.classes[classInfo.className] = classInfo; return classInfo; } @@ -51,7 +51,7 @@ Classes.prototype.loadClassFile = function(fileName) { if (!bytes) return null; var classInfo = this.loadClassBytes(bytes); - var classes = classInfo.getClasses(); + var classes = classInfo.classes; for (var i=0; i