Bug 175549

Summary: Add some convenience utility accessor methods to MacroAssembler::CPUState.
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: JavaScriptCoreAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: fpizlo, jfbastien, keith_miller, msaboff, rmorisset, sbarati, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 174645    
Attachments:
Description Flags
proposed patch. sbarati: review+

Description Mark Lam 2017-08-14 15:17:51 PDT
Patch coming.
Comment 1 Radar WebKit Bug Importer 2017-08-14 15:18:27 PDT
<rdar://problem/33884868>
Comment 2 Mark Lam 2017-08-14 15:35:56 PDT
Created attachment 318075 [details]
proposed patch.
Comment 3 Saam Barati 2017-08-14 15:39:48 PDT
Comment on attachment 318075 [details]
proposed patch.

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

> Source/JavaScriptCore/assembler/MacroAssembler.h:1869
> +    template<typename T, typename std::enable_if<std::is_pointer<T>::value>::type* = nullptr>

I don't think you need the = nullptr and the * type.
Comment 4 Mark Lam 2017-08-14 15:51:54 PDT
Thanks for the review.

(In reply to Saam Barati from comment #3)
> Comment on attachment 318075 [details]
> proposed patch.
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=318075&action=review
> 
> > Source/JavaScriptCore/assembler/MacroAssembler.h:1869
> > +    template<typename T, typename std::enable_if<std::is_pointer<T>::value>::type* = nullptr>
> 
> I don't think you need the = nullptr and the * type.

Without the "* = nullptr", Clang complains: candidate template ignored: couldn't infer template argument ''.

I'll land it as is.
Comment 5 Mark Lam 2017-08-14 15:56:01 PDT
Landed in r220720: <http://trac.webkit.org/r220720>.