/arkcompiler/toolchain/tooling/test/ |
D | pt_base64_test.cpp | 47 std::string dest; in HWTEST_F_L0() local 49 dest.resize(PtBase64::DecodedSize(src.size())); in HWTEST_F_L0() 50 auto [numOctets, done] = PtBase64::Decode(dest.data(), src.data(), src.size()); in HWTEST_F_L0() 51 dest.resize(numOctets); in HWTEST_F_L0() 55 size_t len = PtBase64::Encode(dest.data(), src.data(), src.size()); in HWTEST_F_L0() 57 EXPECT_EQ(dest, ""); in HWTEST_F_L0() 63 std::string dest; in HWTEST_F_L0() local 68 dest.resize(PtBase64::EncodedSize(src.size())); in HWTEST_F_L0() 69 len = PtBase64::Encode(dest.data(), src.data(), src.size()); in HWTEST_F_L0() 71 EXPECT_EQ(dest, "MQ=="); in HWTEST_F_L0() [all …]
|
/arkcompiler/toolchain/tooling/base/ |
D | pt_base64.cpp | 51 char *dest = static_cast<char *>(output); in Decode() local 62 …*dest++ = (base64Chars[0] << 2) | ((base64Chars[1] & 0x30) >> 4); // 2: shift 2bits, 4: shift 4bits in Decode() 63 …*dest++ = (base64Chars[1] << 4) | ((base64Chars[2] & 0x3c) >> 2); // 2: shift 2bits, 4: shift 4bits in Decode() 64 …*dest++ = (base64Chars[2] << 6) | base64Chars[3]; // 6: shift 6bits, 2: the second char, 3: the th… in Decode() 76 *dest++ = tmp[j]; in Decode() 81 size_t decodedLen = dest - static_cast<char *>(output); in Decode() 98 char *dest = output; in Encode() local 100 *dest++ = ENCODE_TABLE[src[0] >> 2]; // 2: shift 2bits in Encode() 101 *dest++ = ENCODE_TABLE[((src[0] & 0x03) << 4) | (src[1] >> 4)]; // 4: shift 4bits in Encode() 102 … *dest++ = ENCODE_TABLE[((src[1] & 0x0f) << 2) | (src[2] >> 6)]; // 2: shift 2bits, 6: shift 6bits in Encode() [all …]
|
/arkcompiler/toolchain/test/fuzztest/base/ptbase64/baseptbase64decode_fuzzer/ |
D | baseptbase64decode_fuzzer.cpp | 34 std::string dest; in BasePtBase64DecodeFuzzTest() local 35 dest.resize(PtBase64::EncodedSize(src.size())); in BasePtBase64DecodeFuzzTest() 36 PtBase64::Encode(dest.data(), src.data(), src.size()); in BasePtBase64DecodeFuzzTest() 37 src = dest; in BasePtBase64DecodeFuzzTest() 38 dest.resize(PtBase64::DecodedSize(src.size())); in BasePtBase64DecodeFuzzTest() 39 PtBase64::Decode(dest.data(), src.data(), src.size()); in BasePtBase64DecodeFuzzTest()
|
/arkcompiler/runtime_core/compiler/optimizer/analysis/ |
D | dominators_tree.h | 54 void SetAncestor(BasicBlock *dest, BasicBlock *block) in SetAncestor() argument 56 (*ancestors_)[GetBlockId(dest)] = block; in SetAncestor() 74 void SetIdom(BasicBlock *dest, BasicBlock *block) in SetIdom() argument 76 (*idoms_)[GetBlockId(dest)] = block; in SetIdom() 86 void SetLabel(BasicBlock *dest, BasicBlock *block) in SetLabel() argument 88 (*labels_)[GetBlockId(dest)] = block; in SetLabel() 98 void SetParent(BasicBlock *dest, BasicBlock *block) in SetParent() argument 100 (*parents_)[GetBlockId(dest)] = block; in SetParent() 110 void SetSemi(BasicBlock *dest, int32_t value) in SetSemi() argument 112 (*semi_)[GetBlockId(dest)] = value; in SetSemi()
|
/arkcompiler/ets_frontend/test/scripts/sdk_test/ |
D | options.py | 90 parser.add_argument('--sdkPath', type=str, dest='sdk_path', default='', 92 parser.add_argument('--buildMode', type=str, dest='build_mode', default='all', 95 parser.add_argument('--hapMode', type=str, dest='hap_mode', default='all', 98 parser.add_argument('--compileMode', type=str, dest='compile_mode', default='all', 101 parser.add_argument('--testCase', type=str, dest='test_case', default='all', 104 parser.add_argument('--testHap', type=str, dest='test_hap', default='all', 106 parser.add_argument('--imagePath', type=str, dest='image_path', default='', 108 parser.add_argument('--runHaps', dest='run_haps', action='store_true', default=False, 110 parser.add_argument('--logLevel', type=str, dest='log_level', default='error', 113 parser.add_argument('--logFile', type=str, dest='log_file', default='', [all …]
|
/arkcompiler/toolchain/test/fuzztest/base/ptbase64/baseptbase64encode_fuzzer/ |
D | baseptbase64encode_fuzzer.cpp | 34 std::string dest; in BasePtBase64EncodeFuzzTest() local 35 dest.resize(PtBase64::EncodedSize(src.size())); in BasePtBase64EncodeFuzzTest() 36 PtBase64::Encode(dest.data(), src.data(), src.size()); in BasePtBase64EncodeFuzzTest()
|
/arkcompiler/ets_frontend/es2panda/test/ |
D | runner.py | 78 '--test262', '-t', action='store_true', dest='test262', default=False, 81 '--error', action='store_true', dest='error', default=False, 84 '--regression', '-r', action='store_true', dest='regression', 87 '--compiler', '-c', action='store_true', dest='compiler', 90 '--tsc', action='store_true', dest='tsc', 93 '--type-extractor', action='store_true', dest='type_extractor', 96 '--no-progress', action='store_false', dest='progress', default=True, 99 '--no-skip', action='store_false', dest='skip', default=True, 102 '--update', action='store_true', dest='update', default=False, 105 '--no-run-gc-in-place', action='store_true', dest='no_gip', default=False, [all …]
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
D | memberExpression.cpp | 42 void MemberExpression::CompileObject(compiler::PandaGen *pg, compiler::VReg dest) const in CompileObject() 45 pg->StoreAccumulator(this, dest); in CompileObject() 46 pg->GetOptionalChain()->CheckNullish(optional_, dest); in CompileObject()
|
D | memberExpression.h | 83 void CompileObject(compiler::PandaGen *pg, compiler::VReg dest) const;
|
/arkcompiler/ets_frontend/es2panda/ir/base/ |
D | classDefinition.cpp | 253 compiler::VReg dest = prop->IsStatic() ? classReg : protoReg; in CompileMissingProperties() local 260 pg->LoadAccumulator(this, dest); in CompileMissingProperties() 264 pg->StoreOwnProperty(prop->Value()->Parent(), dest, key, prop->Computed()); in CompileMissingProperties() 278 pg->LoadAccumulator(this, dest); in CompileMissingProperties() 290 pg->DefineGetterSetterByValue(this, dest, keyReg, getter, setter, prop->Computed()); in CompileMissingProperties()
|
/arkcompiler/ets_runtime/test/ |
D | run_ts_test262.py | 46 … '--js-runtime', dest='js_runtime_path', default=None, type=lambda arg: is_directory(parser, arg), 49 '--LD_LIBRARY_PATH', dest='ld_library_path', default=None, help='LD_LIBRARY_PATH') 52 '--es2abc', dest='es2abc', default=None, help='ES2ABC_PATH') 55 '--ark_aot', dest='ark_aot', default=None, help='ARK_AOT')
|
D | runtest.py | 60 …parser.add_argument('--bt', dest='builtin', action='store_true', help='aot compile with lib_ark_bu…
|
/arkcompiler/runtime_core/compiler/optimizer/templates/ |
D | IR-instructions.md.erb | 26 dest = inst.has_dst? ? inst.operands.first.types.join(', ') : '' 41 | <%= inst.opcode %> | <%= dest %> | <%= inputs %> | <%= inst.flags.join(', ') %> | <%= verify_str …
|
/arkcompiler/toolchain/tooling/agent/ |
D | debugger_impl.cpp | 642 std::vector<uint8_t> dest; in EvaluateOnCallFrame() local 643 if (!DecodeAndCheckBase64(expression, dest)) { in EvaluateOnCallFrame() 652 auto funcRef = DebuggerApi::GenerateFuncFromBuffer(vm_, dest.data(), dest.size(), in EvaluateOnCallFrame() 803 std::vector<uint8_t> dest; in SetBreakpointByUrl() local 804 if (!DecodeAndCheckBase64(condition.value(), dest)) { in SetBreakpointByUrl() 808 condFuncRef = DebuggerApi::GenerateFuncFromBuffer(vm_, dest.data(), dest.size(), in SetBreakpointByUrl() 885 std::vector<uint8_t> dest; in ProcessSingleBreakpoint() local 886 if (!DecodeAndCheckBase64(condition.value(), dest)) { in ProcessSingleBreakpoint() 890 …funcRef = DebuggerApi::GenerateFuncFromBuffer(vm_, dest.data(), dest.size(), JSPandaFile::ENTRY_FU… in ProcessSingleBreakpoint() 1451 bool DebuggerImpl::DecodeAndCheckBase64(const std::string &src, std::vector<uint8_t> &dest) in DecodeAndCheckBase64() argument [all …]
|
D | debugger_impl.h | 166 bool DecodeAndCheckBase64(const std::string &src, std::vector<uint8_t> &dest);
|
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/ |
D | js_stackgetter.cpp | 111 bool JsStackGetter::CheckAndCopy(char *dest, size_t length, const char *src) in CheckAndCopy() argument 114 if (length <= static_cast<size_t>(srcLength) || strcpy_s(dest, srcLength + 1, src) != EOK) { in CheckAndCopy() 118 dest[srcLength] = '\0'; in CheckAndCopy()
|
D | js_stackgetter.h | 80 static bool CheckAndCopy(char *dest, size_t length, const char *src);
|
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/ |
D | reg_alloc_graph_coloring.cpp | 335 void AddRange(LifeIntervals *interval, InstructionsRanges *dest) in AddRange() argument 337 auto iter = std::upper_bound(dest->begin(), dest->end(), interval, in AddRange() 339 dest->insert(iter, interval); in AddRange()
|
/arkcompiler/ets_runtime/ecmascript/regexp/ |
D | regexp_executor.cpp | 278 uint8_t *dest = buffer.data(); in GetResult() local 279 … if (memcpy_s(dest, len + 1, reinterpret_cast<const uint8_t *>(captureState->captureStart), len) != in GetResult() 284 dest[len] = '\0'; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in GetResult()
|
/arkcompiler/ets_runtime/ecmascript/dfx/cpu_profiler/ |
D | samples_record.h | 103 bool CheckAndCopy(char *dest, size_t length, const char *src) const;
|
D | samples_record.cpp | 885 bool SamplesQueue::CheckAndCopy(char *dest, size_t length, const char *src) const in CheckAndCopy() argument 888 if (length <= static_cast<size_t>(srcLength) || strcpy_s(dest, srcLength + 1, src) != EOK) { in CheckAndCopy() 892 dest[srcLength] = '\0'; in CheckAndCopy()
|
/arkcompiler/ets_frontend/testTs/ |
D | run_testTs.py | 40 …parser.add_argument('--testinstype', action='store_true', dest='testinstype', default=False, help=…
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | gate_meta_data.h | 822 auto dest = stringData_.data(); in StringMetaData() local 824 … if (destlength <= static_cast<size_t>(srcLength) || strcpy_s(dest, destlength, src) != EOK) { in StringMetaData()
|