2008-06-13 Cameron Zwarich <cwzwarich@uwaterloo.ca>
[WebKit-https.git] / JavaScriptCore / kjs / nodes.cpp
index a9a3ae6bd4a80b4af125b4363930aa68992ae62d..585d8d5ba28a77abf23db9524452f479c191b467 100644 (file)
@@ -287,18 +287,11 @@ RegisterID* NullNode::emitCode(CodeGenerator& generator, RegisterID* dst)
     return generator.emitLoad(generator.finalDestination(dst), jsNull());
 }
 
-// ------------------------------ FalseNode ----------------------------------
+// ------------------------------ BooleanNode ----------------------------------
 
-RegisterID* FalseNode::emitCode(CodeGenerator& generator, RegisterID* dst)
+RegisterID* BooleanNode::emitCode(CodeGenerator& generator, RegisterID* dst)
 {
-    return generator.emitLoad(generator.finalDestination(dst), false);
-}
-
-// ------------------------------ TrueNode ----------------------------------
-
-RegisterID* TrueNode::emitCode(CodeGenerator& generator, RegisterID* dst)
-{
-    return generator.emitLoad(generator.finalDestination(dst), true);
+    return generator.emitLoad(generator.finalDestination(dst), m_value);
 }
 
 // ------------------------------ NumberNode -----------------------------------