Commit 927ee73e authored by darin@apple.com's avatar darin@apple.com
Browse files

- fix build

        * kjs/grammar.y:
        * kjs/nodes.h:
        * kjs/property_map.cpp:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27637 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 170c31be
2007-11-08 Darin Adler <darin@apple.com>
- fix build
* kjs/grammar.y:
* kjs/nodes.h:
* kjs/property_map.cpp:
2007-11-08 Darin Adler <darin@apple.com>
- roll out accidentally-checked in changes
......
......@@ -1037,7 +1037,7 @@ static ExpressionNode* makeNegateNode(ExpressionNode* n)
static NumberNode* makeNumberNode(double d)
{
JSValue* value = JSImmediate::fromDouble(d);
JSValue* value = JSImmediate::from(d);
if (value)
return new ImmediateNumberNode(value, d);
return new NumberNode(d);
......
......@@ -239,10 +239,10 @@ namespace KJS {
class ImmediateNumberNode : public NumberNode {
public:
ImmediateNumberNode(JSValue* v, double d) KJS_FAST_CALL : NumberNode(d), m_value(v) { ASSERT(v == JSImmediate::fromDouble(d)); }
ImmediateNumberNode(JSValue* v, double d) KJS_FAST_CALL : NumberNode(d), m_value(v) { ASSERT(v == JSImmediate::from(d)); }
virtual JSValue* evaluate(ExecState*) KJS_FAST_CALL;
virtual void setValue(double d) KJS_FAST_CALL { m_double = d; m_value = JSImmediate::fromDouble(d); ASSERT(m_value); }
virtual void setValue(double d) KJS_FAST_CALL { m_double = d; m_value = JSImmediate::from(d); ASSERT(m_value); }
private:
JSValue* m_value;
};
......
......@@ -54,7 +54,7 @@ static const int smallMapThreshold = 1024;
// The point at which the function call overhead of the qsort implementation
// becomes small compared to the inefficiency of insertion sort.
static const int tinyMapThreshold = 20;
static const unsigned tinyMapThreshold = 20;
#if DUMP_PROPERTYMAP_STATS
......
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