WasmLibrary.h 1.1 KB

1234567891011121314151617181920212223242526272829
  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 WasmDeferredParseEntryPoint(AsmJsScriptFunction** funcPtr, int internalCall);
  12. static void SetWasmEntryPointToInterpreter(Js::ScriptFunction* func, bool deferParse);
  13. #ifdef ENABLE_WASM
  14. class EntryInfo
  15. {
  16. public:
  17. static FunctionInfo Compile;
  18. static FunctionInfo Validate;
  19. };
  20. static Var WasmLazyTrapCallback(RecyclableObject *callee, CallInfo, ...);
  21. static Var WasmDeferredParseInternalThunk(RecyclableObject* function, CallInfo callInfo, ...);
  22. static Var WasmDeferredParseExternalThunk(RecyclableObject* function, CallInfo callInfo, ...);
  23. #endif
  24. };
  25. }