Title: [237223] trunk/Source/_javascript_Core
- Revision
- 237223
- Author
- yusukesuz...@slowstart.org
- Date
- 2018-10-17 10:50:52 -0700 (Wed, 17 Oct 2018)
Log Message
[JSC] Use WTF::Function instead of std::function
https://bugs.webkit.org/show_bug.cgi?id=190665
Reviewed by Keith Miller.
We should use WTF::Function as much as possible. It allocates memory from bmalloc instead of standard malloc.
* runtime/JSNativeStdFunction.h:
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (237222 => 237223)
--- trunk/Source/_javascript_Core/ChangeLog 2018-10-17 17:49:15 UTC (rev 237222)
+++ trunk/Source/_javascript_Core/ChangeLog 2018-10-17 17:50:52 UTC (rev 237223)
@@ -1,3 +1,14 @@
+2018-10-17 Yusuke Suzuki <yusukesuz...@slowstart.org>
+
+ [JSC] Use WTF::Function instead of std::function
+ https://bugs.webkit.org/show_bug.cgi?id=190665
+
+ Reviewed by Keith Miller.
+
+ We should use WTF::Function as much as possible. It allocates memory from bmalloc instead of standard malloc.
+
+ * runtime/JSNativeStdFunction.h:
+
2018-10-17 Keith Miller <keith_mil...@apple.com>
Remove debug logging from generate_offsets_extractor.rb
Modified: trunk/Source/_javascript_Core/runtime/JSNativeStdFunction.h (237222 => 237223)
--- trunk/Source/_javascript_Core/runtime/JSNativeStdFunction.h 2018-10-17 17:49:15 UTC (rev 237222)
+++ trunk/Source/_javascript_Core/runtime/JSNativeStdFunction.h 2018-10-17 17:50:52 UTC (rev 237223)
@@ -32,7 +32,7 @@
class JSGlobalObject;
class NativeStdFunctionCell;
-typedef std::function<EncodedJSValue (ExecState*)> NativeStdFunction;
+using NativeStdFunction = WTF::Function<EncodedJSValue(ExecState*)>;
class JSNativeStdFunction final : public JSFunction {
public:
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes