| /arkcompiler/runtime_core/assembler/ |
| D | annotation.h | 27 #include "assembly-type.h" 76 enum class Type { enum 101 static constexpr char GetTypeAsChar(Type t) in GetTypeAsChar() 103 char type = '0'; in GetTypeAsChar() local 105 case Type::U1: in GetTypeAsChar() 106 type = '1'; in GetTypeAsChar() 108 case Type::I8: in GetTypeAsChar() 109 type = '2'; in GetTypeAsChar() 111 case Type::U8: in GetTypeAsChar() 112 type = '3'; in GetTypeAsChar() [all …]
|
| D | annotation.cpp | 24 case Value::Type::U1: { in InitScalarValue() 25 …copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U1>(sc_val.GetValue<uint… in InitScalarValue() 28 case Value::Type::U8: { in InitScalarValue() 29 …copy_val = std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U8>(sc_val.GetValue<uint… in InitScalarValue() 32 case Value::Type::U16: { in InitScalarValue() 34 … std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U16>(sc_val.GetValue<uint16_t>())); in InitScalarValue() 37 case Value::Type::U32: { in InitScalarValue() 39 … std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U32>(sc_val.GetValue<uint32_t>())); in InitScalarValue() 42 case Value::Type::U64: { in InitScalarValue() 44 … std::make_unique<ScalarValue>(ScalarValue::Create<Value::Type::U64>(sc_val.GetValue<uint64_t>())); in InitScalarValue() [all …]
|
| D | assembly-type.h | 25 class Type { 33 Type() = default; 34 DEFAULT_MOVE_SEMANTIC(Type); 35 DEFAULT_COPY_SEMANTIC(Type); 36 ~Type() = default; 38 Type(std::string_view component_name, size_t rank, bool ignore_primitive = false) 45 Type(const Type &component_type, size_t rank) in Type() function 46 : Type(component_type.GetComponentName(), component_type.GetRank() + rank) in Type() 74 Type GetComponentType() const in GetComponentType() 76 return Type(component_name_, rank_ > 0 ? rank_ - 1 : 0); in GetComponentType() [all …]
|
| /arkcompiler/runtime_core/assembler/tests/ |
| D | annotation_test.cpp | 35 * @tc.type: FUNC 40 ScalarValue insn_order(ScalarValue::Create<panda::pandasm::Value::Type::I32>(1)); 44 ArrayValue array_value(panda::pandasm::Value::Type::I32, elements); 57 ScalarValue insn_order1(ScalarValue::Create<panda::pandasm::Value::Type::U1>(1U)); 59 ArrayValue array_value_U1(panda::pandasm::Value::Type::U1, elements); 68 * @tc.type: FUNC 73 char type = '1'; variable 74 char type_u1 = Value::GetTypeAsChar(panda::pandasm::Value::Type::U1); 75 EXPECT_EQ(type_u1, type); 77 type = '2'; [all …]
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | test-schema.json | 2 "type": "object", string 11 "type": "string" string 14 "type": "boolean" string 17 "type": "boolean" string 20 "type": "object", string 28 "type": "string" string 31 "type": "string" string 34 "type": "array", string 36 "type": "string" string 40 "type": "array", string [all …]
|
| /arkcompiler/ets_frontend/es2panda/typescript/ |
| D | checker.h | 109 using StringLiteralPool = std::unordered_map<util::StringView, Type *>; 110 using NumberLiteralPool = std::unordered_map<double, Type *>; 113 using TypeOrNode = std::variant<Type *, const ir::AstNode *>; 114 using IndexInfoTypePair = std::pair<Type *, Type *>; 140 Type *GlobalNumberType() in GlobalNumberType() 145 Type *GlobalAnyType() in GlobalAnyType() 150 Type *GlobalStringType() in GlobalStringType() 155 Type *GlobalSymbolType() in GlobalSymbolType() 160 Type *GlobalBooleanType() in GlobalBooleanType() 165 Type *GlobalVoidType() in GlobalVoidType() [all …]
|
| /arkcompiler/runtime_core/libpandafile/templates/ |
| D | type.h.erb | 23 class Type { 26 % PandaFile::types.each do |type| 27 <%= type.name.upcase %> = 0x<%= type.code.to_s(16) %>, 45 constexpr explicit Type(TypeId id) : type_(id) {} 61 % PandaFile::types.each do |type| 62 case TypeId::<%= type.name.upcase %>: 63 return <%= type.properties.include? "signed" %>; 72 % PandaFile::types.each do |type| 73 case TypeId::<%= type.name.upcase %>: { 74 constexpr size_t BITWIDTH = <%= type.width ? type.width : 0 %>; [all …]
|
| /arkcompiler/runtime_core/compiler/ |
| D | compiler.yaml | 20 type: bool 26 type: std::string 32 type: bool 42 type: bool 46 type: bool 50 type: bool 54 type: std::string 58 type: bool 62 type: bool 71 type: bool [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/ir/ |
| D | datatype.h | 25 * Type of the param/instruction 29 enum Type : uint8_t { enum 63 inline constexpr std::array<const char *, Type::LAST + 1> TYPE_NAMES = { 83 inline const char *ToString(Type type) in ToString() argument 85 ASSERT(type <= Type::LAST); in ToString() 86 return internal::TYPE_NAMES[type]; in ToString() 89 constexpr inline Type GetCommonType(Type type) in GetCommonType() argument 91 switch (type) { in GetCommonType() 92 case Type::BOOL: in GetCommonType() 93 case Type::UINT8: in GetCommonType() [all …]
|
| /arkcompiler/runtime_core/libpandabase/events/ |
| D | events.yaml | 16 …s - data fields that will be stored within event. The type of each field should be a real C++ type… 30 type: std::string 32 type: size_t 34 type: enum 37 type: enum 43 type: std::string 45 type: std::string 47 type: int 49 type: enum 52 type: enum [all …]
|
| /arkcompiler/ets_frontend/es2panda/typescript/core/ |
| D | object.cpp | 43 void Checker::CheckIndexConstraints(Type *type) in CheckIndexConstraints() argument 45 if (!type->IsObjectType()) { in CheckIndexConstraints() 49 ObjectType *objType = type->AsObjectType(); in CheckIndexConstraints() 59 Type *propType = GetTypeOfVariable(it); in CheckIndexConstraints() 61 {"Property '", it->Name(), "' of type '", propType, in CheckIndexConstraints() 62 … "' is not assignable to numeric index type '", numberInfo->GetType(), "'."}, in CheckIndexConstraints() 70 Type *propType = GetTypeOfVariable(it); in CheckIndexConstraints() 72 {"Property '", it->Name(), "' of type '", propType, in CheckIndexConstraints() 73 … "' is not assignable to string index type '", stringInfo->GetType(), "'."}, in CheckIndexConstraints() 78 ThrowTypeError({"Number index info type ", numberInfo->GetType(), in CheckIndexConstraints() [all …]
|
| /arkcompiler/runtime_core/disassembler/templates/ |
| D | type_to_pandasm_type.cpp.erb | 20 pandasm::Type Disassembler::PFTypeToPandasmType(const panda_file::Type& type, panda_file::ProtoData… 22 pandasm::Type pandasm_type; 24 switch (type.GetId()) { 25 % PandaFile::types.each do |type| 26 case panda_file::Type::TypeId::<%= type.name.upcase %>: 27 % if (type.name == "reference") 28 …pandasm_type = pandasm::Type::FromDescriptor(StringDataToString(file_->GetStringData(pda.GetRefere… 29 % elsif (type.name == "tagged") 30 pandasm_type = pandasm::Type("any", 0); 32 pandasm_type = pandasm::Type("<%= type.name %>", 0); [all …]
|
| /arkcompiler/ets_frontend/es2panda/typescript/types/ |
| D | globalTypesHolder.h | 19 #include "type.h" 58 Type *GlobalNumberType(); 59 Type *GlobalAnyType(); 60 Type *GlobalStringType(); 61 Type *GlobalSymbolType(); 62 Type *GlobalBooleanType(); 63 Type *GlobalVoidType(); 64 Type *GlobalNullType(); 65 Type *GlobalUndefinedType(); 66 Type *GlobalUnknownType(); [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/ |
| D | tupleAssignability-expected.txt | 2 "type": "Program", 5 "type": "VariableDeclaration", 8 "type": "VariableDeclarator", 10 "type": "Identifier", 13 "type": "TSTupleType", 38 "type": "ArrayExpression", 76 "type": "VariableDeclaration", 79 "type": "VariableDeclarator", 81 "type": "Identifier", 84 "type": "TSTupleType", [all …]
|
| D | arrayDestructuring-expected.txt | 2 "type": "Program", 5 "type": "VariableDeclaration", 8 "type": "VariableDeclarator", 10 "type": "ArrayPattern", 13 "type": "Identifier", 27 "type": "Identifier", 53 "type": "ArrayExpression", 56 "type": "NumberLiteral", 70 "type": "StringLiteral", 84 "type": "BooleanLiteral", [all …]
|
| D | interfaceAssignment-expected.txt | 2 "type": "Program", 5 "type": "TSInterfaceDeclaration", 7 "type": "TSInterfaceBody", 10 "type": "TSPropertySignature", 15 "type": "Identifier", 29 "type": "TSNumberKeyword", 53 "type": "TSPropertySignature", 58 "type": "Identifier", 72 "type": "TSStringKeyword", 96 "type": "TSPropertySignature", [all …]
|
| D | objectLiteralAssignability-expected.txt | 2 "type": "Program", 5 "type": "VariableDeclaration", 8 "type": "VariableDeclarator", 10 "type": "Identifier", 13 "type": "TSTypeLiteral", 16 "type": "TSPropertySignature", 21 "type": "Identifier", 35 "type": "TSNumberKeyword", 107 "type": "VariableDeclaration", 110 "type": "VariableDeclarator", [all …]
|
| D | memberExpTests-expected.txt | 2 "type": "Program", 5 "type": "VariableDeclaration", 8 "type": "VariableDeclarator", 10 "type": "Identifier", 13 "type": "TSArrayType", 15 "type": "TSNumberKeyword", 50 "type": "ArrayExpression", 53 "type": "NumberLiteral", 67 "type": "NumberLiteral", 81 "type": "NumberLiteral", [all …]
|
| /arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
| D | inferTypesWithExtends1.ts | 16 * This file has been modified by Huawei to verify type inference by adding verification statements. 20 declare function AssertType(value:any, type:string):void; 22 type X1<T extends any[]> = 27 type X1_T1 = X1<["a"]>; // ["string", "a"] 28 type X1_T2 = X1<[1]>; // ["number", 1] 29 type X1_T3 = X1<[object]>; // never 32 type X2<T extends (...args: any[]) => void> = 37 type X2_T1 = X2<(a: "a") => void>; // ["string", "a"] 38 type X2_T2 = X2<(a: 1) => void>; // ["number", 1] 39 type X2_T3 = X2<(a: object) => void>; // never [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/templates/ |
| D | ir-dyn-base-types.h.erb | 37 inline AnyBaseType NumericDataTypeToAnyType([[maybe_unused]] panda::compiler::DataType::Type type, 39 …ASSERT(type == panda::compiler::DataType::Type::UINT8 || type == panda::compiler::DataType::Type::… 40 …type == panda::compiler::DataType::Type::UINT16 || type == panda::compiler::DataType::Type::INT16 … 41 …type == panda::compiler::DataType::Type::UINT32 || type == panda::compiler::DataType::Type::INT32 … 42 …type == panda::compiler::DataType::Type::UINT64 || type == panda::compiler::DataType::Type::INT64 … 43 …type == panda::compiler::DataType::Type::FLOAT32 || type == panda::compiler::DataType::Type::FLOAT… 44 switch (type) { 45 case panda::compiler::DataType::Type::INT8: 46 case panda::compiler::DataType::Type::UINT8: 47 case panda::compiler::DataType::Type::INT16: [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
| D | test-type-annotation-expected.txt | 2 "type": "Program", 5 "type": "VariableDeclaration", 8 "type": "VariableDeclarator", 10 "type": "Identifier", 13 "type": "TSNumberKeyword", 62 "type": "VariableDeclaration", 65 "type": "VariableDeclarator", 67 "type": "Identifier", 70 "type": "TSStringKeyword", 119 "type": "VariableDeclaration", [all …]
|
| D | test-intersection-expected.txt | 2 "type": "Program", 5 "type": "TSTypeAliasDeclaration", 7 "type": "Identifier", 21 "type": "TSStringKeyword", 45 "type": "TSTypeAliasDeclaration", 47 "type": "Identifier", 61 "type": "TSStringKeyword", 85 "type": "TSTypeAliasDeclaration", 87 "type": "Identifier", 101 "type": "TSStringKeyword", [all …]
|
| D | test-ts-type-predicate-expected.txt | 2 "type": "Program", 5 "type": "FunctionDeclaration", 7 "type": "ScriptFunction", 9 "type": "Identifier", 27 "type": "Identifier", 30 "type": "TSUnionType", 33 "type": "TSNumberKeyword", 46 "type": "TSStringKeyword", 83 "type": "TSTypePredicate", 85 "type": "Identifier", [all …]
|
| D | test_generic-expected.txt | 2 "type": "Program", 5 "type": "FunctionDeclaration", 7 "type": "ScriptFunction", 9 "type": "Identifier", 27 "type": "Identifier", 30 "type": "TSTypeReference", 32 "type": "Identifier", 33 "name": "Type", 69 "type": "TSTypeReference", 71 "type": "Identifier", [all …]
|
| /arkcompiler/ets_runtime/ecmascript/interpreter/ |
| D | frame_handler.h | 72 FrameType type = GetFrameType(); in IsInterpretedFrame() local 73 return IsInterpretedFrame(type); in IsInterpretedFrame() 76 bool IsInterpretedFrame(FrameType type) const in IsInterpretedFrame() argument 78 return (type >= FrameType::INTERPRETER_FIRST) && (type <= FrameType::INTERPRETER_LAST); in IsInterpretedFrame() 83 FrameType type = GetFrameType(); in IsJSFrame() local 84 return IsJSFrame(type); in IsJSFrame() 89 FrameType type = GetFrameType(); in IsOptimizedJSFunctionFrame() local 90 return type == FrameType::OPTIMIZED_JS_FUNCTION_FRAME || in IsOptimizedJSFunctionFrame() 91 type == FrameType::OPTIMIZED_JS_FAST_CALL_FUNCTION_FRAME; in IsOptimizedJSFunctionFrame() 94 bool IsJSFrame(FrameType type) const in IsJSFrame() argument [all …]
|