/arkcompiler/runtime_core/static_core/verification/util/ |
H A D | bit_vector.h | 9 * Unless required by applicable law or agreed to in writing, software 204 auto bits(size_t from, size_t to) const // NOLINT(readability-identifier-naming) in bits() 207 ASSERT(from <= to); in bits() 208 ASSERT(to <= MaxBitIdx()); in bits() 209 ASSERT(to - from <= BITS_IN_WORD - 1); in bits() 210 const Word mask = MaskUpToIndex(to - from + 1); in bits() 212 const size_t posTo = to >> POS_SHIFT; in bits() 223 auto bits(size_t from, size_t to) // NOLINT(readability-identifier-naming) in bits() argument 226 ASSERT(from <= to); in bits() 227 ASSERT(to < in bits() [all...] |
H A D | range.h | 9 * Unless required by applicable law or agreed to in writing, software 95 Range(const Int from, const Int to) : from_ {std::min(from, to)}, to_ {std::max(from, to)} {} in Range() argument
|
/arkcompiler/ets_frontend/ets2panda/checker/types/ets/ |
H A D | etsStringType.cpp | 9 * Unless required by applicable law or agreed to in writing, software 85 bool ETSStringType::IsConvertibleTo(Type const *to) const in IsConvertibleTo() 88 to->IsCharType() || in IsConvertibleTo() 90 (to->IsETSObjectType() && to->AsETSObjectType()->HasObjectFlag(ETSObjectFlags::BUILTIN_CHAR)); in IsConvertibleTo()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
H A D | loop.h | 9 * Unless required by applicable law or agreed to in writing, software 91 // check whether from->to is the back edge of the current loop 92 bool IsBackEdge(const BB &from, const BB &to) const in IsBackEdge() 94 return (to.GetId() == header.GetId()) && (backEdges.find(from.GetId()) != backEdges.end()); in IsBackEdge() 144 LoopDesc *parentLoop = nullptr; // points to its closest nesting loop 173 // get the loop to which the BB belong, null -> not in loop. 182 // check whether from->to is the back edge 183 bool IsBackEdge(const BB &from, const BB &to) const in IsBackEdge() 185 auto *loop = GetBBLoopParent(to.GetId()); in IsBackEdge() 186 if (loop && loop->IsBackEdge(from, to)) { in IsBackEdge() [all...] |
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | barrier_test.cpp | 9 * Unless required by applicable law or agreed to in writing, software 50 JSTaggedValue* to = reinterpret_cast<JSTaggedValue*>(ToUintPtr(dstArray->GetData())); in HWTEST_F_L0() local 52 Barriers::CopyObject<true, false>(thread, to, from, arrayLength); in HWTEST_F_L0() 54 // young to young, all the bitset should not be changed. in HWTEST_F_L0() 93 JSTaggedValue* to = reinterpret_cast<JSTaggedValue*>(ToUintPtr(dstArray->GetData())); in HWTEST_F_L0() local 95 Barriers::CopyObjectPrimitive<false>(to, from, arrayLength); in HWTEST_F_L0() 147 JSTaggedValue* to = reinterpret_cast<JSTaggedValue*>(ToUintPtr(dstArray->GetData())); in HWTEST_F_L0() local 149 Barriers::CopyObject<true, false>(thread, to, from, arrayLength); in HWTEST_F_L0() 155 // young to young, all the bitset should not be changed. in HWTEST_F_L0() 203 JSTaggedValue* to in HWTEST_F_L0() local 257 JSTaggedValue* to = reinterpret_cast<JSTaggedValue*>(ToUintPtr(dstArray->GetData())); HWTEST_F_L0() local 325 JSTaggedValue* to = reinterpret_cast<JSTaggedValue*>(ToUintPtr(dstArray->GetData())); HWTEST_F_L0() local [all...] |
/arkcompiler/runtime_core/static_core/verification/config/parse/ |
H A D | config_parse.cpp | 9 * Unless required by applicable law or agreed to in writing, software 97 static const auto NAME_HANDLER = [](auto a, Context &c, auto from, auto to) { in ParseConfig() 99 c.current.name = PandaString {from, to}; in ParseConfig() 108 static const auto LINE_HANDLER = [](auto a, Context &c, auto from, auto to) { in ParseConfig() 109 return HandleLine(a, c, PandaString {from, to}); in ParseConfig()
|
/arkcompiler/ets_runtime/ecmascript/shared_objects/ |
H A D | js_sendable_arraybuffer.cpp | 9 * Unless required by applicable law or agreed to in writing, software 33 auto *to = static_cast<uint8_t *>(toBuf); in CopyDataPointBytes() local 34 ASSERT(from != nullptr && to != nullptr); in CopyDataPointBytes() 36 if (memcpy_s(to, count, from + fromIndex, count) != EOK) { // NOLINT in CopyDataPointBytes()
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/ |
H A D | g1-helpers.cpp | 9 * Unless required by applicable law or agreed to in writing, software 35 // The cast below is needed to truncate high 32bits from 64bit pointer in PreWrbFuncEntrypoint() 50 // so there is no need for it to be in the corresponding header file for this .cpp 51 extern "C" void PostWrbUpdateCardFuncEntrypoint(const void *from, const void *to) in PostWrbUpdateCardFuncEntrypoint() argument 54 ASSERT(to != nullptr); in PostWrbUpdateCardFuncEntrypoint() 55 // The cast below is needed to truncate high 32bits from 64bit pointer in PostWrbUpdateCardFuncEntrypoint() 62 // No need to keep remsets for young->young in PostWrbUpdateCardFuncEntrypoint() 65 LOG(DEBUG, GC) << "G1GC post queue add ref: " << std::hex << from << " -> " << ToVoidPtr(ToObjPtr(to)) in PostWrbUpdateCardFuncEntrypoint() 70 // StoreLoad barrier is required to guarantee order of previous reference store and card load in PostWrbUpdateCardFuncEntrypoint()
|
/arkcompiler/ets_frontend/ets2panda/linter/ |
H A D | compare_branches.py | 11 # Unless required by applicable law or agreed to in writing, software 57 def print_complement(of, to): 59 for sha in to: 61 commit = to[sha]
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
H A D | scheduler.cpp | 9 * Unless required by applicable law or agreed to in writing, software 51 void Scheduler::AddDep(uint32_t *prio, Inst *from, Inst *to, uint32_t latency, Inst *barrier) in AddDep() argument 53 if (from == to) { in AddDep() 56 COMPILER_LOG(DEBUG, SCHEDULER) << "Found dependency " << from->GetId() << " -> " << to->GetId() << " latency " in AddDep() 59 ocycle_[from] = std::max(ocycle_[from], latency + ocycle_[to]); in AddDep() 62 *prio = std::max(*prio, latency + prio_[to]); in AddDep() 65 if (barrier == nullptr || old_[to] > old_[barrier]) { in AddDep() 66 if (deps_.at(from).count(to) == 1) { in AddDep() 67 uint32_t oldLatency = deps_.at(from).at(to); in AddDep() 72 numDeps_[to] in AddDep() [all...] |
/arkcompiler/runtime_core/static_core/verification/config/options/ |
H A D | method_group_parser.h | 9 * Unless required by applicable law or agreed to in writing, software 39 static const auto REGEX_HANDLER = [®exHandler](Action a, typename P::Ctx &c, auto from, auto to) { in MethodGroupParser() 44 auto *end = to; in MethodGroupParser()
|
/arkcompiler/runtime_core/static_core/compiler/tools/paoc/ |
H A D | paoc.cpp | 9 * Unless required by applicable law or agreed to in writing, software 145 std::cerr << "Failed to create runtime!\n"; in InitRuntime() 404 LOG_PAOC(DEBUG) << "Successfully compiled to " << outputFile; in RunAotMode() 550 * Check if it is possible to compile a class. 653 PaocClusters::ScopedApplySpecialOptions to(methodName, &clustersInfo_); in Compile() 708 std::string errMsg = "Failed to JIT-compile method: " + name; in CompileJit() 726 std::string errMsg = "Failed to OSR-compile method: " + name; in CompileOsr() 800 EVENT_PAOC("Trying to compile method: " + className + in CompileAot() 827 // Fallback to Ark Compiler AOT compilation in CompileAot() 833 LOG_PAOC(INFO) << "LLVM fallback to AR in CompileAot() [all...] |
/arkcompiler/runtime_core/static_core/verification/config/handlers/ |
H A D | literal_parser.h | 9 * Unless required by applicable law or agreed to in writing, software 39 static const auto literalNameHandler = [&handler](Action a, typename P::Ctx &c, auto from, auto to) { in LiteralParser() 41 return handler(c, PandaString {from, to}); in LiteralParser()
|
H A D | config_handler_whitelist.cpp | 9 * Unless required by applicable law or agreed to in writing, software 46 static const auto METHOD_NAME_HANDLER = [](Action a, PandaString &c, auto from, auto to) { in WhitelistMethodParser() 48 c = PandaString {from, to}; in WhitelistMethodParser() 83 LOG(DEBUG, VERIFIER) << "Added to whitelist config '" << s.name << "' methods from class " << c; in RegisterConfigHandlerWhitelistSectionHandler() 85 LOG(DEBUG, VERIFIER) << "Added to whitelist config '" << s.name << "' methods named " << c; in RegisterConfigHandlerWhitelistSectionHandler()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | state_split_linearizer.cpp | 9 * Unless required by applicable law or agreed to in writing, software 62 explicit PendingGateRegionEdge(GateRegion* from, GateRegion* to, in PendingGateRegionEdge() 63 GateRef dependStart, size_t index) : from(from), to(to), in PendingGateRegionEdge() 67 GateRegion* to; member 75 RegionEdge& GetEdge(GateRegion* from, GateRegion* to) in GetEdge() argument 77 return regionMap_[std::make_pair(from->GetId(), to->GetId())]; in GetEdge() 294 auto currentState = regionEdge.to->GetState(); in ConnectPendingRegionEdges() 296 auto &edge = map_.GetEdge(regionEdge.from, regionEdge.to); in ConnectPendingRegionEdges()
|
/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | mem_range_test.cpp | 9 * Unless required by applicable law or agreed to in writing, software 36 // support function to generate random uintptr_t 42 // function to generate MemRange randomly from given range 136 // function to conduct num_iter random tests with addresses in given bounds 137 static void RandomTestInBounds(uintptr_t from, uintptr_t to, uint64_t num_iter = NUM_ITER_PER_TEST) in RandomTestInBounds() argument 139 ASSERT(from < to); in RandomTestInBounds() 145 mem_range_1 = RandomMemRange(from, to); in RandomTestInBounds() 146 mem_range_2 = RandomMemRange(from, to); in RandomTestInBounds()
|
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | mem_range_test.cpp | 9 * Unless required by applicable law or agreed to in writing, software 40 // support function to generate random uintptr_t 46 // function to generate MemRange randomly from given range 181 // function to conduct num_iter random tests with addresses in given bounds 182 static void RandomTestInBounds(uintptr_t from, uintptr_t to, uint64_t numIter = NUM_ITER_PER_TEST) in RandomTestInBounds() argument 184 ASSERT(from < to); in RandomTestInBounds() 190 memRange1 = RandomMemRange(from, to); in RandomTestInBounds() 191 memRange2 = RandomMemRange(from, to); in RandomTestInBounds()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | tagged_array-inl.h | 9 * Unless required by applicable law or agreed to in writing, software 75 JSTaggedValue* to = reinterpret_cast<JSTaggedValue*>(ToUintPtr(GetData()) + taggedTypeSize * dstStart); 77 Barriers::CopyObject<needBarrier, false>(thread, to, from, count);
|
H A D | js_arraybuffer.cpp | 9 * Unless required by applicable law or agreed to in writing, software 34 auto *to = static_cast<uint8_t *>(toBuf); in CopyDataPointBytes() local 35 if (memcpy_s(to, count, from + fromIndex, count) != EOK) { // NOLINT in CopyDataPointBytes()
|
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/ |
H A D | shell.py | 11 # Unless required by applicable law or agreed to in writing, software 70 # expecting output of '\time -v' to stderr 198 # Note: self._timeout=None so default behaivior is to wait forever 199 to = timeout if timeout else self._timeout 201 to = max(timeout, self._timeout) 203 log.trace('CWD="%s" Timeout=[%s]', cwd, to) 208 if to is not None: 209 timer = Timer(to, 213 out, err = proc.communicate(timeout=to) 214 if to i [all...] |
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
H A D | heap_snapshot.h | 9 * Unless required by applicable law or agreed to in writing, software 177 Edge(EdgeType type, Node *from, Node *to, CString *name) in Edge() argument 178 : edgeType_(type), from_(from), to_(to), name_(name) {} in Edge() 179 Edge(EdgeType type, Node *from, Node *to, uint32_t index) in Edge() argument 180 : edgeType_(type), from_(from), to_(to), index_(index) {} in Edge() 216 static Edge *NewEdge(Chunk *chunk, EdgeType type, Node *from, Node *to, CString *name); 217 static Edge *NewEdge(Chunk *chunk, EdgeType type, Node *from, Node *to, uint32_t index);
|
/arkcompiler/runtime_core/static_core/runtime/coroutines/ |
H A D | stackful_coroutine_worker.cpp | 9 * Unless required by applicable law or agreed to in writing, software 39 // will create the schedule loop coroutine in the thread proc in order to set the stack protector correctly in StackfulCoroutineWorker() 94 // precondition: current coro and finalizee belong to the current worker in RequestFinalization() 227 // NOTE(konstanting): in case of work stealing, use timed wait and try periodically to steal some runnables in WaitForRunnables() 229 // profiling: no need to profile the SLEEPING state, closing the interval in WaitForRunnables() 254 LOG(DEBUG, COROUTINES) << "StackfulCoroutineWorker::RequestSchedule: No runnables, starting to wait..."; in RequestScheduleImpl() 262 // precondition: current coro is already added to the waiters_ in BlockCurrentCoroAndScheduleNext() 264 // will transfer control to another coro... in BlockCurrentCoroAndScheduleNext() 273 // will transfer control to another coro... in SuspendCurrentCoroAndScheduleNext() 345 void StackfulCoroutineWorker::SwitchCoroutineContext(StackfulCoroutineContext *from, StackfulCoroutineContext *to) in SwitchCoroutineContext() argument [all...] |
/arkcompiler/runtime_core/static_core/static_linker/ |
H A D | linker_context_misc.cpp | 9 * Unless required by applicable law or agreed to in writing, software 57 const auto to = s.find('/'); in DemangleName() local 58 o << s.substr(0, to); in DemangleName() 59 if (to != std::string::npos) { in DemangleName() 61 s = s.substr(to + 1); in DemangleName()
|
/arkcompiler/runtime_core/static_core/libllvmbackend/ |
H A D | utils.cpp | 9 * Unless required by applicable law or agreed to in writing, software 60 void CopyDebugLoc(llvm::CallInst *from, llvm::CallInst *to) in CopyDebugLoc() argument 66 to->setDebugLoc(llvm::DILocation::get(func->getContext(), line, 1, func->getSubprogram(), inlinedAt)); in CopyDebugLoc()
|
/arkcompiler/runtime_core/static_core/verification/config/debug_breakpoint/ |
H A D | config_handler_breakpoints.cpp | 9 * Unless required by applicable law or agreed to in writing, software 71 static const auto METHOD_NAME_HANDLER = [](Action a, Context &c, auto from, auto to) { in BreakpointParser() 73 c.method = PandaString {from, to}; in BreakpointParser()
|