Lines Matching defs:Size
474 // generating code for branches we don't know the size before hand (if the branch is
477 // we can determine the actual size of the branch. However, if we had guessed wrong before
479 // instruction (assume that we never decrease the size of a branch).
482 // encoding for these is delayed until we know the final size of every branch. When we
484 // has changed size. If it has we need to move all the instructions in the buffer after
485 // the branch point forward by the change in size of the branch. This will create a gap
515 // Calculated size of branch instruction based on type and offset.
516 enum Size {
553 // size of the branch to change return true. Otherwise return false.
556 Size newsize = CalculateSize();
574 // size of the branch instruction. It returns true if the branch
575 // has changed size.
585 return false; // Don't know the size yet.
588 // Calculate the new size.
589 Size newsize = CalculateSize();
597 Size GetSize() const {
626 void ResetSize(Size size) {
627 size_ = size;
631 // Calculate the size of the branch instruction based on its type and offset.
632 Size CalculateSize() const {
681 Size size_;
688 // Add a resolved branch and return its size.
689 Branch::Size AddBranch(Branch::Type type, uint32_t location, uint32_t target,
692 return branches_[branches_.size()-1]->GetSize();
698 return branches_.size() - 1;
704 return branches_.size() - 1;
708 if (branchid >= branches_.size()) {
715 void MakeHoleForBranch(uint32_t location, uint32_t size);