/** load block argument for pre() call. Since we have fixed-arity call * paths we need calculate where the last var holding the block is. * * is we don't have a block we setup NULL_BLOCK as part of our null pattern * strategy (we do not allow null in any field which accepts block). */ private void loadBlockForPre(SkinnyMethodAdapter mv, int specificArity, boolean getsBlock) { if (!getsBlock) { // No block so load null block instance mv.getstatic(p(Block.class), "NULL_BLOCK", ci(Block.class)); return; } loadBlock(mv, specificArity, getsBlock); }
/** load block argument for pre() call. Since we have fixed-arity call * paths we need calculate where the last var holding the block is. * * is we don't have a block we setup NULL_BLOCK as part of our null pattern * strategy (we do not allow null in any field which accepts block). */ private static void loadBlockForPre(SkinnyMethodAdapter mv, int specificArity, boolean getsBlock) { if (!getsBlock) { // No block so load null block instance mv.getstatic(p(Block.class), "NULL_BLOCK", ci(Block.class)); return; } loadBlock(mv, specificArity, getsBlock); }
/** load block argument for pre() call. Since we have fixed-arity call * paths we need calculate where the last var holding the block is. * * is we don't have a block we setup NULL_BLOCK as part of our null pattern * strategy (we do not allow null in any field which accepts block). */ private static void loadBlockForPre(SkinnyMethodAdapter mv, int specificArity, boolean getsBlock) { if (!getsBlock) { // No block so load null block instance mv.getstatic(p(Block.class), "NULL_BLOCK", ci(Block.class)); return; } loadBlock(mv, specificArity, getsBlock); }
/** load block argument for pre() call. Since we have fixed-arity call * paths we need calculate where the last var holding the block is. * * is we don't have a block we setup NULL_BLOCK as part of our null pattern * strategy (we do not allow null in any field which accepts block). */ private void loadBlockForPre(SkinnyMethodAdapter mv, int specificArity, boolean getsBlock) { if (!getsBlock) { // No block so load null block instance mv.getstatic(p(Block.class), "NULL_BLOCK", ci(Block.class)); return; } loadBlock(mv, specificArity, getsBlock); }
loadBlock(method, specificArity, block);
loadBlock(method, specificArity, block);
loadBlock(method, specificArity, block);
loadBlock(method, specificArity, block);