/dalvik/vm/mterp/c/ |
H A D | OP_MOVE_EXCEPTION.c | 3 ILOGV("|move-exception v%d", vdst); 4 assert(self->exception != NULL); 5 SET_REGISTER(vdst, (u4)self->exception);
|
/dalvik/tests/081-hot-exceptions/src/ |
H A D | Main.java | 29 int exception = 0; 36 exception++; 40 System.out.println("exception = " + exception);
|
/dalvik/dx/src/junit/extensions/ |
H A D | ExceptionTestCase.java | 7 * The other way to check that an expected exception is thrown is: 26 public ExceptionTestCase(String name, Class exception) { argument 28 fExpected= exception; 44 fail("Expected exception " + fExpected);
|
/dalvik/vm/ |
H A D | Exception.h | 28 * Throw an exception in the current thread, by class descriptor. 58 * Throw an exception in the current thread, by class object. 69 * Throw the named exception using the name of a class as the exception 89 * Return the exception being thrown in the current thread, or NULL if 90 * no exception is pending. 93 return self->exception; 97 * Set the exception being thrown in the current thread. 99 INLINE void dvmSetException(Thread* self, Object* exception) argument 101 assert(exception ! [all...] |
H A D | Exception.c | 27 We have one fairly sticky issue to deal with: creating the exception stack 32 The exception mechanism requires that the current stack trace be associated 39 (2) The VM throws an exception from within the interpreter core, e.g. 41 (3) The VM throws an exception from somewhere deeper down, e.g. while 47 an exception. We can't store it globally, because the various threads 54 with by passing the PC into the exception creation function. The trick 56 operations. Making it more costly to throw an exception is acceptable. 69 (d) Before doing something that might throw an exception, push a 83 - Throw an exception before re-saving the PC (i.e in the same opcode) 99 static bool initException(Object* exception, cons 266 Object* exception; local 404 initException(Object* exception, const char* msg, Object* cause, Thread* self) argument 630 dvmIsCheckedException(const Object* exception) argument 700 dvmGetExceptionCause(const Object* exception) argument 728 Object* exception; local 874 dvmFindCatchBlock(Thread* self, int relPc, Object* exception, bool scanOnly, void** newFrame) argument 1249 logStackTraceOf(Object* exception) argument 1287 Object* exception = dvmThreadSelf()->exception; local [all...] |
/dalvik/vm/mterp/x86/ |
H A D | OP_THROW.S | 2 %verify "exception for null object" 4 * Throw an exception object in the current thread. 10 GET_VREG(%eax,rINST_FULL) # eax<- exception object 14 movl %eax,offThread_exception(%ecx) # thread->exception<- obj
|
H A D | OP_MOVE_EXCEPTION.S | 2 /* move-exception vAA */ 7 SET_VREG(%eax,rINST_FULL) # fp[AA]<- exception object
|
H A D | OP_FILL_ARRAY_DATA.S | 14 testl %eax,%eax # exception thrown?
|
H A D | OP_THROW_VERIFICATION_ERROR.S | 4 * exception for an error discovered during verification. The 5 * exception is indicated by AA, with some detail provided by BBBB. 19 jmp common_exceptionThrown # handle exception
|
/dalvik/vm/mterp/x86-atom/ |
H A D | OP_THROW.S | 19 * Code: Throw an exception 23 * Description: Throw an exception object in the current thread. 35 movl rINST, offThread_exception(%ecx) # thread->exception<- object 36 jmp common_exceptionThrown # handle exception
|
H A D | OP_MOVE_EXCEPTION.S | 19 * Code: Moves an exception to a register 21 * For: move-exception 23 * Description: Save a just-caught exception into the given register. This 25 * exception handler. 35 movl offThread_exception(%ecx), %edx # %edx<- glue->self->exception 36 movl $$0, offThread_exception(%ecx) # clear exception 37 SET_VREG %edx, rINST # vAA<- glue->self->exception
|
H A D | OP_THROW_VERIFICATION_ERROR.S | 23 * Description: Throws an exception for an error discovered during verification. 24 * The exception is indicated by AA with details provided by BBBB. 33 EXPORT_PC # in case an exception is thrown 40 jmp common_exceptionThrown # failed; handle exception
|
H A D | OP_MONITOR_ENTER.S | 54 movl offThread_exception(%eax), %eax # %eax<- glue->self->exception 55 cmp $$0, %eax # check for exception 56 jne common_exceptionThrown # handle exception
|
H A D | OP_MONITOR_EXIT.S | 42 FINISH_FETCH_ADVANCE 1, %edx # advance pc before exception 45 je common_exceptionThrown # handle exception
|
H A D | OP_SGET.S | 44 EXPORT_PC # in case an exception is thrown 53 je common_exceptionThrown # failed; handle exception
|
H A D | OP_SGET_WIDE.S | 54 EXPORT_PC # in case an exception is thrown 65 jmp common_exceptionThrown # failed; handle exception
|
/dalvik/vm/mterp/armv5te/ |
H A D | OP_THROW.S | 2 %verify "exception for null object" 4 * Throw an exception object in the current thread. 8 GET_VREG(r1, r2) @ r1<- vAA (exception object) 10 EXPORT_PC() @ exception handler can throw 14 str r1, [r0, #offThread_exception] @ thread->exception<- obj
|
H A D | OP_MONITOR_ENTER.S | 2 %verify "exception for null object" 12 beq common_errNullObject @ null object, throw an exception 17 ldr r1, [r0, #offThread_exception] @ check for exception 19 bne common_exceptionThrown @ exception raised, bail out
|
H A D | OP_THROW_VERIFICATION_ERROR.S | 4 * exception for an error discovered during verification. The 5 * exception is indicated by AA, with some detail provided by BBBB. 13 b common_exceptionThrown @ handle exception
|
H A D | OP_FILL_ARRAY_DATA.S | 11 cmp r0, #0 @ 0 means an exception is thrown 12 beq common_exceptionThrown @ has exception
|
H A D | OP_MOVE_EXCEPTION.S | 2 /* move-exception vAA */ 8 SET_VREG(r3, r2) @ fp[AA]<- exception obj
|
H A D | OP_INVOKE_DIRECT.S | 31 b common_errNullObject @ yes, throw exception 47 b common_exceptionThrown @ yes, handle exception
|
H A D | OP_INVOKE_VIRTUAL.S | 29 b common_exceptionThrown @ yes, handle exception 41 beq common_errNullObject @ null "this", throw exception
|
/dalvik/libnativehelper/ |
H A D | JNIHelp.c | 55 * Get a human-readable summary of an exception object. The buffer will 57 * exception message. 59 static void getExceptionSummary(JNIEnv* env, jthrowable exception, char* buf, size_t bufLen) argument 63 /* get the name of the exception's class */ 64 jclass exceptionClazz = (*env)->GetObjectClass(env, exception); // can't fail 73 /* if the exception has a message string, get that */ 77 env, exception, throwableGetMessageMethod); 109 * Formats an exception as a string with its stack trace. 111 static void printStackTrace(JNIEnv* env, jthrowable exception, char* buf, size_t bufLen) argument 132 jclass exceptionClazz = (*env)->GetObjectClass(env, exception); // ca 185 jthrowable exception = (*env)->ExceptionOccurred(env); local 243 jniLogException(JNIEnv* env, int priority, const char* tag, jthrowable exception) argument [all...] |
/dalvik/libnativehelper/include/nativehelper/ |
H A D | JNIHelp.h | 45 * Throw an exception with the specified class and an optional message. 49 * Returns 0 on success, nonzero if something failed (e.g. the exception 52 * Currently aborts the VM if it can't throw the exception. 95 * Log a message and an exception. 96 * If exception is NULL, logs the current exception in the JNI environment. 98 void jniLogException(C_JNIEnv* env, int priority, const char* tag, jthrowable exception); 147 jthrowable exception = NULL) 149 jniLogException(&env->functions, priority, tag, exception); 155 * Logs an exception [all...] |