1 /** 2 * Copyright (c) 2021-2022 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 // Autogenerated file -- DO NOT EDIT! 17 18 #ifndef COMPILER_OPTIMIZER_IR_SOURCE_LANGUAGES_H 19 #define COMPILER_OPTIMIZER_IR_SOURCE_LANGUAGES_H 20 21 namespace panda::compiler { 22 23 enum class SourceLanguage : uint8_t { 24 ECMASCRIPT = 0, 25 PANDA_ASSEMBLY = 1 26 }; 27 28 enum class AnyBaseType : uint32_t { 29 UNDEFINED_TYPE = 0, 30 ECMASCRIPT_HOLE_TYPE, 31 ECMASCRIPT_NULL_TYPE, 32 ECMASCRIPT_UNDEFINED_TYPE, 33 ECMASCRIPT_INT_TYPE, 34 ECMASCRIPT_DOUBLE_TYPE, 35 ECMASCRIPT_OBJECT_TYPE, 36 ECMASCRIPT_HEAP_OBJECT_TYPE, 37 ECMASCRIPT_STRING_TYPE, 38 ECMASCRIPT_ARRAY_TYPE, 39 ECMASCRIPT_TRANSITION_TYPE, 40 ECMASCRIPT_PROTOTYPE_TYPE, 41 ECMASCRIPT_SPECIAL_INDEXED_TYPE, 42 ECMASCRIPT_BOOLEAN_TYPE, 43 COUNT 44 }; 45 46 } // namespace panda::compiler 47 48 #endif // COMPILER_OPTIMIZER_IR_SOURCE_LANGUAGES_H 49