| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | typed_array_helper.h | 31 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);
|
| D | typed_array_helper-inl.h | 125 …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 …]
|
| D | typed_array_helper.cpp | 43 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/ |
| D | assemblyProgramProto.cpp | 88 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/ |
| D | tupleType.cpp | 30 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/ |
| D | ts_type_parser_test.cpp | 354 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/ |
| D | typeChecker.ts | 240 let arrayType = new ArrayType(typeNode); 241 return arrayType.shiftedTypeIndex;
|
| /arkcompiler/ets_runtime/ecmascript/ts_types/ |
| D | ts_type_parser.cpp | 241 … 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()
|
| D | ts_manager.cpp | 748 JSHandle<TSArrayType> arrayType = JSHandle<TSArrayType>(tsType); in GetArrayParameterTypeGT() local 749 return arrayType->GetElementGT(); in GetArrayParameterTypeGT()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | ts_hcr_lowering.cpp | 751 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/ |
| D | typeExtractor.cpp | 568 ArrayType arrayType(this, typeAnnotation->AsTSArrayType()); in GetTypeIndexFromAnnotation() local 569 return arrayType.GetTypeIndexShift(); in GetTypeIndexFromAnnotation()
|
| /arkcompiler/ets_frontend/es2panda/ |
| D | CMakeLists.txt | 258 typescript/types/arrayType.cpp
|
| D | BUILD.gn | 216 "typescript/types/arrayType.cpp",
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | dump_test.cpp | 1029 JSHandle<TSArrayType> arrayType = factory->NewTSArrayType(); in HWTEST_F_L0() local 1030 DUMP_FOR_HANDLE(arrayType) in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_serializer.cpp | 1256 uint32_t arrayType = TypedArrayHelper::GetSizeFromType(viewType); in ReadByteArray() local 1257 JSHandle<ByteArray> byteArray = factory_->NewByteArray(arrayLength, arrayType); in ReadByteArray()
|
| D | object_factory.cpp | 3363 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/ |
| D | parserImpl.cpp | 1610 auto *arrayType = AllocNode<ir::TSArrayType>(elementType); in ParseTsArrayType() local 1611 arrayType->SetRange({startLoc, endLoc}); in ParseTsArrayType() 1613 return arrayType; in ParseTsArrayType()
|