- fix build
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Nov 2007 05:57:46 +0000 (05:57 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Nov 2007 05:57:46 +0000 (05:57 +0000)
        * kjs/grammar.y:
        * kjs/nodes.h:
        * kjs/property_map.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27637 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/grammar.y
JavaScriptCore/kjs/nodes.h
JavaScriptCore/kjs/property_map.cpp

index 2576d4a9b84ba9b8ddc78385df4bf6f963acebee..ac1ed145f505db5f5c060f2593b1c0d1d3417278 100644 (file)
@@ -1,3 +1,11 @@
+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
index f5f2c58943541fc49101858e146d77fffef33087..ab37991816cfa83621f17bf43a985a3904732d31 100644 (file)
@@ -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);
index 7add7229d6cf4bd28d9d1677e9cda47c6793dd85..f2db22a779e9f1e2904eeb2ffddb478561318abb 100644 (file)
@@ -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;
   };
index 9b032c57faec506bc67ef2a65922441edf655c82..9eede480e8610b8e52463d6e741ac7f10648e4bc 100644 (file)
@@ -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