Lines Matching refs:stack
146 /* If this variable is timed independently of the timing stack,
158 the timing stack. */
162 /* An element on the timing stack. Elapsed time is attributed to the
163 topmost timing variable on the stack. */
167 /* The timing variable at this stack level. */
170 /* The next lower timing variable context in the stack. */
178 /* The top of the timing stack. */
179 static struct timevar_stack_def *stack;
185 /* The time at which the topmost element on the timing stack was
276 /* Push TIMEVAR onto the timing stack. No further elapsed time is
277 attributed to the previous topmost timing variable on the stack;
304 /* If the stack isn't empty, attribute the current elapsed time to
306 if (stack)
307 timevar_accumulate (&stack->timevar->elapsed, &start_time, &now);
313 /* See if we have a previously-allocated stack instance. If so,
324 /* Fill it in and put it on the stack. */
326 context->next = stack;
327 stack = context;
330 /* Pop the topmost timing variable element off the timing stack. The
333 stack when the element above it was popped off, is credited to that
341 struct timevar_stack_def *popped = stack;
346 if (&timevars[timevar] != stack->timevar)
356 element just exposed on the stack. */
359 /* Take the item off the stack. */
360 stack = stack->next;
362 /* Don't delete the stack element; instead, add it to the list of
368 /* Start timing TIMEVAR independently of the timing stack. Elapsed
433 /* Or is TIMEVAR at the top of the timer stack? */
434 else if (stack->timevar == tv)
466 /* If the stack isn't empty, attribute the current elapsed time to
468 if (stack)
469 timevar_accumulate (&stack->timevar->elapsed, &start_time, &now);