Commit 170c31be authored by darin@apple.com's avatar darin@apple.com
Browse files

- roll out accidentally-checked in changes

        * kjs/nodes.cpp: Back to previous version.
        * kjs/nodes.h: Ditto.
        * kjs/grammar.y: Ditto.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a89ace7f
......@@ -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>
......
......@@ -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);
......
Supports Markdown
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