Bug 227722

Summary: Fix type error in testb3
Product: WebKit Reporter: Yijia Huang <yijia_huang>
Component: JavaScriptCoreAssignee: Yijia Huang <yijia_huang>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer, yijia_huang
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Yijia Huang 2021-07-06 14:30:47 PDT
...
Comment 1 Yijia Huang 2021-07-06 14:50:29 PDT
Created attachment 432976 [details]
Patch
Comment 2 Mark Lam 2021-07-06 14:54:48 PDT
Comment on attachment 432976 [details]
Patch

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

> Source/JavaScriptCore/b3/testb3_3.cpp:93
>          Value* lsbValue = root->appendNew<Const32Value>(proc, Origin(), lsb);
> -        Value* amountValue = root->appendNew<Const64Value>(proc, Origin(), amount);
> +        Value* amountValue = root->appendNew<Const32Value>(proc, Origin(), amount);

Why pass lab and amount in as int64_t then?  Ditto for lsbs and widths vectors, why Vector<int64_t>?
Comment 3 Mark Lam 2021-07-06 14:55:50 PDT
(In reply to Mark Lam from comment #2)
> Comment on attachment 432976 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=432976&action=review
> 
> > Source/JavaScriptCore/b3/testb3_3.cpp:93
> >          Value* lsbValue = root->appendNew<Const32Value>(proc, Origin(), lsb);
> > -        Value* amountValue = root->appendNew<Const64Value>(proc, Origin(), amount);
> > +        Value* amountValue = root->appendNew<Const32Value>(proc, Origin(), amount);
> 
> Why pass lab and amount in as int64_t then?  Ditto for lsbs and widths
> vectors, why Vector<int64_t>?

Can you fix these as well?
Comment 4 Yijia Huang 2021-07-06 15:06:28 PDT
Created attachment 432980 [details]
Patch
Comment 5 EWS 2021-07-06 15:49:40 PDT
Committed r279627 (239445@main): <https://commits.webkit.org/239445@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 432980 [details].
Comment 6 Radar WebKit Bug Importer 2021-07-06 15:50:21 PDT
<rdar://problem/80235431>