Lines Matching defs:pos
599 static_cast<int>(reloc_info_writer.pos() - buffer_->start());
786 // generated code. pos() is the position the label refers to.
789 // to be generated; pos() is the position of the last
799 int Assembler::target_at(int pos) {
800 Instr instr = instr_at(pos);
812 return pos + Instruction::kPcLoadDelta + imm26;
815 void Assembler::target_at_put(int pos, int target_pos) {
816 Instr instr = instr_at(pos);
818 DCHECK(target_pos == pos || target_pos >= 0);
828 Register::from_code(Instruction::RmValue(instr_at(pos + kInstrSize)));
831 DCHECK(IsNop(instr_at(pos + kInstrSize), dst.code()));
833 DCHECK(IsNop(instr_at(pos + 2 * kInstrSize), dst.code()));
851 options(), reinterpret_cast<byte*>(buffer_start_ + pos), 1);
860 options(), reinterpret_cast<byte*>(buffer_start_ + pos), 1);
865 options(), reinterpret_cast<byte*>(buffer_start_ + pos), 2);
877 options(), reinterpret_cast<byte*>(buffer_start_ + pos), 2);
882 options(), reinterpret_cast<byte*>(buffer_start_ + pos), 3);
891 int imm26 = target_pos - (pos + Instruction::kPcLoadDelta);
903 instr_at_put(pos, instr | (imm24 & kImm24Mask));
910 PrintF("bound label to %d\n", L->pos());
913 l.link_to(L->pos());
916 PrintF("@ %d ", l.pos());
917 Instr instr = instr_at(l.pos());
990 PrintF("label in inconsistent state (pos = %d)\n", L->pos_);
994 void Assembler::bind_to(Label* L, int pos) {
995 DCHECK(0 <= pos && pos <= pc_offset()); // must have a valid binding position
997 int fixup_pos = L->pos();
999 target_at_put(fixup_pos, pos);
1001 L->bind_to(pos);
1005 if (pos > last_bound_pos_) last_bound_pos_ = pos;
1015 int link = target_at(L->pos());
1016 if (link == L->pos()) {
1446 target_pos = L->pos();
1450 target_pos = L->pos();
1649 mov(dst, Operand(label->pos() + (Code::kHeaderSize - kHeapObjectTag)));
1655 int link = label->is_linked() ? label->pos() : pc_offset();
5207 size_t reloc_size = (buffer_start_ + old_size) - reloc_info_writer.pos();
5210 reinterpret_cast<Address>(reloc_info_writer.pos()) + rc_delta);
5211 MemMove(new_reloc_start, reloc_info_writer.pos(), reloc_size);
5479 DCHECK_EQ(reloc_info_writer.pos(), buffer_start_ + buffer_->size());
5488 DCHECK_EQ(reloc_info_writer.pos(), buffer_start_ + buffer_->size());