-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some JSValue::get() micro-optimzations.
<https://webkit.org/b/133739> Tighten some of the property lookup code to improve performance of the eagerly reified prototype attributes: - Instead of converting the property name to an integer at every step in the prototype chain, move that to a separate pass at the end since it should be a rare case. - Cache the StructureIDTable in a local instead of fetching it from the Heap on every step. - Make fillCustomGetterPropertySlot inline. It was out-of-lined based on the assumption that clients would mostly be cacheable GetByIds, and it gets pretty hot (~1%) in GetByVal. - Pass the Structure directly to fillCustomGetterPropertySlot instead of refetching it from the StructureIDTable. Reviewed by Geoff Garen. * runtime/JSObject.cpp: (JSC::JSObject::fillCustomGetterPropertySlot): Deleted. * runtime/JSObject.h: (JSC::JSObject::inlineGetOwnPropertySlot): (JSC::JSObject::fillCustomGetterPropertySlot): (JSC::JSObject::getOwnPropertySlot): (JSC::JSObject::fastGetOwnPropertySlot): (JSC::JSObject::getPropertySlot): (JSC::JSObject::getOwnPropertySlotSlow): Deleted. Canonical link: https://commits.webkit.org/151717@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@169815 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Andreas Kling
committed
Jun 11, 2014
1 parent
340ea56
commit b260d76
Showing
3 changed files
with
72 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters