Home
last modified time | relevance | path

Searched refs:tail (Results 1 - 24 of 24) sorted by relevance

/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/
H A Dlock_free_queue.cpp26 Node *tail = tail_.load(std::memory_order_acquire); in Push() local
27 ASSERT(tail != nullptr); in Push()
29 Node *next = tail->next.load(std::memory_order_acquire); in Push()
32 if (tail != tail2) { in Push()
36 if (tail->next.compare_exchange_weak(next, newNode)) { in Push()
37 tail_.compare_exchange_strong(tail, newNode); in Push()
43 tail_.compare_exchange_strong(tail, newTail); in Push()
55 Node *tail = tail_.load(std::memory_order_acquire); in Pop() local
63 if (head == tail) { in Pop()
66 tail_.compare_exchange_strong(tail, newTai in Pop()
88 Node *tail = tail_.load(std::memory_order_acquire); FindValue() local
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
H A Dets_waiters_list.h102 auto *tail = tail_.exchange(nullptr, std::memory_order_acq_rel); in RestockQueue() local
103 while (tail != nullptr) { in RestockQueue()
104 auto *newHead = std::exchange(tail, tail->next_); in RestockQueue()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/checked/js_call/
H A Djs_call.js18 function cons(value, tail) {
19 return { value: value, tail: tail };
27 return node.tail;
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/
H A Dpreparation_step.py235 tail = [f"\nfunction main({param_line}){return_type} {throws}{{"]
237 tail.append(f"{self.__indent}let result = 0")
238 tail.append(f"{self.__indent}for(let i = 0; i < {self.num_repeats}; i++) {{")
240 tail.append(f"{self.__indent * 2}result += main_run({param_name})")
242 tail.append(f"{self.__indent * 2}main_run({param_name})")
243 tail.append(f"{self.__indent}}}")
245 tail.append(f"{self.__indent}return result;")
246 tail.append("}")
249 result += "\n".join(tail)
/arkcompiler/ets_runtime/ecmascript/js_api/
H A Djs_api_queue.cpp28 uint32_t tail = queue->GetTail(); in Add() local
30 elements->Set(thread, tail, value); in Add()
35 queue->SetTail((tail + 1) % elementsSize); in Add()
43 uint32_t tail = obj->GetTail(); in GrowCapacity() local
51 } else if ((tail + 1) % oldLength == front) { in GrowCapacity()
53 newElements = thread->GetEcmaVM()->GetFactory()->CopyQueue(oldElements, newCapacity, front, tail); in GrowCapacity()
55 tail = oldLength - 1; in GrowCapacity()
62 obj->SetTail(tail); in GrowCapacity()
165 uint32_t tail = obj->GetTail(); in OwnKeys() local
167 thread->GetEcmaVM()->GetFactory()->CopyQueue(oldElements, newCapacity, front, tail); in OwnKeys()
184 uint32_t tail = obj->GetTail(); OwnEnumKeys() local
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/taskmanager/utils/
H A Dsp_sc_lock_free_queue.h64 auto *tail = tail_.load(std::memory_order_acquire); in Push() local
70 tail->next.store(node, std::memory_order_release); in Push()
75 tail->buffer[GetNodeIndex(pushIndex)] = std::move(val); in Push()
/arkcompiler/ets_runtime/ecmascript/
H A Dtagged_node.cpp58 JSHandle<LinkedNode> &head, JSHandle<LinkedNode> &tail) in InOrderTraverse()
62 InOrderTraverse(thread, leftChild, head, tail); in InOrderTraverse()
64 if (tail.GetTaggedValue().IsHole()) { in InOrderTraverse()
67 tail->SetNext(thread, linkedNode.GetTaggedValue()); in InOrderTraverse()
69 tail = linkedNode; in InOrderTraverse()
71 InOrderTraverse(thread, rightChild, head, tail); in InOrderTraverse()
78 JSHandle<LinkedNode> tail(thread, JSTaggedValue::Hole()); in Detreeing()
80 InOrderTraverse(thread, root, head, tail); in Detreeing()
57 InOrderTraverse(JSThread *thread, const JSHandle<RBTreeNode> &treeNode, JSHandle<LinkedNode> &head, JSHandle<LinkedNode> &tail) InOrderTraverse() argument
H A Dtagged_node.h147 JSHandle<LinkedNode> &head, JSHandle<LinkedNode> &tail);
H A Dobject_factory.h645 uint32_t front, uint32_t tail);
H A Dobject_factory.cpp4435 uint32_t front, uint32_t tail) in CopyQueue()
4448 while (curIndex != tail) { in CopyQueue()
4434 CopyQueue(const JSHandle<TaggedArray> &old, uint32_t newLength, uint32_t front, uint32_t tail) CopyQueue() argument
/arkcompiler/ets_frontend/es2panda/util/
H A DsymbolTable.cpp164 auto tail = input.substr(lastPos); in GetStringItems() local
165 if (!tail.empty()) { in GetStringItems()
166 items.push_back(tail); in GetStringItems()
H A DcommonUtil.cpp38 std::string tail = str.substr(start); in Split() local
39 items.emplace_back(tail); in Split()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ap_file/
H A Dpgo_proto_transition_type_pool.h63 auto tail = stream.tellp(); variable
66 stream.seekp(tail, std::ofstream::beg);
H A Dpgo_record_pool.h155 auto tail = stream.tellp(); variable
158 stream.seekp(tail, std::ofstream::beg);
H A Dpool_template.h135 auto tail = stream.tellp(); variable
138 stream.seekp(tail, std::ofstream::beg);
/arkcompiler/ets_runtime/test/moduletest/arrayfrom/
H A Darrayfrom.js316 const tail = '_tail'
318 let res = Array.from(str, x => x + tail);
321 if (res[i] != head + tail) {
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
H A Dcg_dominance.cpp35 bool tail = true; in PostOrderWalk()
38 tail = false; in PostOrderWalk()
44 if (tail) { in PostOrderWalk()
/arkcompiler/toolchain/tooling/client/domain/
H A Dheapprofiler_client.cpp295 std::string tail = "]\n}\n"; in SaveHeapSnapshotAndAllocationTrackData() local
296 std::string subStr = chunk.substr(chunk.length() - tail.length(), chunk.length()); in SaveHeapSnapshotAndAllocationTrackData()
297 if (!strncmp(subStr.c_str(), tail.c_str(), tail.length())) { in SaveHeapSnapshotAndAllocationTrackData()
/arkcompiler/runtime_core/libpandabase/utils/
H A Dmurmur3_hash.h117 // Proceed the tail: in MurmurHash3()
119 auto tail = blocks; in MurmurHash3() local
122 // Get ((uint8_t*)tail)[i - 1]: in MurmurHash3()
123 uintptr_t block_pointer = tail + sizeof(uint8_t) * (i - 1); in MurmurHash3()
179 // Proceed the tail: in MurmurHash3String()
/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Dmurmur3_hash.h114 // Proceed the tail: in MurmurHash3()
116 auto tail = blocks; in MurmurHash3() local
119 // Get ((uint8_t*)tail)[i - 1]: in MurmurHash3()
120 uintptr_t blockPointer = tail + sizeof(uint8_t) * (i - 1); in MurmurHash3()
176 // Proceed the tail: in MurmurHash3String()
H A Dutf.cpp559 uint32_t tail = ((codePoint & MASK_10BIT) + U16_TAIL) & MASK_16BIT; in ConvertUtf8ToUtf16Pair() local
560 pair = U16_GET_SUPPLEMENTARY(lead, tail); // NOLINT(hicpp-signed-bitwise) in ConvertUtf8ToUtf16Pair()
/arkcompiler/ets_runtime/ecmascript/base/
H A Dutf_helper.cpp343 uint32_t tail = ((codePoint & utf::MASK_10BIT) + utf::U16_TAIL) & utf::MASK_16BIT; in ConvertUtf8ToUtf16Pair() local
344 pair = static_cast<uint32_t>(U16_GET_SUPPLEMENTARY(lead, tail)); // NOLINTNEXTLINE(hicpp-signed-bitwise) in ConvertUtf8ToUtf16Pair()
353 // drop the tail bytes if the remain length can't fill the length it represents.
/arkcompiler/ets_runtime/ecmascript/module/
H A Dmodule_path_helper.cpp1050 CString tail = ohmurl.substr(start); in SplitNormalizedOhmurl() local
1051 res.emplace_back(tail); in SplitNormalizedOhmurl()
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
H A Dcocos_worker_test.js[all...]

Completed in 50 milliseconds