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

Issue 2902313004: CoreJIT snapshots without training. (Closed)

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

Description

CoreJIT snapshots without training. Only include OSR and field guards in the features descriptor for JIT code to avoid gen_snapshot and dart having different default values. Disabled since core snapshots with code break tests with non-default flags for type checks, assertions, strict errors, OSR, or field guards. R=zra@google.com Committed: https://github.com/dart-lang/sdk/commit/76df24b0762e43af2da0954ddf30d7a9903c9f30

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : gn #

Total comments: 2

Patch Set 5 : . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+408 lines, -225 lines) Patch
M runtime/bin/BUILD.gn View 1 2 3 4 5 chunks +33 lines, -15 lines 0 comments Download
M runtime/bin/gen_snapshot.cc View 1 2 3 4 13 chunks +129 lines, -27 lines 0 comments Download
M runtime/bin/main.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M runtime/include/dart_api.h View 1 2 3 4 2 chunks +18 lines, -3 lines 2 comments Download
M runtime/lib/isolate.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/tools/create_snapshot_bin.py View 1 2 6 chunks +23 lines, -16 lines 0 comments Download
D runtime/tools/empty.bin View 0 chunks +-1 lines, --1 lines 0 comments Download
M runtime/vm/benchmark_test.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/clustered_snapshot.cc View 1 2 3 4 26 chunks +38 lines, -37 lines 0 comments Download
M runtime/vm/dart.cc View 3 chunks +12 lines, -3 lines 0 comments Download
M runtime/vm/dart_api_impl.h View 1 chunk +5 lines, -1 line 0 comments Download
M runtime/vm/dart_api_impl.cc View 15 chunks +91 lines, -62 lines 0 comments Download
M runtime/vm/flag_list.h View 2 chunks +1 line, -7 lines 0 comments Download
M runtime/vm/megamorphic_cache_table.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.cc View 9 chunks +9 lines, -9 lines 0 comments Download
M runtime/vm/object_store.h View 1 chunk +3 lines, -3 lines 0 comments Download
M runtime/vm/pages.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/precompiler.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/raw_object.h View 5 chunks +15 lines, -15 lines 0 comments Download
M runtime/vm/snapshot.h View 2 chunks +7 lines, -10 lines 0 comments Download
M runtime/vm/snapshot.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M runtime/vm/snapshot_test.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M tools/gn.py View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
rmacnak
3 years, 7 months ago (2017-05-26 00:37:49 UTC) #5
zra
https://codereview.chromium.org/2902313004/diff/40001/runtime/vm/clustered_snapshot.cc File runtime/vm/clustered_snapshot.cc (right): https://codereview.chromium.org/2902313004/diff/40001/runtime/vm/clustered_snapshot.cc#newcode1549 runtime/vm/clustered_snapshot.cc:1549: OS::Print("C"); leftover debug print? https://codereview.chromium.org/2902313004/diff/60001/runtime/bin/BUILD.gn File runtime/bin/BUILD.gn (right): https://codereview.chromium.org/2902313004/diff/60001/runtime/bin/BUILD.gn#newcode13 ...
3 years, 6 months ago (2017-05-31 17:10:31 UTC) #6
rmacnak
https://codereview.chromium.org/2902313004/diff/40001/runtime/vm/clustered_snapshot.cc File runtime/vm/clustered_snapshot.cc (right): https://codereview.chromium.org/2902313004/diff/40001/runtime/vm/clustered_snapshot.cc#newcode1549 runtime/vm/clustered_snapshot.cc:1549: OS::Print("C"); On 2017/05/31 17:10:31, zra wrote: > leftover debug ...
3 years, 6 months ago (2017-05-31 19:53:01 UTC) #7
zra
lgtm
3 years, 6 months ago (2017-05-31 19:53:51 UTC) #8
rmacnak
Committed patchset #5 (id:80001) manually as 76df24b0762e43af2da0954ddf30d7a9903c9f30 (presubmit successful).
3 years, 6 months ago (2017-05-31 20:49:18 UTC) #10
siva
lgtm https://codereview.chromium.org/2902313004/diff/80001/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://codereview.chromium.org/2902313004/diff/80001/runtime/include/dart_api.h#newcode3346 runtime/include/dart_api.h:3346: intptr_t* isolate_snapshot_instructions_size); The API has grown to have ...
3 years, 6 months ago (2017-05-31 21:14:16 UTC) #11
siva
lgtm
3 years, 6 months ago (2017-05-31 21:14:16 UTC) #12
rmacnak
3 years, 6 months ago (2017-06-01 00:37:05 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/2902313004/diff/80001/runtime/include/dart_api.h
File runtime/include/dart_api.h (right):

https://codereview.chromium.org/2902313004/diff/80001/runtime/include/dart_ap...
runtime/include/dart_api.h:3346: intptr_t* isolate_snapshot_instructions_size);
On 2017/05/31 21:14:15, siva wrote:
> The API has grown to have so many options I am wondering is we should define a
> structure and pass just one arg
> 
> enum SnapshotKind {
>   Dart_kNone,
>   Dart_kScript,
>   ...
> };
> 
> typedef struct {
>   SnapshotKind kind;  
>   uint8_t** vm_snapshot_data_buffer;
>   intptr_t* vm_snapshot_data_size;
>   ....
>   ....
>   ....
> } Dart_SnapshotParams;
> 
> DART_EXPORT Dart_Handle Dart_CreateCoreJITSnapshotAsBlobs(Dart_SnapshotParams*
> params);
> 
> I am also wondering if we can have just one function for all the kinds:
> Dart_CreateSnapshot(Dart_SnapshotParams* params);

This seems promising.

Powered by Google App Engine
This is Rietveld 408576698