Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Issue 986553005: Contribution of PowerPC port (continuation of 422063005) - serialize.cc cleanup (Closed)

Created:
5 years, 9 months ago by michael_dawson
Modified:
5 years, 9 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Contribution of PowerPC port (continuation of 422063005) - serialize.cc cleanup Contribution of PowerPC port (continuation of 422063005, 817143002,866843003, and 901083004). This patch updates the ppc directories to make them current with changes in common code and removes the platform-dependent "hack" in serialize.cc. This required changes in a number of common files. At the time of submission it was current with the latest V8 commits. ppc64 and ppc sim compile and the release tests run/pass with a timeout of 240s except for one new test that we did not see failing in our builds. In order to maximumize the likelyhood of getting this in before new breaking changes, we'll investigate the new failure separately. I'll note that before applying any of our changes the mozilla part of quickcheck was already broken when using the lastest repo content so I had to run the rest of quickcheck without that. modified: src/arm/assembler-arm-inl.h modified: src/arm/assembler-arm.cc modified: src/arm64/assembler-arm64-inl.h modified: src/arm64/assembler-arm64.cc modified: src/assembler.cc modified: src/assembler.h modified: src/compiler/ppc/code-generator-ppc.cc modified: src/compiler/ppc/instruction-codes-ppc.h modified: src/compiler/ppc/instruction-selector-ppc.cc modified: src/debug.cc modified: src/heap/mark-compact.cc modified: src/ia32/assembler-ia32-inl.h modified: src/ia32/assembler-ia32.cc modified: src/ic/ppc/handler-compiler-ppc.cc modified: src/ic/ppc/ic-compiler-ppc.cc modified: src/mips/assembler-mips-inl.h modified: src/mips/assembler-mips.cc modified: src/mips64/assembler-mips64-inl.h modified: src/mips64/assembler-mips64.cc modified: src/ppc/assembler-ppc-inl.h modified: src/ppc/assembler-ppc.cc modified: src/ppc/assembler-ppc.h modified: src/ppc/builtins-ppc.cc modified: src/ppc/code-stubs-ppc.cc modified: src/ppc/codegen-ppc.cc modified: src/ppc/full-codegen-ppc.cc modified: src/ppc/macro-assembler-ppc.cc modified: src/ppc/macro-assembler-ppc.h modified: src/serialize.cc modified: src/x64/assembler-x64-inl.h modified: src/x64/assembler-x64.cc modified: src/x87/assembler-x87-inl.h modified: src/x87/assembler-x87.cc modified: test/cctest/cctest.gyp R=danno@chromium.org, svenpanne@chromium.org BUG=

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+595 lines, -402 lines) Patch
M src/arm/assembler-arm.cc View 1 chunk +3 lines, -1 line 0 comments Download
M src/arm/assembler-arm-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/arm64/assembler-arm64.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/arm64/assembler-arm64-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/assembler.h View 9 chunks +32 lines, -11 lines 1 comment Download
M src/assembler.cc View 8 chunks +38 lines, -23 lines 0 comments Download
M src/compiler/ppc/code-generator-ppc.cc View 1 chunk +26 lines, -0 lines 0 comments Download
M src/compiler/ppc/instruction-codes-ppc.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/compiler/ppc/instruction-selector-ppc.cc View 2 chunks +47 lines, -11 lines 0 comments Download
M src/debug.cc View 3 chunks +7 lines, -1 line 2 comments Download
M src/heap/mark-compact.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/ia32/assembler-ia32.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M src/ia32/assembler-ia32-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ic/ppc/handler-compiler-ppc.cc View 3 chunks +15 lines, -21 lines 0 comments Download
M src/ic/ppc/ic-compiler-ppc.cc View 1 chunk +4 lines, -1 line 0 comments Download
M src/mips/assembler-mips.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M src/mips/assembler-mips-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/mips64/assembler-mips64.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M src/mips64/assembler-mips64-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/ppc/assembler-ppc.h View 7 chunks +26 lines, -21 lines 0 comments Download
M src/ppc/assembler-ppc.cc View 15 chunks +113 lines, -77 lines 0 comments Download
M src/ppc/assembler-ppc-inl.h View 2 chunks +28 lines, -16 lines 0 comments Download
M src/ppc/builtins-ppc.cc View 2 chunks +4 lines, -1 line 0 comments Download
M src/ppc/code-stubs-ppc.cc View 11 chunks +99 lines, -49 lines 0 comments Download
M src/ppc/codegen-ppc.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M src/ppc/full-codegen-ppc.cc View 7 chunks +48 lines, -25 lines 0 comments Download
M src/ppc/macro-assembler-ppc.h View 4 chunks +5 lines, -13 lines 0 comments Download
M src/ppc/macro-assembler-ppc.cc View 2 chunks +40 lines, -101 lines 0 comments Download
M src/serialize.cc View 2 chunks +8 lines, -6 lines 3 comments Download
M src/x64/assembler-x64.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M src/x64/assembler-x64-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/x87/assembler-x87.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M src/x87/assembler-x87-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/cctest.gyp View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (1 generated)
michael_dawson
Patch to clean up serialize.cc and bring us to currency with changes from the last ...
5 years, 9 months ago (2015-03-07 01:55:20 UTC) #1
Sven Panne
@Yang: Can you have a quick look at serialize.cc, please? @Hannes: Same for mark-compact.cc? I'll ...
5 years, 9 months ago (2015-03-09 07:36:53 UTC) #3
Yang
On 2015/03/09 07:36:53, Sven Panne wrote: > @Yang: Can you have a quick look at ...
5 years, 9 months ago (2015-03-09 08:03:46 UTC) #4
Yang
https://codereview.chromium.org/986553005/diff/1/src/assembler.h File src/assembler.h (right): https://codereview.chromium.org/986553005/diff/1/src/assembler.h#newcode399 src/assembler.h:399: CONST_POOL = ARCH1, I strongly object using same enum ...
5 years, 9 months ago (2015-03-09 08:03:56 UTC) #5
Sven Panne
I don't like RelocInfo/serializer changes, either. I see that you might need to distinguish between ...
5 years, 9 months ago (2015-03-09 08:16:28 UTC) #6
michael_dawson
On 2015/03/09 08:16:28, Sven Panne wrote: > I don't like RelocInfo/serializer changes, either. I see ...
5 years, 9 months ago (2015-03-09 15:15:33 UTC) #7
MTBrandyberry
On 2015/03/09 08:16:28, Sven Panne wrote: > I don't like RelocInfo/serializer changes, either. I see ...
5 years, 9 months ago (2015-03-09 21:51:02 UTC) #8
Sven Panne
On 2015/03/09 15:15:33, michael_dawson wrote: > We will disentangle the serialize.cc change from the currency ...
5 years, 9 months ago (2015-03-10 07:41:00 UTC) #9
michael_dawson
On 2015/03/10 07:41:00, Sven Panne wrote: > On 2015/03/09 15:15:33, michael_dawson wrote: > > We ...
5 years, 9 months ago (2015-03-10 13:32:38 UTC) #10
Sven Panne
On 2015/03/10 13:32:38, michael_dawson wrote: > I can see once we are caught up and ...
5 years, 9 months ago (2015-03-10 13:45:14 UTC) #11
michael_dawson
On 2015/03/10 13:45:14, Sven Panne wrote: > On 2015/03/10 13:32:38, michael_dawson wrote: > > I ...
5 years, 9 months ago (2015-03-10 14:06:46 UTC) #12
michael_dawson
On 2015/03/10 14:06:46, michael_dawson wrote: > On 2015/03/10 13:45:14, Sven Panne wrote: > > On ...
5 years, 9 months ago (2015-03-10 22:31:06 UTC) #13
michael_dawson
On 2015/03/10 22:31:06, michael_dawson wrote: > On 2015/03/10 14:06:46, michael_dawson wrote: > > On 2015/03/10 ...
5 years, 9 months ago (2015-03-11 14:38:12 UTC) #14
michael_dawson
5 years, 9 months ago (2015-03-16 22:08:39 UTC) #15
On 2015/03/11 14:38:12, michael_dawson wrote:
> On 2015/03/10 22:31:06, michael_dawson wrote:
> > On 2015/03/10 14:06:46, michael_dawson wrote:
> > > On 2015/03/10 13:45:14, Sven Panne wrote:
> > > > On 2015/03/10 13:32:38, michael_dawson wrote:
> > > > > I can see once we are caught up and can get them in more quickly
> > > > > it may be easier but for now its going to be a reasonable amount
> > > > > of extra work for us since we have to strip out the parts that
> > > > > are not accepted yet and then apply the changes to a code base
> > > > > that is behind our repo. Is there a way to avoid doing them 
> > > > > sequentially?
> > > > 
> > > > OK, to speed things up, we can make an exception for this CL: Split off
> the
> > > > controversial serializer part and have a single catch-up CL for the
rest.
> > But
> > > > for upcoming tracking CLs in the PPC part, we really want to have them
> > > > separately, just like for MIPS. We don't want that to torture you, quite
> the
> > > > opposite: :-) There is basically no such thing as a "trivial CL" in v8,
> and
> > > you
> > > > *will* have to revert your own stuff quite often. With combined CLs,
this
> > will
> > > > be no fun. Furthermore, it happens from time to time that *we* revert
some
> > > > stuff, so we/you would have to undo the corresponding change in the PPC
> > part,
> > > > too. Again, this is highly complicated for combined CLs. We learned that
> the
> > > > hard way, and that's why we're strict about that regime by now. :-}
> > > 
> > > Thanks, will start to create that review now.  
> > > > 
> > > > > From what I understand so far I think I'll have
> > > > > wait for one to be accepted before I can create the next in most 
> > > > > cases as there may be dependencies
> > > > 
> > > > There shouldn't be too many dependencies between the CLs tracking the
rest
> > of
> > > > the v8 changes, at least that's how it was in the past.
> > > > 
> > > > > and if I pull in earlier changes
> > > > > before they are accepted those would show up in the later review
> > > > > as well.
> > > > 
> > > > Technically you can set up the base URL to stack CLs onto each other,
but
> > this
> > > > gets confusing quickly, so I wouldn't recommend it. When things are
> settled
> > > down
> > > > and you are an OWNER of the PPC subdirectories, the turnaround times
> should
> > be
> > > > small, anyway.
> > > 
> > > We've already been committing the changes required
> > > for each common code change in separate commits in our repo.  
> > > Once we can turn them around quickly in the google repo as well it should
> > > be much easier to commit them separately.
> > 
> > Ok new review just to bring us to to current.
> > 
> > https://codereview.chromium.org/994533004/
> > 
> > I assume once that's in we can get comments on what we outlined in the
google
> > doc for 
> > how to address the changes in serialize.cc.  We had to exclude the test
> > test-serialize/SerializeInternalReference as it requires the proposed change
> to
> > be able to 
> > pass for PPC.
> 
> Any chance you've had a chance to review:
>
https://docs.google.com/document/d/1Qs7bcehIhUSl80TnUautl_VQym-At4rD42YL1r5cr...

I think we can close this issue as being resolved as of
https://codereview.chromium.org/1008963002/

Powered by Google App Engine
This is Rietveld 408576698