Searched refs:stack (Results 1 - 25 of 41) sorted by relevance

12

/dalvik/dx/src/com/android/dx/cf/code/
H A DExecutionStack.java26 * Representation of a Java method execution stack.
33 /** non-null; array of stack contents */
34 private final TypeBearer[] stack; field in class:ExecutionStack
37 * >= 0; stack pointer (points one past the end) / current stack
45 * @param maxStack >= 0; the maximum size of the stack for this
50 stack = new TypeBearer[maxStack];
60 ExecutionStack result = new ExecutionStack(stack.length);
62 System.arraycopy(stack, 0, result.stack,
[all...]
H A DFrame.java27 * of a set of locals and a value stack, and it can be told to act on
35 /** non-null; the stack */
36 private final ExecutionStack stack; field in class:Frame
38 /** null-ok; stack of labels of subroutines that this block is nested in */
45 * @param stack non-null; the execution stack to use
47 private Frame(LocalsArray locals, ExecutionStack stack) { argument
48 this(locals, stack, IntList.EMPTY);
55 * @param stack non-null; the execution stack t
59 Frame(LocalsArray locals, ExecutionStack stack, IntList subroutines) argument
[all...]
H A DSimulator.java120 * Constructs an "illegal top-of-stack" exception, for the stack
124 return new SimException("stack mismatch: illegal " +
125 "top-of-stack for opcode");
317 ExecutionStack stack = frame.getStack();
320 if (stack.peekType(0).isCategory2()) {
324 } else if (stack.peekType(1).isCategory1()) {
349 ExecutionStack stack = frame.getStack();
351 if (! (stack.peekType(0).isCategory1() &&
352 stack
[all...]
H A DBaseMachine.java115 ExecutionStack stack = frame.getStack();
125 args[i] = stack.pop();
143 throw new SimException("at stack depth " + (size - 1 - i) +
500 * onto the stack.
521 ExecutionStack stack = frame.getStack();
523 stack.push(results[i]);
/dalvik/vm/mterp/x86/
H A DOP_REM_DOUBLE.S5 fldl (rFP,%ecx,4) # vCC to fp stack
6 fldl (rFP,%eax,4) # vCC to fp stack
H A DOP_REM_DOUBLE_2ADDR.S5 fldl (rFP,rINST_FULL,4) # vBB to fp stack
7 fldl (rFP,%ecx,4) # vAA to fp stack
H A DOP_REM_FLOAT.S5 flds (rFP,%ecx,4) # vCC to fp stack
6 flds (rFP,%eax,4) # vCC to fp stack
H A DOP_REM_FLOAT_2ADDR.S5 flds (rFP,rINST_FULL,4) # vBB to fp stack
7 flds (rFP,%ecx,4) # vAA to fp stack
H A Dbinflop.S9 $load (rFP,%eax,4) # vCC to fp stack
H A Dbinflop2addr.S10 $load (rFP,%ecx,4) # vAA to fp stack
/dalvik/vm/alloc/
H A DMarkSweep.h22 /* Downward-growing stack for better cache read behavior.
29 /* Current top of the stack (inclusive)
43 GcMarkStack stack; member in struct:__anon58
H A DMarkSweep.c91 createMarkStack(GcMarkStack *stack) argument
97 /* Create a stack big enough for the worst possible case,
99 * TODO: be better about memory usage; use a smaller stack with
107 LOGE_GC("Could not create %d-byte ashmem mark stack\n", size);
114 LOGE_GC("Could not mmap %d-byte ashmem mark stack\n", size);
118 memset(stack, 0, sizeof(*stack));
119 stack->limit = limit;
120 stack->base = (const Object **)((uintptr_t)limit + size);
121 stack
127 destroyMarkStack(GcMarkStack *stack) argument
[all...]
/dalvik/libcore/json/src/main/java/org/json/
H A DJSONStringer.java81 * The object/array stack.
83 private char stack[]; field in class:JSONStringer
86 * The stack top index. A value of 0 indicates that the stack is empty.
95 this.stack = new char[maxdepth];
240 if (this.top <= 0 || this.stack[this.top - 1] != c) {
244 this.mode = this.top == 0 ? 'd' : this.stack[this.top - 1];
256 this.stack[this.top] = c;
/dalvik/libcore/luni-kernel/src/main/java/java/lang/
H A DThrowable.java31 * message in most cases), and for saving a stack trace (that is, a record of
32 * the call stack at a particular point in time) which can be printed later.
38 * information. When printing the stack trace, the trace of the cause is
62 * An intermediate representation of the stack trace. This field may
69 * A fully-expanded representation of the stack trace.
74 * Constructs a new {@code Throwable} that includes the current stack trace.
84 * Constructs a new {@code Throwable} with the current stack trace and the
97 * Constructs a new {@code Throwable} with the current stack trace, the
113 * Constructs a new {@code Throwable} with the current stack trace and the
128 * Records the stack trac
[all...]
/dalvik/libcore/security-kernel/src/main/java/java/security/
H A DAccessControlContext.java126 * ProtectionDomains passed as <code>stack</code> is then passed into
134 * @param stack - array of ProtectionDomains
137 AccessControlContext(ProtectionDomain[] stack, argument
139 this(stack); // removes dups, removes nulls, checks for stack==null
145 * ProtectionDomains passed as <code>stack</code> is then passed into
153 * @param stack - array of ProtectionDomains
156 AccessControlContext(ProtectionDomain[] stack, argument
158 this(stack); // removes dups, removes nulls, checks for stack
[all...]
H A DAccessController.java183 * context into this thread's contexts stack, and then invokes
233 * It pushes the passed context into this thread's stack of contexts and
312 * Returns array of ProtectionDomains from the classes residing on the stack
335 ProtectionDomain[] stack = getStackDomains();
340 return new AccessControlContext(stack);
365 ProtectionDomain[] allpds = that.combiner.combine(stack, assigned);
372 return new AccessControlContext(stack, that);
/dalvik/hit/src/com/android/hit/
H A DRootObj.java41 public RootObj(RootType type, long id, int thread, StackTrace stack) { argument
45 mStack = stack;
H A DArrayInstance.java28 public ArrayInstance(long id, StackTrace stack, int type, int numEntries, argument
31 mStack = stack;
/dalvik/dx/src/com/android/dx/ssa/
H A DSsaMethod.java725 // We push the parent first, then the child on the stack
726 Stack<SsaBasicBlock> stack = new Stack<SsaBasicBlock>();
735 stack.add(null); // start with null parent
736 stack.add(rootBlock);
738 while (stack.size() > 0) {
739 SsaBasicBlock cur = stack.pop();
740 SsaBasicBlock parent = stack.pop();
747 stack.add(cur);
748 stack.add(blocks.get(i));
765 Stack<SsaBasicBlock> stack
[all...]
/dalvik/vm/arch/arm/
H A DCallOldABI.S19 * argument list has to be pushed onto the native stack according to
62 registers are placed on the stack. "sp" points at the first stacked argument
88 @ Standard gcc stack frame setup. We don't need to push the original
96 @ We need to push a variable number of arguments onto the stack.
98 @ the stack pointers.
119 @ to the stack. We need to push the last item in argv first, and we
137 @ Load the last two args. These are coming out of the interpreted stack,
H A DCallEABI.S18 * argument list has to be pushed onto the native stack according to
70 registers are placed on the stack. "sp" points at the first stacked argument
104 * L - number of double-words of storage required on stack (0-30 words)
105 * F - pad flag -- if set, write a pad word to the stack
108 * onto the stack. Anything requiring more than that -- which should happen
117 * arguments such that r0/r1 get passed in on the stack, allowing us to
123 * will not be able to unwind the stack past this method. The only way
136 mov ip, sp @ ip<- original stack pointer
140 mov r4, ip @ r4<- original stack pointer
163 * Make room on the stack fo
[all...]
/dalvik/libcore/luni/src/test/java/tests/api/java/util/
H A DStackTest.java58 assertTrue("New stack answers non-empty", s.empty());
126 "a) Pop threw EmptyStackException when stack should not have been empty");
134 "b) Pop threw EmptyStackException when stack should not have been empty");
143 "c) Pop threw EmptyStackException when stack should not have been empty");
149 "d) Pop did not throw EmptyStackException when stack should have been empty");
169 Stack<Object> stack = new Stack<Object>();
171 stack.push(array[i]);
174 assertEquals(array.length - i, stack.search(array[i]));
200 assertEquals("Search returned incorrect value for equivalent object at top of stack",
202 assertEquals("Search returned incorrect value for equal object at top of stack",
[all...]
/dalvik/vm/mterp/armv5te/
H A DOP_MONITOR_ENTER.S12 EXPORT_PC() @ export PC so we can grab stack trace
/dalvik/dx/src/junit/runner/
H A DBaseTestRunner.java262 * Returns a filtered stack trace
274 * Filters stack frames from internal JUnit classes
276 public static String getFilteredTrace(String stack) { argument
278 return stack;
282 StringReader sr= new StringReader(stack);
292 return stack; // return the stack unfiltered
/dalvik/libcore/luni/src/test/java/junit/runner/
H A DBaseTestRunner.java262 * Returns a filtered stack trace
274 * Filters stack frames from internal JUnit classes
276 public static String getFilteredTrace(String stack) { argument
278 return stack;
282 StringReader sr= new StringReader(stack);
295 return stack; // return the stack unfiltered

Completed in 3090 milliseconds

12