• 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_REFLECT_H
17 #define ECMASCRIPT_BUILTINS_BUILTINS_REFLECT_H
18 
19 #include "ecmascript/base/builtins_base.h"
20 #include "ecmascript/js_function.h"
21 #include "ecmascript/js_array.h"
22 
23 namespace panda::ecmascript::builtins {
24 class BuiltinsReflect : public base::BuiltinsBase {
25 public:
26     // ecma 26.1.1
27     static JSTaggedValue ReflectApply(EcmaRuntimeCallInfo *argv);
28 
29     // ecma 26.1.2
30     static JSTaggedValue ReflectConstruct(EcmaRuntimeCallInfo *argv);
31 
32     // ecma 26.1.3
33     static JSTaggedValue ReflectDefineProperty(EcmaRuntimeCallInfo *argv);
34 
35     // ecma 26.1.4
36     static JSTaggedValue ReflectDeleteProperty(EcmaRuntimeCallInfo *argv);
37 
38     // ecma 26.1.5
39     static JSTaggedValue ReflectGet(EcmaRuntimeCallInfo *argv);
40 
41     // ecma 26.1.6
42     static JSTaggedValue ReflectGetOwnPropertyDescriptor(EcmaRuntimeCallInfo *argv);
43 
44     // ecma 26.1.7
45     static JSTaggedValue ReflectGetPrototypeOf(EcmaRuntimeCallInfo *argv);
46 
47     // ecma 26.1.8
48     static JSTaggedValue ReflectHas(EcmaRuntimeCallInfo *argv);
49 
50     // ecma 26.1.9
51     static JSTaggedValue ReflectIsExtensible(EcmaRuntimeCallInfo *argv);
52 
53     // ecma 26.1.10
54     static JSTaggedValue ReflectOwnKeys(EcmaRuntimeCallInfo *argv);
55 
56     // ecma 26.1.11
57     static JSTaggedValue ReflectPreventExtensions(EcmaRuntimeCallInfo *argv);
58 
59     // ecma 26.1.12
60     static JSTaggedValue ReflectSet(EcmaRuntimeCallInfo *argv);
61 
62     // ecma 26.1.13
63     static JSTaggedValue ReflectSetPrototypeOf(EcmaRuntimeCallInfo *argv);
64 };
65 }  // namespace panda::ecmascript::builtins
66 #endif  // ECMASCRIPT_BUILTINS_BUILTINS_REFLECT_H
67