FunctionJITRuntimeInfo.cpp 851 B

123456789101112131415161718192021222324
  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. FunctionJITRuntimeInfo::FunctionJITRuntimeInfo(FunctionJITRuntimeIDL * data) : m_data(*data)
  7. {
  8. CompileAssert(sizeof(FunctionJITRuntimeInfo) == sizeof(FunctionJITRuntimeIDL));
  9. }
  10. intptr_t
  11. FunctionJITRuntimeInfo::GetClonedInlineCache(uint index) const
  12. {
  13. Assert(index < m_data.clonedCacheCount);
  14. return m_data.clonedInlineCaches[index];
  15. }
  16. bool
  17. FunctionJITRuntimeInfo::HasClonedInlineCaches() const
  18. {
  19. return m_data.clonedInlineCaches != nullptr;
  20. }