Home
last modified time | relevance | path

Searched refs:ArrayType (Results 1 – 25 of 40) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/checker/types/ts/
DarrayType.cpp22 void ArrayType::ToString(std::stringstream &ss, bool precise) const in ToString()
35 void ArrayType::Identical(TypeRelation *relation, Type *other) in Identical()
42 void ArrayType::AssignmentTarget(TypeRelation *relation, Type *source) in AssignmentTarget()
57 TypeFacts ArrayType::GetTypeFacts() const in GetTypeFacts()
62 Type *ArrayType::Instantiate(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHolder *… in Instantiate()
64 return allocator->New<ArrayType>(element_->Instantiate(allocator, relation, globalTypes)); in Instantiate()
DarrayType.h22 class ArrayType : public Type {
24 explicit ArrayType(Type *elementType) : Type(TypeFlag::ARRAY), element_(elementType) {} in ArrayType() function
DtupleType.cpp30 return checker->Allocator()->New<ArrayType>(arrayType); in ConvertToArrayType()
/arkcompiler/ets_frontend/es2panda/typescript/types/
DarrayType.cpp23 void ArrayType::ToString(std::stringstream &ss) const in ToString()
36 void ArrayType::Identical(TypeRelation *relation, Type *other) in Identical()
43 void ArrayType::AssignmentTarget(TypeRelation *relation, Type *source) in AssignmentTarget()
58 TypeFacts ArrayType::GetTypeFacts() const in GetTypeFacts()
63 Type *ArrayType::Instantiate(ArenaAllocator *allocator, TypeRelation *relation, GlobalTypesHolder *… in Instantiate()
65 return allocator->New<ArrayType>(element_->Instantiate(allocator, relation, globalTypes)); in Instantiate()
DarrayType.h23 class ArrayType : public Type {
25 explicit ArrayType(Type *elementType) : Type(TypeFlag::ARRAY), element_(elementType) {} in ArrayType() function
DtypeMapping.h22 _(TypeFlag::ARRAY, ArrayType) \
DtupleType.cpp31 return checker->Allocator()->New<ArrayType>(arrayType); in ConvertToArrayType()
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DType.sts210 return ArrayType.getInstance(td)
435 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v), ValueTypeDesc.BOOLEAN)
446 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v), ValueTypeDesc.CHAR)
457 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v), ValueTypeDesc.BYTE)
468 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v), ValueTypeDesc.SHORT)
479 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v), ValueTypeDesc.INT)
490 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v), ValueTypeDesc.LONG)
501 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v), ValueTypeDesc.FLOAT)
512 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v), ValueTypeDesc.DOUBLE)
525 return ArrayType.getInstance(TypeAPIGetTypeDescriptor(v))
[all …]
DValue.sts244 } else if (t instanceof ArrayType) {
245 return new ArrayValue(t as ArrayType, o!)
266 return new ArrayValue(ArrayType.BOOLEAN_VAL, v)
270 return new ArrayValue(ArrayType.CHAR_VAL, v)
274 return new ArrayValue(ArrayType.BYTE_VAL, v)
278 return new ArrayValue(ArrayType.SHORT_VAL, v)
282 return new ArrayValue(ArrayType.INT_VAL, v)
286 return new ArrayValue(ArrayType.LONG_VAL, v)
290 return new ArrayValue(ArrayType.FLOAT_VAL, v)
294 return new ArrayValue(ArrayType.DOUBLE_VAL, v)
[all …]
DObject.sts131 } else if (t instanceof ArrayType) {
204 } else if (t instanceof ArrayType) {
276 } else if (t instanceof ArrayType) {
323 if (t instanceof StringType || t instanceof ArrayType) {
388 if (t instanceof ArrayType) {
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsArrayType.cpp43 …return checker->Allocator()->New<checker::ArrayType>(elementType_->AsTypeNode()->GetType(checker)); in GetType()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/utils/
Dtest_core_type_array_type.j221 let arrayType : ArrayType;
28 arrayType = Type.of(arrayVar) as ArrayType;
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/
DReflect.sts49 } else if (t instanceof ArrayType) {
97 if (t instanceof ArrayType) {
156 if (vt instanceof ArrayType) {
206 … } else if (t instanceof StringType || t instanceof ArrayType || t instanceof LambdaType) {
Djson.sts459 } else if (typ instanceof ArrayType) {
460 let et = (typ as ArrayType).getElementType()
501 …private static readonly STD_CORE_INTEROP_JSVALUE_TYPE = (Type.of([] as JSValue[]) as ArrayType).ge…
561 } else if (objType instanceof ArrayType) {
562 this.writeArrayValue(Value.of(obj) as ArrayValue, objType as ArrayType)
698 private writeArrayValue(arrayValue: ArrayValue, arrayType: ArrayType): void {
1108 } else if (value instanceof JSONArray && typ instanceof ArrayType) {
1109 return this.parseArray(value as JSONArray, typ as ArrayType)
1171 private parseArray(jVal: JSONArray, aType: ArrayType): Object | null {
/arkcompiler/ets_frontend/ets2panda/ir/ts/
DtsArrayType.cpp69 return checker->Allocator()->New<checker::ArrayType>(elementType_->GetType(checker)); in GetType()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/litecg/
Dlmir_builder.h74 using ArrayType = MIRArrayType; variable
273 ArrayType *CreateArrayType(Type *elemType, std::vector<uint32_t> &dimSize);
596 ArrayConstBuilder(LMIRBuilder &builder_, ArrayType *type_) : builder(builder_) in ArrayConstBuilder()
634 ArrayConstBuilder CreateArrayConst(ArrayType *type) in CreateArrayConst()
740 ArrayConst &CreateArrayConstInternal(ArrayType *type);
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/
Dark_gvn.cpp75 auto arrayType = llvm::ArrayType::get(builder.getInt64Ty(), 0); in CreateCallBuiltin()
152 auto arrayType = llvm::ArrayType::get(builder.getInt64Ty(), 0); in RunOnBasicBlock()
Dpanda_runtime_lowering.cpp130 auto arrayType = llvm::ArrayType::get(builder->getInt64Ty(), 0); in GetMethodOrResolverPtr()
Dintrinsics_lowering.cpp194 auto arrayType = llvm::ArrayType::get(builder.getInt64Ty(), 0); in HandleFRem()
/arkcompiler/ets_frontend/ets2panda/checker/types/
DtypeMapping.h23 _(TypeFlag::ARRAY, ArrayType) \
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DarrayExpression.cpp269 return checker->Allocator()->New<checker::ArrayType>(arrayElementType); in Check()
288 … elementType = checker->Allocator()->New<checker::ArrayType>(checker->GlobalAnyType()); in CheckPattern()
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/
Druntime_calls.cpp43 auto arrayType = llvm::ArrayType::get(builder->getInt64Ty(), 0); in GetPandaRuntimeFunctionCallee()
Dbuiltins.cpp103 auto arrayType = llvm::ArrayType::get(builder->getInt64Ty(), 0); in SlowClassLoadingHelper()
358 auto arrayType = llvm::ArrayType::get(builder->getInt64Ty(), 0); in LowerLoadString()
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/tools/generate-es-checked/templates/
Dtemplate.sts.erb57 if (!(Type.of(a) instanceof ArrayType)) {
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/litecg/
Dlmir_builder.cpp179 ArrayType *LMIRBuilder::CreateArrayType(Type *elemType, std::vector<uint32_t> &dimSize) in CreateArrayType()
183 return static_cast<ArrayType *>(type); in CreateArrayType()
213 ArrayConst &LMIRBuilder::CreateArrayConstInternal(ArrayType *type) in CreateArrayConstInternal()

12