gin_features.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef GIN_GIN_FEATURES_H_
  5. #define GIN_GIN_FEATURES_H_
  6. #include "base/feature_list.h"
  7. #include "base/metrics/field_trial_params.h"
  8. #include "gin/gin_export.h"
  9. namespace features {
  10. GIN_EXPORT extern const base::Feature kV8CompactCodeSpaceWithStack;
  11. GIN_EXPORT extern const base::Feature kV8CompactMaps;
  12. GIN_EXPORT extern const base::Feature kV8CompactWithStack;
  13. GIN_EXPORT extern const base::Feature kV8ConcurrentSparkplug;
  14. GIN_EXPORT extern const base::FeatureParam<int>
  15. kV8ConcurrentSparkplugMaxThreads;
  16. GIN_EXPORT extern const base::Feature kV8CrashOnEvacuationFailure;
  17. GIN_EXPORT extern const base::Feature kV8ExperimentalRegexpEngine;
  18. GIN_EXPORT extern const base::Feature kV8FlushBytecode;
  19. GIN_EXPORT extern const base::Feature kV8FlushBaselineCode;
  20. GIN_EXPORT extern const base::Feature kV8FlushEmbeddedBlobICache;
  21. GIN_EXPORT extern const base::Feature kV8LazyFeedbackAllocation;
  22. GIN_EXPORT extern const base::Feature kV8NoReclaimUnmodifiedWrappers;
  23. GIN_EXPORT extern const base::Feature kV8CodeMemoryWriteProtection;
  24. GIN_EXPORT extern const base::Feature kV8OffThreadFinalization;
  25. GIN_EXPORT extern const base::Feature kV8OptimizeJavascript;
  26. GIN_EXPORT extern const base::Feature kV8PerContextMarkingWorklist;
  27. GIN_EXPORT extern const base::Feature kV8ReduceConcurrentMarkingTasks;
  28. GIN_EXPORT extern const base::Feature kV8ScriptAblation;
  29. GIN_EXPORT extern const base::FeatureParam<double> kV8ScriptDelayFraction;
  30. GIN_EXPORT extern const base::FeatureParam<int> kV8ScriptDelayMs;
  31. GIN_EXPORT extern const base::FeatureParam<int> kV8ScriptDelayOnceMs;
  32. GIN_EXPORT extern const base::Feature kV8ShortBuiltinCalls;
  33. GIN_EXPORT extern const base::Feature kV8SlowHistograms;
  34. GIN_EXPORT extern const base::Feature
  35. kV8SlowHistogramsCodeMemoryWriteProtection;
  36. GIN_EXPORT extern const base::Feature kV8SlowHistogramsSparkplug;
  37. GIN_EXPORT extern const base::Feature kV8SlowHistogramsSparkplugAndroid;
  38. GIN_EXPORT extern const base::Feature kV8SlowHistogramsScriptAblation;
  39. GIN_EXPORT extern const base::Feature kV8Sparkplug;
  40. GIN_EXPORT extern const base::Feature kV8SparkplugNeedsShortBuiltinCalls;
  41. GIN_EXPORT extern const base::Feature kV8TurboFastApiCalls;
  42. GIN_EXPORT extern const base::Feature kV8Turboprop;
  43. GIN_EXPORT extern const base::Feature kV8UseMapSpace;
  44. GIN_EXPORT extern const base::Feature kV8VirtualMemoryCage;
  45. } // namespace features
  46. #endif // GIN_GIN_FEATURES_H_