Ignore:
Timestamp:
Oct 25, 2011, 11:51:49 AM (14 years ago)
Author:
[email protected]
Message:

Add getOwnPropertySlot to MethodTable
https://bugs.webkit.org/show_bug.cgi?id=69807

Reviewed by Oliver Hunt.

Source/JavaScriptCore:

  • JavaScriptCore.exp:
  • runtime/ClassInfo.h: Added both versions of getOwnPropertySlot to the MethodTable.
  • runtime/JSCell.h: Changed getOwnPropertySlot to be protected so other classes can

reference it in their MethodTables.

Source/WebCore:

No new tests.

  • bridge/runtime_method.h: Changed getOwnPropertySlot to be protected so

subclasses can reference it in their MethodTables.

File:
1 edited

Legend:

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

    r98205 r98367  
    5353        typedef bool (*DeletePropertyByIndexFunctionPtr)(JSCell*, ExecState*, unsigned);
    5454        DeletePropertyByIndexFunctionPtr deletePropertyByIndex;
     55
     56        typedef bool (*GetOwnPropertySlotFunctionPtr)(JSCell*, ExecState*, const Identifier&, PropertySlot&);
     57        GetOwnPropertySlotFunctionPtr getOwnPropertySlot;
     58
     59        typedef bool (*GetOwnPropertySlotByIndexFunctionPtr)(JSCell*, ExecState*, unsigned, PropertySlot&);
     60        GetOwnPropertySlotByIndexFunctionPtr getOwnPropertySlotByIndex;
    5561    };
    5662
     
    6369        &ClassName::deleteProperty, \
    6470        &ClassName::deletePropertyByIndex, \
     71        &ClassName::getOwnPropertySlot, \
     72        &ClassName::getOwnPropertySlotByIndex, \
    6573    }, \
    6674    sizeof(ClassName)
Note: See TracChangeset for help on using the changeset viewer.