Bug 148718

Summary: GetById inline caches should use the One True Stub approach rather than a linked list of stubs
Product: WebKit Reporter: Filip Pizlo <fpizlo>
Component: JavaScriptCoreAssignee: Filip Pizlo <fpizlo>
Status: RESOLVED DUPLICATE    
Severity: Normal    
Priority: P2    
Version: Other   
Hardware: All   
OS: All   
Bug Depends on: 148725, 148743, 148766    
Bug Blocks: 148717    
Attachments:
Description Flags
a small start
none
more
none
getting interesting none

Description Filip Pizlo 2015-09-02 10:39:55 PDT
Instead of doing https://bugs.webkit.org/show_bug.cgi?id=148717 all at once, I will tackle the GetById caches first.
Comment 1 Filip Pizlo 2015-09-02 22:36:55 PDT
Created attachment 260488 [details]
a small start
Comment 2 Filip Pizlo 2015-09-03 11:44:40 PDT
Created attachment 260502 [details]
more

Oh man, this is painful.
Comment 3 Filip Pizlo 2015-09-03 17:20:30 PDT
It seems like I should probably do this at the same time as https://bugs.webkit.org/show_bug.cgi?id=148717, because my approach involves moving logic out of StructureStubInfo/Repatch and into PolymorphicGetByIdList.  But a lot of that logic is shared by the put_by_id paths, so probably PolymorphicPutByIdList should be folded into PolymorphicGetByIdList.
Comment 4 Filip Pizlo 2015-09-03 19:13:03 PDT
Created attachment 260550 [details]
getting interesting
Comment 5 Filip Pizlo 2015-09-04 15:03:51 PDT
I think that it's better to handle all of the inline caches in one go, rather than trying to just fix get_by_id.

*** This bug has been marked as a duplicate of bug 148717 ***