Changeset 95516 in webkit for trunk/Source/JavaScriptCore/ChangeLog
- Timestamp:
- Sep 19, 2011, 9:33:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r95512 r95516 1 2011-09-19 Mark Hahnenberg <[email protected]> 2 3 Remove toPrimitive from JSCell 4 https://bugs.webkit.org/show_bug.cgi?id=67875 5 6 Reviewed by Darin Adler. 7 8 Part of the refactoring process to un-virtualize JSCell. We move 9 all of the implicit functionality provided by the virtual toPrimitive method 10 in JSCell to be explicit in JSValue::toPrimitive and JSCell:toPrimitive while 11 also de-virtualizing JSCell::toPrimitive. 12 13 * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def: 14 * runtime/JSCell.cpp: 15 (JSC::JSCell::toPrimitive): 16 * runtime/JSCell.h: 17 18 We replace JSNotAnObject::toPrimitive with defaultValue, which it overrides from 19 JSObject. This pushes the virtual method further down, enabling us to get rid 20 of the virtual call in JSCell. Eventually we'll probably have to deal with this 21 again, but we'll cross that bridge when we come to it. 22 * runtime/JSNotAnObject.cpp: 23 (JSC::JSNotAnObject::defaultValue): 24 * runtime/JSNotAnObject.h: 25 * runtime/JSObject.h: 26 * runtime/JSString.h: 27 1 28 2011-09-19 Geoffrey Garen <[email protected]> 2 29
Note:
See TracChangeset
for help on using the changeset viewer.