WasmLibrary.h 708 B

123456789101112131415161718
  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. namespace Js
  7. {
  8. class WasmLibrary
  9. {
  10. public:
  11. static JavascriptMethod EnsureWasmEntrypoint(ScriptFunction* funcPtr);
  12. static void ResetFunctionBodyDefaultEntryPoint(FunctionBody* body);
  13. #ifdef ENABLE_WASM
  14. static Var WasmLazyTrapCallback(RecyclableObject *callee, CallInfo, ...);
  15. #endif
  16. };
  17. }