Examples of VmCompiledExceptionHandler


Examples of org.jnode.vm.classmgr.VmCompiledExceptionHandler

                        .getObject();
                    final VmAddress endPtr = (VmAddress) ceh[i].getEndPc()
                        .getObject();
                    final VmAddress handler = (VmAddress) ceh[i].getHandler()
                        .getObject();
                    eTable[i] = new VmCompiledExceptionHandler(catchType,
                        startPtr, endPtr, handler);
                }
            } else {
                eTable = null;
            }
View Full Code Here

Examples of org.jnode.vm.classmgr.VmCompiledExceptionHandler

                        - startOffset);
                    final Address handler = codePtr.add(ceh[i].getHandler()
                        .getOffset()
                        - startOffset);

                    eTable[i] = new VmCompiledExceptionHandler(catchType,
                        startPtr.toAddress(), endPtr.toAddress(), handler
                        .toAddress());
                }
            } else {
                eTable = null;
View Full Code Here

Examples of org.jnode.vm.classmgr.VmCompiledExceptionHandler

                count = 0;
            }
            // Screen.debug("eCount=" + count);
            for (int i = 0; i < count; i++) {
                final AbstractExceptionHandler eh;
                final VmCompiledExceptionHandler ceh;
                ceh = cc.getExceptionHandler(i);
                eh = ceh;
                boolean match;

                match = ceh.isInScope(address);

                if (match) {
                    final VmConstClass catchType = eh.getCatchType();

                    if (catchType == null) {
                        /* Catch all exceptions */
                        return Address.fromAddress(ceh.getHandler());
                    } else {
                        if (!catchType.isResolved()) {
                            SoftByteCodes.resolveClass(catchType);
                        }
                        final VmType handlerClass = catchType
                            .getResolvedVmClass();
                        if (handlerClass != null) {
                            if (handlerClass.isAssignableFrom(exClass)) {
                                return Address.fromAddress(ceh.getHandler());
                            }
                        } else {
                            System.err
                                .println("Warning: handler class==null in "
                                    + method.getName());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.