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

Issue 2405393002: Use a single file for app snapshots. (Closed)

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

Description

Use a single file for app snapshots. For blobs, put all four pieces into a single file with a header describing their offsets. For dynamic libraries, move the vm isolate and isolate pieces into the dynamic library as additional read-only sections. Automatically detect if the script argument is an app snapshot and initialize the VM appropriately, similar to automatic detection of script snapshots. R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/4f8b16df3b3ce9654af03368344706efec247369

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 12

Patch Set 4 : okay #

Patch Set 5 : okay #

Total comments: 5

Patch Set 6 : . #

Patch Set 7 : gen_snapshot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+366 lines, -292 lines) Patch
M runtime/bin/dartutils.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M runtime/bin/extensions_android.cc View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/bin/extensions_fuchsia.cc View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/bin/extensions_linux.cc View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/bin/extensions_macos.cc View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/bin/extensions_win.cc View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/bin/file.h View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M runtime/bin/file_android.cc View 1 2 3 4 5 1 chunk +15 lines, -9 lines 0 comments Download
M runtime/bin/file_fuchsia.cc View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M runtime/bin/file_linux.cc View 1 2 3 4 5 1 chunk +15 lines, -8 lines 0 comments Download
M runtime/bin/file_macos.cc View 1 2 3 4 5 1 chunk +15 lines, -8 lines 0 comments Download
M runtime/bin/file_win.cc View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M runtime/bin/gen_snapshot.cc View 1 2 3 4 5 6 4 chunks +21 lines, -29 lines 0 comments Download
M runtime/bin/main.cc View 1 2 3 4 10 chunks +207 lines, -162 lines 0 comments Download
M runtime/include/dart_api.h View 1 chunk +0 lines, -4 lines 0 comments Download
M runtime/vm/clustered_snapshot.cc View 1 chunk +4 lines, -1 line 0 comments Download
M runtime/vm/dart_api_impl.cc View 4 chunks +4 lines, -24 lines 0 comments Download
M runtime/vm/snapshot.h View 1 3 chunks +12 lines, -3 lines 0 comments Download
M runtime/vm/snapshot.cc View 1 2 chunks +23 lines, -2 lines 0 comments Download
M tools/testing/dart/compiler_configuration.dart View 1 2 3 6 chunks +9 lines, -9 lines 0 comments Download
M tools/testing/dart/runtime_configuration.dart View 1 2 3 3 chunks +12 lines, -14 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
rmacnak
4 years, 2 months ago (2016-10-12 00:22:00 UTC) #4
siva
https://codereview.chromium.org/2405393002/diff/40001/runtime/bin/file.h File runtime/bin/file.h (right): https://codereview.chromium.org/2405393002/diff/40001/runtime/bin/file.h#newcode92 runtime/bin/file.h:92: void* MapReadExecute(int64_t position, int64_t length); Instead of having two ...
4 years, 2 months ago (2016-10-12 20:37:34 UTC) #5
rmacnak
https://codereview.chromium.org/2405393002/diff/40001/runtime/bin/file.h File runtime/bin/file.h (right): https://codereview.chromium.org/2405393002/diff/40001/runtime/bin/file.h#newcode92 runtime/bin/file.h:92: void* MapReadExecute(int64_t position, int64_t length); On 2016/10/12 20:37:33, siva ...
4 years, 2 months ago (2016-10-13 01:08:16 UTC) #6
siva
LGTM with comments. https://chromiumcodereview.appspot.com/2405393002/diff/80001/runtime/bin/file_android.cc File runtime/bin/file_android.cc (right): https://chromiumcodereview.appspot.com/2405393002/diff/80001/runtime/bin/file_android.cc#newcode90 runtime/bin/file_android.cc:90: break; default: return NULL; Also in ...
4 years, 2 months ago (2016-10-13 01:59:00 UTC) #7
rmacnak
Also updated gen_snapshot not to emit empty files for vmisolate and isolate when generating assembly. ...
4 years, 2 months ago (2016-10-13 21:17:34 UTC) #8
rmacnak
4 years, 2 months ago (2016-10-13 21:34:02 UTC) #10
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
4f8b16df3b3ce9654af03368344706efec247369 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698