Bug 162793

Summary: Use topVMEntryFrame to determine whether to skip the re-throw of a simulated throw.
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: JavaScriptCoreAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, keith_miller, msaboff, saam
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 162351    
Attachments:
Description Flags
proposed patch.
mark.lam: review-
proposed patch. saam: review+

Description Mark Lam 2016-09-30 10:44:34 PDT
Change the ThrowScope destructor to use topVMEntryFrame (instead of topCallFrame) in the determination of whether to skip the re-throw of a simulated throw.  This is needed because the topCallFrame is not updated in operationConstructArityCheck(), whereas topVMEntryFrame is always updated properly.  Hence, we should just switch to using the more reliable topVMEntryFrame instead.
Comment 1 Mark Lam 2016-09-30 10:48:57 PDT
Created attachment 290348 [details]
proposed patch.
Comment 2 Mark Lam 2016-09-30 10:49:24 PDT
Comment on attachment 290348 [details]
proposed patch.

Need to fix the comment.
Comment 3 Mark Lam 2016-09-30 10:51:25 PDT
Created attachment 290349 [details]
proposed patch.
Comment 4 Saam Barati 2016-09-30 11:02:15 PDT
Comment on attachment 290349 [details]
proposed patch.

r=me
Comment 5 Mark Lam 2016-09-30 11:18:43 PDT
Thanks for the review.  Landed in r206643: <http://trac.webkit.org/r206643>.