Commit 7ecb1d83 authored by msaboff@apple.com's avatar msaboff@apple.com

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().


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104355 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 56cae44a
2012-01-06 Michael Saboff <msaboff@apple.com>
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 <fpizlo@apple.com>
JIT stub slow paths that would be identical to that of an interpreter should be factored out
......@@ -755,7 +755,7 @@ JSValue JSArray::pop()
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()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment