942989e76f
Make it available on the stable branch. Fix the version numbers for when it was enabled. (3.9 as experiment enabled is not entirely correct, as the experiment was not available on the stable channel in 3.9, only on betas of 3.9.) And disable passing data assets under the same experiment flag. Note: It seems that it was accidentally still marked as 3.9 and then got swept up in https://dart-review.googlesource.com/c/sdk/+/443803. TEST=dartdev native assets tests Bug: https://github.com/dart-lang/sdk/issues/50565 Change-Id: I4c44ad22e32673d6a951017d0cf6d3374dd20429 Cq-Include-Trybots: luci.dart.try:pkg-linux-debug-try,pkg-linux-release-arm64-try,pkg-linux-release-try,pkg-mac-release-arm64-try,pkg-mac-release-try,pkg-win-release-arm64-try,pkg-win-release-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/449803 Reviewed-by: Ivan Inozemtsev <iinozemtsev@google.com> Reviewed-by: Michael Goderbauer <goderbauer@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
65 lines
2.0 KiB
C++
65 lines
2.0 KiB
C++
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
// NOTE: THIS FILE IS GENERATED. DO NOT EDIT.
|
|
//
|
|
// Instead modify 'tools/experimental_features.yaml' and run
|
|
// 'dart tools/generate_experimental_flags.dart' to update.
|
|
|
|
#include "vm/experimental_features.h"
|
|
|
|
#include <cstring>
|
|
#include "platform/assert.h"
|
|
#include "vm/globals.h"
|
|
|
|
namespace dart {
|
|
|
|
bool GetExperimentalFeatureDefault(ExperimentalFeature feature) {
|
|
constexpr bool kFeatureValues[] = {
|
|
true, true, true, true, true, true, true, true, true, true,
|
|
true, true, true, true, true, true, true, true, true, true,
|
|
true, true, true, true, true, true, true, true, true, true,
|
|
};
|
|
ASSERT(static_cast<size_t>(feature) < ARRAY_SIZE(kFeatureValues));
|
|
return kFeatureValues[static_cast<int>(feature)];
|
|
}
|
|
|
|
const char* GetExperimentalFeatureName(ExperimentalFeature feature) {
|
|
constexpr const char* kFeatureNames[] = {
|
|
"dot-shorthands",
|
|
"native-assets",
|
|
"getter-setter-error",
|
|
"sound-flow-analysis",
|
|
"null-aware-elements",
|
|
"inference-using-bounds",
|
|
"wildcard-variables",
|
|
"digit-separators",
|
|
"inference-update-3",
|
|
"inline-class",
|
|
"inference-update-2",
|
|
"sealed-class",
|
|
"class-modifiers",
|
|
"records",
|
|
"patterns",
|
|
"unnamed-libraries",
|
|
"inference-update-1",
|
|
"enhanced-enums",
|
|
"named-arguments-anywhere",
|
|
"super-parameters",
|
|
"constructor-tearoffs",
|
|
"generic-metadata",
|
|
"triple-shift",
|
|
"nonfunction-type-aliases",
|
|
"non-nullable",
|
|
"extension-methods",
|
|
"constant-update-2018",
|
|
"control-flow-collections",
|
|
"set-literals",
|
|
"spread-collections",
|
|
};
|
|
ASSERT(static_cast<size_t>(feature) < ARRAY_SIZE(kFeatureNames));
|
|
return kFeatureNames[static_cast<int>(feature)];
|
|
}
|
|
|
|
} // namespace dart
|