[Webkit-unassigned] [Bug 20422] Patch to allow custom memory allocation control

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 1 02:22:16 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=20422





------- Comment #16 from Horvath.Zoltan.6 at stud.u-szeged.hu  2008-10-01 02:22 PDT -------
We have implemented the experimental version of this solution for
JavaScriptCore (r37048) therefore all classes inherit from the common base
class (AllocBase). We had some problems during the implementation:
 - AllocBase was extended with another “new” operator which accepts
pointer as well
 - There were several non-public inheritances therefore we changed their
visibility to public (the main problem is that classes non-publicly inherit
from Noncopyable)
 - Constructor was added to several structs and they are called when the
structs are instantiated
 - Code-generator scripts were changed to use the constructors of the structs
when instantiating them in static arrays 
    for example:
     -const ClassInfo InternalFunction::info = { "Function", 0, 0, 0 };
     +const ClassInfo InternalFunction::info("Function", 0, 0, 0);
 - We corrected same compilation errors in WebCore which came from these but
this solution is not implemented for the whole WebCore

We tested JavaScriptCore under linux-qt and it worked with this solution.


-- 
Configure bugmail: https://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