Bug 200905

Summary: [JSC] Array.prototype.toString should not get "join" function each time
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: JavaScriptCoreAssignee: Yusuke Suzuki <ysuzuki>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch mark.lam: review+

Description Yusuke Suzuki 2019-08-19 17:20:28 PDT
We should avoid it by setting watchpoint.
Comment 1 Yusuke Suzuki 2019-08-20 02:03:10 PDT
Created attachment 376754 [details]
Patch
Comment 2 Yusuke Suzuki 2019-08-20 02:06:30 PDT
Created attachment 376755 [details]
Patch
Comment 3 Yusuke Suzuki 2019-08-20 02:09:30 PDT
Created attachment 376756 [details]
Patch
Comment 4 Radar WebKit Bug Importer 2019-08-20 02:15:21 PDT
<rdar://problem/54503629>
Comment 5 Yusuke Suzuki 2019-08-20 02:15:36 PDT
Created attachment 376757 [details]
Patch
Comment 6 Yusuke Suzuki 2019-08-20 02:18:26 PDT
Created attachment 376758 [details]
Patch
Comment 7 Mark Lam 2019-08-20 07:48:43 PDT
Comment on attachment 376758 [details]
Patch

Where is the code that fires arrayJoinWatchpointSet()?
Comment 8 Yusuke Suzuki 2019-08-20 09:44:58 PDT
(In reply to Mark Lam from comment #7)
> Comment on attachment 376758 [details]
> Patch
> 
> Where is the code that fires arrayJoinWatchpointSet()?

ObjectPropertyChangeAdaptiveWatchpoint is created for this watchpointset. It will fire.
Comment 9 Mark Lam 2019-08-20 09:50:01 PDT
(In reply to Yusuke Suzuki from comment #8)
> (In reply to Mark Lam from comment #7)
> > Comment on attachment 376758 [details]
> > Patch
> > 
> > Where is the code that fires arrayJoinWatchpointSet()?
> 
> ObjectPropertyChangeAdaptiveWatchpoint is created for this watchpointset. It
> will fire.

Ah, I see.  I missed that.
Comment 10 Mark Lam 2019-08-20 09:50:17 PDT
Comment on attachment 376758 [details]
Patch

r=me
Comment 11 Yusuke Suzuki 2019-08-20 10:37:11 PDT
Committed r248906: <https://trac.webkit.org/changeset/248906>