• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef ECMASCRIPT_BUILTINS_BUILTINS_METHOD_INDEX_H
17 #define ECMASCRIPT_BUILTINS_BUILTINS_METHOD_INDEX_H
18 
19 #include <stdint.h>
20 
21 namespace panda::ecmascript {
22 enum class MethodIndex : uint8_t {
23     BUILTINS_GLOBAL_CALL_JS_BOUND_FUNCTION = 0,
24     BUILTINS_GLOBAL_CALL_JS_PROXY,
25     BUILTINS_OBJECT_CREATE_DATA_PROPERTY_ON_OBJECT_FUNCTIONS,
26     BUILTINS_COLLATOR_ANONYMOUS_COLLATOR,
27     BUILTINS_DATE_TIME_FORMAT_ANONYMOUS_DATE_TIME_FORMAT,
28     BUILTINS_NUMBER_FORMAT_NUMBER_FORMAT_INTERNAL_FORMAT_NUMBER,
29     BUILTINS_PROXY_INVALIDATE_PROXY_FUNCTION,
30     BUILTINS_PROMISE_HANDLER_ASYNC_AWAIT_FULFILLED,
31     BUILTINS_PROMISE_HANDLER_ASYNC_AWAIT_REJECTED,
32     BUILTINS_PROMISE_HANDLER_RESOLVE_ELEMENT_FUNCTION,
33     BUILTINS_PROMISE_HANDLER_RESOLVE,
34     BUILTINS_PROMISE_HANDLER_REJECT,
35     BUILTINS_PROMISE_HANDLER_EXECUTOR,
36     BUILTINS_PROMISE_HANDLER_ANY_REJECT_ELEMENT_FUNCTION,
37     BUILTINS_PROMISE_HANDLER_ALL_SETTLED_RESOLVE_ELEMENT_FUNCTION,
38     BUILTINS_PROMISE_HANDLER_ALL_SETTLED_REJECT_ELEMENT_FUNCTION,
39     BUILTINS_PROMISE_HANDLER_THEN_FINALLY_FUNCTION,
40     BUILTINS_PROMISE_HANDLER_CATCH_FINALLY_FUNCTION,
41     BUILTINS_PROMISE_HANDLER_VALUE_THUNK_FUNCTION,
42     BUILTINS_PROMISE_HANDLER_THROWER_FUNCTION,
43     BUILTINS_ASYNC_GENERATOR_NEXT_FULFILLED_FUNCTION,
44     BUILTINS_ASYNC_GENERATOR_NEXT_REJECTED_FUNCTION,
45     BUILTINS_ASYNC_FROM_SYNC_ITERATOR_FUNCTION,
46     METHOD_END
47 };
48 }  // namespace panda::ecmascript
49 #endif  // ECMASCRIPT_BUILTINS_BUILTINS_METHOD_INDEX_H