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

Issue 2699853002: Sort class IDs before training AppJIT snapshots (Closed)

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

Description

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add DeleteAllCode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+300 lines, -269 lines) Patch
M runtime/bin/main.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/include/dart_api.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M runtime/vm/class_finalizer.h View 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/vm/class_finalizer.cc View 2 chunks +269 lines, -0 lines 0 comments Download
M runtime/vm/class_table.h View 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/vm/class_table.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/heap.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/isolate.h View 2 chunks +3 lines, -0 lines 0 comments Download
M runtime/vm/isolate.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M runtime/vm/precompiler.h View 2 chunks +0 lines, -4 lines 0 comments Download
M runtime/vm/precompiler.cc View 6 chunks +4 lines, -257 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
erikcorry
3 years, 10 months ago (2017-02-16 09:05:26 UTC) #1
Florian Schneider
+Ryan
3 years, 10 months ago (2017-02-16 09:08:34 UTC) #3
Florian Schneider
Lgtm. Please run tests with -capp_jit -mdebug,release,product https://codereview.chromium.org/2699853002/diff/1/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://codereview.chromium.org/2699853002/diff/1/runtime/include/dart_api.h#newcode3286 runtime/include/dart_api.h:3286: DART_EXPORT void ...
3 years, 10 months ago (2017-02-16 10:05:07 UTC) #4
rmacnak
lgtm w/c Commit message: when writing snapshots -> before training snapshots https://codereview.chromium.org/2699853002/diff/1/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): ...
3 years, 10 months ago (2017-02-16 17:19:20 UTC) #5
erikcorry
Committed patchset #2 (id:20001) manually as c6a199e40b0fa67eef293bdef52e897264e0ef7f (presubmit successful).
3 years, 10 months ago (2017-02-20 11:14:27 UTC) #8
erikcorry
https://codereview.chromium.org/2699853002/diff/1/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://codereview.chromium.org/2699853002/diff/1/runtime/include/dart_api.h#newcode3286 runtime/include/dart_api.h:3286: DART_EXPORT void On 2017/02/16 10:05:06, Florian Schneider wrote: > ...
3 years, 10 months ago (2017-02-20 12:35:19 UTC) #9
zra
DBC Should Dart_SortClasses *really* be part of the public API? Couldn't it at least just ...
3 years, 10 months ago (2017-02-20 16:59:17 UTC) #11
zra
3 years, 10 months ago (2017-02-21 17:39:05 UTC) #12
Message was sent while issue was closed.
On 2017/02/20 16:59:17, zra wrote:
> DBC
> 
> Should Dart_SortClasses *really* be part of the public API?
> 
> Couldn't it at least just be an optional part of some other call?

I think this should try to piggy-back on Dart_FinalizeLoading() defined here:

https://github.com/dart-lang/sdk/blob/master/runtime/vm/dart_api_impl.cc#L5850

instead of adding a new call.

Would it also be possible to add a test that checks that the classes are
actually sorted before the first compile happens?

Powered by Google App Engine
This is Rietveld 408576698