[Webkit-unassigned] [Bug 15837] AddNode causes excessive mallocs due to add() using toString(exec)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 6 02:09:56 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=15837
------- Comment #4 from eric at webkit.org 2007-11-06 02:09 PDT -------
Maciej made a second suggestion of trying something like this:
JSType t1 = v1->type();
JSType t2 = v2->type();
if (t1 == NumberType && t2 == NumberType)
return v1->toNumber(exec) + v2->toNumber();
else if (t1 == StringType && t2 == StringType)
return static_cast<StringImp*>(v1)->value() +
static_cast<StringImp*>(v2)->value();
return addSlowCase(v1, v2);
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list