AsmJsCodeGenerator.h 784 B

1234567891011121314151617181920212223
  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 ASMJS_PLAT
  7. namespace Js
  8. {
  9. class ScriptContext;
  10. class AsmJsCodeGenerator
  11. {
  12. ScriptContext* mScriptContext;
  13. InProcCodeGenAllocators* mForegroundAllocators;
  14. PageAllocator * mPageAllocator;
  15. AsmJsEncoder mEncoder;
  16. public:
  17. AsmJsCodeGenerator( ScriptContext* scriptContext );
  18. void CodeGen( FunctionBody* functionBody );
  19. };
  20. }
  21. #endif