Title: [104355] trunk/Source/_javascript_Core
- Revision
- 104355
- Author
- [email protected]
- Date
- 2012-01-06 16:27:48 -0800 (Fri, 06 Jan 2012)
Log Message
JSArray::pop() should compare SparseArrayValueMap::find() to SparseArrayValueMap::notFound()
https://bugs.webkit.org/show_bug.cgi?id=75757
Reviewed by Gavin Barraclough.
* runtime/JSArray.cpp:
(JSC::JSArray::pop): Changed map->end() to map->notFound().
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (104354 => 104355)
--- trunk/Source/_javascript_Core/ChangeLog 2012-01-07 00:14:51 UTC (rev 104354)
+++ trunk/Source/_javascript_Core/ChangeLog 2012-01-07 00:27:48 UTC (rev 104355)
@@ -1,3 +1,13 @@
+2012-01-06 Michael Saboff <[email protected]>
+
+ JSArray::pop() should compare SparseArrayValueMap::find() to SparseArrayValueMap::notFound()
+ https://bugs.webkit.org/show_bug.cgi?id=75757
+
+ Reviewed by Gavin Barraclough.
+
+ * runtime/JSArray.cpp:
+ (JSC::JSArray::pop): Changed map->end() to map->notFound().
+
2012-01-06 Filip Pizlo <[email protected]>
JIT stub slow paths that would be identical to that of an interpreter should be factored out
Modified: trunk/Source/_javascript_Core/runtime/JSArray.cpp (104354 => 104355)
--- trunk/Source/_javascript_Core/runtime/JSArray.cpp 2012-01-07 00:14:51 UTC (rev 104354)
+++ trunk/Source/_javascript_Core/runtime/JSArray.cpp 2012-01-07 00:27:48 UTC (rev 104355)
@@ -755,7 +755,7 @@
result = jsUndefined();
if (SparseArrayValueMap* map = storage->m_sparseValueMap) {
SparseArrayValueMap::iterator it = map->find(length);
- if (it != map->end()) {
+ if (it != map->notFound()) {
result = it->second.get();
map->remove(it);
if (map->isEmpty() && !map->sparseMode()) {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes