// Copyright 2017 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.functionprocessArguments(args){varprocessor=newArgumentsProcessor(args);if(processor.parse()){returnprocessor.result();}else{processor.printUsageAndExit();}}functioninitSourceMapSupport(){// Pull dev tools source maps into our name space.SourceMap=WebInspector.SourceMap;// Overwrite the load function to load scripts synchronously.SourceMap.load=function(sourceMapURL){varcontent=readFile(sourceMapURL);varsourceMapObject=(JSON.parse(content));returnnewSourceMap(sourceMapURL,sourceMapObject);};}varparams=processArguments(arguments);varsourceMap=null;if(params.sourceMap){initSourceMapSupport();sourceMap=SourceMap.load(params.sourceMap);}varparseProcessor=newParseProcessor();parseProcessor.processLogFile(params.logFileName);