Lines Matching defs:newPtr
304 char* newPtr = reinterpret_cast<char*>(partitionAlloc(allocator.root(), kTestAllocSize));
305 EXPECT_EQ(ptr, newPtr);
314 newPtr = reinterpret_cast<char*>(partitionAlloc(allocator.root(), kTestAllocSize));
315 EXPECT_EQ(ptr, newPtr);
444 void* newPtr = partitionReallocGeneric(genericAllocator.root(), ptr, 2);
445 EXPECT_EQ(ptr, newPtr);
446 newPtr = partitionReallocGeneric(genericAllocator.root(), ptr, 1);
447 EXPECT_EQ(ptr, newPtr);
448 newPtr = partitionReallocGeneric(genericAllocator.root(), ptr, WTF::kGenericSmallestBucket);
449 EXPECT_EQ(ptr, newPtr);
452 newPtr = partitionReallocGeneric(genericAllocator.root(), ptr, WTF::kGenericSmallestBucket + 1);
453 EXPECT_NE(newPtr, ptr);
455 char* newCharPtr = static_cast<char*>(newPtr);
472 ptr = newPtr;
473 newPtr = partitionReallocGeneric(genericAllocator.root(), ptr, 1);
474 EXPECT_EQ(newPtr, origPtr);
475 newCharPtr = static_cast<char*>(newPtr);
480 ptr = newPtr;
481 newPtr = partitionReallocGeneric(genericAllocator.root(), ptr, WTF::kGenericMaxBucketed + 1);
482 EXPECT_NE(newPtr, ptr);
483 newCharPtr = static_cast<char*>(newPtr);
488 ptr = newPtr;
489 newPtr = partitionReallocGeneric(genericAllocator.root(), ptr, WTF::kGenericMaxBucketed * 10);
490 newCharPtr = static_cast<char*>(newPtr);
493 ptr = newPtr;
494 newPtr = partitionReallocGeneric(genericAllocator.root(), ptr, WTF::kGenericMaxBucketed * 2);
495 newCharPtr = static_cast<char*>(newPtr);
500 ptr = newPtr;
501 newPtr = partitionReallocGeneric(genericAllocator.root(), ptr, 1);
502 EXPECT_NE(newPtr, ptr);
503 EXPECT_EQ(newPtr, origPtr);
504 newCharPtr = static_cast<char*>(newPtr);
507 partitionFreeGeneric(genericAllocator.root(), newPtr);
556 void* newPtr = partitionAllocGeneric(genericAllocator.root(), size);
557 EXPECT_EQ(ptr3, newPtr);
558 newPtr = partitionAllocGeneric(genericAllocator.root(), size);
559 EXPECT_EQ(ptr2, newPtr);
568 EXPECT_EQ(0, *(reinterpret_cast<char*>(newPtr) + (size - 1)));
570 partitionFreeGeneric(genericAllocator.root(), newPtr);