Lines Matching refs:element
176 TypeShape PointerTypeShape(TypeShape element, uint32_t max_element_count = 1u) {
178 // computed the TypeShape for the element we're pointing to. In that case,
187 if (element.Size() > 0 && element.Depth() < std::numeric_limits<uint32_t>::max())
188 depth = ClampedAdd(element.Depth(), 1);
190 // The element(s) will be stored out-of-line.
191 uint32_t elements_size = ClampedMultiply(element.Size(), max_element_count);
195 uint32_t elements_out_of_line = ClampedMultiply(element.MaxOutOfLine(), max_element_count);
197 uint32_t max_handles = ClampedMultiply(element.MaxHandles(), max_element_count);
234 TypeShape ArrayTypeShape(TypeShape element, uint32_t count) {
235 return TypeShape(element.Size() * count,
236 element.Alignment(),
237 element.Depth(),
238 ClampedMultiply(element.MaxHandles(), count));
241 TypeShape VectorTypeShape(TypeShape element, uint32_t max_element_count) {
243 auto data = FieldShape(PointerTypeShape(element, max_element_count));
548 return Fail(location, "Unable to parse array element count");
1637 // All we need from the element typeshape is the maximum number of handles.