Lines Matching refs:CurBufferPtr
46 /// emit machine instructions, we advance the CurBufferPtr to indicate the
49 /// CurBufferPtr will saturate to BufferEnd and ignore stores. Once the entire
80 if (CurBufferPtr != BufferEnd)
81 *CurBufferPtr++ = B;
88 if (4 <= BufferEnd-CurBufferPtr) {
89 *CurBufferPtr++ = (uint8_t)(W >> 0);
90 *CurBufferPtr++ = (uint8_t)(W >> 8);
91 *CurBufferPtr++ = (uint8_t)(W >> 16);
92 *CurBufferPtr++ = (uint8_t)(W >> 24);
94 CurBufferPtr = BufferEnd;
102 if (4 <= BufferEnd-CurBufferPtr) {
103 *CurBufferPtr++ = (uint8_t)(W >> 24);
104 *CurBufferPtr++ = (uint8_t)(W >> 16);
105 *CurBufferPtr++ = (uint8_t)(W >> 8);
106 *CurBufferPtr++ = (uint8_t)(W >> 0);
108 CurBufferPtr = BufferEnd;
116 if (8 <= BufferEnd-CurBufferPtr) {
117 *CurBufferPtr++ = (uint8_t)(W >> 0);
118 *CurBufferPtr++ = (uint8_t)(W >> 8);
119 *CurBufferPtr++ = (uint8_t)(W >> 16);
120 *CurBufferPtr++ = (uint8_t)(W >> 24);
121 *CurBufferPtr++ = (uint8_t)(W >> 32);
122 *CurBufferPtr++ = (uint8_t)(W >> 40);
123 *CurBufferPtr++ = (uint8_t)(W >> 48);
124 *CurBufferPtr++ = (uint8_t)(W >> 56);
126 CurBufferPtr = BufferEnd;
134 if (8 <= BufferEnd-CurBufferPtr) {
135 *CurBufferPtr++ = (uint8_t)(W >> 56);
136 *CurBufferPtr++ = (uint8_t)(W >> 48);
137 *CurBufferPtr++ = (uint8_t)(W >> 40);
138 *CurBufferPtr++ = (uint8_t)(W >> 32);
139 *CurBufferPtr++ = (uint8_t)(W >> 24);
140 *CurBufferPtr++ = (uint8_t)(W >> 16);
141 *CurBufferPtr++ = (uint8_t)(W >> 8);
142 *CurBufferPtr++ = (uint8_t)(W >> 0);
144 CurBufferPtr = BufferEnd;
148 /// emitAlignment - Move the CurBufferPtr pointer up to the specified
152 uint8_t *NewPtr = (uint8_t*)RoundUpToAlignment((uintptr_t)CurBufferPtr,
154 CurBufferPtr = std::min(NewPtr, BufferEnd);
161 uint8_t *NewPtr = (uint8_t*)RoundUpToAlignment((uintptr_t)CurBufferPtr,
165 CurBufferPtr = BufferEnd;
168 while (CurBufferPtr < NewPtr) {
169 *CurBufferPtr++ = Fill;
219 if (4 <= BufferEnd-CurBufferPtr) {
220 *((uint32_t*)CurBufferPtr) = Value;
221 CurBufferPtr += 4;
223 CurBufferPtr = BufferEnd;
229 if (8 <= BufferEnd-CurBufferPtr) {
230 *((uint64_t*)CurBufferPtr) = Value;
231 CurBufferPtr += 8;
233 CurBufferPtr = BufferEnd;
261 if (Size >= (uintptr_t)(BufferEnd-CurBufferPtr)) {
262 CurBufferPtr = BufferEnd;
266 Result = CurBufferPtr;
267 CurBufferPtr += Size;
287 return (uintptr_t)CurBufferPtr;
293 return CurBufferPtr-BufferBegin;