Bug 173416

Summary: [JSC] Add fast path for Object.assign
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: JavaScriptCoreAssignee: Yusuke Suzuki <ysuzuki>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, commit-queue, fpizlo, keith_miller, mark.lam, msaboff, sam, sbarati
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 173414    
Bug Blocks:    
Attachments:
Description Flags
Patch none

Description Yusuke Suzuki 2017-06-15 05:38:06 PDT
Unless observable behavior happens, we can avoid GetOwnProperty for each key to ensure the key is still enumerable.
Comment 1 Yusuke Suzuki 2017-06-16 13:45:59 PDT
Created attachment 313125 [details]
Patch
Comment 2 Yusuke Suzuki 2017-06-16 13:46:27 PDT
Basic idea is similar to https://bugs.webkit.org/show_bug.cgi?id=163305
Comment 3 Mark Lam 2017-06-16 13:59:29 PDT
Comment on attachment 313125 [details]
Patch

r=me
Comment 4 Yusuke Suzuki 2017-06-16 14:03:42 PDT
Comment on attachment 313125 [details]
Patch

Thank you!
Comment 5 WebKit Commit Bot 2017-06-16 14:32:56 PDT
Comment on attachment 313125 [details]
Patch

Clearing flags on attachment: 313125

Committed r218415: <http://trac.webkit.org/changeset/218415>
Comment 6 WebKit Commit Bot 2017-06-16 14:32:57 PDT
All reviewed patches have been landed.  Closing bug.