JavascriptBuiltInFunctions.h 932 B

123456789101112131415161718192021222324252627
  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. MaxBuiltInEnum
  17. };
  18. static FunctionInfo * GetFunctionInfo(Js::LocalFunctionId builtinId);
  19. static bool CanChangeEntryPoint(Js::LocalFunctionId builtInId);
  20. static bool IsValidId(Js::LocalFunctionId builtInId);
  21. private:
  22. static FunctionInfo * const builtInFunctionInfo[MaxBuiltInEnum];
  23. };
  24. };