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

Issue 2757783003: Set TARGET_OS_* from GN, falling back to HOST_OS_*. (Closed)

Created:
3 years, 9 months ago by rmacnak
Modified:
3 years, 9 months ago
Reviewers:
zra, Florian Schneider
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Set TARGET_OS_* from GN, falling back to HOST_OS_*. Use TARGET_OS_* instead of HOST_OS_* to decide on the assembly variant to use. Allows, say, a gen_snapshot compiled for a Mac to target Android when generating AOT as assembly. R=fschneider@google.com, zra@google.com Committed: https://github.com/dart-lang/sdk/commit/9f2668c9987f0a86cac9cd46c5e3418df22e9f38

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 8

Patch Set 6 : . #

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -82 lines) Patch
M runtime/BUILD.gn View 1 2 3 4 5 2 chunks +19 lines, -8 lines 0 comments Download
M runtime/platform/globals.h View 1 2 3 4 5 4 chunks +21 lines, -22 lines 0 comments Download
M runtime/vm/constants_arm.h View 1 2 3 4 5 3 chunks +6 lines, -10 lines 0 comments Download
M runtime/vm/cpu_arm.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M runtime/vm/dart.cc View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M runtime/vm/disassembler_arm.cc View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M runtime/vm/dwarf.cc View 1 2 3 4 5 3 chunks +12 lines, -6 lines 0 comments Download
M runtime/vm/simulator_arm.cc View 1 2 3 4 5 4 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/snapshot.cc View 1 2 3 4 5 6 3 chunks +15 lines, -15 lines 0 comments Download
M runtime/vm/stack_frame_arm.h View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M runtime/vm/stub_code_arm.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
rmacnak
3 years, 9 months ago (2017-03-17 01:16:49 UTC) #2
zra
https://codereview.chromium.org/2757783003/diff/80001/runtime/platform/globals.h File runtime/platform/globals.h (right): https://codereview.chromium.org/2757783003/diff/80001/runtime/platform/globals.h#newcode384 runtime/platform/globals.h:384: #if !defined(TARGET_OS_ANDROID) Why not: #if !defined(...) && \ !defined(...) ...
3 years, 9 months ago (2017-03-17 17:24:24 UTC) #3
rmacnak
https://codereview.chromium.org/2757783003/diff/80001/runtime/platform/globals.h File runtime/platform/globals.h (right): https://codereview.chromium.org/2757783003/diff/80001/runtime/platform/globals.h#newcode384 runtime/platform/globals.h:384: #if !defined(TARGET_OS_ANDROID) On 2017/03/17 17:24:24, zra wrote: > Why ...
3 years, 9 months ago (2017-03-17 18:22:16 UTC) #4
zra
lgtm and thanks for the cleanups https://codereview.chromium.org/2757783003/diff/80001/runtime/vm/snapshot.cc File runtime/vm/snapshot.cc (right): https://codereview.chromium.org/2757783003/diff/80001/runtime/vm/snapshot.cc#newcode899 runtime/vm/snapshot.cc:899: #if defined(TARGET_OS_LINUX) || ...
3 years, 9 months ago (2017-03-17 19:39:16 UTC) #5
Florian Schneider
lgtm
3 years, 9 months ago (2017-03-17 20:24:37 UTC) #6
rmacnak
3 years, 9 months ago (2017-03-20 21:48:34 UTC) #8
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
9f2668c9987f0a86cac9cd46c5e3418df22e9f38 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698