Changeset 231514 in webkit for trunk/Source/JavaScriptCore/jsc.cpp
- Timestamp:
- May 8, 2018, 2:49:09 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jsc.cpp
r231492 r231514 348 348 static EncodedJSValue JSC_HOST_CALL functionDisableRichSourceInfo(ExecState*); 349 349 static EncodedJSValue JSC_HOST_CALL functionMallocInALoop(ExecState*); 350 static EncodedJSValue JSC_HOST_CALL functionTotalCompileTime(ExecState*); 350 351 351 352 struct Script { … … 607 608 addFunction(vm, "disableRichSourceInfo", functionDisableRichSourceInfo, 0); 608 609 addFunction(vm, "mallocInALoop", functionMallocInALoop, 0); 610 addFunction(vm, "totalCompileTime", functionTotalCompileTime, 0); 609 611 } 610 612 … … 1810 1812 } 1811 1813 1814 EncodedJSValue JSC_HOST_CALL functionTotalCompileTime(ExecState*) 1815 { 1816 #if ENABLE(JIT) 1817 return JSValue::encode(jsNumber(JIT::totalCompileTime().milliseconds())); 1818 #else 1819 return JSValue::encode(jsNumber(0)); 1820 #endif 1821 } 1822 1812 1823 template<typename ValueType> 1813 1824 typename std::enable_if<!std::is_fundamental<ValueType>::value>::type addOption(VM&, JSObject*, Identifier, ValueType) { }
Note:
See TracChangeset
for help on using the changeset viewer.