28 EXPECT_EQ(0, builder1->
Length());
31 for (int32_t
i = 0;
i < 128;
i++) {
35 EXPECT_EQ(128, builder1->
Length());
37 for (int32_t
i = 0;
i < 128;
i++) {
42 for (int32_t
i = 0;
i < 1024;
i++) {
46 EXPECT_EQ(1024, builder1->
Length());
48 for (int32_t
i = 0;
i < 1024;
i++) {
56 auto it1 = maps1.iterator(thread);
61 EXPECT_EQ(1024, it1.Length());
63 for (int32_t
i = 0;
i < 1024;
i++) {
64 EXPECT_EQ(
value, it1.IsObject(
i));
72 EXPECT_EQ(1024, builder1->
Length());
74 EXPECT_EQ(1025, builder1->
Length());
75 builder1->
SetRange(1025, 2048,
false);
76 EXPECT_EQ(2049, builder1->
Length());
77 for (int32_t
i = 0;
i <= 256;
i++) {
80 for (int32_t
i = 257;
i <= 1024;
i++) {
83 for (int32_t
i = 1025;
i <= 2048;
i++) {
89 auto it2 = maps2.iterator(thread);
94 EXPECT_EQ(2049, it2.Length());
95 for (int32_t
i = 0;
i <= 256;
i++) {
98 for (int32_t
i = 257;
i <= 1024;
i++) {
101 for (int32_t
i = 1025;
i <= 2048;
i++) {
109 EXPECT_EQ(747, builder1->
Length());
110 for (int32_t
i = 257;
i < 747; ++
i) {
114 builder1->
Set(800,
false);
115 EXPECT_EQ(801, builder1->
Length());
116 for (int32_t
i = 257;
i < 747; ++
i) {
119 for (int32_t
i = 747;
i < 801; ++
i) {
123 builder1->
Set(900,
true);
124 EXPECT_EQ(901, builder1->
Length());
125 for (int32_t
i = 257;
i < 747; ++
i) {
128 for (int32_t
i = 747;
i < 900; ++
i) {
136 EXPECT_EQ(0, builder1->
Length());
138 builder1->
Set(10000,
false);
139 EXPECT_EQ(10001, builder1->
Length());
140 builder1->
Set(9999,
true);
bool Get(intptr_t bit_offset) const
void Set(intptr_t bit_offset, bool value)
void SetRange(intptr_t min, intptr_t max, bool value)
void SetLength(intptr_t length)
static constexpr uint32_t kTestPcOffset
static constexpr intptr_t kTestSpillSlotBitCount
static CompressedStackMapsPtr MapsFromBuilder(Zone *zone, BitmapBuilder *bmap)
ISOLATE_UNIT_TEST_CASE(StackAllocatedDestruction)