RuntimeConfig.h 716 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include "CommonDef.h"
  3. namespace hybridclr
  4. {
  5. enum class RuntimeOptionId
  6. {
  7. InterpreterThreadObjectStackSize = 1,
  8. InterpreterThreadFrameStackSize = 2,
  9. InterpreterThreadExceptionFlowSize = 3,
  10. MaxMethodBodyCacheSize = 4,
  11. MaxMethodInlineDepth = 5,
  12. };
  13. class RuntimeConfig
  14. {
  15. public:
  16. static int32_t GetRuntimeOption(RuntimeOptionId optionId);
  17. static void SetRuntimeOption(RuntimeOptionId optionId, int32_t value);
  18. static uint32_t GetInterpreterThreadObjectStackSize();
  19. static uint32_t GetInterpreterThreadFrameStackSize();
  20. static uint32_t GetInterpreterThreadExceptionFlowSize();
  21. static int32_t GetMaxMethodBodyCacheSize();
  22. static int32_t GetMaxMethodInlineDepth();
  23. };
  24. }