Skip to content

Commit

Permalink
- Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maximecb committed Sep 26, 2012
1 parent 1141eff commit 03190c2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
28 changes: 13 additions & 15 deletions source/analysis/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,6 @@ Log information about analysis results
*/
TypeAnalysis.prototype.logResults = function ()
{
// Log analysis time
print('itr count: ' + this.itrCount);
if (this.blockItrCount !== undefined)
print('block itrs: ' + this.blockItrCount);
if (this.numEdges !== undefined)
print('num edges: ' + this.numEdges);
print('time: ' + this.totalTime.toFixed(2) + 's');
print('');

// Dump info about functions analyzed
this.dumpFunctions();

Expand All @@ -184,17 +175,24 @@ TypeAnalysis.prototype.logResults = function ()

// Dump info about the instruction output types
this.dumpTypes();
print('');

// Compute and dump type statistics
var stats = this.compTypeStats();

// Print the statistics
if (stats)
{
for (var i = 0; i < stats.length; ++i)
print(stats[i]);
print('');
}
for (var i = 0; i < stats.length; ++i)
print(stats[i]);
print('');

// Log analysis time
print('itr count: ' + this.itrCount);
if (this.blockItrCount !== undefined)
print('block itrs: ' + this.blockItrCount);
if (this.numEdges !== undefined)
print('num edges: ' + this.numEdges);
print('time: ' + this.totalTime.toFixed(2) + 's');
print('');
}

/**
Expand Down
7 changes: 6 additions & 1 deletion source/analysis/spstf.js
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,11 @@ SPSTF.prototype.blockItr = function ()
// 'Iterating block: ' + block.getName() /*+
// ((block === block.func.entry)? (' (' + block.func.getName() + ')'):'')*/
//);
/*
print(
'Iterating block/value: ' + block.getName() + ' / ' + value
);
*/

var that = this;

Expand Down Expand Up @@ -1458,7 +1463,7 @@ SPSTF.prototype.newObject = function (
*/
function translRefs(inType)
{
// If the value type contains the recent object
// If the value type doesn't contain the recent object
if (inType.hasObj(recentObj) === false)
return inType;

Expand Down

0 comments on commit 03190c2

Please sign in to comment.