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

Issue 2720123004: VM: Make Dart::FeaturesString respect isolate flags controlling asserts and type checks. (Closed)

Created:
3 years, 9 months ago by Vyacheslav Egorov (Google)
Modified:
3 years, 9 months ago
Reviewers:
rmacnak
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

VM: Make Dart::FeaturesString respect isolate flags controlling asserts and type checks. Before it simply looked at FLAG_enable_{asserts/type_checks}. We allow disabling or enabling type checks / asserts for newly created isolates through Dart_IsolateFlags even when they are enabled globally through FLAG_enable_{asserts/type_checks} flags. This change allows isolates to use app-jit snapshots trained with type checks / asserts disabled as long as isolate itself has type check and asserts disabled, independent of whether FLAG_enable_{asserts/type_checks} is set globally or not. Additionally disable type checks and asserts on Kernel isolate even if flags FLAG_enable_{asserts/type_checks} are set. This change allows to train Kernel app-jit snapshot once and use it both for $ dart --dfe=... and for $ dart --checked --dfe=... configurations. BUG= R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/ff9c17504a209d5f8a2b975fb45083c1fa75b8d5

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -17 lines) Patch
M runtime/vm/clustered_snapshot.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/clustered_snapshot.cc View 5 chunks +7 lines, -5 lines 0 comments Download
M runtime/vm/dart.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/dart.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M runtime/vm/kernel_isolate.cc View 1 chunk +5 lines, -1 line 0 comments Download
M runtime/vm/snapshot.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/snapshot.cc View 4 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Vyacheslav Egorov (Google)
Hi Ryan, Please take a look.
3 years, 9 months ago (2017-02-28 14:02:40 UTC) #2
rmacnak
LGTM (Noting this is very similar to the stalled CL https://codereview.chromium.org/2669543003/)
3 years, 9 months ago (2017-02-28 17:30:49 UTC) #3
Vyacheslav Egorov (Google)
Committed patchset #1 (id:1) manually as ff9c17504a209d5f8a2b975fb45083c1fa75b8d5 (presubmit successful).
3 years, 9 months ago (2017-02-28 20:05:33 UTC) #5
Vyacheslav Egorov (Google)
3 years, 9 months ago (2017-02-28 20:16:05 UTC) #6
Message was sent while issue was closed.
Ooops. We should have landed that.

Powered by Google App Engine
This is Rietveld 408576698