Home
last modified time | relevance | path

Searched refs:newBlock (Results 1 – 25 of 33) sorted by relevance

12

/external/r8/src/main/java/com/android/tools/r8/ir/code/
DBasicBlockInstructionIterator.java180 BasicBlock newBlock; in split() local
188 newBlock = block.createSplitBlock(blockNumber, keepCatchHandlers); in split()
197 newBlock.getInstructions().addLast(instruction); in split()
198 instruction.setBlock(newBlock); in split()
204 code.setNormalExitBlock(newBlock); in split()
209 blocks.add(blocks.indexOf(block) + 1, newBlock); in split() local
211 blocksIterator.add(newBlock); in split()
214 return newBlock; in split()
219 BasicBlock newBlock = split(code, blocksIterator); in split() local
220 assert blocksIterator == null || peekPrevious(blocksIterator) == newBlock; in split()
[all …]
DBasicBlock.java188 public void replaceSuccessor(BasicBlock block, BasicBlock newBlock) { in replaceSuccessor() argument
191 if (successors.contains(newBlock)) { in replaceSuccessor()
193 int indexOfNewBlock = successors.indexOf(newBlock); in replaceSuccessor()
261 successors.set(i, newBlock); in replaceSuccessor()
268 public void replacePredecessor(BasicBlock block, BasicBlock newBlock) { in replacePredecessor() argument
271 predecessors.set(i, newBlock); in replacePredecessor()
1035 BasicBlock newBlock = new BasicBlock(); in createSplitBlock() local
1036 newBlock.setNumber(blockNumber); in createSplitBlock()
1039 successors.forEach(newBlock.successors::add); in createSplitBlock()
1040 for (BasicBlock successor : newBlock.getSuccessors()) { in createSplitBlock()
[all …]
/external/icu/icu4c/source/tools/makeconv/
Dgenmbcs.cpp568 uint32_t blockSize, newTop, i, nextOffset, newBlock, min; in MBCSSingleAddFromUnicode() local
593 newBlock=mbcsData->stage2Top; in MBCSSingleAddFromUnicode()
595 min=newBlock-nextOffset; /* minimum block start with overlap */ in MBCSSingleAddFromUnicode()
596 while(min<newBlock && mbcsData->stage2Single[newBlock-1]==0) { in MBCSSingleAddFromUnicode()
597 --newBlock; in MBCSSingleAddFromUnicode()
600 newTop=newBlock+MBCS_STAGE_2_BLOCK_SIZE; in MBCSSingleAddFromUnicode()
611 mbcsData->stage1[idx]=(uint16_t)newBlock; in MBCSSingleAddFromUnicode()
627 newBlock=mbcsData->stage3Top; in MBCSSingleAddFromUnicode()
629 min=newBlock-nextOffset; /* minimum block start with overlap */ in MBCSSingleAddFromUnicode()
630 while(min<newBlock && stage3[newBlock-1]==0) { in MBCSSingleAddFromUnicode()
[all …]
Dgencnvex.c823 int32_t i1, i2, i3, i3b, nextOffset, min, newBlock; in addFromUTrieEntry() local
843 newBlock=extData->stage2Top; in addFromUTrieEntry()
844 min=newBlock-nextOffset; /* minimum block start with overlap */ in addFromUTrieEntry()
845 while(min<newBlock && extData->stage2[newBlock-1]==0) { in addFromUTrieEntry()
846 --newBlock; in addFromUTrieEntry()
849 extData->stage1[i1]=(uint16_t)newBlock; in addFromUTrieEntry()
850 extData->stage2Top=newBlock+MBCS_STAGE_2_BLOCK_SIZE; in addFromUTrieEntry()
862 newBlock=extData->stage3Top; in addFromUTrieEntry()
863 min=newBlock-nextOffset; /* minimum block start with overlap */ in addFromUTrieEntry()
864 while(min<newBlock && extData->stage3[newBlock-1]==0) { in addFromUTrieEntry()
[all …]
/external/r8/src/test/java/com/android/tools/r8/ir/
DSplitBlockTest.java90 BasicBlock newBlock = iterator.split(code); in noCatchHandlers() local
96 assertSame(newBlock, code.blocks.get(1)); in noCatchHandlers()
124 BasicBlock newBlock = iterator.split(1, code); in noCatchHandlersSplitThree() local
131 assertSame(newBlock, code.blocks.get(1)); in noCatchHandlersSplitThree()
209 BasicBlock newBlock = iterator.split(code); in runCatchHandlerTest() local
214 assertEquals(instructionCount - i, newBlock.getInstructions().size()); in runCatchHandlerTest()
215 assertSame(newBlock, code.blocks.get(2)); in runCatchHandlerTest()
247 BasicBlock newBlock = iterator.split(1, code); in runCatchHandlerSplitThreeTest() local
252 assertEquals(2, newBlock.getInstructions().size()); in runCatchHandlerSplitThreeTest()
254 assertSame(newBlock, code.blocks.get(2)); in runCatchHandlerSplitThreeTest()
[all …]
/external/r8/src/main/java/com/android/tools/r8/ir/optimize/
DPeepholeOptimizer.java84 BasicBlock newBlock = createAndInsertBlockForSuffix( in shareIdenticalBlockSuffix() local
86 newBlocks.put(predsWithSameLastInstruction.get(0), newBlock); in shareIdenticalBlockSuffix()
103 BasicBlock newBlock = BasicBlock.createGotoBlock(blockNumber); in createAndInsertBlockForSuffix() local
110 newBlock.getInstructions().addFirst(instruction); in createAndInsertBlockForSuffix()
111 instruction.setBlock(newBlock); in createAndInsertBlockForSuffix()
114 newBlock.transferCatchHandlers(first); in createAndInsertBlockForSuffix()
123 newBlock.getPredecessors().add(pred); in createAndInsertBlockForSuffix()
124 pred.replaceSuccessor(block, newBlock); in createAndInsertBlockForSuffix()
130 newBlock.link(block); in createAndInsertBlockForSuffix()
131 return newBlock; in createAndInsertBlockForSuffix()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTrie2Writable.java169 int newBlock, newTop; in allocIndex2Block() local
171 newBlock=index2Length; in allocIndex2Block()
172 newTop=newBlock+UTRIE2_INDEX_2_BLOCK_LENGTH; in allocIndex2Block()
182 System.arraycopy(index2, index2NullOffset, index2, newBlock, UTRIE2_INDEX_2_BLOCK_LENGTH); in allocIndex2Block()
183 return newBlock; in allocIndex2Block()
203 int newBlock, newTop; in allocDataBlock() local
207 newBlock=firstFreeBlock; in allocDataBlock()
208 firstFreeBlock=-map[newBlock>>UTRIE2_SHIFT_2]; in allocDataBlock()
211 newBlock=dataLength; in allocDataBlock()
212 newTop=newBlock+UTRIE2_DATA_BLOCK_LENGTH; in allocDataBlock()
[all …]
DIntTrieBuilder.java506 int newBlock = m_dataLength_; in allocDataBlock() local
507 int newTop = newBlock + DATA_BLOCK_LENGTH; in allocDataBlock()
513 return newBlock; in allocDataBlock()
530 int newBlock = allocDataBlock(); in getDataBlock() local
531 if (newBlock < 0) { in getDataBlock()
535 m_index_[ch] = newBlock; in getDataBlock()
538 System.arraycopy(m_data_, Math.abs(indexValue), m_data_, newBlock, in getDataBlock()
540 return newBlock; in getDataBlock()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DTrie2Writable.java171 int newBlock, newTop; in allocIndex2Block() local
173 newBlock=index2Length; in allocIndex2Block()
174 newTop=newBlock+UTRIE2_INDEX_2_BLOCK_LENGTH; in allocIndex2Block()
184 System.arraycopy(index2, index2NullOffset, index2, newBlock, UTRIE2_INDEX_2_BLOCK_LENGTH); in allocIndex2Block()
185 return newBlock; in allocIndex2Block()
205 int newBlock, newTop; in allocDataBlock() local
209 newBlock=firstFreeBlock; in allocDataBlock()
210 firstFreeBlock=-map[newBlock>>UTRIE2_SHIFT_2]; in allocDataBlock()
213 newBlock=dataLength; in allocDataBlock()
214 newTop=newBlock+UTRIE2_DATA_BLOCK_LENGTH; in allocDataBlock()
[all …]
DIntTrieBuilder.java508 int newBlock = m_dataLength_; in allocDataBlock() local
509 int newTop = newBlock + DATA_BLOCK_LENGTH; in allocDataBlock()
515 return newBlock; in allocDataBlock()
532 int newBlock = allocDataBlock(); in getDataBlock() local
533 if (newBlock < 0) { in getDataBlock()
537 m_index_[ch] = newBlock; in getDataBlock()
540 System.arraycopy(m_data_, Math.abs(indexValue), m_data_, newBlock, in getDataBlock()
542 return newBlock; in getDataBlock()
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dfifo.hpp131 T* newBlock = (T*)arena.AllocAligned(sizeof(T)*mBlockSize, KNOB_SIMD_WIDTH*4); in enqueue_try_nosync() local
132 SWR_ASSERT(newBlock); in enqueue_try_nosync()
134 mBlocks.push_back(newBlock); in enqueue_try_nosync()
135 mCurBlock = newBlock; in enqueue_try_nosync()
/external/skia/src/sksl/
DSkSLCFGGenerator.cpp30 BlockId CFG::newBlock() { in newBlock() function in SkSL::CFG
298 cfg.newBlock(); in addExpression()
300 cfg.newBlock(); in addExpression()
395 cfg.newBlock(); in addExpression()
397 BlockId next = cfg.newBlock(); in addExpression()
399 cfg.newBlock(); in addExpression()
448 cfg.newBlock(); in addStatement()
450 BlockId next = cfg.newBlock(); in addStatement()
453 cfg.newBlock(); in addStatement()
514 BlockId loopStart = cfg.newBlock(); in addStatement()
[all …]
DSkSLCompiler.cpp930 std::unique_ptr<Statement> newBlock = block_for_case(&s, c.get()); in simplifyStatement() local
931 if (newBlock) { in simplifyStatement()
932 (*iter)->setStatement(std::move(newBlock)); in simplifyStatement()
947 std::unique_ptr<Statement> newBlock = block_for_case(&s, defaultCase); in simplifyStatement() local
948 if (newBlock) { in simplifyStatement()
949 (*iter)->setStatement(std::move(newBlock)); in simplifyStatement()
DSkSLCFGGenerator.h133 BlockId newBlock();
/external/python/cpython2/Lib/compiler/
Dpycodegen.py241 self.newBlock = self.graph.newBlock
414 end = self.newBlock()
423 nextTest = self.newBlock()
436 loop = self.newBlock()
437 else_ = self.newBlock()
439 after = self.newBlock()
461 start = self.newBlock()
462 anchor = self.newBlock()
463 after = self.newBlock()
519 end = self.newBlock()
[all …]
/external/icu/icu4c/source/common/
Dutrie2_builder.cpp475 int32_t newBlock, newTop; in allocIndex2Block() local
477 newBlock=trie->index2Length; in allocIndex2Block()
478 newTop=newBlock+UTRIE2_INDEX_2_BLOCK_LENGTH; in allocIndex2Block()
488 …uprv_memcpy(trie->index2+newBlock, trie->index2+trie->index2NullOffset, UTRIE2_INDEX_2_BLOCK_LENGT… in allocIndex2Block()
489 return newBlock; in allocIndex2Block()
514 int32_t newBlock, newTop; in allocDataBlock() local
518 newBlock=trie->firstFreeBlock; in allocDataBlock()
519 trie->firstFreeBlock=-trie->map[newBlock>>UTRIE2_SHIFT_2]; in allocDataBlock()
522 newBlock=trie->dataLength; in allocDataBlock()
523 newTop=newBlock+UTRIE2_DATA_BLOCK_LENGTH; in allocDataBlock()
[all …]
Dutrie.cpp177 int32_t newBlock, newTop; in utrie_allocDataBlock() local
179 newBlock=trie->dataLength; in utrie_allocDataBlock()
180 newTop=newBlock+UTRIE_DATA_BLOCK_LENGTH; in utrie_allocDataBlock()
186 return newBlock; in utrie_allocDataBlock()
197 int32_t indexValue, newBlock; in utrie_getDataBlock() local
206 newBlock=utrie_allocDataBlock(trie); in utrie_getDataBlock()
207 if(newBlock<0) { in utrie_getDataBlock()
211 trie->index[c]=newBlock; in utrie_getDataBlock()
214 uprv_memcpy(trie->data+newBlock, trie->data-indexValue, 4*UTRIE_DATA_BLOCK_LENGTH); in utrie_getDataBlock()
215 return newBlock; in utrie_getDataBlock()
/external/skia/src/core/
DSkArenaAlloc.cpp128 char* newBlock = new char[allocationSize]; in ensureSpace() local
136 fCursor = newBlock; in ensureSpace()
137 fDtorCursor = newBlock; in ensureSpace()
DSkDeque.cpp229 Block* newBlock = (Block*)sk_malloc_throw(sizeof(Block) + allocCount * fElemSize); in allocateBlock() local
230 newBlock->init(sizeof(Block) + allocCount * fElemSize); in allocateBlock()
231 return newBlock; in allocateBlock()
/external/deqp/framework/delibs/decpp/
DdeAppendList.hpp251 Block* const newBlock = new Block(blockNdx+1, m_blockSize); in append() local
258 m_last = newBlock; in append()
263 curBlock->next = newBlock; in append()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/util/
DTryListBuilder.java304 … MutableTryBlock<EH> newBlock = new MutableTryBlock<EH>(previousEnd, tryBlock.startCodeAddress); in addHandler() local
305 tryBlock.prepend(newBlock); in addHandler()
306 tryBlock = newBlock; in addHandler()
/external/r8/src/main/java/com/android/tools/r8/ir/conversion/
DIRBuilder.java1791 BasicBlock newBlock = BasicBlock.createGotoBlock(target, nextBlockNumber++);
1792 blocks.add(newBlock);
1793 newBlock.incrementUnfilledPredecessorCount();
1796 source.replaceSuccessor(target, newBlock);
1797 newBlock.getPredecessors().add(source);
1799 target.getPredecessors().add(newBlock);
1802 assert source.hasCatchSuccessor(newBlock);
1807 newBlock.filledPredecessor(this);
1906 newBlock -> {
1907 newBlock.setNumber(blocks.size() + newBlocks.size());
[all …]
/external/pdfium/third_party/bigint/
DBigUnsigned.cc30 void BigUnsigned::setBlock(Index i, Blk newBlock) { in setBlock() argument
31 if (newBlock == 0) { in setBlock()
46 blk[i] = newBlock; in setBlock()
/external/swiftshader/third_party/LLVM/lib/Transforms/Instrumentation/
DPathProfiling.cpp193 void splitUpdate(BLInstrumentationEdge* formerEdge, BasicBlock* newBlock);
553 BasicBlock* newBlock) { in splitUpdate() argument
555 BallLarusNode* newNode = addNode(newBlock); in splitUpdate()
1419 BasicBlock* newBlock = terminator->getSuccessor(succNum); in splitCritical() local
1420 dag->splitUpdate(edge, newBlock); in splitCritical()
/external/boringssl/src/ssl/test/runner/
Ddtls.go50 c.rawInput = c.in.newBlock()
322 b = c.out.newBlock()

12