Lines Matching defs:nums
209 constexpr int32_t nums = 1024;
212 auto newData = thread->GetEcmaVM()->GetNativeAreaAllocator()->AllocateBuffer(1 * nums * nums);
214 newData, NativeAreaAllocator::FreeBufferFunc, nullptr, nonMovable, 1 * nums * nums);
216 EXPECT_EQ(newNativeSize - oldNativeSize, 1UL * nums * nums);
217 auto newData1 = thread->GetEcmaVM()->GetNativeAreaAllocator()->AllocateBuffer(1 * nums * nums);
219 newData1, NativeAreaAllocator::FreeBufferFunc, nullptr, false, 1 * nums * nums);
222 EXPECT_TRUE(newNativeSize - oldNativeSize <= 2 * nums * nums); // 2: value
225 auto newData2 = thread->GetEcmaVM()->GetNativeAreaAllocator()->AllocateBuffer(1 * nums);
228 newData2, NativeAreaAllocator::FreeBufferFunc, nullptr, true, 1 * nums * nums);
232 EXPECT_TRUE(newNativeSize - oldNativeSize < 2048 * nums * nums); // 2048: value