2
0

JITTimePolymorphicInlineCacheInfo.h 1.1 KB

123456789101112131415161718192021222324252627282930
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #pragma once
  6. class JITTimePolymorphicInlineCacheInfo
  7. {
  8. public:
  9. JITTimePolymorphicInlineCacheInfo();
  10. static void InitializeEntryPointPolymorphicInlineCacheInfo(
  11. __in Recycler * recycler,
  12. __in Js::EntryPointPolymorphicInlineCacheInfo * runtimeInfo,
  13. __out CodeGenWorkItemIDL * jitInfo);
  14. JITTimePolymorphicInlineCache * GetInlineCache(uint index) const;
  15. bool HasInlineCaches() const;
  16. byte GetUtil(uint index) const;
  17. private:
  18. static void InitializePolymorphicInlineCacheInfo(
  19. __in Recycler * recycler,
  20. __in Js::PolymorphicInlineCacheInfo * runtimeInfo,
  21. __out PolymorphicInlineCacheInfoIDL * jitInfo);
  22. PolymorphicInlineCacheInfoIDL m_data;
  23. };