Title: [195611] trunk/Source/WTF
- Revision
- 195611
- Author
- [email protected]
- Date
- 2016-01-26 13:09:24 -0800 (Tue, 26 Jan 2016)
Log Message
BlockPtr needs boolean operators
https://bugs.webkit.org/show_bug.cgi?id=153506
Reviewed by Tim Horton.
* wtf/BlockPtr.h:
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (195610 => 195611)
--- trunk/Source/WTF/ChangeLog 2016-01-26 20:58:31 UTC (rev 195610)
+++ trunk/Source/WTF/ChangeLog 2016-01-26 21:09:24 UTC (rev 195611)
@@ -1,3 +1,12 @@
+2016-01-26 Anders Carlsson <[email protected]>
+
+ BlockPtr needs boolean operators
+ https://bugs.webkit.org/show_bug.cgi?id=153506
+
+ Reviewed by Tim Horton.
+
+ * wtf/BlockPtr.h:
+
2016-01-25 Filip Pizlo <[email protected]>
FTLB3Output should maintain good block order like the LLVM one does
Modified: trunk/Source/WTF/wtf/BlockPtr.h (195610 => 195611)
--- trunk/Source/WTF/wtf/BlockPtr.h 2016-01-26 20:58:31 UTC (rev 195610)
+++ trunk/Source/WTF/wtf/BlockPtr.h 2016-01-26 21:09:24 UTC (rev 195611)
@@ -81,6 +81,9 @@
return *this;
}
+ explicit operator bool() const { return m_block; }
+ bool operator!() const { return !m_block; }
+
R operator()(Args&&... arguments) const
{
ASSERT(m_block);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes