Lines Matching refs:arena
76 SkArenaAlloc arena{0}; in DEF_TEST() local
77 REPORTER_ASSERT(r, *arena.make<int>(3) == 3); in DEF_TEST()
78 Foo* foo = arena.make<Foo>(3, 4.0f); in DEF_TEST()
83 arena.makeArrayDefault<int>(10); in DEF_TEST()
84 int* zeroed = arena.makeArray<int>(10); in DEF_TEST()
88 Foo* fooArray = arena.makeArrayDefault<Foo>(10); in DEF_TEST()
93 arena.make<typename std::aligned_storage<10,8>::type>(); in DEF_TEST()
101 SkSTArenaAlloc<64> arena; in DEF_TEST() local
103 REPORTER_ASSERT(r, *arena.make<int>(3) == 3); in DEF_TEST()
104 Foo* foo = arena.make<Foo>(3, 4.0f); in DEF_TEST()
109 arena.makeArrayDefault<int>(10); in DEF_TEST()
110 int* zeroed = arena.makeArray<int>(10); in DEF_TEST()
114 Foo* fooArray = arena.makeArrayDefault<Foo>(10); in DEF_TEST()
119 arena.make<typename std::aligned_storage<10,8>::type>(); in DEF_TEST()
128 SkArenaAlloc arena{block.get(), 1024, 0}; in DEF_TEST() local
130 REPORTER_ASSERT(r, *arena.make<int>(3) == 3); in DEF_TEST()
131 Foo* foo = arena.make<Foo>(3, 4.0f); in DEF_TEST()
136 arena.makeArrayDefault<int>(10); in DEF_TEST()
137 int* zeroed = arena.makeArray<int>(10); in DEF_TEST()
141 Foo* fooArray = arena.makeArrayDefault<Foo>(10); in DEF_TEST()
146 arena.make<typename std::aligned_storage<10,8>::type>(); in DEF_TEST()
152 SkSTArenaAlloc<64> arena; in DEF_TEST() local
153 arena.makeArrayDefault<char>(256); in DEF_TEST()
154 arena.reset(); in DEF_TEST()
155 arena.reset(); in DEF_TEST()
161 SkSTArenaAlloc<64> arena; in DEF_TEST() local
166 uint64_t* temp = arena.makeArrayDefault<uint64_t>(sizeof(Node) / sizeof(Node*)); in DEF_TEST()