Bug 186896 - Do some CoW cleanup
Summary: Do some CoW cleanup
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Saam Barati
URL:
Keywords: InRadar
Depends on: 187051
Blocks:
  Show dependency treegraph
 
Reported: 2018-06-21 14:24 PDT by Saam Barati
Modified: 2018-06-26 10:30 PDT (History)
16 users (show)

See Also:


Attachments
patch (3.56 KB, patch)
2018-06-21 14:53 PDT, Saam Barati
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Saam Barati 2018-06-21 14:24:08 PDT
...
Comment 1 Saam Barati 2018-06-21 14:53:06 PDT
Created attachment 343278 [details]
patch
Comment 2 Mark Lam 2018-06-21 14:57:22 PDT
Comment on attachment 343278 [details]
patch

r=me
Comment 3 Keith Miller 2018-06-21 14:57:53 PDT
Comment on attachment 343278 [details]
patch

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

> Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:-4598
> -            // TODO: Do I need this?

Whoops, that's definitely my bad! lol
Comment 4 WebKit Commit Bot 2018-06-21 15:57:16 PDT
Comment on attachment 343278 [details]
patch

Clearing flags on attachment: 343278

Committed r233065: <https://trac.webkit.org/changeset/233065>
Comment 5 WebKit Commit Bot 2018-06-21 15:57:17 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2018-06-21 15:58:19 PDT
<rdar://problem/41347603>
Comment 7 Carlos Alberto Lopez Perez 2018-06-22 04:59:43 PDT
(In reply to WebKit Commit Bot from comment #4)
> Comment on attachment 343278 [details]
> patch
> 
> Clearing flags on attachment: 343278
> 
> Committed r233065: <https://trac.webkit.org/changeset/233065>

This broke our Ubuntu bot (clang-3.8 with libstcd++-5.4)


./../Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.h:312:16: error: chosen constructor is explicit in copy-initialization
        return { profile, recommendedIndexingType };
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/tuple:612:19: note: constructor declared here
        constexpr tuple(_U1&& __a1, _U2&& __a2)
                  ^
1 error generated.


Log: https://build.webkit.org/builders/GTK%20Linux%2064-bit%20Release%20Ubuntu%20LTS%20%28Build%29/builds/13359/steps/compile-webkit/logs/stdio
Comment 8 Keith Miller 2018-06-22 08:45:22 PDT
(In reply to Carlos Alberto Lopez Perez from comment #7)
> (In reply to WebKit Commit Bot from comment #4)
> > Comment on attachment 343278 [details]
> > patch
> > 
> > Clearing flags on attachment: 343278
> > 
> > Committed r233065: <https://trac.webkit.org/changeset/233065>
> 
> This broke our Ubuntu bot (clang-3.8 with libstcd++-5.4)
> 
> 
> ./../Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.h:312:16: error:
> chosen constructor is explicit in copy-initialization
>         return { profile, recommendedIndexingType };
>                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/
> tuple:612:19: note: constructor declared here
>         constexpr tuple(_U1&& __a1, _U2&& __a2)
>                   ^
> 1 error generated.
> 
> 
> Log:
> https://build.webkit.org/builders/GTK%20Linux%2064-
> bit%20Release%20Ubuntu%20LTS%20%28Build%29/builds/13359/steps/compile-webkit/
> logs/stdio

There probably just needs to be a WTFMove around profile and recommendedIndexingType.
Comment 9 Carlos Alberto Lopez Perez 2018-06-26 10:30:03 PDT
(In reply to Keith Miller from comment #8)
> (In reply to Carlos Alberto Lopez Perez from comment #7)
> > (In reply to WebKit Commit Bot from comment #4)
> > > Comment on attachment 343278 [details]
> > > patch
> > > 
> > > Clearing flags on attachment: 343278
> > > 
> > > Committed r233065: <https://trac.webkit.org/changeset/233065>
> > 
> > This broke our Ubuntu bot (clang-3.8 with libstcd++-5.4)
> > 
> > 
> > ./../Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.h:312:16: error:
> > chosen constructor is explicit in copy-initialization
> >         return { profile, recommendedIndexingType };
> >                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/
> > tuple:612:19: note: constructor declared here
> >         constexpr tuple(_U1&& __a1, _U2&& __a2)
> >                   ^
> > 1 error generated.
> > 
> > 
> > Log:
> > https://build.webkit.org/builders/GTK%20Linux%2064-
> > bit%20Release%20Ubuntu%20LTS%20%28Build%29/builds/13359/steps/compile-webkit/
> > logs/stdio
> 
> There probably just needs to be a WTFMove around profile and
> recommendedIndexingType.

That didn't worked.. I was only able to fix the build error by reverting changes of  r233065 over UnlinkedCodeBlock.h

I have submitted a patch for fixing this at bug 187051 .. if you can review it that will be great.