Lines Matching defs:AssemblerBufferWithConstantPools

534 struct AssemblerBufferWithConstantPools  struct
544 size_t index_;
547 explicit PoolEntry(size_t index) : index_(index) {} in PoolEntry()
549 PoolEntry() : index_(-1) {} in PoolEntry()
551 size_t index() const { return index_; } in index()
555 typedef AssemblerBuffer<SliceSize, Inst> Parent;
559 const unsigned guardSize_;
562 const unsigned headerSize_;
568 const size_t poolMaxOffset_;
572 const unsigned pcBias_;
575 Pool pool_;
578 const size_t instBufferAlign_;
580 struct PoolInfo {
596 Vector<PoolInfo, 8, LifoAllocPolicy<Fallible>> poolInfo_;
604 BranchDeadlineSet<NumShortBranchRanges> branchDeadlines_;
607 bool canNotPlacePool_;
612 size_t canNotPlacePoolStartOffset_;
615 size_t canNotPlacePoolMaxInst_;
619 const uint32_t alignFillInst_;
647 AssemblerBufferWithConstantPools(unsigned guardSize, unsigned headerSize, argument
674 void initWithAllocator() { in initWithAllocator()
682 size_t sizeExcludingCurrentPool() const { in sizeExcludingCurrentPool()
689 size_t size() const { in size()
697 void insertNopFill() { in insertNopFill()
712 static const unsigned OOM_FAIL = unsigned(-1);
713 static const unsigned DUMMY_INDEX = unsigned(-2);
717 bool hasSpaceForInsts(unsigned numInsts, unsigned numPoolEntries) const { in hasSpaceForInsts()
771 unsigned insertEntryForwards(unsigned numInst, unsigned numPoolEntries, in insertEntryForwards()
812 BufferOffset nextInstrOffset() { in nextInstrOffset()
841 size_t length = numPoolEntries * sizeof(PoolAllocUnit);
842 for (unsigned idx = 0; idx < length; idx++) {
859 PoolEntry retPE;
892 BufferOffset putInt(uint32_t value) { in putInt()
927 void registerBranchDeadline(unsigned rangeIdx, BufferOffset deadline) { in registerBranchDeadline()
940 void unregisterBranchDeadline(unsigned rangeIdx, BufferOffset deadline) { in unregisterBranchDeadline()
948 bool hasExpirableShortRangeBranches(size_t reservedBytes) const { in hasExpirableShortRangeBranches()
967 bool isPoolEmptyFor(size_t bytes) const { in isPoolEmptyFor()
970 void finishPool(size_t reservedBytes) { in finishPool()
1062 void flushPool() { in flushPool()
1070 void enterNoPool(size_t maxInst) { in enterNoPool()
1099 void leaveNoPool() { in leaveNoPool()
1112 void enterNoNops() { in enterNoNops()
1116 void leaveNoNops() { in leaveNoNops()
1120 void assertNoPoolAndNoNops() { in assertNoPoolAndNoNops()
1125 void align(unsigned alignment) { align(alignment, alignFillInst_); } in align()
1127 void align(unsigned alignment, uint32_t pattern) { in align()
1159 void executableCopy(uint8_t* dest) { in executableCopy()
1171 bool appendRawCode(const uint8_t* code, size_t numBytes) { in appendRawCode()
1187 size_t poolEntryOffset(PoolEntry pe) const { in poolEntryOffset()