Lines Matching refs:CurBufferPtr
44 /// emit machine instructions, we advance the CurBufferPtr to indicate the
47 /// CurBufferPtr will saturate to BufferEnd and ignore stores. Once the entire
56 /// CurBufferPtr - Pointer to the next byte of memory to fill when emitting
61 uint8_t *CurBufferPtr;
83 if (CurBufferPtr != BufferEnd)
84 *CurBufferPtr++ = B;
91 if (4 <= BufferEnd-CurBufferPtr) {
92 emitWordLEInto(CurBufferPtr, W);
94 CurBufferPtr = BufferEnd;
113 if (4 <= BufferEnd-CurBufferPtr) {
114 *CurBufferPtr++ = (uint8_t)(W >> 24);
115 *CurBufferPtr++ = (uint8_t)(W >> 16);
116 *CurBufferPtr++ = (uint8_t)(W >> 8);
117 *CurBufferPtr++ = (uint8_t)(W >> 0);
119 CurBufferPtr = BufferEnd;
127 if (8 <= BufferEnd-CurBufferPtr) {
128 *CurBufferPtr++ = (uint8_t)(W >> 0);
129 *CurBufferPtr++ = (uint8_t)(W >> 8);
130 *CurBufferPtr++ = (uint8_t)(W >> 16);
131 *CurBufferPtr++ = (uint8_t)(W >> 24);
132 *CurBufferPtr++ = (uint8_t)(W >> 32);
133 *CurBufferPtr++ = (uint8_t)(W >> 40);
134 *CurBufferPtr++ = (uint8_t)(W >> 48);
135 *CurBufferPtr++ = (uint8_t)(W >> 56);
137 CurBufferPtr = BufferEnd;
145 if (8 <= BufferEnd-CurBufferPtr) {
146 *CurBufferPtr++ = (uint8_t)(W >> 56);
147 *CurBufferPtr++ = (uint8_t)(W >> 48);
148 *CurBufferPtr++ = (uint8_t)(W >> 40);
149 *CurBufferPtr++ = (uint8_t)(W >> 32);
150 *CurBufferPtr++ = (uint8_t)(W >> 24);
151 *CurBufferPtr++ = (uint8_t)(W >> 16);
152 *CurBufferPtr++ = (uint8_t)(W >> 8);
153 *CurBufferPtr++ = (uint8_t)(W >> 0);
155 CurBufferPtr = BufferEnd;
159 /// emitAlignment - Move the CurBufferPtr pointer up to the specified
164 if(Alignment <= (uintptr_t)(BufferEnd-CurBufferPtr)) {
166 CurBufferPtr =
167 (uint8_t*)(((uintptr_t)CurBufferPtr+Alignment-1) &
170 CurBufferPtr = BufferEnd;
214 if (4 <= BufferEnd-CurBufferPtr) {
215 *((uint32_t*)CurBufferPtr) = Value;
216 CurBufferPtr += 4;
218 CurBufferPtr = BufferEnd;
224 if (8 <= BufferEnd-CurBufferPtr) {
225 *((uint64_t*)CurBufferPtr) = Value;
226 CurBufferPtr += 8;
228 CurBufferPtr = BufferEnd;
261 if (Size >= (uintptr_t)(BufferEnd-CurBufferPtr)) {
262 CurBufferPtr = BufferEnd;
266 Result = CurBufferPtr;
267 CurBufferPtr += Size;
282 return (uintptr_t)CurBufferPtr;
288 return CurBufferPtr-BufferBegin;