Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2010-03-01 Oliver Hunt <oliver@apple.com>
Reviewed by Gavin Barraclough. PropertySlot::getValue(ExecState, unsigned) unnecessarily converts index to an Identifier https://bugs.webkit.org/show_bug.cgi?id=35561 Fix this by defining a separate property getter function for index getters. This allows us to pass an unsigned number without the conversion to an Identifier. We then update setCustomIndex to take this new getter type. * runtime/PropertySlot.h: (JSC::PropertySlot::getValue): (JSC::PropertySlot::setCustom): (JSC::PropertySlot::setCustomIndex): 2010-03-01 Oliver Hunt <oliver@apple.com> Reviewed by Gavin Barraclough. PropertySlot::getValue(ExecState, unsigned) unnecessarily converts index to an Identifier https://bugs.webkit.org/show_bug.cgi?id=35561 Update bindings generation and the few manual indexing getters we have to use the new PropertySlot API. * bindings/js/JSDOMWindowCustom.cpp: (WebCore::indexGetter): * bindings/scripts/CodeGeneratorJS.pm: * bridge/runtime_array.cpp: (JSC::RuntimeArray::indexGetter): * bridge/runtime_array.h: Canonical link: https://commits.webkit.org/46698@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@55397 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
7 changed files
with
56 additions
and
14 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
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
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