WasmReaderBase.h 838 B

123456789101112131415161718192021
  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. #ifdef ENABLE_WASM
  7. namespace Wasm
  8. {
  9. class WasmReaderBase
  10. {
  11. public:
  12. virtual void SeekToFunctionBody(class WasmFunctionInfo* funcInfo) = 0;
  13. virtual bool IsCurrentFunctionCompleted() const = 0;
  14. virtual WasmOp ReadExpr() = 0;
  15. virtual void FunctionEnd() = 0;
  16. virtual const uint32 EstimateCurrentFunctionBytecodeSize() const = 0;
  17. WasmNode m_currentNode;
  18. };
  19. } // namespace Wasm
  20. #endif // ENABLE_WASM