Home
last modified time | relevance | path

Searched refs:dest (Results 1 – 23 of 23) sorted by relevance

/arkcompiler/toolchain/tooling/test/
Dpt_base64_test.cpp47 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/
Dpt_base64.cpp51 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/
Dbaseptbase64decode_fuzzer.cpp34 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/
Ddominators_tree.h54 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/
Doptions.py90 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/
Dbaseptbase64encode_fuzzer.cpp34 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/
Drunner.py78 '--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/
DmemberExpression.cpp42 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()
DmemberExpression.h83 void CompileObject(compiler::PandaGen *pg, compiler::VReg dest) const;
/arkcompiler/ets_frontend/es2panda/ir/base/
DclassDefinition.cpp253 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/
Drun_ts_test262.py46 … '--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')
Druntest.py60 …parser.add_argument('--bt', dest='builtin', action='store_true', help='aot compile with lib_ark_bu…
/arkcompiler/runtime_core/compiler/optimizer/templates/
DIR-instructions.md.erb26 dest = inst.has_dst? ? inst.operands.first.types.join(', ') : ''
41 | <%= inst.opcode %> | <%= dest %> | <%= inputs %> | <%= inst.flags.join(', ') %> | <%= verify_str …
/arkcompiler/toolchain/tooling/agent/
Ddebugger_impl.cpp642 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 …]
Ddebugger_impl.h166 bool DecodeAndCheckBase64(const std::string &src, std::vector<uint8_t> &dest);
/arkcompiler/ets_runtime/ecmascript/dfx/stackinfo/
Djs_stackgetter.cpp111 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()
Djs_stackgetter.h80 static bool CheckAndCopy(char *dest, size_t length, const char *src);
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
Dreg_alloc_graph_coloring.cpp335 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/
Dregexp_executor.cpp278 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/
Dsamples_record.h103 bool CheckAndCopy(char *dest, size_t length, const char *src) const;
Dsamples_record.cpp885 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/
Drun_testTs.py40 …parser.add_argument('--testinstype', action='store_true', dest='testinstype', default=False, help=…
/arkcompiler/ets_runtime/ecmascript/compiler/
Dgate_meta_data.h822 auto dest = stringData_.data(); in StringMetaData() local
824 … if (destlength <= static_cast<size_t>(srcLength) || strcpy_s(dest, destlength, src) != EOK) { in StringMetaData()