| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | pass.h | 153 explicit PassRunner(T1* data) : data_(data) {} in PassRunner() argument 168 bool Run(PassData* data) in Run() argument 170 …TimeScope timescope("TypeInferPass", data->GetMethodName(), data->GetMethodOffset(), data->GetLog(… in Run() 171 if (data->HasTypes()) { in Run() 172 bool enableLog = data->GetLog()->GetEnableMethodLog() && data->GetLog()->OutputType(); in Run() 173 …TypeInfer typeInfer(data->GetBuilder(), data->GetCircuit(), data->GetInfo(), data->GetMethodInfoIn… in Run() 174 enableLog, data->GetMethodName(), data->GetRecordName()); in Run() 183 bool Run(PassData *data) in Run() argument 185 …TimeScope timescope("TSTypeLoweringPass", data->GetMethodName(), data->GetMethodOffset(), data->Ge… in Run() 186 bool enableLog = data->GetLog()->EnableMethodCIRLog(); in Run() [all …]
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | bit_memory_region_test.cpp | 23 static void CompareData(uint8_t *data, size_t offset, size_t length, uint32_t value, uint8_t fill_v… in CompareData() argument 27 uint8_t actual = data[i / BITS_PER_BYTE] >> (i % BITS_PER_BYTE); in CompareData() 34 std::array<uint8_t, 16> data; in TEST() local 37 static constexpr size_t MAX_BITS_COUNT = (data.size() - sizeof(uint32_t)) * BITS_PER_BYTE; in TEST() 43 std::fill(data.begin(), data.end(), fill_value); in TEST() 44 BitMemoryRegion region1(data.data(), offset, 1); in TEST() 47 CompareData(data.data(), offset, 1, value, fill_value); in TEST() 48 std::fill(data.begin(), data.end(), fill_value); in TEST() 49 BitMemoryRegion region2(data.data(), data.size() * BITS_PER_BYTE); in TEST() 52 CompareData(data.data(), offset, 1, value, fill_value); in TEST() [all …]
|
| D | utf_test.cpp | 33 ConvertMUtf8ToUtf16(in.data(), utf::Mutf8Size(in.data()), out.data()); 42 ConvertMUtf8ToUtf16(in.data(), utf::Mutf8Size(in.data()), out.data()); 51 ConvertMUtf8ToUtf16(in.data(), utf::Mutf8Size(in.data()), out.data()); 60 ConvertMUtf8ToUtf16(in.data(), utf::Mutf8Size(in.data()), out.data()); 69 ConvertMUtf8ToUtf16(in.data(), utf::Mutf8Size(in.data()), out.data()); 77 ConvertMUtf8ToUtf16(in.data(), utf::Mutf8Size(in.data()), out.data()); 85 ConvertMUtf8ToUtf16(in.data(), utf::Mutf8Size(in.data()), out.data()); 95 size_t res = Utf16ToMUtf8Size(in.data(), in.size()); 102 size_t res = Utf16ToMUtf8Size(in.data(), in.size()); 108 size_t res = Utf16ToMUtf8Size(in.data(), in.size()); [all …]
|
| D | bit_table_test.cpp | 49 typename C::Entry CreateEntry(std::array<uint32_t, N> data) in CreateEntry() argument 54 entry[i] = data[i]; in CreateEntry() 61 ArenaVector<uint8_t> data(GetAllocator()->Adapter()); in TEST_F() local 62 data.reserve(1_KB); in TEST_F() 66 BitMemoryStreamOut out(&data); in TEST_F() 69 BitMemoryStreamIn in(data.data(), 0, data.size() * BITS_PER_BYTE); in TEST_F() 79 ArenaVector<uint8_t> data(GetAllocator()->Adapter()); in TEST_F() local 80 data.reserve(1_KB); in TEST_F() 85 BitMemoryStreamOut out(&data); in TEST_F() 88 BitMemoryStreamIn in(data.data(), 0, data.size() * BITS_PER_BYTE); in TEST_F() [all …]
|
| /arkcompiler/ets_runtime/test/resource/js_runtime/ |
| D | ohos_test.xml | 18 <option name="push" value="test/test/libark_jsruntime_test.so -> /data/test" src="out"/> 23 <option name="push" value="test/test/libark_jsruntime_test.so -> /data/test" src="out"/> 28 <option name="push" value="test/test/libark_jsruntime_test.so -> /data/test" src="out"/> 33 <option name="push" value="test/test/libark_jsruntime_test.so -> /data/test" src="out"/> 38 <option name="push" value="test/test/libark_jsruntime_test.so -> /data/test" src="out"/> 43 <option name="push" value="test/test/libark_jsruntime_test.so -> /data/test" src="out"/> 48 <option name="push" value="test/test/libark_jsruntime_test.so -> /data/test" src="out"/> 53 <option name="push" value="test/test/libark_jsruntime_test.so -> /data/test" src="out"/> 58 <option name="push" value="test/test/libark_jsruntime_test.so -> /data/test" src="out"/> 63 <option name="push" value="test/test/libark_jsruntime_test.so -> /data/test" src="out"/> [all …]
|
| /arkcompiler/runtime_core/irtoc/lang/ |
| D | regmap.rb | 17 attr_reader :data accessor in Regmap 19 def initialize(data, direct: false) argument 21 @data = data 23 @data = data[Options.arch] 24 raise "Regmap doesn't contain data for required arch" unless @data 29 def self.from_hash(data) argument 30 Regmap.new(data, direct: true) 34 @data[v] 39 Regmap.new(@data.merge(other.data), direct: true) 41 Regmap.new(@data.merge(other), direct: true) [all …]
|
| /arkcompiler/runtime_core/runtime/tests/ |
| D | string_test.cpp | 78 std::vector<uint8_t> data {0x01, 0x05, 0x07, 0x00}; in TEST_F() local 79 uint32_t utf16_length = data.size() - 1; in TEST_F() 81 …String::CreateFromMUtf8(data.data(), utf16_length, GetLanguageContext(), Runtime::GetCurrent()->Ge… in TEST_F() 82 ASSERT_TRUE(String::StringsAreEqualMUtf8(first_string, data.data(), utf16_length)); in TEST_F() 87 std::vector<uint8_t> data {0xc2, 0xa7}; in TEST_F() local 90 data.push_back(0x30 + i); in TEST_F() 92 data.push_back(0); in TEST_F() 94 uint32_t utf16_length = data.size() - 2; in TEST_F() 96 …String::CreateFromMUtf8(data.data(), utf16_length, GetLanguageContext(), Runtime::GetCurrent()->Ge… in TEST_F() 97 ASSERT_TRUE(String::StringsAreEqualMUtf8(first_string, data.data(), utf16_length)); in TEST_F() [all …]
|
| D | string_table_base_test.h | 45 static coretypes::String *AllocUtf8String(std::vector<uint8_t> data, bool is_movable = true) 48 … return coretypes::String::CreateFromMUtf8(data.data(), utf::MUtf8ToUtf16Size(data.data()), ctx, 94 std::vector<uint8_t> data {0x01, 0x02, 0x03, 0x00}; in InternCompressedUtf8AndString() 95 auto *string = AllocUtf8String(data); in InternCompressedUtf8AndString() 97 table.GetOrInternString(data.data(), data.size() - 1, in InternCompressedUtf8AndString() 109 std::vector<uint8_t> data {0xc2, 0xa7, 0x34, 0x00}; in InternUncompressedUtf8AndString() 110 auto *string = AllocUtf8String(data); in InternUncompressedUtf8AndString() 112 …data.data(), 2, Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY)); in InternUncompressedUtf8AndString() 123 std::vector<uint16_t> data {0xffc3, 0x33, 0x00}; in InternTheSameUtf16String() 127 …coretypes::String::CreateFromUtf16(data.data(), data.size(), ctx, Runtime::GetCurrent()->GetPandaV… in InternTheSameUtf16String() [all …]
|
| /arkcompiler/runtime_core/runtime/tooling/ |
| D | pt_hooks_wrapper.h | 33 // Atomic with release order reason: data race with hooks_ in SetHooks() 60 // Atomic with acquire order reason: data race with hooks_ in Breakpoint() 65 // Atomic with acquire order reason: data race with vmdeath_did_not_happen_ in Breakpoint() 72 // Atomic with acquire order reason: data race with hooks_ in LoadModule() 77 // Atomic with acquire order reason: data race with vmdeath_did_not_happen_ in LoadModule() 84 // Atomic with acquire order reason: data race with hooks_ in Paused() 89 // Atomic with acquire order reason: data race with vmdeath_did_not_happen_ in Paused() 97 // Atomic with acquire order reason: data race with hooks_ in Exception() 102 // Atomic with acquire order reason: data race with vmdeath_did_not_happen_ in Exception() 110 // Atomic with acquire order reason: data race with hooks_ in ExceptionCatch() [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/code_generator/target/aarch32/ |
| D | lib_helpers.inl | 25 extern "C" float __aeabi_l2f(int64_t data); // NOLINT(misc-definitions-in-headers) 26 extern "C" float __aeabi_ul2f(uint64_t data); // NOLINT(misc-definitions-in-headers) 27 extern "C" double __aeabi_l2d(int64_t data); // NOLINT(misc-definitions-in-headers) 28 extern "C" double __aeabi_ul2d(uint64_t data); // NOLINT(misc-definitions-in-headers) 30 extern "C" int64_t __aeabi_f2lz(float data); // NOLINT(misc-definitions-in-headers) 31 extern "C" uint64_t __aeabi_f2ulz(float data); // NOLINT(misc-definitions-in-headers) 32 extern "C" int64_t __aeabi_d2lz(double data); // NOLINT(misc-definitions-in-headers) 33 extern "C" uint64_t __aeabi_d2ulz(double data); // NOLINT(misc-definitions-in-headers) 90 float __aeabi_l2f(int64_t data) argument 92 return static_cast<float>(data); [all …]
|
| /arkcompiler/runtime_core/libpandabase/utils/ |
| D | leb128.h | 33 inline std::tuple<T, size_t, bool> DecodeUnsigned(const uint8_t *data) in DecodeUnsigned() argument 44 uint8_t byte = data[i] & PAYLOAD_MASK; in DecodeUnsigned() 48 if ((data[i] & EXTENSION_BIT) == 0) { in DecodeUnsigned() 58 inline std::tuple<uint32_t, size_t, bool> DecodeUnsigned<uint32_t>(const uint8_t *data) 67 const uint8_t *p = data; 91 return {result, p - data, valid}; 95 inline std::tuple<T, size_t, bool> DecodeSigned(const uint8_t *data) in DecodeSigned() argument 108 uint8_t byte = data[i]; in DecodeSigned() 133 inline size_t EncodeUnsigned(T data, uint8_t *out) in EncodeUnsigned() argument 136 uint8_t byte = data & PAYLOAD_MASK; in EncodeUnsigned() [all …]
|
| /arkcompiler/ets_runtime/test/fuzztest/containersplainarray_fuzzer/ |
| D | containersplainarray_fuzzer.cpp | 80 void ContainersPlainArray_Constructor_FuzzTest(const uint8_t* data, size_t size) in ContainersPlainArray_Constructor_FuzzTest() argument 82 if (data == nullptr || size <= 0) { in ContainersPlainArray_Constructor_FuzzTest() 95 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in ContainersPlainArray_Constructor_FuzzTest() 108 void ContainersPlainArray_Add_Has_FuzzTest(const uint8_t* data, size_t size) in ContainersPlainArray_Add_Has_FuzzTest() argument 110 if (data == nullptr || size <= 0) { in ContainersPlainArray_Add_Has_FuzzTest() 121 std::string inputStr(data, data + size); in ContainersPlainArray_Add_Has_FuzzTest() 126 if (memcpy_s(&inputNum, MAXBYTELEN, data, size) != 0) { in ContainersPlainArray_Add_Has_FuzzTest() 152 void ContainersPlainArray_Clone_FuzzTest(const uint8_t* data, size_t size) in ContainersPlainArray_Clone_FuzzTest() argument 154 if (data == nullptr || size <= 0) { in ContainersPlainArray_Clone_FuzzTest() 165 std::string inputStr(data, data + size); in ContainersPlainArray_Clone_FuzzTest() [all …]
|
| /arkcompiler/runtime_core/verification/jobs/ |
| D | thread_pool.cpp | 88 Data *data = GetData(); in Enqueue() local 89 if (data == nullptr) { in Enqueue() 94 bool enqueued = data->thread_pool.PutTask(Task {*method}); in Enqueue() 102 …// Atomic with release order reason: data race with shutdown_ with dependecies on writes before th… in Initialize() 109 …// Atomic with release order reason: data race with next_thread_num_ with dependecies on writes be… in Initialize() 113 Data *data = allocator->New<Data>(allocator, num_threads); in Initialize() local 114 if (data == nullptr) { in Initialize() 118 Data *expected = nullptr; in Initialize() 119 if (data_.compare_exchange_strong(expected, data, std::memory_order_seq_cst)) { in Initialize() 123 allocator->Delete(data); in Initialize() [all …]
|
| D | thread_pool.h | 133 Data *data = GetData(); in GetCache() local 134 if (data == nullptr) { in GetCache() 137 return data->cache; in GetCache() 148 Data *data = GetData(); in WaitForVerification() local 149 if (data == nullptr) { in WaitForVerification() 152 panda::os::memory::LockHolder lck {data->lock}; in WaitForVerification() 159 data->cond_var.TimedWait(&data->lock, quantum); in WaitForVerification() 165 struct Data { struct 172 NO_COPY_SEMANTIC(Data); argument 173 NO_MOVE_SEMANTIC(Data); [all …]
|
| /arkcompiler/runtime_core/isa/ |
| D | combine.rb | 21 def data_instructions(data) argument 22 data['groups'].flat_map { |g| g['instructions'] } 29 opts.on('-d', '--data FILE1,FILE2,...', Array, 'List of source data files in YAML format') 39 exit unless options.data 40 exit if options.data.empty? 42 data = YAML.load_file(File.expand_path(options.data.first)) 43 options.data.drop(1).each do |plugin_path| 50 raise "Uknown data property: #{attr}" unless data.key?(attr) 52 data[attr] += plugin_data[attr] 57 output.write(data.to_yaml)
|
| /arkcompiler/runtime_core/libpandabase/serializer/ |
| D | serializer.h | 67 // pack data 68 const auto *ptr = reinterpret_cast<const uint8_t *>(vec.data()); 110 Expected<size_t, const char *> BufferToType(const uint8_t *data, size_t size, /* out */ T &value) in BufferToType() argument 119 memcpy_s(ptr, sizeof(value), data, sizeof(value)); in BufferToType() 124 inline Expected<size_t, const char *> BufferToType(const uint8_t *data, size_t size, /* out */ std:… in BufferToType() argument 128 auto r = BufferToType(data, size, str_size); in BufferToType() 133 data = ToUint8tPtr(ToUintPtr(data) + r.Value()); in BufferToType() 142 memcpy_s(str.data(), str_size, data, str_size); in BufferToType() 147 Expected<size_t, const char *> BufferToType(const uint8_t *data, size_t size, /* out */ std::vector… in BufferToType() argument 153 auto r = BufferToType(data, size, vector_size); in BufferToType() [all …]
|
| /arkcompiler/toolchain/test/resource/tooling/ |
| D | ohos_test.xml | 18 …<option name="push" value="obj/arkcompiler/toolchain/tooling/test/sample.abc -> /data/test" src="o… 19 … name="push" value="obj/arkcompiler/toolchain/tooling/test/exception.abc -> /data/test" src="out"/> 20 …name="push" value="obj/arkcompiler/toolchain/tooling/test/arrow_func.abc -> /data/test" src="out"/> 21 …name="push" value="obj/arkcompiler/toolchain/tooling/test/async_func.abc -> /data/test" src="out"/> 22 …ame="push" value="obj/arkcompiler/toolchain/tooling/test/range_error.abc -> /data/test" src="out"/> 23 …push" value="obj/arkcompiler/toolchain/tooling/test/syntax_exception.abc -> /data/test" src="out"/> 24 …"push" value="obj/arkcompiler/toolchain/tooling/test/throw_exception.abc -> /data/test" src="out"/> 25 …<option name="push" value="obj/arkcompiler/toolchain/tooling/test/step.abc -> /data/test" src="out… 26 <option name="push" value="test/test/libjsdebugtest.so -> /data/test" src="out"/> 27 <option name="push" value="test/test/libdebugger_entry.so -> /data/test" src="out"/> [all …]
|
| /arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/ |
| D | js_stackinfo.cpp | 29 std::string data; in BuildMethodTrace() local 30 data.append(" at "); in BuildMethodTrace() 35 data += name; in BuildMethodTrace() 36 data.append(" ("); in BuildMethodTrace() 42 data.push_back('?'); in BuildMethodTrace() 44 data += sourceFile; in BuildMethodTrace() 46 data.push_back(':'); in BuildMethodTrace() 48 auto callbackLineFunc = [&data](int32_t line) -> bool { in BuildMethodTrace() 49 data += std::to_string(line + 1); in BuildMethodTrace() 50 data.push_back(':'); in BuildMethodTrace() [all …]
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | code_data_accessor.cpp | 20 CodeDataAccessor::CatchBlock::CatchBlock(Span<const uint8_t> data) in CatchBlock() argument 22 auto sp = data; in CatchBlock() 26 size_ = sp.data() - data.data(); in CatchBlock() 29 CodeDataAccessor::TryBlock::TryBlock(Span<const uint8_t> data) : data_(data), size_(0) in TryBlock() argument 31 start_pc_ = helpers::ReadULeb128(&data); in TryBlock() 32 length_ = helpers::ReadULeb128(&data); in TryBlock() 33 num_catches_ = helpers::ReadULeb128(&data); in TryBlock() 34 catch_blocks_sp_ = data; in TryBlock() 46 instructions_ptr_ = sp.data(); in CodeDataAccessor()
|
| /arkcompiler/ets_runtime/test/fuzztest/arraylist_fuzzer/ |
| D | arraylist_fuzzer.cpp | 122 void ArrayListForEachFuzzTest(const uint8_t* data, size_t size) in ArrayListForEachFuzzTest() argument 124 if (data == nullptr || size <= 0) { in ArrayListForEachFuzzTest() 139 if (memcpy_s(&inputNum, MAXBYTELEN, data, size) != 0) { in ArrayListForEachFuzzTest() 161 void ArrayListAddFuzzTest(const uint8_t* data, size_t size) in ArrayListAddFuzzTest() argument 180 if (memcpy_s(&inputNum, MAXBYTELEN, data, size) != 0) { in ArrayListAddFuzzTest() 189 void ArrayListClearFuzzTest(const uint8_t* data, size_t size) in ArrayListClearFuzzTest() argument 191 if (data == nullptr || size <= 0) { in ArrayListClearFuzzTest() 204 if (memcpy_s(&inputNum, MAXBYTELEN, data, size) != 0) { in ArrayListClearFuzzTest() 222 void ArrayListCloneFuzzTest(const uint8_t* data, size_t size) in ArrayListCloneFuzzTest() argument 224 if (data == nullptr || size <= 0) { in ArrayListCloneFuzzTest() [all …]
|
| /arkcompiler/runtime_core/libpandafile/tests/ |
| D | file_test.cpp | 39 static std::unique_ptr<const File> GetPandaFile(std::vector<uint8_t> *data) in GetPandaFile() argument 41 os::mem::ConstBytePtr ptr(reinterpret_cast<std::byte *>(data->data()), data->size(), in GetPandaFile() 59 std::vector<uint8_t> data {}; in GetEmptyPandaFileBytes() local 61 data.assign(header_ptr, header_ptr + sizeof(File::Header)); in GetEmptyPandaFileBytes() 63 ASSERT(data.size() == sizeof(File::Header)); in GetEmptyPandaFileBytes() 65 return data; in GetEmptyPandaFileBytes() 68 int CreateOrAddZipPandaFile(std::vector<uint8_t> *data, const char *zip_archive_name, const char *f… in CreateOrAddZipPandaFile() argument 71 …return CreateOrAddFileIntoZip(zip_archive_name, filename, (*data).data(), (*data).size(), append, … in CreateOrAddZipPandaFile() 115 auto data = mem_writer.GetData(); variable 116 auto panda_file = GetPandaFile(&data); [all …]
|
| /arkcompiler/runtime_core/verification/cache/ |
| D | results_cache.cpp | 54 using Data = PandaVector<uint64_t>; in Initialize() typedef 72 Data data; in Initialize() local 74 auto elements = *size / sizeof(Data::value_type); in Initialize() 77 data.resize(elements, 0); in Initialize() 78 if (!file.ReadAll(data.data(), *size)) { in Initialize() 79 LOG(INFO, VERIFIER) << "Cannot read verification cache data"; in Initialize() 87 …impl = new (mem::AllocatorAdapter<Impl>().allocate(1)) Impl {filename, data.cbegin(), data.cend()}; in Initialize() 97 PandaVector<uint64_t> data; in Destroy() local 98 impl->verified_ok.Apply([&data](const auto &set) { in Destroy() 99 data.reserve(set.size()); in Destroy() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_iterator_test.cpp | 64 JSHandle<TaggedArray> data(factory->NewTaggedArray(2)); in HWTEST_F_L0() local 65 data->Set(thread, 0, JSTaggedValue(1)); in HWTEST_F_L0() 66 data->Set(thread, 1, JSTaggedValue(1)); in HWTEST_F_L0() 67 JSHandle<JSTaggedValue> array(JSArray::CreateArrayFromList(thread, data)); in HWTEST_F_L0() 79 JSHandle<TaggedArray> data(factory->NewTaggedArray(1)); in HWTEST_F_L0() local 80 data->Set(thread, 0, JSTaggedValue(1)); in HWTEST_F_L0() 81 JSHandle<JSTaggedValue> array(JSArray::CreateArrayFromList(thread, data)); in HWTEST_F_L0() 91 JSHandle<TaggedArray> data(factory->NewTaggedArray(2)); in HWTEST_F_L0() local 92 data->Set(thread, 0, JSTaggedValue(1)); in HWTEST_F_L0() 93 data->Set(thread, 1, JSTaggedValue(1)); in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/templates/ |
| D | merge.rb | 42 …opts.on('-d', '--data foo.yaml,bar.yaml,baz.yaml', Array, 'List of source data in YAML format (req… 52 check_option(optparser, options, :data) 56 options.data.each do |options_yaml| 57 data = YAML.load_file(File.expand_path(options_yaml)) 58 data = JSON.parse(data.to_json) 59 data["options"].each do |option| 96 data = YAML.load_file(File.expand_path(options.data[0])) 97 data = JSON.parse(data.to_json) 98 data["options"] = options_hash.values 100 output_yaml = YAML.dump(JSON.load(data.to_json))
|
| /arkcompiler/ets_runtime/test/fuzztest/containersvectorcommon_fuzzer/ |
| D | containersvectorcommon_fuzzer.h | 83 … static JSHandle<JSAPIVector> GetVectorWithData(JSThread *thread, const uint8_t* data, size_t size) in GetVectorWithData() argument 93 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in GetVectorWithData() 110 static void ContainersVectorAddFuzzTest(const uint8_t* data, size_t size) in ContainersVectorAddFuzzTest() argument 122 std::string str(data, data + size); in ContainersVectorAddFuzzTest() 131 static void ContainersVectorGetFirstElementFuzzTest(const uint8_t* data, size_t size) in ContainersVectorGetFirstElementFuzzTest() argument 143 std::string str(data, data + size); in ContainersVectorGetFirstElementFuzzTest() 158 static void ContainersVectorGetIndexOfFuzzTest(const uint8_t* data, size_t size) in ContainersVectorGetIndexOfFuzzTest() argument 170 std::string str(data, data + size); in ContainersVectorGetIndexOfFuzzTest() 186 static void ContainersVectorGetLastElementFuzzTest(const uint8_t* data, size_t size) in ContainersVectorGetLastElementFuzzTest() argument 198 std::string str(data, data + size); in ContainersVectorGetLastElementFuzzTest() [all …]
|