JITTimePolymorphicInlineCache.cpp 872 B

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. #include "Backend.h"
  6. JITTimePolymorphicInlineCache::JITTimePolymorphicInlineCache()
  7. {
  8. CompileAssert(sizeof(JITTimePolymorphicInlineCache) == sizeof(PolymorphicInlineCacheIDL));
  9. }
  10. intptr_t
  11. JITTimePolymorphicInlineCache::GetAddr() const
  12. {
  13. return reinterpret_cast<intptr_t>(PointerValue(m_data.addr));
  14. }
  15. intptr_t
  16. JITTimePolymorphicInlineCache::GetInlineCachesAddr() const
  17. {
  18. return m_data.inlineCachesAddr;
  19. }
  20. uint16
  21. JITTimePolymorphicInlineCache::GetSize() const
  22. {
  23. return m_data.size;
  24. }