Bug 175893

Summary: DFG::JITCode::osrEntry should get sorted since we perform a binary search on it
Product: WebKit Reporter: Saam Barati <saam>
Component: JavaScriptCoreAssignee: Saam Barati <saam>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, commit-queue, fpizlo, ggaren, gskachkov, jfbastien, keith_miller, mark.lam, msaboff, rmorisset, ticaiolima, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 175973    
Bug Blocks:    
Attachments:
Description Flags
patch
none
re-landing patch none

Saam Barati
Reported 2017-08-23 11:14:07 PDT
I think right now we're probably just lucky that it often ends up in a sorted manner because of sensible program order. But I don't see any way we ensure this, so we should explicitly sort it.
Attachments
patch (3.32 KB, patch)
2017-08-23 23:39 PDT, Saam Barati
no flags
re-landing patch (3.31 KB, patch)
2017-08-25 11:29 PDT, Saam Barati
no flags
Saam Barati
Comment 1 2017-08-23 22:54:28 PDT
Hmm, it seems like zero jsc tests end up with an unsorted vector. Maybe I'm missing something.
Saam Barati
Comment 2 2017-08-23 23:23:19 PDT
Ok, there is definitely no reason we should be seeing them already sorted. We're just getting lucky. Ima add code that sorts them.
Saam Barati
Comment 3 2017-08-23 23:39:23 PDT
Mark Lam
Comment 4 2017-08-24 09:28:47 PDT
Comment on attachment 318970 [details] patch r=me
WebKit Commit Bot
Comment 5 2017-08-24 09:59:03 PDT
Comment on attachment 318970 [details] patch Clearing flags on attachment: 318970 Committed r221143: <http://trac.webkit.org/changeset/221143>
WebKit Commit Bot
Comment 6 2017-08-24 09:59:04 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7 2017-08-24 09:59:42 PDT
WebKit Commit Bot
Comment 8 2017-08-24 18:53:16 PDT
Re-opened since this is blocked by bug 175973
Saam Barati
Comment 9 2017-08-25 11:29:20 PDT
Created attachment 319089 [details] re-landing patch
WebKit Commit Bot
Comment 10 2017-08-25 12:12:41 PDT
Comment on attachment 319089 [details] re-landing patch Clearing flags on attachment: 319089 Committed r221200: <http://trac.webkit.org/changeset/221200>
WebKit Commit Bot
Comment 11 2017-08-25 12:12:43 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.