Home
last modified time | relevance | path

Searched full:c (Results 1 – 25 of 2645) sorted by relevance

12345678910>>...106

/ark/runtime_core/cmake/ark-third-party/securec/
DCMakeLists.txt1 # Copyright (c) 2021 Huawei Device Co., Ltd.
19 ${SECUREC_ROOT}/src/vsprintf_s.c
20 ${SECUREC_ROOT}/src/wmemmove_s.c
21 ${SECUREC_ROOT}/src/strncat_s.c
22 ${SECUREC_ROOT}/src/vsnprintf_s.c
23 ${SECUREC_ROOT}/src/fwscanf_s.c
24 ${SECUREC_ROOT}/src/scanf_s.c
25 ${SECUREC_ROOT}/src/strcat_s.c
26 ${SECUREC_ROOT}/src/sscanf_s.c
27 ${SECUREC_ROOT}/src/secureprintoutput_w.c
[all …]
/ark/runtime_core/gn/ark-third-party/securec/
DBUILD.gn1 # Copyright (c) 2021 Huawei Device Co., Ltd.
22 "$ark_third_party_root/securec/src/fscanf_s.c",
23 "$ark_third_party_root/securec/src/fwscanf_s.c",
24 "$ark_third_party_root/securec/src/gets_s.c",
25 "$ark_third_party_root/securec/src/memcpy_s.c",
26 "$ark_third_party_root/securec/src/memmove_s.c",
27 "$ark_third_party_root/securec/src/memset_s.c",
28 "$ark_third_party_root/securec/src/scanf_s.c",
29 "$ark_third_party_root/securec/src/securecutil.c",
30 "$ark_third_party_root/securec/src/secureinput_a.c",
[all …]
/ark/runtime_core/verification/debug/parser/
Dparser.h2 * Copyright (c) 2021 Huawei Device Co., Ltd.
42 template <typename A, typename B, typename C>
46 template <typename A, typename C>
47 struct if_type<A, A, C> {
48 using type = C;
76 static next<charset<Char>> of_charset(const charset<Char> &c)
78 static const auto l = [c](Context &, Iter &start, Iter end) {
80 while (s != end && c(*s)) {
96 Iter c = str;
97 while (s != end && *c != 0 && *c == *s) {
[all …]
Dcharset.h2 * Copyright (c) 2021 Huawei Device Co., Ltd.
30 uint8_t c = static_cast<uint8_t>(c_); in operator() local
31 return (bitmap[(c) >> 0x6U] & (0x1ULL << ((c)&0x3FU))) != 0; in operator()
35 charset(const charset &c) = default;
36 charset(charset &&c) = default;
37 charset &operator=(const charset &c) = default;
38 charset &operator=(charset &&c) = default;
45 uint8_t c = static_cast<uint8_t>(*s); in charset() local
47 … bitmap[(c) >> 0x6U] = static_cast<uint64_t>(bitmap[(c) >> 0x6U] | (0x1ULL << ((c)&0x3FU))); in charset()
52 constexpr charset operator+(const charset &c) const
[all …]
/ark/runtime_core/verification/util/
Dlazy.h2 * Copyright (c) 2021 Huawei Device Co., Ltd.
67 template <typename C>
68 auto LazyFetch(C &c) in LazyFetch() argument
70 …return [end = c.end(), it = c.begin()]() mutable -> std::optional<std::decay_t<decltype(*(c.begin(… in LazyFetch()
78 template <typename C>
79 auto LazyFetch(const C &c) in LazyFetch() argument
81 …return [end = c.end(), it = c.begin()]() mutable -> std::optional<std::decay_t<decltype(*(c.begin(… in LazyFetch()
89 template <typename C>
90 auto ConstLazyFetch(const C &c) in ConstLazyFetch() argument
92 …return [cend = c.cend(), it = c.cbegin()]() mutable -> std::optional<std::decay_t<decltype(*(c.cbe… in ConstLazyFetch()
[all …]
Dsynchronized.h2 * Copyright (c) 2021 Huawei Device Co., Ltd.
28 template <class C, class Friend1 = C, class Friend2 = C>
49 const C *operator->()
52 return &obj->c;
77 C *operator->()
80 return &obj->c;
86 C &GetObj() in GetObj()
88 return c; in GetObj()
91 const C &GetObj() const in GetObj()
93 return c; in GetObj()
[all …]
Dstr.h2 * Copyright (c) 2021 Huawei Device Co., Ltd.
48 char c = static_cast<char>(val % Base); variable
49 if (c >= 0x0A) {
50 c -= 0x0A;
51 c += 'a';
53 c += '0';
55 result = Str {c} + result;
/ark/runtime_core/verification/debug/config/
Dconfig_parse.cpp2 * Copyright (c) 2021 Huawei Device Co., Ltd.
53 static const auto NAME_HANDLER = [](auto a, Context &c, auto from, auto to) { in ParseConfig() argument
55 c.current.name = PandaString {from, to}; in ParseConfig()
64 static const auto LINE_HANDLER = [](auto a, Context &c, auto from, auto to) { in ParseConfig() argument
66 c.current.items.push_back(PandaString {from, to}); in ParseConfig()
77 static const auto SECTION_HANDLER = [](auto a, Context &c) { in ParseConfig() argument
79 c.sections.push_back(c.current); in ParseConfig()
80 c.current.sections.clear(); in ParseConfig()
83 c.current = c.sections.back(); in ParseConfig()
84 c.sections.pop_back(); in ParseConfig()
[all …]
/ark/runtime_core/verification/debug/options/
Dmsg_set_parser.h2 * Copyright (c) 2021 Huawei Device Co., Ltd.
29 static const auto NAME_HANDLER = [](action a, Context &c, auto from, auto to) { in NameHandler()
33 c.stack.push_back(std::make_pair(num, num)); in NameHandler()
46 static const auto NUM_HANDLER = [](action a, Context &c, auto from) { in NumHandler()
49 c.stack.push_back(std::make_pair(num, num)); in NumHandler()
62 static const auto RANGE_HANDLER = [](action a, Context &c) { in RangeHandler()
64 auto num_end = c.stack.back(); in RangeHandler()
65 c.stack.pop_back(); in RangeHandler()
66 auto num_start = c.stack.back(); in RangeHandler()
67 c.stack.pop_back(); in RangeHandler()
[all …]
/ark/runtime_core/libpandabase/utils/
Dutils.h2 * Copyright (c) 2021 Huawei Device Co., Ltd.
23 // Returns the value (0 .. 15) of a hexadecimal character c.
24 // If c is not a legal hexadecimal character, returns a value < 0.
25 inline int32_t HexValue(uint32_t c) in HexValue() argument
31 c -= '0'; in HexValue()
32 if (static_cast<unsigned>(c) < BASE10) { in HexValue()
33 return c; in HexValue()
36 c = (c | MASK) - ('a' - '0'); in HexValue()
37 if (static_cast<unsigned>(c) < (BASE16 - BASE10)) { in HexValue()
38 return c + BASE10; in HexValue()
/ark/runtime_core/verification/debug/handlers/
Dconfig_handler_breakpoints.cpp2 * Copyright (c) 2021 Huawei Device Co., Ltd.
64 static const auto OFFSET_HANDLER = [](action a, Context &c, auto from) { in BreakpointParser() argument
66 c.Offsets.push_back(std::strtol(from, nullptr, 0)); in BreakpointParser()
73 static const auto METHOD_NAME_HANDLER = [](action a, Context &c, auto from, auto to) { in BreakpointParser() argument
75 c.Method = PandaString {from, to}; in BreakpointParser()
80 static const auto BREAKPOINT_HANDLER = [](action a, Context &c) { in BreakpointParser() argument
82 c.Method.clear(); in BreakpointParser()
83 c.Offsets.clear(); in BreakpointParser()
100 Context c; in RegisterConfigHandlerBreakpoints() local
103 if (!BreakpointParser()(c, start, end)) { in RegisterConfigHandlerBreakpoints()
[all …]
Dconfig_handler_allowlist.cpp2 * Copyright (c) 2021 Huawei Device Co., Ltd.
49 static const auto METHOD_NAME_HANDLER = [](action a, PandaString &c, auto from, auto to) { in AllowlistMethodParser() argument
51 c = PandaString {from, to}; in AllowlistMethodParser()
79 PandaString c; in RegisterConfigHandlerAllowlist() local
82 if (!AllowlistMethodParser()(c, start, end)) { in RegisterConfigHandlerAllowlist()
86 if (!c.empty()) { in RegisterConfigHandlerAllowlist()
89 … hash = Method::GetClassNameHashFromString(reinterpret_cast<const uint8_t *>(c.c_str())); in RegisterConfigHandlerAllowlist()
90 … LOG(DEBUG, VERIFIER) << "Added to allowlist config '" << s.name << "' methods from class '" << c in RegisterConfigHandlerAllowlist()
93 … hash = Method::GetFullNameHashFromString(reinterpret_cast<const uint8_t *>(c.c_str())); in RegisterConfigHandlerAllowlist()
94 … LOG(DEBUG, VERIFIER) << "Added to allowlist config '" << s.name << "' method '" << c in RegisterConfigHandlerAllowlist()
/ark/js_runtime/ecmascript/regexp/
Dregexp_executor.h2 * Copyright (c) 2021 Huawei Device Co., Ltd.
41 __extension__ CaptureState *captureResultList_[0]; // NOLINT(modernize-avoid-c-arrays)
105 uint32_t c; in GetChar() local
108 c = *cptr; in GetChar()
112 c = c1; in GetChar()
114 if (U16_IS_LEAD(c) && IsUtf16() && cptr < end) { in GetChar()
117 c = U16_GET_SUPPLEMENTARY(c, c1); // NOLINTNEXTLINE(hicpp-signed-bitwise) in GetChar()
123 return c; in GetChar()
128 uint32_t c; in PeekChar() local
131 c = *cptr; in PeekChar()
[all …]
Dregexp_parser.h2 * Copyright (c) 2021 Huawei Device Co., Ltd.
161 inline static int Canonicalize(int c, bool isUnicode) in Canonicalize() argument
163 if (c < TMP_BUF_SIZE) { // NOLINTNEXTLINE(readability-magic-numbers) in Canonicalize()
164 if (c >= 'a' && c <= 'z') { in Canonicalize()
165 c = c - 'a' + 'A'; in Canonicalize()
169 c = u_toupper(static_cast<UChar32>(c)); in Canonicalize()
172 return c; in Canonicalize()
228 char errorMsg_[TMP_BUF_SIZE] = {0}; // NOLINTNEXTLINE(modernize-avoid-c-arrays)
/ark/runtime_core/verification/util/tests/
Denvironment.cpp2 * Copyright (c) 2021 Huawei Device Co., Ltd.
40 …static const auto NAME_HANDLER = [](auto a, Context &c, auto s, auto e, [[maybe_unused]] auto end)… in EnvOptions() argument
42 c.name = std::string {s, e}; in EnvOptions()
53 static const auto BOOL_HANDLER = [](auto a, Context &c, auto s, [[maybe_unused]] auto to, in EnvOptions()
57 c.value = false; in EnvOptions()
59 c.value = true; in EnvOptions()
67 …static const auto NUM_HANDLER = [](auto a, Context &c, auto s, auto e, [[maybe_unused]] auto end) { in EnvOptions() argument
69 c.value = std::stoi(std::string {s, e}, nullptr, 0); in EnvOptions()
77 …static const auto STRING_HANDLER = [](auto a, Context &c, auto s, auto e, [[maybe_unused]] auto en… in EnvOptions() argument
79 c.value = std::string {s, e}; in EnvOptions()
[all …]
Dobj_pool_test.cpp2 * Copyright (c) 2021 Huawei Device Co., Ltd.
31 template <typename I, typename C>
32 struct Pool : public ObjPool<S, std::vector, I, C> {
33 Pool(I i, C c) : ObjPool<S, std::vector, I, C> {i, c} {} in Pool()
/ark/runtime_core/runtime/entrypoints/
Dentrypoints.h2 * Copyright (c) 2021 Huawei Device Co., Ltd.
25 extern "C" Frame *CreateFrame(uint32_t nregs, Method *method, Frame *prev);
26 extern "C" Frame *CreateFrameWithActualArgs(uint32_t nregs, uint32_t num_actual_args, Method *metho…
27 extern "C" Frame *CreateFrameWithActualArgsAndSize(uint32_t size, uint32_t nregs, uint32_t num_actu…
29 extern "C" void FreeFrame(Frame *frame);
30 extern "C" void ThrowInstantiationErrorEntrypoint(Class *klass);
Dentrypoints.cpp2 * Copyright (c) 2021 Huawei Device Co., Ltd.
83 extern "C" bool IncrementHotnessCounter(Method *method) in IncrementHotnessCounter()
89 extern "C" NO_ADDRESS_SANITIZE void InterpreterEntryPoint(Method *method, Frame *frame) in InterpreterEntryPoint()
117 extern "C" Frame *CreateFrame(uint32_t nregs, Method *method, Frame *prev) in CreateFrame()
127 extern "C" Frame *CreateFrameForMethod(Method *method, Frame *prev) in CreateFrameForMethod()
133 extern "C" Frame *CreateFrameWithActualArgsAndSize(uint32_t size, uint32_t nregs, uint32_t num_actu… in CreateFrameWithActualArgsAndSize()
145 extern "C" Frame *CreateFrameWithActualArgs(uint32_t nregs, uint32_t num_actual_args, Method *metho… in CreateFrameWithActualArgs()
150 extern "C" Frame *CreateFrameForMethodWithActualArgs(uint32_t num_actual_args, Method *method, Fram… in CreateFrameForMethodWithActualArgs()
157 extern "C" void FreeFrame(Frame *frame) in FreeFrame()
162 extern "C" DecodedTaggedValue GetInitialTaggedValue(Method *method) in GetInitialTaggedValue()
/ark/runtime_core/libpandabase/os/unix/sighooklib/
Dsighook.h2 * Copyright (c) 2021 Huawei Device Co., Ltd.
36 extern "C" void RegisterHookHandler(int signal, const SighookAction *sa);
37 extern "C" void RemoveHookHandler(int signal, bool (*action)(int, siginfo_t *, void *));
38 extern "C" void CheckOldHookHandler(int signal);
49 extern "C" void AddSpecialSignalHandlerFn(int signal, SigchainAction *sa);
50 extern "C" void RemoveSpecialSignalHandlerFn(int signal, bool (*fn)(int, siginfo_t *, void *));
51 extern "C" void EnsureFrontOfChain(int signal);
/ark/runtime_core/docs/bc_verification/
Dtypes_n_values.md43 - `A() <: B() <: C()` - means `A() <: B()`, `A() <: C()` and `B() <: C()`
45 - `(A() | B()) <: C()` - means `A() <: C()` and `B() <: C()`
47 - `(A() | B()) <: (C() | D())` - means `A() <: C()`, `B() <: C()`, `A() <: D()` and `B() <: D()`
80 Types which are in circular subtyping relation, like `A <: B <: C <: A`, are indistinguishable
/ark/runtime_core/runtime/bridge/
Dbridge.h2 * Copyright (c) 2021 Huawei Device Co., Ltd.
44 extern "C" void InterpreterToCompiledCodeBridge(const uint8_t *, const Frame *, const Method *, Man…
45 extern "C" void InterpreterToCompiledCodeBridgeDyn(const uint8_t *, const Frame *, const Method *, …
46 extern "C" DecodedTaggedValue InvokeCompiledCodeWithArgArray(const int64_t *, const Frame *, const …
48 extern "C" DecodedTaggedValue InvokeCompiledCodeWithArgArrayDyn(const int64_t *, uint32_t, const Fr…
51 extern "C" int64_t InvokeInterpreter(ManagedThread *thread, const uint8_t *pc, Frame *frame, Frame …
/ark/js_runtime/test/moduletest/container/
Dcontainer_treemap.js2 * Copyright (c) 2021 Huawei Device Co., Ltd.
30 map.hasValue("bb") && !map.hasKey("c") && !map.hasValue("cc"));
32 map.set("c", "cc");
34 print("test getFirstKey and getLastKey, out:", map.getFirstKey() == "a" && map.getLastKey() == "c");
37 map.getHigherKey("b") == "c" && map.getHigherKey("c") == undefined);
41 iteratorKey.next().value == "c" && iteratorKey.next().value == undefined);
46 // test entries, out: [c,cc], undefined
53 // test forof, out: [a, aa], [b, bb], [c, cc]
/ark/runtime_core/runtime/arch/
Dasm_support.cpp2 * Copyright (c) 2021 Huawei Device Co., Ltd.
41 extern "C" ManagedThread *GetCurrentThread() in GetCurrentThread()
46 extern "C" void AsmUnreachable() in AsmUnreachable()
52 extern "C" void OsrEntryAfterCFrame([[maybe_unused]] Frame *frame, [[maybe_unused]] uintptr_t loop_… in OsrEntryAfterCFrame()
57 extern "C" void OsrEntryAfterIFrame([[maybe_unused]] Frame *frame, [[maybe_unused]] uintptr_t loop_… in OsrEntryAfterIFrame()
62 extern "C" void OsrEntryTopFrame([[maybe_unused]] Frame *frame, [[maybe_unused]] uintptr_t loop_hea… in OsrEntryTopFrame()
/ark/ts2abc/test262/
Des2015_tests.txt42 built-ins/Array/prototype/slice/15.4.4.10-10-c-ii-1.js
157 built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-2.js
160 built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-31.js
163 built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-17.js
166 built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-9.js
170 built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4.js
174 built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-4-s.js
184 built-ins/Array/prototype/reduce/15.4.4.21-9-c-i-14.js
198 built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-35.js
199 built-ins/Array/prototype/reduce/15.4.4.21-9-c-ii-32.js
[all …]
/ark/js_runtime/ecmascript/mem/
Dc_string.cpp2 * Copyright (c) 2021 Huawei Device Co., Ltd.
72 for (const auto &c : sp) { in ConvertToString() local
73 if (c > maxChar) { in ConvertToString()
76 res.push_back(c); in ConvertToString()
87 for (auto c : str) { in ConvertToString() local
88 res.push_back(c); in ConvertToString()
131 for (auto c : str) { in CstringConvertToStdString() local
132 res.push_back(c); in CstringConvertToStdString()

12345678910>>...106