Title: [251264] trunk/Source/_javascript_Core
- Revision
- 251264
- Author
- [email protected]
- Date
- 2019-10-17 15:45:35 -0700 (Thu, 17 Oct 2019)
Log Message
Harden capacity checks in DFG::LocalCSEPhase::SmallMap.
https://bugs.webkit.org/show_bug.cgi?id=203123
<rdar://problem/56339943>
Change addPure() and addImpure() to use RELEASE_ASSERT in their capacity checks.
Reviewed by Keith Miller.
* dfg/DFGCSEPhase.cpp:
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (251263 => 251264)
--- trunk/Source/_javascript_Core/ChangeLog 2019-10-17 22:18:57 UTC (rev 251263)
+++ trunk/Source/_javascript_Core/ChangeLog 2019-10-17 22:45:35 UTC (rev 251264)
@@ -1,5 +1,17 @@
2019-10-17 Mark Lam <[email protected]>
+ Harden capacity checks in DFG::LocalCSEPhase::SmallMap.
+ https://bugs.webkit.org/show_bug.cgi?id=203123
+ <rdar://problem/56339943>
+
+ Change addPure() and addImpure() to use RELEASE_ASSERT in their capacity checks.
+
+ Reviewed by Keith Miller.
+
+ * dfg/DFGCSEPhase.cpp:
+
+2019-10-17 Mark Lam <[email protected]>
+
Use constexpr in more places and remove some unnecessary external linkage.
https://bugs.webkit.org/show_bug.cgi?id=203115
Modified: trunk/Source/_javascript_Core/dfg/DFGCSEPhase.cpp (251263 => 251264)
--- trunk/Source/_javascript_Core/dfg/DFGCSEPhase.cpp 2019-10-17 22:18:57 UTC (rev 251263)
+++ trunk/Source/_javascript_Core/dfg/DFGCSEPhase.cpp 2019-10-17 22:45:35 UTC (rev 251264)
@@ -385,7 +385,7 @@
return m_pureMap[i].value;
}
- ASSERT(m_pureLength < capacity);
+ RELEASE_ASSERT(m_pureLength < capacity);
m_pureMap[m_pureLength++] = WTF::KeyValuePair<PureValue, Node*>(value, node);
return nullptr;
}
@@ -407,7 +407,7 @@
return nullptr;
if (LazyNode result = findReplacement(location))
return result;
- ASSERT(m_impureLength < capacity);
+ RELEASE_ASSERT(m_impureLength < capacity);
m_impureMap[m_impureLength++] = WTF::KeyValuePair<HeapLocation, LazyNode>(location, node);
return nullptr;
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes