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

2009-07-20 Zoltan Horvath <[email protected]>

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:
File:
1 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)
Note: See TracChangeset for help on using the changeset viewer.