Changeset 98367 in webkit
- Timestamp:
- Oct 25, 2011, 11:51:49 AM (15 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
-
JavaScriptCore/ChangeLog (modified) (1 diff)
-
JavaScriptCore/JavaScriptCore.exp (modified) (1 diff)
-
JavaScriptCore/runtime/ClassInfo.h (modified) (2 diffs)
-
JavaScriptCore/runtime/JSCell.h (modified) (2 diffs)
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/bridge/runtime_method.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r98365 r98367 1 2011-10-25 Mark Hahnenberg <mhahnenberg@apple.com> 2 3 Add getOwnPropertySlot to MethodTable 4 https://bugs.webkit.org/show_bug.cgi?id=69807 5 6 Reviewed by Oliver Hunt. 7 8 * JavaScriptCore.exp: 9 * runtime/ClassInfo.h: Added both versions of getOwnPropertySlot to the MethodTable. 10 * runtime/JSCell.h: Changed getOwnPropertySlot to be protected so other classes can 11 reference it in their MethodTables. 12 1 13 2011-10-25 Oliver Hunt <oliver@apple.com> 2 14 -
trunk/Source/JavaScriptCore/JavaScriptCore.exp
r98316 r98367 118 118 __ZN3JSC11JSByteArray10putByIndexEPNS_6JSCellEPNS_9ExecStateEjNS_7JSValueE 119 119 __ZN3JSC11JSByteArray15createStructureERNS_12JSGlobalDataEPNS_14JSGlobalObjectENS_7JSValueEPKNS_9ClassInfoE 120 __ZN3JSC11JSByteArray18getOwnPropertySlotEPNS_6JSCellEPNS_9ExecStateERKNS_10IdentifierERNS_12PropertySlotE 121 __ZN3JSC11JSByteArray25getOwnPropertySlotByIndexEPNS_6JSCellEPNS_9ExecStateEjRNS_12PropertySlotE 120 122 __ZN3JSC11JSByteArray3putEPNS_6JSCellEPNS_9ExecStateERKNS_10IdentifierENS_7JSValueERNS_15PutPropertySlotE 121 123 __ZN3JSC11JSByteArray6s_infoE -
trunk/Source/JavaScriptCore/runtime/ClassInfo.h
r98205 r98367 53 53 typedef bool (*DeletePropertyByIndexFunctionPtr)(JSCell*, ExecState*, unsigned); 54 54 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; 55 61 }; 56 62 … … 63 69 &ClassName::deleteProperty, \ 64 70 &ClassName::deletePropertyByIndex, \ 71 &ClassName::getOwnPropertySlot, \ 72 &ClassName::getOwnPropertySlotByIndex, \ 65 73 }, \ 66 74 sizeof(ClassName) -
trunk/Source/JavaScriptCore/runtime/JSCell.h
r98261 r98367 133 133 void finishCreation(JSGlobalData&, Structure*, CreatingEarlyCellTag); 134 134 135 private:136 135 // Base implementation; for non-object classes implements getPropertySlot. 137 136 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier& propertyName, PropertySlot&); … … 140 139 static bool getOwnPropertySlotByIndex(JSCell*, ExecState*, unsigned propertyName, PropertySlot&); 141 140 141 private: 142 142 WriteBarrier<Structure> m_structure; 143 143 }; -
trunk/Source/WebCore/ChangeLog
r98361 r98367 1 2011-10-25 Mark Hahnenberg <mhahnenberg@apple.com> 2 3 Add getOwnPropertySlot to MethodTable 4 https://bugs.webkit.org/show_bug.cgi?id=69807 5 6 Reviewed by Oliver Hunt. 7 8 No new tests. 9 10 * bridge/runtime_method.h: Changed getOwnPropertySlot to be protected so 11 subclasses can reference it in their MethodTables. 12 1 13 2011-10-25 Simon Fraser <simon.fraser@apple.com> 2 14 -
trunk/Source/WebCore/bridge/runtime_method.h
r97537 r98367 65 65 static CallType getCallData(JSCell*, CallData&); 66 66 67 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&); 68 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&); 69 67 70 private: 68 71 static JSValue lengthGetter(ExecState*, JSValue, const Identifier&); 69 virtual bool getOwnPropertySlotVirtual(ExecState*, const Identifier&, PropertySlot&);70 static bool getOwnPropertySlot(JSCell*, ExecState*, const Identifier&, PropertySlot&);71 72 virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&); 72 73
Note:
See TracChangeset
for help on using the changeset viewer.