Skip to content

Commit

Permalink
rename variable to make them different not just by letters case
Browse files Browse the repository at this point in the history
  • Loading branch information
Iris24 committed Nov 20, 2014
1 parent 3cb1e3a commit e187d18
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 36 deletions.
10 changes: 5 additions & 5 deletions bin/stdio.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env node

var tickprocessor = require('../lib/tickprocessor');
var tickProcessorModule = require('../lib/tickprocessor');
var composer = require('../lib/composer');
var ArgumentsProcessor = tickprocessor.ArgumentsProcessor;
var TickProcessor = tickprocessor.TickProcessor;
var SnapshotLogProcessor = tickprocessor.SnapshotLogProcessor;
var ArgumentsProcessor = tickProcessorModule.ArgumentsProcessor;
var TickProcessor = tickProcessorModule.TickProcessor;
var SnapshotLogProcessor = tickProcessorModule.SnapshotLogProcessor;
var PlotScriptComposer = composer.PlotScriptComposer;
var processFileLines = tickprocessor.processFileLines;
var processFileLines = tickProcessorModule.processFileLines;

// Copyright 2013 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
Expand Down
14 changes: 7 additions & 7 deletions bin/tickprocessor-driver.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env node

var tickprocessor = require('../lib/tickprocessor');
var ArgumentsProcessor = tickprocessor.ArgumentsProcessor;
var TickProcessor = tickprocessor.TickProcessor;
var SnapshotLogProcessor = tickprocessor.SnapshotLogProcessor;
var tickProcessorModule = require('../lib/tickprocessor');
var ArgumentsProcessor = tickProcessorModule.ArgumentsProcessor;
var TickProcessor = tickProcessorModule.TickProcessor;
var SnapshotLogProcessor = tickProcessorModule.SnapshotLogProcessor;

// Copyright 2012 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -45,9 +45,9 @@ function processArguments(args) {
}

var entriesProviders = {
'unix': tickprocessor.UnixCppEntriesProvider,
'windows': tickprocessor.WindowsCppEntriesProvider,
'mac': tickprocessor.MacCppEntriesProvider
'unix': tickProcessorModule.UnixCppEntriesProvider,
'windows': tickProcessorModule.WindowsCppEntriesProvider,
'mac': tickProcessorModule.MacCppEntriesProvider
};

var params = processArguments(process.argv.slice(2));
Expand Down
22 changes: 4 additions & 18 deletions lib/composer.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

var codemap = require('./codemap');
var CodeMap = codemap.CodeMap;
var logreader = require('./logreader');
var LogReader = logreader.LogReader;
var codeMapModule = require('./codemap');
var CodeMap = codeMapModule.CodeMap;
var logReaderModule = require('./logreader');
var LogReader = logReaderModule.LogReader;

Array.prototype.top = function() {
if (this.length == 0) return undefined;
Expand Down Expand Up @@ -348,20 +348,6 @@ function PlotScriptComposer(kResX, kResY, error_output) {
execution_pauses = MergeRanges(execution_pauses);
}
};
/*
var line;
while (line = input()) {
logreader.processLogLine(line);
}
// Collect execution pauses.
for (name in TimerEvents) {
var event = TimerEvents[name];
if (!event.pause) continue;
var ranges = event.ranges;
for (var j = 0; j < ranges.length; j++) execution_pauses.push(ranges[j]);
}
execution_pauses = MergeRanges(execution_pauses);*/
};


Expand Down
4 changes: 2 additions & 2 deletions lib/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

var codemap = require('./codemap');
var CodeMap = codemap.CodeMap;
var codeMapModule = require('./codemap');
var CodeMap = codeMapModule.CodeMap;
var ConsArray = require('./consarray');

/**
Expand Down
8 changes: 4 additions & 4 deletions lib/tickprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

var profile = require('./profile');
var Profile = profile.Profile;
var logreader = require('./logreader');
var LogReader = logreader.LogReader;
var profileModule = require('./profile');
var Profile = profileModule.Profile;
var logReaderModule = require('./logreader');
var LogReader = logReaderModule.LogReader;
var ProfileView = require('./profile_view');
var print = console.log.bind(console);
var fs = require('fs');
Expand Down

0 comments on commit e187d18

Please sign in to comment.