Searched refs:typeshape (Results 1 - 9 of 9) sorted by relevance

/fuchsia/zircon/system/utest/fidl-compiler/
H A Dmax_bytes_tests.cpp182 EXPECT_EQ(one_bool->typeshape.Size(), 1);
183 EXPECT_EQ(one_bool->typeshape.MaxOutOfLine(), 0);
187 EXPECT_EQ(two_bools->typeshape.Size(), 2);
188 EXPECT_EQ(two_bools->typeshape.MaxOutOfLine(), 0);
192 EXPECT_EQ(bool_and_u32->typeshape.Size(), 8);
193 EXPECT_EQ(bool_and_u32->typeshape.MaxOutOfLine(), 0);
197 EXPECT_EQ(bool_and_u64->typeshape.Size(), 16);
198 EXPECT_EQ(bool_and_u64->typeshape.MaxOutOfLine(), 0);
211 EXPECT_EQ(one_bool->typeshape.Size(), 16);
212 EXPECT_EQ(one_bool->typeshape
[all...]
H A Dmax_handle_tests.cpp118 EXPECT_EQ(one_bool->typeshape.MaxHandles(), 0);
122 EXPECT_EQ(one_handle->typeshape.MaxHandles(), 1);
135 EXPECT_EQ(one_bool->typeshape.MaxHandles(), 0);
139 EXPECT_EQ(one_handle->typeshape.MaxHandles(), 1);
152 EXPECT_EQ(handle_array->typeshape.MaxHandles(), 8);
156 EXPECT_EQ(table_with_handle_array->typeshape.MaxHandles(), 8);
160 EXPECT_EQ(nullable_handle_array->typeshape.MaxHandles(), 8);
164 EXPECT_EQ(table_with_nullable_handle_array->typeshape.MaxHandles(), 8);
177 EXPECT_EQ(handle_vector->typeshape.MaxHandles(), 8);
181 EXPECT_EQ(table_with_handle_vector->typeshape
[all...]
/fuchsia/zircon/system/host/fidl/include/fidl/
H A Dtype_shape.h36 explicit FieldShape(TypeShape typeshape, uint32_t offset = 0u) argument
37 : typeshape_(typeshape), offset_(offset) {}
51 void SetTypeshape(TypeShape typeshape) { typeshape_ = typeshape; } argument
H A Dc_generator.h52 const TypeShape& typeshape; member in struct:fidl::CGenerator::NamedMessage
H A Dflat_ast.h382 TypeShape typeshape; member in struct:fidl::flat::Enum
402 TypeShape typeshape; member in struct:fidl::flat::Interface::Method::Message
455 TypeShape typeshape; member in struct:fidl::flat::Struct
482 TypeShape typeshape; member in struct:fidl::flat::Table::Member::Used
492 TypeShape typeshape; member in struct:fidl::flat::Table
510 TypeShape typeshape; member in struct:fidl::flat::Union
/fuchsia/zircon/system/host/fidl/lib/
H A Djson_generator.cpp387 GenerateObjectMember("maybe_request_size", value.maybe_request->typeshape.Size());
389 value.maybe_request->typeshape.Alignment());
394 GenerateObjectMember("maybe_response_size", value.maybe_response->typeshape.Size());
396 value.maybe_response->typeshape.Alignment());
417 GenerateObjectMember("size", value.typeshape.Size());
418 GenerateObjectMember("alignment", value.typeshape.Alignment());
419 GenerateObjectMember("max_handles", value.typeshape.MaxHandles());
444 GenerateObjectMember("size", value.typeshape.Size());
445 GenerateObjectMember("alignment", value.typeshape.Alignment());
446 GenerateObjectMember("max_handles", value.typeshape
[all...]
H A Dflat_ast.cpp136 TypeShape typeshape = field->Typeshape(); local
137 alignment = std::max(alignment, typeshape.Alignment());
138 size = AlignTo(size, typeshape.Alignment());
140 size += typeshape.Size();
141 depth = std::max(depth, typeshape.Depth());
142 max_handles = ClampedAdd(max_handles, typeshape.MaxHandles());
143 max_out_of_line = ClampedAdd(max_out_of_line, typeshape.MaxOutOfLine());
1310 TypeShape typeshape; local
1311 if (!CompileType(const_declaration->type.get(), &typeshape)) {
1332 enum_declaration->typeshape
1682 TypeShape typeshape; local
[all...]
H A Dc_generator.cpp674 method.maybe_request->parameters, method.maybe_request->typeshape});
684 method.maybe_response->typeshape});
691 method.maybe_response->typeshape});
891 size_t hcount = method_info.request->typeshape.MaxHandles();
994 hcount = method_info.response->typeshape.MaxHandles();
1205 size_t hcount = method_info.response->typeshape.MaxHandles();
H A Dtables_generator.cpp611 message.typeshape.Size(), std::move(message_qname)));
633 table_decl->typeshape.Size(),
644 struct_decl->typeshape.Size(),
655 union_decl->membershape.Offset(), union_decl->typeshape.Size(),

Completed in 95 milliseconds