Changeset 239187 in webkit for trunk/Source/JavaScriptCore/jsc.cpp
- Timestamp:
- Dec 13, 2018, 4:19:23 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jsc.cpp
r238766 r239187 217 217 218 218 template<typename Func> 219 int runJSC( CommandLine, bool isWorker, const Func&);219 int runJSC(const CommandLine&, bool isWorker, const Func&); 220 220 static void checkException(ExecState*, GlobalObject*, bool isLastFile, bool hasException, JSValue, CommandLine&, bool& success); 221 221 … … 258 258 void broadcast(const Func&); 259 259 260 void report( String);260 void report(const String&); 261 261 String tryGetReport(); 262 262 String getReport(); … … 818 818 return reject(createError(exec, "Could not resolve the module specifier."_s)); 819 819 820 autoreferrer = sourceOrigin.string();821 automoduleName = moduleNameValue->value(exec);820 const auto& referrer = sourceOrigin.string(); 821 const auto& moduleName = moduleNameValue->value(exec); 822 822 if (UNLIKELY(catchScope.exception())) 823 823 return reject(catchScope.exception()); … … 1644 1644 } 1645 1645 1646 void Workers::report( Stringstring)1646 void Workers::report(const String& string) 1647 1647 { 1648 1648 auto locker = holdLock(m_lock); … … 1924 1924 1925 1925 template<typename ValueType> 1926 typename std::enable_if<!std::is_fundamental<ValueType>::value>::type addOption(VM&, JSObject*, Identifier, ValueType) { }1926 typename std::enable_if<!std::is_fundamental<ValueType>::value>::type addOption(VM&, JSObject*, const Identifier&, ValueType) { } 1927 1927 1928 1928 template<typename ValueType> 1929 typename std::enable_if<std::is_fundamental<ValueType>::value>::type addOption(VM& vm, JSObject* optionsObject, Identifieridentifier, ValueType value)1929 typename std::enable_if<std::is_fundamental<ValueType>::value>::type addOption(VM& vm, JSObject* optionsObject, const Identifier& identifier, ValueType value) 1930 1930 { 1931 1931 optionsObject->putDirect(vm, identifier, JSValue(value)); … … 2760 2760 2761 2761 template<typename Func> 2762 int runJSC( CommandLineoptions, bool isWorker, const Func& func)2762 int runJSC(const CommandLine& options, bool isWorker, const Func& func) 2763 2763 { 2764 2764 Worker worker(Workers::singleton()); … … 2821 2821 compileTimeKeys.append(entry.key); 2822 2822 std::sort(compileTimeKeys.begin(), compileTimeKeys.end()); 2823 for ( CStringkey : compileTimeKeys)2823 for (const CString& key : compileTimeKeys) 2824 2824 printf("%40s: %.3lf ms\n", key.data(), compileTimeStats.get(key).milliseconds()); 2825 2825 }
Note:
See TracChangeset
for help on using the changeset viewer.