Home | History | Annotate | Download | only in snapshot

Lines Matching refs:integer

21 void SnapshotByteSink::PutInt(uintptr_t integer, const char* description) {
22 DCHECK(integer < 1 << 30);
23 integer <<= 2;
25 if (integer > 0xff) bytes = 2;
26 if (integer > 0xffff) bytes = 3;
27 if (integer > 0xffffff) bytes = 4;
28 integer |= (bytes - 1);
29 Put(static_cast<int>(integer & 0xff), "IntPart1");
30 if (bytes > 1) Put(static_cast<int>((integer >> 8) & 0xff), "IntPart2");
31 if (bytes > 2) Put(static_cast<int>((integer >> 16) & 0xff), "IntPart3");
32 if (bytes > 3) Put(static_cast<int>((integer >> 24) & 0xff), "IntPart4");