[vm] Reland NNBD flag flip

Bug: https://github.com/dart-lang/sdk/issues/40179
Change-Id: I3ab5e1f5a0ee69e9850910eee59611eb4583e498
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134601
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Liam Appelbe <liama@google.com>
This commit is contained in:
Liam Appelbe 2020-02-06 17:52:52 +00:00 committed by commit-bot@chromium.org
parent 9ec978eb4f
commit 130de1a837

View file

@ -126,13 +126,7 @@ class Dart : public AllStatic {
// TODO(dartbug.com/40342): Delete these functions.
static void set_non_nullable_flag(bool value) { non_nullable_flag_ = value; }
static bool non_nullable_flag() {
#ifdef DART_BUILT_WITH_NNBD_FLAG
return true;
#else
return non_nullable_flag_;
#endif
}
static bool non_nullable_flag() { return true; }
private:
static void WaitForIsolateShutdown();