Commit a02aaac6 authored by ap@webkit.org's avatar ap@webkit.org

Reviewed by Adam Roben.

        A few coding style fixes for AVLTree.

        * wtf/AVLTree.h: Moved to WTF namespace, Removed "KJS_" from include guards.
        (WTF::AVLTree::Iterator::start_iter): Fixed indentation

        * runtime/JSArray.cpp: Added "using namepace WTF".



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38259 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 74bf0ed6
2008-11-10 Alexey Proskuryakov <ap@webkit.org>
Reviewed by Adam Roben.
A few coding style fixes for AVLTree.
* wtf/AVLTree.h: Moved to WTF namespace, Removed "KJS_" from include guards.
(WTF::AVLTree::Iterator::start_iter): Fixed indentation
* runtime/JSArray.cpp: Added "using namepace WTF".
2008-11-09 Cameron Zwarich <zwarich@apple.com>
Not reviewed.
......
......@@ -32,6 +32,7 @@
#define CHECK_ARRAY_CONSISTENCY 0
using namespace std;
using namespace WTF;
namespace JSC {
......
......@@ -29,12 +29,12 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef KJS_AVL_TREE_H_
#define KJS_AVL_TREE_H_
#ifndef AVL_TREE_H_
#define AVL_TREE_H_
#include "Assertions.h"
namespace JSC {
namespace WTF {
// Here is the reference class for BSet.
//
......@@ -203,15 +203,17 @@ public:
break;
}
cmp = -target_cmp;
} else if (target_cmp != 0)
if (!((cmp ^ target_cmp) & MASK_HIGH_BIT))
} else if (target_cmp != 0) {
if (!((cmp ^ target_cmp) & MASK_HIGH_BIT)) {
// cmp and target_cmp are both negative or both positive.
depth = d;
h = cmp < 0 ? get_lt(h) : get_gt(h);
if (h == null())
break;
branch[d] = cmp > 0;
path_h[d++] = h;
}
}
h = cmp < 0 ? get_lt(h) : get_gt(h);
if (h == null())
break;
branch[d] = cmp > 0;
path_h[d++] = h;
}
}
......
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