Lines Matching refs:buffer
204 // Move the contents of the buffer from oldposition to
251 // To emit an instruction to the assembler buffer, the EnsureCapacity helper
255 // AssemblerBuffer buffer;
256 // AssemblerBuffer::EnsureCapacity ensured(&buffer);
263 explicit EnsureCapacity(AssemblerBuffer* buffer) {
264 if (buffer->cursor() >= buffer->limit()) {
265 buffer->ExtendCapacity();
267 // In debug mode, we save the assembler buffer along with the gap
268 // size before we start emitting to the buffer. This allows us to
271 buffer_ = buffer;
276 // Mark the buffer as having ensured the capacity.
277 CHECK(!buffer->HasEnsuredCapacity()); // Cannot nest.
278 buffer->has_ensured_capacity_ = true;
282 // Unmark the buffer, so we cannot emit after this.
304 explicit EnsureCapacity(AssemblerBuffer* buffer) {
305 if (buffer->cursor() >= buffer->limit()) buffer->ExtendCapacity();
310 // asserting that the user of the assembler buffer has ensured the
366 explicit DebugFrameOpCodeWriterForAssembler(Assembler* buffer)
368 assembler_(buffer) {
385 // Copy instructions out of assembly buffer into the given region of memory