Lines Matching refs:pos
547 desc->reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos();
766 // generated code. pos() is the position the label refers to.
769 // to be generated; pos() is the position of the last
780 int Assembler::target_at(int pos) {
781 Instr instr = instr_at(pos);
793 return pos + kPcLoadDelta + imm26;
797 void Assembler::target_at_put(int pos, int target_pos) {
798 Instr instr = instr_at(pos);
800 ASSERT(target_pos == pos || target_pos >= 0);
816 Instruction::RmValue(instr_at(pos + kInstrSize)));
817 ASSERT(IsNop(instr_at(pos + kInstrSize), dst.code()));
823 CodePatcher patcher(reinterpret_cast<byte*>(buffer_ + pos),
833 CodePatcher patcher(reinterpret_cast<byte*>(buffer_ + pos),
838 CodePatcher patcher(reinterpret_cast<byte*>(buffer_ + pos),
850 CodePatcher patcher(reinterpret_cast<byte*>(buffer_ + pos),
856 CodePatcher patcher(reinterpret_cast<byte*>(buffer_ + pos),
867 int imm26 = target_pos - (pos + kPcLoadDelta);
879 instr_at_put(pos, instr | (imm24 & kImm24Mask));
887 PrintF("bound label to %d\n", L->pos());
892 PrintF("@ %d ", l.pos());
893 Instr instr = instr_at(l.pos());
936 PrintF("label in inconsistent state (pos = %d)\n", L->pos_);
941 void Assembler::bind_to(Label* L, int pos) {
942 ASSERT(0 <= pos && pos <= pc_offset()); // must have a valid binding position
944 int fixup_pos = L->pos();
946 target_at_put(fixup_pos, pos);
948 L->bind_to(pos);
952 if (pos > last_bound_pos_)
953 last_bound_pos_ = pos;
965 int link = target_at(L->pos());
966 if (link == L->pos()) {
1278 target_pos = L->pos();
1282 target_pos = L->pos();
1441 mov(dst, Operand(label->pos() + (Code::kHeaderSize - kHeapObjectTag)));
1447 int link = label->is_linked() ? label->pos() : pc_offset();
3132 desc.reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos();
3138 OS::MemMove(reloc_info_writer.pos() + rc_delta,
3139 reloc_info_writer.pos(), desc.reloc_size);
3146 reloc_info_writer.Reposition(reloc_info_writer.pos() + rc_delta,