Lines Matching refs:buffer_
98 uint16_t next = buffer_.Load<uint16_t>(fixup_location); // Get next in chain. in BindLabel()
99 buffer_.Store<int16_t>(fixup_location, 0); in BindLabel()
107 uint32_t code_size = buffer_.Size(); in BindLiterals()
133 if (buffer_.Load<int16_t>(dependent->GetLocation()) == 0) { in AdjustFixupIfNeeded()
134 buffer_.Store<int16_t>(dependent->GetLocation(), 1); in AdjustFixupIfNeeded()
143 uint32_t current_code_size = buffer_.Size(); in AdjustFixups()
149 CHECK_EQ(buffer_.Load<int16_t>(fixup.GetLocation()), 0); in AdjustFixups()
161 DCHECK_NE(buffer_.Load<int16_t>(fixup->GetLocation()), 0); in AdjustFixups()
162 buffer_.Store<int16_t>(fixup->GetLocation(), 0); in AdjustFixups()
181 CHECK_EQ(buffer_.Load<int16_t>(fixup.GetLocation()), 0); in AdjustFixups()
187 uint32_t literals_adjustment = current_code_size + (current_code_size & 2) - buffer_.Size(); in AdjustFixups()
211 size_t src_end = buffer_.Size(); in EmitFixups()
213 buffer_.Resize(dest_end); in EmitFixups()
220 fixup->Emit(&buffer_, adjusted_code_size); in EmitFixups()
228 buffer_.Move(dest_begin, src_begin, data_size); in EmitFixups()
233 fixup->Emit(&buffer_, adjusted_code_size); in EmitFixups()
243 uint32_t code_size = buffer_.Size(); in EmitLiterals()
249 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in EmitLiterals()
250 DCHECK_EQ(static_cast<size_t>(literal.GetLabel()->Position()), buffer_.Size()); in EmitLiterals()
253 buffer_.Emit<uint8_t>(literal.GetData()[i]); in EmitLiterals()
262 uint32_t code_size = buffer_.Size(); in EmitJumpTables()
269 size_t orig_size = buffer_.Size(); in EmitJumpTables()
271 if (required_capacity > buffer_.Capacity()) { in EmitJumpTables()
272 buffer_.ExtendCapacity(required_capacity); in EmitJumpTables()
275 buffer_.has_ensured_capacity_ = true; in EmitJumpTables()
278 DCHECK_EQ(static_cast<size_t>(table.GetLabel()->Position()), buffer_.Size()); in EmitJumpTables()
287 buffer_.Emit<int32_t>(offset); in EmitJumpTables()
291 buffer_.has_ensured_capacity_ = false; in EmitJumpTables()
293 size_t new_size = buffer_.Size(); in EmitJumpTables()
1163 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in Emit32()
1164 buffer_.Emit<int16_t>(value >> 16); in Emit32()
1165 buffer_.Emit<int16_t>(value & 0xffff); in Emit32()
1170 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in Emit16()
1171 buffer_.Emit<int16_t>(value); in Emit16()
2342 uint32_t location = buffer_.Size(); in EmitCompareAndBranch()
2570 uint32_t pc = buffer_.Size(); in EmitBranch()
2614 DCHECK_EQ(buffer_.Size() - pc, GetFixup(branch_id)->GetSizeInBytes()); in EmitBranch()
3386 BindLabel(label, buffer_.Size()); in Bind()
3408 last_fixup.Emit(&buffer_, buffer_.Size()); in Bind()
3583 uint32_t location = buffer_.Size(); in LoadLiteral()
3591 DCHECK_EQ(location + GetFixup(fixup_id)->GetSizeInBytes(), buffer_.Size()); in LoadLiteral()
3597 uint32_t location = buffer_.Size(); in LoadLiteral()
3603 DCHECK_EQ(location + GetFixup(fixup_id)->GetSizeInBytes(), buffer_.Size()); in LoadLiteral()
3609 uint32_t location = buffer_.Size(); in LoadLiteral()
3614 DCHECK_EQ(location + GetFixup(fixup_id)->GetSizeInBytes(), buffer_.Size()); in LoadLiteral()
3620 uint32_t location = buffer_.Size(); in LoadLiteral()
3625 DCHECK_EQ(location + GetFixup(fixup_id)->GetSizeInBytes(), buffer_.Size()); in LoadLiteral()
4005 uint32_t location = buffer_.Size(); in CreateJumpTable()
4013 DCHECK_EQ(location + GetFixup(fixup_id)->GetSizeInBytes(), buffer_.Size()); in CreateJumpTable()