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

Issue 2070653003: Rework v8_target_arch / target_cpu approach to use v8_target_cpu. (Closed)

Created:
4 years, 6 months ago by Dirk Pranke
Modified:
4 years, 6 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rework v8_target_arch / target_cpu approach to use v8_target_cpu. This CL reworks how we get architecture-specific build args configured correctly so that they will be set when needed for either the current_cpu in the build toolchain *or* when needed to compile v8 correctly. Eventually we should rework this so that it is a generic concept and not v8 specific. R=brettw@chromium.org, thakis@chromium.org, jochen@chromium.org, machenbach@chromium.org BUG=619503, 620527 Committed: https://crrev.com/909e931c942774a052b493bd0061325502373f3a Cr-Commit-Position: refs/heads/master@{#400219}

Patch Set 1 #

Total comments: 6

Patch Set 2 : update w/ review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -7 lines) Patch
M build/config/arm.gni View 1 2 chunks +6 lines, -5 lines 0 comments Download
M build/config/mips.gni View 2 chunks +8 lines, -2 lines 0 comments Download
A build/config/v8_target_cpu.gni View 1 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
Dirk Pranke
4 years, 6 months ago (2016-06-16 01:21:17 UTC) #2
Michael Achenbach
lgtm https://codereview.chromium.org/2070653003/diff/1/build/config/arm.gni File build/config/arm.gni (right): https://codereview.chromium.org/2070653003/diff/1/build/config/arm.gni#newcode90 build/config/arm.gni:90: } else if (current_cpu == "arm64" || v8_target_cpu ...
4 years, 6 months ago (2016-06-16 07:49:55 UTC) #4
Nico
lgtm https://codereview.chromium.org/2070653003/diff/1/build/config/arm.gni File build/config/arm.gni (right): https://codereview.chromium.org/2070653003/diff/1/build/config/arm.gni#newcode11 build/config/arm.gni:11: if (v8_target_cpu == "arm" || current_cpu == "arm") ...
4 years, 6 months ago (2016-06-16 08:17:28 UTC) #5
Dirk Pranke
https://codereview.chromium.org/2070653003/diff/1/build/config/arm.gni File build/config/arm.gni (right): https://codereview.chromium.org/2070653003/diff/1/build/config/arm.gni#newcode11 build/config/arm.gni:11: if (v8_target_cpu == "arm" || current_cpu == "arm") { ...
4 years, 6 months ago (2016-06-16 17:35:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2070653003/20001
4 years, 6 months ago (2016-06-16 17:37:13 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-16 18:43:49 UTC) #11
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/909e931c942774a052b493bd0061325502373f3a Cr-Commit-Position: refs/heads/master@{#400219}
4 years, 6 months ago (2016-06-16 18:46:57 UTC) #13
Michael Achenbach
> https://codereview.chromium.org/2070653003/diff/1/build/config/v8_target_cpu.gni > File build/config/v8_target_cpu.gni (right): > > https://codereview.chromium.org/2070653003/diff/1/build/config/v8_target_cpu.gni#newcode19 > build/config/v8_target_cpu.gni:19: v8_target_cpu = target_cpu > ...
4 years, 6 months ago (2016-06-17 06:51:41 UTC) #14
Dirk Pranke
4 years, 6 months ago (2016-06-17 15:56:46 UTC) #15
Message was sent while issue was closed.
On 2016/06/17 06:51:41, Michael Achenbach wrote:
> >
>
https://codereview.chromium.org/2070653003/diff/1/build/config/v8_target_cpu.gni
> > File build/config/v8_target_cpu.gni (right):
> > 
> >
>
https://codereview.chromium.org/2070653003/diff/1/build/config/v8_target_cpu....
> > build/config/v8_target_cpu.gni:19: v8_target_cpu = target_cpu
> > On 2016/06/16 07:49:55, Michael Achenbach wrote:
> > > This logic:
> > > https://cs.chromium.org/chromium/src/v8/gni/v8.gni?l=24
> > > 
> > > should move here too. Maybe with an extra check that target_cpu==x64,
> > otherwise
> > > v8_target_cpu arm64 makes no sense.
> > 
> > Done, in the interest of moving forward, but I was wondering about this ...
> does
> > this mean that the normal x64 JIT path doesn't work correctly under MSAN?
That
> > seems bad ...
> 
> I think it works, but it doesn't use a simulator and therefore doesn't
> instrument and check the jitted code. The real power comes from msan +
> simulator. We'd need an x64 on x64 simulator, but we don't have one.

Ah, makes sense.

Powered by Google App Engine
This is Rietveld 408576698