Changeset 95466 in webkit for trunk/Source/JavaScriptCore/ChangeLog
- Timestamp:
- Sep 19, 2011, 1:32:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r95455 r95466 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 Geoffrey Garen. 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 (JSC::JSValue::toPrimitive): 28 1 29 2011-09-19 Oliver Hunt <[email protected]> 2 30
Note:
See TracChangeset
for help on using the changeset viewer.