Bug 195593

Summary: [JSC] Move species watchpoint installation from ArrayPrototype to JSGlobalObject
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: New BugsAssignee: Yusuke Suzuki <ysuzuki>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, keith_miller, mark.lam, msaboff, rniwa, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews102 for mac-highsierra
none
Patch keith_miller: review+

Description Yusuke Suzuki 2019-03-11 18:01:35 PDT
[JSC] Move species watchpoint installation from ArrayPrototype to JSGlobalObject
Comment 1 Yusuke Suzuki 2019-03-11 18:15:03 PDT
Created attachment 364328 [details]
Patch
Comment 2 EWS Watchlist 2019-03-11 19:34:46 PDT
Comment on attachment 364328 [details]
Patch

Attachment 364328 [details] did not pass mac-ews (mac):
Output: https://webkit-queues.webkit.org/results/11465019

Number of test failures exceeded the failure limit.
Comment 3 EWS Watchlist 2019-03-11 19:34:47 PDT
Created attachment 364335 [details]
Archive of layout-test-results from ews102 for mac-highsierra

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-highsierra  Platform: Mac OS X 10.13.6
Comment 4 Yusuke Suzuki 2019-03-11 19:38:57 PDT
Comment on attachment 364328 [details]
Patch

Fixing crashes.
Comment 5 Yusuke Suzuki 2019-03-11 19:50:46 PDT
Created attachment 364337 [details]
Patch
Comment 6 Keith Miller 2019-03-13 13:18:10 PDT
Comment on attachment 364337 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=364337&action=review

r=me.

> Source/JavaScriptCore/runtime/ArrayPrototype.cpp:200
> +        if (ArrayPrototypeInternal::verbose)
> +            dataLog("Initializing Array species watchpoints for Array.prototype: ", pointerDump(arrayPrototype), " with structure: ", pointerDump(arrayPrototype->structure(vm)), "\nand Array: ", pointerDump(globalObject->arrayConstructor()), " with structure: ", pointerDump(globalObject->arrayConstructor()->structure(vm)), "\n");

Nit: I prefer dataLogLnIf(ArrayPrototypeInternal::verbose, ...)
Comment 7 Yusuke Suzuki 2019-03-13 13:18:48 PDT
Comment on attachment 364337 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=364337&action=review

>> Source/JavaScriptCore/runtime/ArrayPrototype.cpp:200
>> +            dataLog("Initializing Array species watchpoints for Array.prototype: ", pointerDump(arrayPrototype), " with structure: ", pointerDump(arrayPrototype->structure(vm)), "\nand Array: ", pointerDump(globalObject->arrayConstructor()), " with structure: ", pointerDump(globalObject->arrayConstructor()->structure(vm)), "\n");
> 
> Nit: I prefer dataLogLnIf(ArrayPrototypeInternal::verbose, ...)

Sounds better! Fixed.
Comment 8 Yusuke Suzuki 2019-03-13 13:28:02 PDT
Committed r242902: <https://trac.webkit.org/changeset/242902>
Comment 9 Radar WebKit Bug Importer 2019-03-13 13:28:28 PDT
<rdar://problem/48860522>