- Windows build fix; get rid of unused parameter
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Oct 2007 04:02:53 +0000 (04:02 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Oct 2007 04:02:53 +0000 (04:02 +0000)
        * kjs/nodes.cpp: (KJS::ResolveNode::optimizeVariableAccess): Don't pass it.
        * kjs/nodes.h: (KJS::LocalVarAccessNode::LocalVarAccessNode): Remove it.
        The assertions weren't all that helpful.

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

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/nodes.cpp
JavaScriptCore/kjs/nodes.h

index 44001557fcfa142e2baca385c9627b9cd105470a..1b20ddc8ae176186c56387839579997539da3608 100644 (file)
@@ -1,3 +1,11 @@
+2007-10-28  Darin Adler  <darin@apple.com>
+
+        - Windows build fix; get rid of unused parameter
+
+        * kjs/nodes.cpp: (KJS::ResolveNode::optimizeVariableAccess): Don't pass it.
+        * kjs/nodes.h: (KJS::LocalVarAccessNode::LocalVarAccessNode): Remove it.
+        The assertions weren't all that helpful.
+
 2007-10-28  Mark Rowe  <mrowe@apple.com>
 
         Gtk build fix.  Add include of MathExtras.h.
index fb2b9a43851a0a5fb64b24bda7c6ac4112c9d5b3..d4b604fbcb0055348d8d051c918820b1705faf9c 100644 (file)
@@ -402,7 +402,7 @@ void ResolveNode::optimizeVariableAccess(FunctionBodyNode* functionBody, Declara
 {
     size_t index = functionBody->symbolTable().get(ident.ustring().rep());
     if (index != missingSymbolMarker())
-        new (this) LocalVarAccessNode(this, index);
+        new (this) LocalVarAccessNode(index);
 }
 
 JSValue* LocalVarAccessNode::evaluate(ExecState* exec)
index c10ea976f5d7946828ac9fdf3fdb1242d045038d..477cb005dd7042a37116de8693a130ea5a05fd4b 100644 (file)
@@ -296,17 +296,13 @@ namespace KJS {
 
   class LocalVarAccessNode : public ResolveNode {
   public:
-    LocalVarAccessNode(ResolveNode* n, size_t i)
+    LocalVarAccessNode(size_t i)
         : ResolveNode(PlacementNewAdopt)
     {
-        ASSERT(n == this);
-        ASSERT(sizeof(n) == sizeof(this));
-
         ASSERT(i != missingSymbolMarker());
         index = i;
     }
-
-    JSValue* evaluate(ExecState*) KJS_FAST_CALL;
+    virtual JSValue* evaluate(ExecState*) KJS_FAST_CALL;
   };
 
   class ElementNode : public Node {