JITTimeFixedField.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. CompileAssert(sizeof(FixedFieldIDL) == sizeof(JITTimeFixedField));
  7. void
  8. JITTimeFixedField::SetNextHasSameFixedField()
  9. {
  10. m_data.nextHasSameFixedField = TRUE;
  11. }
  12. bool
  13. JITTimeFixedField::IsClassCtor() const
  14. {
  15. return m_data.isClassCtor != FALSE;
  16. }
  17. bool
  18. JITTimeFixedField::NextHasSameFixedField() const
  19. {
  20. return m_data.nextHasSameFixedField != FALSE;
  21. }
  22. uint
  23. JITTimeFixedField::GetLocalFuncId() const
  24. {
  25. return m_data.localFuncId;
  26. }
  27. ValueType
  28. JITTimeFixedField::GetValueType() const
  29. {
  30. CompileAssert(sizeof(ValueType) == sizeof(uint16));
  31. return *(ValueType*)&m_data.valueType;
  32. }
  33. intptr_t
  34. JITTimeFixedField::GetFieldValue() const
  35. {
  36. return m_data.fieldValue;
  37. }
  38. intptr_t
  39. JITTimeFixedField::GetFuncInfoAddr() const
  40. {
  41. return m_data.funcInfoAddr;
  42. }
  43. intptr_t
  44. JITTimeFixedField::GetEnvironmentAddr() const
  45. {
  46. return m_data.environmentAddr;
  47. }
  48. JITType *
  49. JITTimeFixedField::GetType() const
  50. {
  51. return (JITType*)m_data.type;
  52. }