JavascriptBuiltInFunctions.h 1.0 KB

12345678910111213141516171819202122232425262728293031
  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 JavascriptBuiltInFunction
  9. {
  10. public:
  11. enum BuiltInEnum
  12. {
  13. #define BUILTIN(c, n, e, i) c ## _ ## n,
  14. #include "JavascriptBuiltInFunctionList.h"
  15. #undef BUILTIN
  16. #ifdef ENABLE_DOM_FAST_PATH
  17. DOMFastPathGetter,
  18. DOMFastPathSetter,
  19. #endif
  20. MaxBuiltInEnum
  21. };
  22. static FunctionInfo * GetFunctionInfo(Js::LocalFunctionId builtinId);
  23. static bool CanChangeEntryPoint(Js::LocalFunctionId builtInId);
  24. static bool IsValidId(Js::LocalFunctionId builtInId);
  25. private:
  26. static FunctionInfo * const builtInFunctionInfo[MaxBuiltInEnum];
  27. };
  28. };