Home
last modified time | relevance | path

Searched full:stack (Results 1 – 25 of 549) sorted by relevance

12345678910>>...22

/arkcompiler/runtime_core/docs/
Druntime-compiled_code-interaction.md8 * The structure of compiled code stack frames and stack traversing
12 * Stack unwinding during exception handling
50 …_ | StackFrameKind | A kind of the current stack frame (compiled code or interpreter sta…
82 ## Stack frame
83 A stack frame contains data necessary to execute the function the frame belongs to.
84 …kinds of stack frames. But all the frames of managed code must have the structure described in [Co…
86 ### Interpreter stack frame
87 …terpreter stack frame is decribed by `panda::Frame` class. The class has fields to store virtual r…
88 All the consecutive interpreter stack frames are organized into a linked list. The field `panda::Fr…
90 ### Compiled code stack frame
[all …]
Dcfi_directives.md5 …ecial cryptographic/vector instructions) or if there is a need for manual stack/registers manipula…
7 …rmation**) is a subset of these debug symbols which is responsible for correct **stack unwinding**.
24 In prolog we save `lr`, `fp` and `callee` regs on stack.
25 So we should explicitly mark these stack slots with help of `CFI` directives.
30 In epilog we read saved `callees` from stack and also `fp`/`lr`. Here we annotate that saved regist…
34 There are bridges which `hack` stack memory (setting `stack pointer` to other stack frame), i.e.:
/arkcompiler/runtime_core/static_core/docs/
Druntime-compiled_code-interaction.md8 * The structure of compiled code stack frames and stack traversing
12 * Stack unwinding during exception handling
43 For dynamic languages a compiled function accepts all arguments in stack slots.
56 …_ | StackFrameKind | A kind of the current stack frame (compiled code or interpreter sta…
88 ## Stack frame
89 A stack frame contains data necessary to execute the function the frame belongs to.
90 …kinds of stack frames. But all the frames of managed code must have the structure described in [Co…
92 ### Interpreter stack frame
93 …nterpreter stack frame is decribed by `ark::Frame` class. The class has fields to store virtual re…
94 All the consecutive interpreter stack frames are organized into a linked list. The field `ark::Fram…
[all …]
Dcfi_directives.md5 …ecial cryptographic/vector instructions) or if there is a need for manual stack/registers manipula…
7 …rmation**) is a subset of these debug symbols which is responsible for correct **stack unwinding**.
24 In prolog we save `lr`, `fp` and `callee` regs on stack.
25 So we should explicitly mark these stack slots with help of `CFI` directives.
30 In epilog we read saved `callees` from stack and also `fp`/`lr`. Here we annotate that saved regist…
34 There are bridges which `hack` stack memory (setting `stack pointer` to other stack frame), i.e.:
/arkcompiler/ets_runtime/test/moduletest/container/
Dcontainer_stack.js24 var Stack = undefined; variable
26 Stack = ArkPrivate.Load(ArkPrivate.Stack);
27 let stack = new Stack(); variable
28 let proxy = new Proxy(stack, {});
50 map.set("test stack add:", res)
59 map.set("test stack forEach:", res)
69 map.set("test stack for of:", res);
71 map.set("test stack Symbol.iterator:", res)
73 map.set("test stack peek:", proxy.peek() === 9)
74 map.set("test stack locate:", proxy.locate(5) === 5)
[all …]
/arkcompiler/runtime_core/static_core/compiler/tests/
Dspill_fill_encoder_test.cpp32 {{LocationType::REGISTER, LocationType::STACK, 1U, 0U, DataType::Type::INT64}, in TEST_F()
33 {LocationType::REGISTER, LocationType::STACK, 0U, 2U, DataType::Type::INT64}, in TEST_F()
38 {LocationType::STACK, LocationType::REGISTER, 0U, 0U, DataType::Type::INT64}, in TEST_F()
39 {LocationType::STACK, LocationType::REGISTER, 1U, 1U, DataType::Type::INT64}, in TEST_F()
40 {LocationType::STACK, LocationType::REGISTER, 2U, 2U, DataType::Type::INT64}, in TEST_F()
42 {LocationType::STACK, LocationType::REGISTER, 3U, 2U, DataType::Type::INT64}, in TEST_F()
43 {LocationType::STACK, LocationType::STACK, 7U, 9U, DataType::Type::INT64}, in TEST_F()
44 {LocationType::STACK, LocationType::STACK, 8U, 10U, DataType::Type::INT64}}, in TEST_F()
49 {{LocationType::REGISTER, LocationType::STACK, 0U, 2U, DataType::Type::INT64}, in TEST_F()
50 {LocationType::REGISTER, LocationType::STACK, 1U, 0U, DataType::Type::INT64}, in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/models/thread_pool/
Dthread_pool.tla366 scale_lock_, cond_var_, queue_size_, pc, stack
374 scale_lock_, cond_var_, queue_size_, pc, stack, worker_num_,
398 /\ stack = [self \in ProcSet |-> << >>]
409 cond_var_, queue_size_, stack,
421 queue_size_, stack,
430 … /\ pc' = [pc EXCEPT ![self] = Head(stack[self]).pc]
431 … /\ stack' = [stack EXCEPT ![self] = Tail(stack[self])]
434 stack >>
439 /\ stack' = stack
447 /\ pc' = [pc EXCEPT ![self] = Head(stack[self]).pc]
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
Dgc_adaptive_stack.h28 * Adaptive stack with GC workers support.
29 * It will try to pop objects from the source stack and push
30 * it to the destination stack. if the destination stack reaches the limit,
32 * If stack limit is equal to zero, it means that the destination stack is unlimited.
46 * @brief Add new object into destination stack.
47 * If we set the limit for stack, we will create a new task for
53 * @brief Pop an object from source stack.
54 * If the source stack is empty, we will swap it with destination stack
60 * @brief Travers objects in stack via visitor and return marked objects.
61 * Visitor can push in stack, but mustn't pop from it.
[all …]
Dgc_adaptive_marking_stack.h28 * Adaptive stack with GC workers support.
29 * It will try to pop objects from the source stack and push
30 * it to the destination stack. if the destination stack reaches the limit,
32 * If stack limit is equal to zero, it means that the destination stack is unlimited.
49 * @param object object which will be added to the stack
56 * @param object object which will be added to the stack
61 * @brief Travers objects in stack via visitor and return marked objects.
62 * Visitor can push in stack, but mustn't pop from it.
68 GCWorkersTask CreateTask(GCAdaptiveStack<ObjectHeader *> *stack) override;
/arkcompiler/ets_frontend/arkguard/test/grammar/removeComments/
DremoveComments2.d.ts17 * A generic stack class.
18 * @template T - The type of elements in the stack.
20 declare class Stack<T> { class
22 * Constructor for Stack.
27 * Pushes an element onto the stack.
33 * Pops an element from the stack.
39 * Gets the size of the stack.
40 * @returns {number} The size of the stack.
/arkcompiler/runtime_core/static_core/runtime/
Ddeoptimization.cpp62 …* Drop means that we set stack pointer to the top of given CFrame, restores its return address and…
86 for (auto stack = StackWalker::Create(thread); stack.HasFrame(); stack.NextFrame()) { in InvalidateCompiledMethod() local
87 if (stack.IsCFrame() && stack.GetMethod() == method) { in InvalidateCompiledMethod()
88 auto &cframe = stack.GetCFrame(); in InvalidateCompiledMethod()
90 cframe.SetDeoptCodeEntry(stack.GetCompiledCodeEntry()); in InvalidateCompiledMethod()
111 …// NOTE(msherstennikov): remove this loop and check `methods` contains frame's method in stack tra… in InvalidateCompiledEntryPoint()
135 void PrevFrameDeopt(FrameKind prevFrameKind, ManagedThread *thread, StackWalker *stack, const uint8… in InvalidateCompiledEntryPoint() argument
142 … pc - stack->GetMethod()->GetInstructions(), events::DeoptimizationAfter::CFRAME); in InvalidateCompiledEntryPoint()
159 stack->GetCalleeRegsForDeoptimize().end()); in InvalidateCompiledEntryPoint()
163 pc - stack->GetMethod()->GetInstructions(), in InvalidateCompiledEntryPoint()
[all …]
Druntime_helpers.cpp30 LOG(ERROR, RUNTIME) << "====================== Stack trace begin ======================"; in PrintStackTrace()
31 for (auto stack = StackWalker::Create(thread); stack.HasFrame(); stack.NextFrame()) { in PrintStackTrace() local
32 Method *method = stack.GetMethod(); in PrintStackTrace()
34 << method->GetLineNumberAndSourceFile(stack.GetBytecodePc()); in PrintStackTrace()
36 LOG(ERROR, RUNTIME) << "====================== Stack trace end ======================"; in PrintStackTrace()
Dexceptions.cpp203 NO_ADDRESS_SANITIZE void DropCFrameIfNecessary(ManagedThread *thread, StackWalker *stack, Frame *or… in DropCFrameIfNecessary() argument
212 DropCompiledFrame(stack); in DropCFrameIfNecessary()
221 DropCompiledFrame(stack); in DropCFrameIfNecessary()
230 DropCompiledFrame(stack); in DropCFrameIfNecessary()
242 NO_ADDRESS_SANITIZE void FindCatchBlockInCFrames(ManagedThread *thread, StackWalker *stack, Frame *… in FindCatchBlockInCFrames() argument
244 auto nextFrame = stack->GetNextFrame(); in FindCatchBlockInCFrames()
245 for (; stack->HasFrame(); stack->NextFrame(), nextFrame = stack->GetNextFrame()) { in FindCatchBlockInCFrames()
246 … LOG(DEBUG, INTEROP) << "Search for the catch block in " << stack->GetMethod()->GetFullName(); in FindCatchBlockInCFrames()
248 auto pc = stack->GetBytecodePc(); in FindCatchBlockInCFrames()
249 auto *method = stack->GetMethod(); in FindCatchBlockInCFrames()
[all …]
Dlanguage_context.cpp37 auto stack = StackWalker::Create(thread); in GetCatchMethodAndOffset() local
38 while (stack.HasFrame()) { in GetCatchMethodAndOffset()
39 catchMethod = stack.GetMethod(); in GetCatchMethodAndOffset()
41 stack.NextFrame(); in GetCatchMethodAndOffset()
44 if (stack.IsCFrame()) { in GetCatchMethodAndOffset()
45 stack.NextFrame(); in GetCatchMethodAndOffset()
48 …catchOffset = catchMethod->FindCatchBlock(thread->GetException()->ClassAddr<Class>(), stack.GetByt… in GetCatchMethodAndOffset()
52 stack.NextFrame(); in GetCatchMethodAndOffset()
/arkcompiler/ets_frontend/arkguard/test/grammar/wildcard_comment/keep_comment3/
Dkeep_single_comment.d.ts17 * A generic stack class.
18 * @template T - The type of elements in the stack.
22 * Constructor for Stack.
27 * Pushes an element onto the stack.
33 * Pops an element from the stack.
39 * Gets the size of the stack.
40 * @returns {number} The size of the stack.
/arkcompiler/ets_frontend/arkguard/test/grammar/wildcard_comment/keep_comment2/
Dkeep_all_comment.d.ts17 * A generic stack class.
18 * @template T - The type of elements in the stack.
22 * Constructor for Stack.
27 * Pushes an element onto the stack.
33 * Pops an element from the stack.
39 * Gets the size of the stack.
40 * @returns {number} The size of the stack.
Dkeep_all_comment_expected.txt16 * A generic stack class.
17 * @template T - The type of elements in the stack.
22 * Pushes an element onto the stack.
27 * Pops an element from the stack.
32 * Gets the size of the stack.
33 * @returns {number} The size of the stack.
/arkcompiler/runtime_core/static_core/docs/diagrams/
Dg1-thread-sequence.plantuml20 "GC Thread #1" -> "Task Queue":Marking stack #1
21 "GC Thread #2" <- "Task Queue":Marking stack #1
22 "GC Thread #2" -> "Task Queue":Marking stack #2
23 "GC Thread #3" <- "Task Queue":Marking stack #2
24 "GC Thread #2" -> "Task Queue":Marking stack #X
25 "GC Thread #1" <- "Task Queue":Marking stack #X
/arkcompiler/ets_runtime/test/moduletest/stack/
Dstack.js17 * @tc.name:stack
18 * @tc.desc:test Stack
23 var Stack = arkPrivate.Load(arkPrivate.Stack); variable
24 const v1 = new Stack();
/arkcompiler/ets_runtime/ecmascript/platform/unix/ohos/tests/
Dbacktrace_test.cpp52 std::ostringstream stack; in HWTEST_F_L0() local
54 Backtrace(stack, enableCache); in HWTEST_F_L0()
55 EXPECT_TRUE(!stack.str().empty()); in HWTEST_F_L0()
60 std::ostringstream stack; in HWTEST_F_L0() local
61 Backtrace(stack); in HWTEST_F_L0()
62 EXPECT_TRUE(!stack.str().empty()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_stack.cpp27 BUILTINS_API_TRACE(argv->GetThread(), Stack, Constructor); in StackConstructor()
42 JSHandle<JSAPIStack> stack = JSHandle<JSAPIStack>::Cast(obj); in StackConstructor() local
43 stack->SetTop(-1); in StackConstructor()
51 BUILTINS_API_TRACE(argv->GetThread(), Stack, IsEmpty); in IsEmpty()
65 JSHandle<JSAPIStack> stack = JSHandle<JSAPIStack>::Cast(self); in IsEmpty() local
66 bool judge = stack->Empty(); in IsEmpty()
74 BUILTINS_API_TRACE(argv->GetThread(), Stack, Push); in Push()
97 BUILTINS_API_TRACE(argv->GetThread(), Stack, Peek); in Peek()
112 JSHandle<JSAPIStack> stack = JSHandle<JSAPIStack>::Cast(self); in Peek() local
113 JSTaggedValue jsValue = stack->Peek(); in Peek()
[all …]
/arkcompiler/ets_runtime/ecmascript/containers/tests/
Dcontainers_stack_test.cpp65 JSHandle<JSTaggedValue> stack = GetCallArg(argv, 2); // 2 means the secode arg in TestForEachFunc() local
66 if (!stack->IsUndefined()) { in TestForEachFunc()
68 … TaggedArray *elements = TaggedArray::Cast(JSAPIStack::Cast(stack.GetTaggedValue(). in TestForEachFunc()
91 objCallInfo->SetCallArg(0, JSTaggedValue(static_cast<int>(ContainerTag::Stack))); in InitializeStackConstructor()
112 JSHandle<JSAPIStack> stack(thread, result); in CreateJSAPIStack() local
113 return stack; in CreateJSAPIStack()
132 JSHandle<JSAPIStack> stack(thread, result); in HWTEST_F_L0() local
133 JSTaggedValue resultProto = JSTaggedValue::GetPrototype(thread, JSHandle<JSTaggedValue>(stack)); in HWTEST_F_L0()
145 JSHandle<JSAPIStack> stack = CreateJSAPIStack(); in HWTEST_F_L0() local
149 callInfo->SetThis(stack.GetTaggedValue()); in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/libpandabase/os/
Dstacktrace.h27 * Return stack trace as a vector of PCs
30 * to print stack traces in internal allocator.
37 * Print stack trace provided into 'Print' function.
39 * to print multiple stack traces.
44 * Print stack trace
/arkcompiler/runtime_core/static_core/runtime/include/
Dexceptions.h30 // This function could be used in case there are no managed stack frames.
33 // get current executing method from the managed stack.
80 void DropCFrameIfNecessary(ManagedThread *thread, StackWalker *stack, Frame *origFrame, FrameAccess…
83 void FindCatchBlockInCFrames(ManagedThread *thread, StackWalker *stack, Frame *origFrame);
110 auto stack = StackWalker::Create(thread); in SetExceptionEvent() local
111 …EVENT_EXCEPTION(std::string(stack.GetMethod()->GetFullName()), stack.GetBytecodePc(), stack.GetNat… in SetExceptionEvent()
/arkcompiler/toolchain/tooling/test/testcases/js/
Dcontainer.js250 var Stack = ArkPrivate.Load(ArkPrivate.Stack);
251 let stack = new Stack();
252 stack.push(5);
253 stack.push(18);
254 stack.push(3);
255 stack.push(28);
256 stack.push(1);
257 stack.push('one');
258 stack.push(888);
259 stack.push(857);
[all …]

12345678910>>...22