WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
119843
PropertySlot::setValue is ambiguous
https://bugs.webkit.org/show_bug.cgi?id=119843
Summary
PropertySlot::setValue is ambiguous
Gavin Barraclough
Reported
2013-08-15 08:27:16 PDT
There are three different versions of PropertySlot::setValue, one for cacheable properties, and two that are used interchangeably and inconsistently. The problematic variants are the ones that just take a value, and one that takes a value and also the object containing the property. Unify on always providing the object, and remove the version that just takes a value. This always works except for JSString, where we optimize out the object (logically we should be instantiating a temporary StringObject on every property access). Provide a version of setValue that takes a JSString as the owner of the property. We won't store this, but it makes it clear that this interface should only be used from JSString.
Attachments
fix
(12.19 KB, patch)
2013-08-15 08:33 PDT
,
Gavin Barraclough
ggaren
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Gavin Barraclough
Comment 1
2013-08-15 08:33:09 PDT
Created
attachment 208811
[details]
fix
Geoffrey Garen
Comment 2
2013-08-15 09:40:49 PDT
Comment on
attachment 208811
[details]
fix View in context:
https://bugs.webkit.org/attachment.cgi?id=208811&action=review
> Source/JavaScriptCore/runtime/PropertySlot.h:104 > + void setValue(JSString*, JSValue value)
This would be a good place for a piece of your ChangeLog comment: Logically, the base of a string property access is a temporary StringObject, but we optimize that away.
Gavin Barraclough
Comment 3
2013-08-15 11:48:04 PDT
Committed revision 154113.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug