minor
This commit is contained in:
@@ -6,7 +6,7 @@ var sys = require("util");
|
|||||||
var optimist = require("optimist");
|
var optimist = require("optimist");
|
||||||
var fs = require("fs");
|
var fs = require("fs");
|
||||||
var ARGS = optimist
|
var ARGS = optimist
|
||||||
.usage("uglifyjs2 [options] input1.js [input2.js ...]\n\
|
.usage("$0 [options] input1.js [input2.js ...]\n\
|
||||||
Maximum compression settings are on by default.\n\
|
Maximum compression settings are on by default.\n\
|
||||||
Use a single dash to read input from the standard input.\
|
Use a single dash to read input from the standard input.\
|
||||||
")
|
")
|
||||||
@@ -121,9 +121,13 @@ files.forEach(function(file) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
time_it("scope", function(){
|
var SCOPE_IS_NEEDED = ARGS.c !== true || !ARGS.m;
|
||||||
TOPLEVEL.figure_out_scope();
|
|
||||||
});
|
if (SCOPE_IS_NEEDED) {
|
||||||
|
time_it("scope", function(){
|
||||||
|
TOPLEVEL.figure_out_scope();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (ARGS.c !== true) {
|
if (ARGS.c !== true) {
|
||||||
time_it("squeeze", function(){
|
time_it("squeeze", function(){
|
||||||
@@ -132,13 +136,15 @@ if (ARGS.c !== true) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
time_it("scope", function(){
|
if (SCOPE_IS_NEEDED) {
|
||||||
TOPLEVEL.figure_out_scope();
|
time_it("scope", function(){
|
||||||
if (!ARGS.m) {
|
TOPLEVEL.figure_out_scope();
|
||||||
TOPLEVEL.compute_char_frequency();
|
if (!ARGS.m) {
|
||||||
UglifyJS.base54.sort();
|
TOPLEVEL.compute_char_frequency();
|
||||||
}
|
UglifyJS.base54.sort();
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (!ARGS.m) time_it("mangle", function(){
|
if (!ARGS.m) time_it("mangle", function(){
|
||||||
TOPLEVEL.mangle_names();
|
TOPLEVEL.mangle_names();
|
||||||
|
|||||||
Reference in New Issue
Block a user