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

Issue 2692223002: Teach gen_snapshot how to create script snapshots if given a core snapshot to create them against. (Closed)

Created:
3 years, 10 months ago by rmacnak
Modified:
3 years, 10 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, goderbauer
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Teach gen_snapshot how to create script snapshots if given a core snapshot to create them against. Require an explicit --snapshot_kind option instead of inferring the desired snapshot kind from the combination of output file options. R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/b6a9be6e393286119800c2aea6f0081bed094313

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 5

Patch Set 4 : . #

Total comments: 2

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -124 lines) Patch
M runtime/bin/BUILD.gn View 1 chunk +3 lines, -1 line 0 comments Download
M runtime/bin/bin.gypi View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/bin/dartutils.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/bin/gen_snapshot.cc View 1 2 3 4 21 chunks +256 lines, -117 lines 0 comments Download
M runtime/tools/create_snapshot_bin.py View 1 2 3 4 3 chunks +12 lines, -4 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
rmacnak
For example, + ./out/DebugX64/gen_snapshot \ --snapshot_kind=script \ --vm_snapshot_data=out/DebugX64/gen/runtime/bin/vm_isolate_snapshot.bin \ --isolate_snapshot_data=out/DebugX64/gen/runtime/bin/isolate_snapshot.bin \ --script_snapshot=hello.scriptsnap \ /usr/local/google/home/rmacnak/hello.dart + ...
3 years, 10 months ago (2017-02-14 01:05:01 UTC) #3
siva
We should try and move as much of the snapshot related code into snapshot_utils.[h|cc] files ...
3 years, 10 months ago (2017-02-14 03:56:09 UTC) #4
rmacnak
I think we need some deeper changes to gen_snapshot.cc to make it look more like ...
3 years, 10 months ago (2017-02-14 23:39:39 UTC) #5
siva
lgtm https://codereview.chromium.org/2692223002/diff/60001/runtime/bin/gen_snapshot.cc File runtime/bin/gen_snapshot.cc (right): https://codereview.chromium.org/2692223002/diff/60001/runtime/bin/gen_snapshot.cc#newcode75 runtime/bin/gen_snapshot.cc:75: static SnapshotKind snapshot_kind = kNone; why not start ...
3 years, 10 months ago (2017-02-15 11:29:32 UTC) #6
rmacnak
https://codereview.chromium.org/2692223002/diff/60001/runtime/bin/gen_snapshot.cc File runtime/bin/gen_snapshot.cc (right): https://codereview.chromium.org/2692223002/diff/60001/runtime/bin/gen_snapshot.cc#newcode75 runtime/bin/gen_snapshot.cc:75: static SnapshotKind snapshot_kind = kNone; On 2017/02/15 11:29:32, siva ...
3 years, 10 months ago (2017-02-15 22:26:11 UTC) #7
rmacnak
3 years, 10 months ago (2017-02-15 22:28:42 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
b6a9be6e393286119800c2aea6f0081bed094313 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698