Lines Matching refs:kLowCapacity
22 static const size_t kLowCapacity = ConstantArrayBuilder::kLowCapacity; member in v8::internal::interpreter::ConstantArrayBuilderTest
30 ConstantArrayBuilderTest::kLowCapacity; member in v8::internal::interpreter::ConstantArrayBuilderTest
48 for (size_t reserved = 1; reserved < kLowCapacity; reserved *= 3) { in TEST_F()
54 for (size_t i = 0; i < 2 * kLowCapacity; i++) { in TEST_F()
57 if (i + reserved < kLowCapacity) { in TEST_F()
58 CHECK_LE(builder.size(), kLowCapacity); in TEST_F()
62 CHECK_GE(builder.size(), kLowCapacity); in TEST_F()
67 CHECK_EQ(builder.size(), 2 * kLowCapacity + reserved); in TEST_F()
71 Handle<Object> empty = builder.At(kLowCapacity - reserved + i); in TEST_F()
76 DCHECK_EQ(reserved + 2 * kLowCapacity, builder.size()); in TEST_F()
78 std::min(reserved, kLowCapacity - reserved); in TEST_F()
82 DCHECK_EQ(reserved + 2 * kLowCapacity, builder.size()); in TEST_F()
87 for (size_t i = 0; i < kLowCapacity - reserved; i++) { in TEST_F()
91 for (size_t i = kLowCapacity; i < 2 * kLowCapacity + reserved; i++) { in TEST_F()
96 size_t index = kLowCapacity - reserved + i; in TEST_F()
107 isolate()->factory()->NewNumberFromSize(2 * kLowCapacity + i); in TEST_F()
109 CHECK_EQ(static_cast<int>(index), kLowCapacity - reserved + i); in TEST_F()
112 CHECK_EQ(builder.size(), 2 * kLowCapacity + reserved); in TEST_F()
118 for (size_t reserved = 1; reserved < kLowCapacity; reserved *= 3) { in TEST_F()
120 for (size_t i = 0; i < kLowCapacity; i++) { in TEST_F()
129 CHECK_EQ(builder.size(), kLowCapacity); in TEST_F()
133 CHECK_EQ(builder.size(), kLowCapacity); in TEST_F()
140 CHECK_EQ(builder.size(), kLowCapacity); in TEST_F()
142 for (size_t i = kLowCapacity; i < kLowCapacity + reserved; i++) { in TEST_F()
172 for (size_t i = 0; i < kLowCapacity; i++) { in TEST_F()
177 for (size_t i = 0; i < kLowCapacity; i++) { in TEST_F()
180 CHECK_EQ(builder.size(), i + kLowCapacity + 1); in TEST_F()
182 for (size_t i = 0; i < kLowCapacity; i++) { in TEST_F()
184 builder.At(i + kLowCapacity)); in TEST_F()
185 CHECK_EQ(builder.size(), 2 * kLowCapacity); in TEST_F()
187 for (size_t i = 0; i < kLowCapacity; i++) { in TEST_F()
188 Handle<Object> original = builder.At(kLowCapacity + i); in TEST_F()
199 for (size_t i = 0; i < kLowCapacity; i++) { in TEST_F()
204 for (size_t i = 0; i < kLowCapacity; i++) { in TEST_F()
207 CHECK_EQ(builder.size(), i + kLowCapacity + 1); in TEST_F()
209 for (size_t i = 0; i < kLowCapacity; i++) { in TEST_F()
211 builder.Insert(builder.At(i + kLowCapacity)); in TEST_F()
212 CHECK_EQ(builder.size(), 2 * kLowCapacity); in TEST_F()
214 for (size_t i = 0; i < kLowCapacity; i++) { in TEST_F()
216 Handle<Object> original = builder.At(kLowCapacity + i); in TEST_F()