FixedFieldInfo.h 977 B

123456789101112131415161718192021222324252627
  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 FixedFieldInfo
  7. {
  8. public:
  9. FixedFieldInfo() : m_data() { }
  10. static void PopulateFixedField(_In_opt_ Js::Type * type, _In_opt_ Js::Var var, _Out_ FixedFieldInfo * fixed);
  11. void SetNextHasSameFixedField();
  12. bool IsClassCtor() const;
  13. bool NextHasSameFixedField() const;
  14. ValueType GetValueType() const;
  15. Js::LocalFunctionId GetLocalFuncId() const;
  16. intptr_t GetFuncInfoAddr() const;
  17. intptr_t GetEnvironmentAddr() const;
  18. intptr_t GetFieldValue() const;
  19. JITType * GetType() const;
  20. FixedFieldIDL * GetRaw();
  21. private:
  22. Field(FixedFieldIDL) m_data;
  23. };