Bug 205880

Summary: [JSC] Remove vm accessor in JSVirtualMachine to reduce binary size
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   
Bug Depends on: 205877    
Bug Blocks:    
Attachments:
Description Flags
Patch mark.lam: review+

Description Yusuke Suzuki 2020-01-07 12:14:43 PST
...
Comment 1 Yusuke Suzuki 2020-01-07 12:22:59 PST
Let's do it right now since it is the largest.
Comment 2 Yusuke Suzuki 2020-01-07 12:30:58 PST
Created attachment 387019 [details]
Patch
Comment 3 Yusuke Suzuki 2020-01-07 12:32:30 PST
Comment on attachment 387019 [details]
Patch

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

> Source/JavaScriptCore/API/JSVirtualMachine.mm:301
> +- (JSContextGroupRef)JSContextGroupRef

This style is following `JSContext JSContextRef` accessor.
Comment 4 Mark Lam 2020-01-07 12:35:28 PST
Comment on attachment 387019 [details]
Patch

Nice.  r=me if bots are green.  Please also run testapi locally to make sure there are no bad surprises (not expecting any).
Comment 5 Yusuke Suzuki 2020-01-07 13:10:47 PST
(In reply to Mark Lam from comment #4)
> Comment on attachment 387019 [details]
> Patch
> 
> Nice.  r=me if bots are green.  Please also run testapi locally to make sure
> there are no bad surprises (not expecting any).

OK, ensured locally.
Comment 6 Yusuke Suzuki 2020-01-07 13:13:29 PST
Committed r254152: <https://trac.webkit.org/changeset/254152>
Comment 7 Radar WebKit Bug Importer 2020-01-07 13:14:19 PST
<rdar://problem/58385111>