Ignore:
Timestamp:
Oct 23, 2011, 5:21:52 PM (14 years ago)
Author:
[email protected]
Message:

Add deleteProperty to the MethodTable
https://bugs.webkit.org/show_bug.cgi?id=70162

Reviewed by Sam Weinig.

Source/JavaScriptCore:

  • JavaScriptCore.exp:
  • runtime/ClassInfo.h: Added both versions of deleteProperty to the MethodTable.
  • runtime/JSFunction.h: Changed JSFunction::deleteProperty to

be protected rather than private for subclasses who don't provide their own
implementation.

Source/WebCore:

No new tests.

  • WebCore.exp.in:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/ClassInfo.h

    r98177 r98205  
    4747        typedef void (*PutByIndexFunctionPtr)(JSCell*, ExecState*, unsigned propertyName, JSValue);
    4848        PutByIndexFunctionPtr putByIndex;
     49
     50        typedef bool (*DeletePropertyFunctionPtr)(JSCell*, ExecState*, const Identifier&);
     51        DeletePropertyFunctionPtr deleteProperty;
     52
     53        typedef bool (*DeletePropertyByIndexFunctionPtr)(JSCell*, ExecState*, unsigned);
     54        DeletePropertyByIndexFunctionPtr deletePropertyByIndex;
    4955    };
    5056
     
    5561        &ClassName::put, \
    5662        &ClassName::putByIndex, \
     63        &ClassName::deleteProperty, \
     64        &ClassName::deletePropertyByIndex, \
    5765    }, \
    5866    sizeof(ClassName)
Note: See TracChangeset for help on using the changeset viewer.