Home
last modified time | relevance | path

Searched refs:arrayType (Results 1 – 17 of 17) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/base/
Dtyped_array_helper.h31 const DataViewType arrayType);
35 const DataViewType arrayType);
39 const DataViewType arrayType);
53 const DataViewType arrayType);
54 inline static uint32_t GetSizeFromType(const DataViewType arrayType);
61 const DataViewType arrayType);
63 const DataViewType arrayType);
65 const DataViewType arrayType);
67 … uint64_t length, const DataViewType arrayType);
69 const DataViewType arrayType);
Dtyped_array_helper-inl.h125 …SFunction> TypedArrayHelper::GetConstructorFromType(JSThread *thread, const DataViewType arrayType) in GetConstructorFromType() argument
128 switch (arrayType) { in GetConstructorFromType()
155 uint32_t TypedArrayHelper::GetSizeFromType(const DataViewType arrayType) in GetSizeFromType() argument
157 if (arrayType == DataViewType::INT8 || in GetSizeFromType()
158 arrayType == DataViewType::UINT8 || in GetSizeFromType()
159 arrayType == DataViewType::UINT8_CLAMPED) { in GetSizeFromType()
163 if (arrayType == DataViewType::INT16 || in GetSizeFromType()
164 arrayType == DataViewType::UINT16) { in GetSizeFromType()
168 if (arrayType == DataViewType::FLOAT32 || in GetSizeFromType()
169 arrayType == DataViewType::UINT32 || in GetSizeFromType()
[all …]
Dtyped_array_helper.cpp43 const DataViewType arrayType) in TypedArrayConstructor() argument
67 elementLength, arrayType); in TypedArrayConstructor()
72 …SObject> obj = TypedArrayHelper::AllocateTypedArray(thread, constructorName, newTarget, arrayType); in TypedArrayConstructor()
75 return TypedArrayHelper::CreateFromTypedArray(argv, obj, arrayType); in TypedArrayConstructor()
78 return TypedArrayHelper::CreateFromArrayBuffer(argv, obj, arrayType); in TypedArrayConstructor()
81 return TypedArrayHelper::FastCopyElementFromArray(argv, obj, arrayType); in TypedArrayConstructor()
83 return TypedArrayHelper::CreateFromOrdinaryObject(argv, obj, arrayType); in TypedArrayConstructor()
87 const DataViewType arrayType) in FastCopyElementFromArray() argument
97 TypedArrayHelper::CreateFromOrdinaryObject(argv, obj, arrayType); in FastCopyElementFromArray()
100 TypedArrayHelper::AllocateTypedArrayBuffer(thread, obj, len, arrayType); in FastCopyElementFromArray()
[all …]
/arkcompiler/ets_frontend/merge_abc/src/
DassemblyProgramProto.cpp88 auto &arrayType = Type::Deserialize(protoArrayType, allocator); in Deserialize() local
89 program.array_types.insert(std::move(arrayType)); in Deserialize()
/arkcompiler/ets_frontend/es2panda/typescript/types/
DtupleType.cpp30 Type *arrayType = checker->CreateUnionType(std::move(unionTypes)); in ConvertToArrayType() local
31 return checker->Allocator()->New<ArrayType>(arrayType); in ConvertToArrayType()
/arkcompiler/ets_runtime/ecmascript/ts_types/tests/
Dts_type_parser_test.cpp354 JSHandle<TSArrayType> arrayType(type); in HWTEST_F_L0() local
355 EXPECT_EQ(resultGT, arrayType->GetGT()); in HWTEST_F_L0()
356 …EXPECT_EQ(arrayType->GetElementGT(), GlobalTSTypeRef(static_cast<uint32_t>(ModuleTableIdx::PRIMITI… in HWTEST_F_L0()
/arkcompiler/ets_frontend/ts2panda/src/
DtypeChecker.ts240 let arrayType = new ArrayType(typeNode);
241 return arrayType.shiftedTypeIndex;
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dts_type_parser.cpp241 … JSHandle<TSArrayType> arrayType = ParseArrayType(jsPandaFile, recordName, typeLiteralExtractor); in ParseNonImportType() local
242 return JSHandle<JSTaggedValue>(arrayType); in ParseNonImportType()
405 JSHandle<TSArrayType> arrayType = factory_->NewTSArrayType(); in ParseArrayType() local
411 arrayType->SetElementGT(elemetnGT); in ParseArrayType()
412 return arrayType; in ParseArrayType()
Dts_manager.cpp748 JSHandle<TSArrayType> arrayType = JSHandle<TSArrayType>(tsType); in GetArrayParameterTypeGT() local
749 return arrayType->GetElementGT(); in GetArrayParameterTypeGT()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dts_hcr_lowering.cpp751 GateType arrayType = acc_.GetGateType(array); in LowerTypedLdTypedArrayLength() local
752 arrayType = tsManager_->TryNarrowUnionType(arrayType); in LowerTypedLdTypedArrayLength()
754 builder_.TypedArrayCheck(arrayType, array); in LowerTypedLdTypedArrayLength()
756 GateRef result = builder_.LoadTypedArrayLength(arrayType, array); in LowerTypedLdTypedArrayLength()
/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeExtractor.cpp568 ArrayType arrayType(this, typeAnnotation->AsTSArrayType()); in GetTypeIndexFromAnnotation() local
569 return arrayType.GetTypeIndexShift(); in GetTypeIndexFromAnnotation()
/arkcompiler/ets_frontend/es2panda/
DCMakeLists.txt258 typescript/types/arrayType.cpp
DBUILD.gn216 "typescript/types/arrayType.cpp",
/arkcompiler/ets_runtime/ecmascript/tests/
Ddump_test.cpp1029 JSHandle<TSArrayType> arrayType = factory->NewTSArrayType(); in HWTEST_F_L0() local
1030 DUMP_FOR_HANDLE(arrayType) in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
Djs_serializer.cpp1256 uint32_t arrayType = TypedArrayHelper::GetSizeFromType(viewType); in ReadByteArray() local
1257 JSHandle<ByteArray> byteArray = factory_->NewByteArray(arrayLength, arrayType); in ReadByteArray()
Dobject_factory.cpp3363 JSHandle<TSArrayType> arrayType(thread_, header); in NewTSArrayType() local
3364 arrayType->SetElementGT(GlobalTSTypeRef::Default()); in NewTSArrayType()
3366 return arrayType; in NewTSArrayType()
/arkcompiler/ets_frontend/es2panda/parser/
DparserImpl.cpp1610 auto *arrayType = AllocNode<ir::TSArrayType>(elementType); in ParseTsArrayType() local
1611 arrayType->SetRange({startLoc, endLoc}); in ParseTsArrayType()
1613 return arrayType; in ParseTsArrayType()