Changeset 46120 in webkit


Ignore:
Timestamp:
Jul 20, 2009 3:04:03 AM (15 years ago)
Author:
Simon Hausmann
Message:

2009-07-20 Zoltan Horvath <hzoltan@inf.u-szeged.hu>

Reviewed by Oliver Hunt.

Allow custom memory allocation control in JavaScriptCore's JSClassRef.h
https://bugs.webkit.org/show_bug.cgi?id=27340

Inherit StaticValueEntry and StaticFunctionEntry struct from FastAllocBase because these
have been instantiated by 'new' in JavaScriptCore/API/JSClassRef.cpp:153
and in JavaScriptCore/API/JSClassRef.cpp:166.

  • API/JSClassRef.h:
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSClassRef.h

    r38137 r46120  
    3535#include <wtf/RefCounted.h>
    3636
    37 struct StaticValueEntry {
     37struct StaticValueEntry : FastAllocBase {
    3838    StaticValueEntry(JSObjectGetPropertyCallback _getProperty, JSObjectSetPropertyCallback _setProperty, JSPropertyAttributes _attributes)
    3939        : getProperty(_getProperty), setProperty(_setProperty), attributes(_attributes)
     
    4646};
    4747
    48 struct StaticFunctionEntry {
     48struct StaticFunctionEntry : FastAllocBase {
    4949    StaticFunctionEntry(JSObjectCallAsFunctionCallback _callAsFunction, JSPropertyAttributes _attributes)
    5050        : callAsFunction(_callAsFunction), attributes(_attributes)
  • trunk/JavaScriptCore/ChangeLog

    r46119 r46120  
     12009-07-20  Zoltan Horvath  <hzoltan@inf.u-szeged.hu>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        Allow custom memory allocation control in JavaScriptCore's JSClassRef.h
     6        https://bugs.webkit.org/show_bug.cgi?id=27340
     7
     8        Inherit StaticValueEntry and StaticFunctionEntry struct from FastAllocBase because these
     9        have been instantiated by 'new' in JavaScriptCore/API/JSClassRef.cpp:153
     10        and in JavaScriptCore/API/JSClassRef.cpp:166.
     11
     12        * API/JSClassRef.h:
     13
    1142009-07-20  Zoltan Horvath  <hzoltan@inf.u-szeged.hu>
    215
Note: See TracChangeset for help on using the changeset viewer.