gin_features.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 "base/time/time.h"
  9. #include "gin/gin_export.h"
  10. namespace features {
  11. GIN_EXPORT extern const base::Feature kV8CompactCodeSpaceWithStack;
  12. GIN_EXPORT extern const base::Feature kV8CompactMaps;
  13. GIN_EXPORT extern const base::Feature kV8CompactWithStack;
  14. GIN_EXPORT extern const base::Feature kV8ConcurrentSparkplug;
  15. GIN_EXPORT extern const base::FeatureParam<int>
  16. kV8ConcurrentSparkplugMaxThreads;
  17. GIN_EXPORT extern const base::Feature kV8ConcurrentSparkplugHighPriorityThreads;
  18. GIN_EXPORT extern const base::Feature kV8CrashOnEvacuationFailure;
  19. GIN_EXPORT extern const base::Feature kV8ExperimentalRegexpEngine;
  20. GIN_EXPORT extern const base::Feature kV8FlushBytecode;
  21. GIN_EXPORT extern const base::FeatureParam<int> kV8FlushBytecodeOldAge;
  22. GIN_EXPORT extern const base::Feature kV8FlushBaselineCode;
  23. GIN_EXPORT extern const base::Feature kV8FlushEmbeddedBlobICache;
  24. GIN_EXPORT extern const base::Feature kV8LazyFeedbackAllocation;
  25. GIN_EXPORT extern const base::Feature kV8NoReclaimUnmodifiedWrappers;
  26. GIN_EXPORT extern const base::Feature kV8CodeMemoryWriteProtection;
  27. GIN_EXPORT extern const base::Feature kV8OffThreadFinalization;
  28. GIN_EXPORT extern const base::Feature kV8OptimizeJavascript;
  29. GIN_EXPORT extern const base::Feature kV8PerContextMarkingWorklist;
  30. GIN_EXPORT extern const base::Feature kV8ReduceConcurrentMarkingTasks;
  31. GIN_EXPORT extern const base::Feature kV8ScriptAblation;
  32. GIN_EXPORT extern const base::FeatureParam<double> kV8ScriptDelayFraction;
  33. GIN_EXPORT extern const base::FeatureParam<int> kV8ScriptDelayMs;
  34. GIN_EXPORT extern const base::FeatureParam<int> kV8ScriptDelayOnceMs;
  35. GIN_EXPORT extern const base::Feature kV8ShortBuiltinCalls;
  36. GIN_EXPORT extern const base::Feature kV8SlowHistograms;
  37. GIN_EXPORT extern const base::Feature
  38. kV8SlowHistogramsCodeMemoryWriteProtection;
  39. GIN_EXPORT extern const base::Feature kV8SlowHistogramsSparkplug;
  40. GIN_EXPORT extern const base::Feature kV8SlowHistogramsSparkplugAndroid;
  41. GIN_EXPORT extern const base::Feature kV8SlowHistogramsScriptAblation;
  42. GIN_EXPORT extern const base::Feature kV8Sparkplug;
  43. GIN_EXPORT extern const base::Feature kV8SparkplugNeedsShortBuiltinCalls;
  44. GIN_EXPORT extern const base::Feature kV8TurboFastApiCalls;
  45. GIN_EXPORT extern const base::Feature kV8Turboprop;
  46. GIN_EXPORT extern const base::Feature kV8UseMapSpace;
  47. GIN_EXPORT extern const base::Feature kV8DelayMemoryReducer;
  48. GIN_EXPORT extern const base::FeatureParam<base::TimeDelta>
  49. kV8MemoryReducerStartDelay;
  50. } // namespace features
  51. #endif // GIN_GIN_FEATURES_H_