* 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
+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.
{
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)
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 {