Bug 195250

Summary: [JSC] Make Reflect lazily-allocated by dropping @Reflect references from builtin JS
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: New BugsAssignee: Yusuke Suzuki <ysuzuki>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, joepeck, keith_miller, mark.lam, msaboff, sbarati, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch sbarati: review+

Description Yusuke Suzuki 2019-03-02 13:18:44 PST
[JSC] Make Reflect lazily-allocated by dropping @Reflect references from builtin JS
Comment 1 Yusuke Suzuki 2019-03-02 13:21:16 PST
Created attachment 363430 [details]
Patch
Comment 2 Yusuke Suzuki 2019-03-02 13:25:43 PST
Created attachment 363431 [details]
Patch
Comment 3 Saam Barati 2019-03-04 11:45:41 PST
Comment on attachment 363431 [details]
Patch

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

> Source/JavaScriptCore/runtime/ObjectConstructor.cpp:286
> +EncodedJSValue JSC_HOST_CALL objectConstructorOwnKeys(ExecState* exec)

Why not just make it a global function? I feel like we tend to have private properties reflect their public ones. But there is no corresponding public property here.
Comment 4 Yusuke Suzuki 2019-03-04 12:23:21 PST
Comment on attachment 363431 [details]
Patch

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

Thanks!

>> Source/JavaScriptCore/runtime/ObjectConstructor.cpp:286
>> +EncodedJSValue JSC_HOST_CALL objectConstructorOwnKeys(ExecState* exec)
> 
> Why not just make it a global function? I feel like we tend to have private properties reflect their public ones. But there is no corresponding public property here.

Yes, it looks better. I will put @ownKeys function in a global variable.
Comment 5 Yusuke Suzuki 2019-03-04 13:20:33 PST
Committed r242382: <https://trac.webkit.org/changeset/242382>
Comment 6 Radar WebKit Bug Importer 2019-03-04 13:22:11 PST
<rdar://problem/48574399>