Home
last modified time | relevance | path

Searched refs:tryBlock (Results 1 – 12 of 12) sorted by relevance

/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/util/
DTryListBuilder.java64 for (TryBlock<? extends EH> tryBlock: tryBlocks) { in massageTryBlocks()
65 int startAddress = tryBlock.getStartCodeAddress(); in massageTryBlocks()
66 int endAddress = startAddress + tryBlock.getCodeUnitCount(); in massageTryBlocks()
68 for (EH exceptionHandler: tryBlock.getExceptionHandlers()) { in massageTryBlocks()
150 public void append(@Nonnull MutableTryBlock<EH> tryBlock) { in append() argument
151 next.prev = tryBlock; in append()
152 tryBlock.next = next; in append()
153 tryBlock.prev = this; in append()
154 next = tryBlock; in append()
157 public void prepend(@Nonnull MutableTryBlock<EH> tryBlock) { in prepend() argument
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/rewriter/
DTryBlockRewriter.java49 @Nonnull TryBlock<? extends ExceptionHandler> tryBlock) { in rewrite()
50 return new RewrittenTryBlock(tryBlock); in rewrite()
54 @Nonnull protected TryBlock<? extends ExceptionHandler> tryBlock; field in TryBlockRewriter.RewrittenTryBlock
56 public RewrittenTryBlock(@Nonnull TryBlock<? extends ExceptionHandler> tryBlock) { in RewrittenTryBlock() argument
57 this.tryBlock = tryBlock; in RewrittenTryBlock()
61 return tryBlock.getStartCodeAddress(); in getStartCodeAddress()
65 return tryBlock.getCodeUnitCount(); in getCodeUnitCount()
69 …return RewriterUtils.rewriteList(rewriters.getExceptionHandlerRewriter(), tryBlock.getExceptionHan… in getExceptionHandlers()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/
DImmutableTryBlock.java66 public static ImmutableTryBlock of(TryBlock<? extends ExceptionHandler> tryBlock) { in of() argument
67 if (tryBlock instanceof ImmutableTryBlock) { in of()
68 return (ImmutableTryBlock)tryBlock; in of()
71 tryBlock.getStartCodeAddress(), in of()
72 tryBlock.getCodeUnitCount(), in of()
73 tryBlock.getExceptionHandlers()); in of()
/external/smali/smalidea/src/test/java/org/jf/smalidea/dexlib/
DSmalideaMethodTest.java356 TryBlock<? extends ExceptionHandler> tryBlock = tryBlocks.get(0); in testCatchBlocks() local
357 Assert.assertEquals(8, tryBlock.getStartCodeAddress()); in testCatchBlocks()
358 Assert.assertEquals(14, tryBlock.getCodeUnitCount()); in testCatchBlocks()
359 Assert.assertEquals(1, tryBlock.getExceptionHandlers().size()); in testCatchBlocks()
360 …Assert.assertEquals("Ljava/lang/RuntimeException;", tryBlock.getExceptionHandlers().get(0).getExce… in testCatchBlocks()
361 Assert.assertEquals(23, tryBlock.getExceptionHandlers().get(0).getHandlerCodeAddress()); in testCatchBlocks()
363 tryBlock = tryBlocks.get(1); in testCatchBlocks()
364 Assert.assertEquals(8, tryBlock.getStartCodeAddress()); in testCatchBlocks()
365 Assert.assertEquals(14, tryBlock.getCodeUnitCount()); in testCatchBlocks()
366 Assert.assertEquals(1, tryBlock.getExceptionHandlers().size()); in testCatchBlocks()
[all …]
/external/clang/lib/AST/
DStmtCXX.cpp27 Stmt *tryBlock, ArrayRef<Stmt *> handlers) { in Create() argument
32 return new (Mem) CXXTryStmt(tryLoc, tryBlock, handlers); in Create()
44 CXXTryStmt::CXXTryStmt(SourceLocation tryLoc, Stmt *tryBlock, in CXXTryStmt() argument
48 Stmts[0] = tryBlock; in CXXTryStmt()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/
DDexWriter.java1086 for (TryBlock<? extends ExceptionHandler> tryBlock: tryBlocks) {
1087 exceptionHandlerOffsetMap.put(tryBlock.getExceptionHandlers(), 0);
1091 for (TryBlock<? extends ExceptionHandler> tryBlock: tryBlocks) {
1092 int startAddress = tryBlock.getStartCodeAddress();
1093 int endAddress = startAddress + tryBlock.getCodeUnitCount();
1100 if (tryBlock.getExceptionHandlers().size() == 0) {
1104 Integer offset = exceptionHandlerOffsetMap.get(tryBlock.getExceptionHandlers());
1112 exceptionHandlerOffsetMap.put(tryBlock.getExceptionHandlers(), offset);
1115 int ehSize = tryBlock.getExceptionHandlers().size();
1116 ExceptionHandler ehLast = tryBlock.getExceptionHandlers().get(ehSize-1);
[all …]
/external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/
DMethodDefinition.java537 for (TryBlock<? extends ExceptionHandler> tryBlock: tryBlocks) { in addTries()
538 int startAddress = tryBlock.getStartCodeAddress(); in addTries()
539 int endAddress = startAddress + tryBlock.getCodeUnitCount(); in addTries()
561 for (ExceptionHandler handler: tryBlock.getExceptionHandlers()) { in addTries()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/
DMethodAnalyzer.java475 TryBlock<? extends ExceptionHandler> tryBlock = tries.get(triesIndex);
476 if (tryBlock.getStartCodeAddress() <= currentCodeAddress) {
477 … assert(tryBlock.getStartCodeAddress() + tryBlock.getCodeUnitCount() > currentCodeAddress);
479 currentTry = tryBlock;
481 currentExceptionHandlers = buildExceptionHandlerArray(tryBlock);
593 …dInstruction[] buildExceptionHandlerArray(@Nonnull TryBlock<? extends ExceptionHandler> tryBlock) {
594 List<? extends ExceptionHandler> exceptionHandlers = tryBlock.getExceptionHandlers();
1124 for (TryBlock<? extends ExceptionHandler> tryBlock: methodImpl.getTryBlocks()) {
1125 for (ExceptionHandler handler: tryBlock.getExceptionHandlers()) {
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/
DMutableMethodImplementation.java114 for (TryBlock<? extends ExceptionHandler> tryBlock: methodImplementation.getTryBlocks()) { in MutableMethodImplementation()
115 Label startLabel = newLabel(codeAddressToIndex, tryBlock.getStartCodeAddress()); in MutableMethodImplementation()
116 …Label endLabel = newLabel(codeAddressToIndex, tryBlock.getStartCodeAddress() + tryBlock.getCodeUni… in MutableMethodImplementation()
118 for (ExceptionHandler exceptionHandler: tryBlock.getExceptionHandlers()) { in MutableMethodImplementation()
/external/clang/include/clang/AST/
DStmtCXX.h69 CXXTryStmt(SourceLocation tryLoc, Stmt *tryBlock, ArrayRef<Stmt*> handlers);
83 Stmt *tryBlock, ArrayRef<Stmt*> handlers);
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/
DClassPool.java155 for (TryBlock<? extends ExceptionHandler> tryBlock: methodImpl.getTryBlocks()) { in internCode()
156 for (ExceptionHandler handler: tryBlock.getExceptionHandlers()) { in internCode()
/external/r8/src/main/java/com/android/tools/r8/ir/conversion/
DJarSourceCode.java653 TryCatchBlockNode tryBlock = (TryCatchBlockNode) node.tryCatchBlocks.get(i); in getPotentialTryHandlers() local
654 if (tryBlockRelevant(tryBlock, offset)) { in getPotentialTryHandlers()
655 handlers.add(new TryCatchBlock(tryBlock, this)); in getPotentialTryHandlers()