- roll out accidentally-checked in changes
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Nov 2007 05:56:30 +0000 (05:56 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Nov 2007 05:56:30 +0000 (05:56 +0000)
        * kjs/nodes.cpp: Back to previous version.
        * kjs/nodes.h: Ditto.
        * kjs/grammar.y: Ditto.

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

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/grammar.y

index 8eee0517124174a40b95f95a111655338df913bb..2576d4a9b84ba9b8ddc78385df4bf6f963acebee 100644 (file)
@@ -4,6 +4,7 @@
 
         * kjs/nodes.cpp: Back to previous version.
         * kjs/nodes.h: Ditto.
+        * kjs/grammar.y: Ditto.
 
 2007-11-08  Darin Adler  <darin@apple.com>
 
index 0e2f658408a7700cacd30e9f254d8819a8ab638f..f5f2c58943541fc49101858e146d77fffef33087 100644 (file)
@@ -206,9 +206,9 @@ static NumberNode* makeNumberNode(double);
 %%
 
 Literal:
-    NULLTOKEN                           { $$ = new NullNode; }
-  | TRUETOKEN                           { $$ = new TrueNode; }
-  | FALSETOKEN                          { $$ = new FalseNode; }
+    NULLTOKEN                           { $$ = new NullNode(); }
+  | TRUETOKEN                           { $$ = new BooleanNode(true); }
+  | FALSETOKEN                          { $$ = new BooleanNode(false); }
   | NUMBER                              { $$ = makeNumberNode($1); }
   | STRING                              { $$ = new StringNode($1); }
   | '/' /* regexp */                    {
@@ -1037,7 +1037,7 @@ static ExpressionNode* makeNegateNode(ExpressionNode* n)
 
 static NumberNode* makeNumberNode(double d)
 {
-    JSValue* value = JSImmediate::from(d);
+    JSValue* value = JSImmediate::fromDouble(d);
     if (value)
         return new ImmediateNumberNode(value, d);
     return new NumberNode(d);