Bug 20829 - Minor optimization to JSObject putDirect
Summary: Minor optimization to JSObject putDirect
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-13 09:13 PDT by James Berry
Modified: 2011-09-10 00:52 PDT (History)
1 user (show)

See Also:


Attachments
Patch to JSObject.h (1.18 KB, patch)
2008-09-13 09:16 PDT, James Berry
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Berry 2008-09-13 09:13:24 PDT
Attached patch makes a minor optimization to putDirect, passing the constant value inlineStorageCapacity to allocatePropertyStorage rather than recomputing that value.
Comment 1 James Berry 2008-09-13 09:16:38 PDT
Created attachment 23395 [details]
Patch to JSObject.h
Comment 2 Gavin Barraclough 2011-09-10 00:52:39 PDT
Not sure why this was never landed - looks like it was fine, but the code has changed a lot since then, doesn't look like this is applicable any more.