/src/harfbuzz/src/hb-vector.hh
Line | Count | Source |
1 | | /* |
2 | | * Copyright © 2017,2018 Google, Inc. |
3 | | * |
4 | | * This is part of HarfBuzz, a text shaping library. |
5 | | * |
6 | | * Permission is hereby granted, without written agreement and without |
7 | | * license or royalty fees, to use, copy, modify, and distribute this |
8 | | * software and its documentation for any purpose, provided that the |
9 | | * above copyright notice and the following two paragraphs appear in |
10 | | * all copies of this software. |
11 | | * |
12 | | * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR |
13 | | * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES |
14 | | * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN |
15 | | * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
16 | | * DAMAGE. |
17 | | * |
18 | | * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, |
19 | | * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND |
20 | | * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS |
21 | | * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO |
22 | | * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
23 | | * |
24 | | * Google Author(s): Behdad Esfahbod |
25 | | */ |
26 | | |
27 | | #ifndef HB_VECTOR_HH |
28 | | #define HB_VECTOR_HH |
29 | | |
30 | | #include "hb.hh" |
31 | | #include "hb-array.hh" |
32 | | #include "hb-meta.hh" |
33 | | #include "hb-null.hh" |
34 | | |
35 | | // Change to 1 to force inline vector allocs, to see callsite in malloc-stats tool. |
36 | | #if 0 |
37 | | #define HB_ALWAYS_INLINE_VECTOR_ALLOCS HB_ALWAYS_INLINE |
38 | | #else |
39 | | #define HB_ALWAYS_INLINE_VECTOR_ALLOCS |
40 | | #endif |
41 | | |
42 | | template <typename Type, |
43 | | bool sorted=false> |
44 | | struct hb_vector_t |
45 | | { |
46 | | static constexpr bool realloc_move = true; |
47 | | |
48 | | typedef Type item_t; |
49 | | static constexpr unsigned item_size = hb_static_size (Type); |
50 | | using array_t = typename std::conditional<sorted, hb_sorted_array_t<Type>, hb_array_t<Type>>::type; |
51 | | using c_array_t = typename std::conditional<sorted, hb_sorted_array_t<const Type>, hb_array_t<const Type>>::type; |
52 | | |
53 | 235M | hb_vector_t () = default; hb_vector_t<hb_vector_t<hb_aat_map_t::range_flags_t, true>, false>::hb_vector_t() Line | Count | Source | 53 | 64.8k | hb_vector_t () = default; |
hb_vector_t<hb_aat_map_builder_t::feature_range_t, true>::hb_vector_t() Line | Count | Source | 53 | 55.0k | hb_vector_t () = default; |
hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::hb_vector_t() Line | Count | Source | 53 | 55.0k | hb_vector_t () = default; |
hb_vector_t<hb_set_digest_t, false>::hb_vector_t() Line | Count | Source | 53 | 36.4k | hb_vector_t () = default; |
hb_vector_t<hb_aat_map_t::range_flags_t, true>::hb_vector_t() Line | Count | Source | 53 | 6.21k | hb_vector_t () = default; |
hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::hb_vector_t() Line | Count | Source | 53 | 141k | hb_vector_t () = default; |
hb_vector_t<hb_bit_set_t::page_map_t, true>::hb_vector_t() Line | Count | Source | 53 | 38.3M | hb_vector_t () = default; |
hb_vector_t<hb_bit_page_t, false>::hb_vector_t() Line | Count | Source | 53 | 38.3M | hb_vector_t () = default; |
hb_vector_t<unsigned int, false>::hb_vector_t() Line | Count | Source | 53 | 28.3M | hb_vector_t () = default; |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_event_t, false>::hb_vector_t() hb_vector_t<hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*, false>::hb_vector_t() Line | Count | Source | 53 | 122k | hb_vector_t () = default; |
hb_vector_t<hb_serialize_context_t::object_t*, false>::hb_vector_t() Line | Count | Source | 53 | 122k | hb_vector_t () = default; |
hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>::hb_vector_t() Line | Count | Source | 53 | 9.60k | hb_vector_t () = default; |
hb_vector_t<hb_transform_t<float>, false>::hb_vector_t() Line | Count | Source | 53 | 835k | hb_vector_t () = default; |
hb_vector_t<hb_bounds_t<float>, false>::hb_vector_t() Line | Count | Source | 53 | 1.63M | hb_vector_t () = default; |
Unexecuted instantiation: hb_vector_t<hb_outline_point_t, false>::hb_vector_t() hb_vector_t<hb_atomic_t<OT::SVG::svg_doc_cache_t*>, false>::hb_vector_t() Line | Count | Source | 53 | 64.3k | hb_vector_t () = default; |
hb_vector_t<CFF::op_str_t, false>::hb_vector_t() Line | Count | Source | 53 | 268k | hb_vector_t () = default; |
hb_vector_t<CFF::cff2_font_dict_values_t, false>::hb_vector_t() Line | Count | Source | 53 | 61.5k | hb_vector_t () = default; |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::dict_val_t>, false>::hb_vector_t() Line | Count | Source | 53 | 58.3k | hb_vector_t () = default; |
hb_vector_t<CFF::dict_val_t, false>::hb_vector_t() Line | Count | Source | 53 | 1.84M | hb_vector_t () = default; |
hb_vector_t<CFF::cff1_top_dict_val_t, false>::hb_vector_t() Line | Count | Source | 53 | 99.5k | hb_vector_t () = default; |
hb_vector_t<CFF::cff1_font_dict_values_t, false>::hb_vector_t() Line | Count | Source | 53 | 96.8k | hb_vector_t () = default; |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::dict_val_t>, false>::hb_vector_t() Line | Count | Source | 53 | 56.1k | hb_vector_t () = default; |
hb_vector_t<int, false>::hb_vector_t() Line | Count | Source | 53 | 28.6M | hb_vector_t () = default; |
hb_vector_t<hb_set_t, false>::hb_vector_t() Line | Count | Source | 53 | 35.1k | hb_vector_t () = default; |
hb_vector_t<hb_ot_name_entry_t, false>::hb_vector_t() Line | Count | Source | 53 | 36.3k | hb_vector_t () = default; |
hb_vector_t<hb_ot_map_t::feature_map_t, true>::hb_vector_t() Line | Count | Source | 53 | 55.1k | hb_vector_t () = default; |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::hb_vector_t() Line | Count | Source | 53 | 110k | hb_vector_t () = default; |
hb_vector_t<hb_ot_map_t::stage_map_t, false>::hb_vector_t() Line | Count | Source | 53 | 110k | hb_vector_t () = default; |
hb_vector_t<char, false>::hb_vector_t() Line | Count | Source | 53 | 3.95M | hb_vector_t () = default; |
hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::hb_vector_t() Line | Count | Source | 53 | 55.0k | hb_vector_t () = default; |
hb_vector_t<hb_ot_map_builder_t::stage_info_t, false>::hb_vector_t() Line | Count | Source | 53 | 110k | hb_vector_t () = default; |
hb_vector_t<unsigned char, false>::hb_vector_t() Line | Count | Source | 53 | 1.08M | hb_vector_t () = default; |
hb_vector_t<hb_raster_edge_t, false>::hb_vector_t() Line | Count | Source | 53 | 2.70k | hb_vector_t () = default; |
hb_vector_t<short, false>::hb_vector_t() Line | Count | Source | 53 | 17.4k | hb_vector_t () = default; |
hb_vector_t<hb_vector_t<unsigned int, false>, false>::hb_vector_t() Line | Count | Source | 53 | 2.70k | hb_vector_t () = default; |
hb_vector_t<hb_raster_clip_t, false>::hb_vector_t() Line | Count | Source | 53 | 2.71k | hb_vector_t () = default; |
hb_vector_t<hb_raster_image_t*, false>::hb_vector_t() Line | Count | Source | 53 | 2.71k | hb_vector_t () = default; |
hb_vector_t<hb_color_stop_t, false>::hb_vector_t() Line | Count | Source | 53 | 71.3k | hb_vector_t () = default; |
hb_vector_t<hb_subset_serialize_object_t const*, false>::hb_vector_t() Line | Count | Source | 53 | 3.75k | hb_vector_t () = default; |
hb_vector_t<graph::graph_t::vertex_t, false>::hb_vector_t() Line | Count | Source | 53 | 5.86k | hb_vector_t () = default; |
hb_vector_t<char*, false>::hb_vector_t() Line | Count | Source | 53 | 5.86k | hb_vector_t () = default; |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::hb_vector_t() Line | Count | Source | 53 | 84.3M | hb_vector_t () = default; |
hb_vector_t<bool, false>::hb_vector_t() Line | Count | Source | 53 | 107k | hb_vector_t () = default; |
hb_vector_t<hb_pair_t<long, unsigned int>, false>::hb_vector_t() Line | Count | Source | 53 | 88.2k | hb_vector_t () = default; |
hb_vector_t<hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >, false>::hb_vector_t() Line | Count | Source | 53 | 30.8k | hb_vector_t () = default; |
hb_vector_t<graph::MarkBasePosFormat1::class_info_t, false>::hb_vector_t() Line | Count | Source | 53 | 619 | hb_vector_t () = default; |
hb_vector_t<lookup_size_t, false>::hb_vector_t() Line | Count | Source | 53 | 2.77k | hb_vector_t () = default; |
hb_vector_t<graph::overflow_record_t, false>::hb_vector_t() Line | Count | Source | 53 | 5.49k | hb_vector_t () = default; |
hb_vector_t<hb_gpu_curve_t, false>::hb_vector_t() Line | Count | Source | 53 | 26.9k | hb_vector_t () = default; |
hb_vector_t<hb_gpu_encode_curve_info_t, false>::hb_vector_t() Line | Count | Source | 53 | 26.9k | hb_vector_t () = default; |
hb_vector_t<hb_blob_t*, false>::hb_vector_t() Line | Count | Source | 53 | 14.3k | hb_vector_t () = default; |
hb_vector_t<float, false>::hb_vector_t() Line | Count | Source | 53 | 147k | hb_vector_t () = default; |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::hb_vector_t() Line | Count | Source | 53 | 92.1k | hb_vector_t () = default; |
hb_vector_t<hb_inc_bimap_t, false>::hb_vector_t() Line | Count | Source | 53 | 114k | hb_vector_t () = default; |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::op_str_t>, false>::hb_vector_t() Line | Count | Source | 53 | 40.6k | hb_vector_t () = default; |
hb_vector_t<unsigned int, true>::hb_vector_t() Line | Count | Source | 53 | 68.3k | hb_vector_t () = default; |
hb_vector_t<hb_variation_t, false>::hb_vector_t() Line | Count | Source | 53 | 1.73k | hb_vector_t () = default; |
hb_vector_t<contour_point_t, false>::hb_vector_t() Line | Count | Source | 53 | 1.01M | hb_vector_t () = default; |
hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::hb_vector_t() Line | Count | Source | 53 | 1.45k | hb_vector_t () = default; |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false>, false>::hb_vector_t() Line | Count | Source | 53 | 1.11k | hb_vector_t () = default; |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::hb_vector_t() Line | Count | Source | 53 | 2.14k | hb_vector_t () = default; |
hb_vector_t<hb_vector_t<int, false>, false>::hb_vector_t() Line | Count | Source | 53 | 1.11k | hb_vector_t () = default; |
hb_vector_t<OT::delta_row_encoding_t, false>::hb_vector_t() Line | Count | Source | 53 | 2.48k | hb_vector_t () = default; |
hb_vector_t<OT::tuple_delta_t, false>::hb_vector_t() Line | Count | Source | 53 | 29.7k | hb_vector_t () = default; |
hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::hb_vector_t() Line | Count | Source | 53 | 133k | hb_vector_t () = default; |
hb_vector_t<double, false>::hb_vector_t() Line | Count | Source | 53 | 2.47k | hb_vector_t () = default; |
hb_vector_t<hb_pair_t<double, Triple>, false>::hb_vector_t() Line | Count | Source | 53 | 10.5k | hb_vector_t () = default; |
hb_vector_t<hb_vector_t<int, false> const*, false>::hb_vector_t() Line | Count | Source | 53 | 12.4k | hb_vector_t () = default; |
hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>::hb_vector_t() Line | Count | Source | 53 | 683 | hb_vector_t () = default; |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, bool, hb_vector_t<hb_vector_t<int, false> const*, false> const&)::delta_size_t, false>::hb_vector_t() Line | Count | Source | 53 | 2.28k | hb_vector_t () = default; |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, OT::VarData const*, hb_inc_bimap_t const&, hb_inc_bimap_t const&)::delta_size_t, false>::hb_vector_t() Line | Count | Source | 53 | 23.2k | hb_vector_t () = default; |
hb_vector_t<OT::index_map_subset_plan_t, false>::hb_vector_t() Line | Count | Source | 53 | 1.58k | hb_vector_t () = default; |
hb_vector_t<hb_set_t*, false>::hb_vector_t() Line | Count | Source | 53 | 1.58k | hb_vector_t () = default; |
hb_vector_t<OT::DeltaSetIndexMap const*, false>::hb_vector_t() Line | Count | Source | 53 | 1.58k | hb_vector_t () = default; |
hb_vector_t<hb_vector_t<char, false>, false>::hb_vector_t() Line | Count | Source | 53 | 342 | hb_vector_t () = default; |
hb_vector_t<hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int>, false>::hb_vector_t() Line | Count | Source | 53 | 79 | hb_vector_t () = default; |
hb_vector_t<OT::AxisValueMap, false>::hb_vector_t() Line | Count | Source | 53 | 168 | hb_vector_t () = default; |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::op_str_t>, false>::hb_vector_t() Line | Count | Source | 53 | 3.16k | hb_vector_t () = default; |
hb_vector_t<OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*, false>::hb_vector_t() Line | Count | Source | 53 | 272 | hb_vector_t () = default; |
hb_vector_t<OT::LayerRecord, false>::hb_vector_t() Line | Count | Source | 53 | 295k | hb_vector_t () = default; |
hb_vector_t<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>, false>::hb_vector_t() Line | Count | Source | 53 | 170 | hb_vector_t () = default; |
hb_vector_t<OT::IndexSubtableRecord, false>::hb_vector_t() Line | Count | Source | 53 | 170 | hb_vector_t () = default; |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::hb_vector_t() Line | Count | Source | 53 | 8.01k | hb_vector_t () = default; |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::hb_vector_t() Line | Count | Source | 53 | 4.38k | hb_vector_t () = default; |
hb_vector_t<hb_ot_name_record_ids_t, false>::hb_vector_t() Line | Count | Source | 53 | 2.18k | hb_vector_t () = default; |
hb_vector_t<hb_array_t<unsigned char const>, false>::hb_vector_t() Line | Count | Source | 53 | 1.72k | hb_vector_t () = default; |
hb_vector_t<CFF::code_pair_t, false>::hb_vector_t() Line | Count | Source | 53 | 13.6k | hb_vector_t () = default; |
hb_vector_t<hb_vector_t<unsigned char, false>, false>::hb_vector_t() Line | Count | Source | 53 | 10.6k | hb_vector_t () = default; |
hb_vector_t<hb_vector_t<hb_vector_t<unsigned char, false>, false>, false>::hb_vector_t() Line | Count | Source | 53 | 5.12k | hb_vector_t () = default; |
hb_vector_t<CFF::cff1_font_dict_values_mod_t, false>::hb_vector_t() Line | Count | Source | 53 | 2.74k | hb_vector_t () = default; |
hb_vector_t<CFF::parsed_cs_str_t const*, false>::hb_vector_t() Line | Count | Source | 53 | 3.40k | hb_vector_t () = default; |
hb_vector_t<CFF::subr_remap_t, false>::hb_vector_t() Line | Count | Source | 53 | 3.40k | hb_vector_t () = default; |
hb_vector_t<CFF::parsed_cs_str_t, false>::hb_vector_t() Line | Count | Source | 53 | 17.9k | hb_vector_t () = default; |
hb_vector_t<CFF::parsed_cs_str_vec_t, false>::hb_vector_t() Line | Count | Source | 53 | 3.40k | hb_vector_t () = default; |
hb_vector_t<CFF::parsed_cs_op_t, false>::hb_vector_t() Line | Count | Source | 53 | 1.07M | hb_vector_t () = default; |
hb_vector_t<CFF::cs_command_t, false>::hb_vector_t() Line | Count | Source | 53 | 358 | hb_vector_t () = default; |
hb_vector_t<CFF::number_t, false>::hb_vector_t() Line | Count | Source | 53 | 2.88M | hb_vector_t () = default; |
hb_vector_t<CFF::table_info_t, false>::hb_vector_t() Line | Count | Source | 53 | 1.46k | hb_vector_t () = default; |
hb_vector_t<hb_vector_t<CFF::cs_command_t, false>, false>::hb_vector_t() Line | Count | Source | 53 | 2.38k | hb_vector_t () = default; |
hb_vector_t<hb_vector_buf_t, false>::hb_vector_t() Line | Count | Source | 53 | 55.6k | hb_vector_t () = default; |
hb_vector_t<hb_pdf_obj_t, false>::hb_vector_t() Line | Count | Source | 53 | 11.8k | hb_vector_t () = default; |
|
54 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
55 | 0 | hb_vector_t (std::initializer_list<Type> lst) : hb_vector_t () |
56 | 0 | { |
57 | 0 | alloc (lst.size (), true); |
58 | 0 | for (auto&& item : lst) |
59 | 0 | push (item); |
60 | 0 | } |
61 | | template <typename Iterable, |
62 | | hb_requires (hb_is_iterable (Iterable))> |
63 | 43.5k | explicit hb_vector_t (const Iterable &o) : hb_vector_t () |
64 | 43.5k | { |
65 | 43.5k | extend (o, true); |
66 | 43.5k | } hb-subset-table-layout.cc:_ZN11hb_vector_tIjLb1EEC2I16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_19LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEERKSU_ Line | Count | Source | 63 | 38.6k | explicit hb_vector_t (const Iterable &o) : hb_vector_t () | 64 | 38.6k | { | 65 | 38.6k | extend (o, true); | 66 | 38.6k | } |
hb-subset-table-layout.cc:_ZN11hb_vector_tIjLb0EEC2I16hb_filter_iter_tI15hb_range_iter_tIjjER8hb_map_tRK4$_19LPv0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSA_0EEERKSD_ Line | Count | Source | 63 | 1.59k | explicit hb_vector_t (const Iterable &o) : hb_vector_t () | 64 | 1.59k | { | 65 | 1.59k | extend (o, true); | 66 | 1.59k | } |
hb-subset-table-var.cc:_ZN11hb_vector_tI9hb_pair_tIPKS_IN2OT7HBFixedINS1_7NumTypeILb1EsLj2EEELj14EEELb0EEjELb0EEC2I16hb_filter_iter_tI13hb_map_iter_tISC_I10hb_array_tIN12hb_hashmap_tIS8_jLb0EE6item_tEEMSH_KFbvERK4$_19LPv0EEMSH_KFS9_vEL24hb_function_sortedness_t0ELSO_0EEZNS1_18glyph_variations_tINS3_ILb1EtLj2EEEE21compile_shared_tuplesERK8hb_map_tSZ_EUlRKS9_E_SN_LSO_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSO_0EEERKS15_ Line | Count | Source | 63 | 79 | explicit hb_vector_t (const Iterable &o) : hb_vector_t () | 64 | 79 | { | 65 | 79 | extend (o, true); | 66 | 79 | } |
hb-subset-table-other.cc:_ZN11hb_vector_tI9hb_pair_tIjjELb0EEC2I16hb_filter_iter_tIS4_IS4_I17hb_sorted_array_tIKS1_EZNK2OT4cmap6subsetEP19hb_subset_context_tEUlS1_E_RK4$_19LPv0EERK8hb_set_tRK3$_6LSG_0EEZNS8_19CmapSubtableFormat49serializeISO_TnPN12hb_enable_ifIXsr17hb_is_iterator_ofIT_NSS_6item_tEEE5valueEvE4typeELSG_0EEEvP22hb_serialize_context_tSS_EUlS1_E_SF_LSG_0EETnPNSR_IXsr14hb_is_iterableISS_EE5valueEvE4typeELSG_0EEERKSS_ Line | Count | Source | 63 | 1.82k | explicit hb_vector_t (const Iterable &o) : hb_vector_t () | 64 | 1.82k | { | 65 | 1.82k | extend (o, true); | 66 | 1.82k | } |
Unexecuted instantiation: hb-subset-table-other.cc:_ZN11hb_vector_tI9hb_pair_tIjjELb0EEC2I16hb_filter_iter_tIS4_I17hb_sorted_array_tIKS1_EZNK2OT4cmap6subsetEP19hb_subset_context_tEUlS1_E_RK4$_19LPv0EEZNS8_19CmapSubtableFormat49serializeISH_TnPN12hb_enable_ifIXsr17hb_is_iterator_ofIT_NSL_6item_tEEE5valueEvE4typeELSG_0EEEvP22hb_serialize_context_tSL_EUlS1_E_SF_LSG_0EETnPNSK_IXsr14hb_is_iterableISL_EE5valueEvE4typeELSG_0EEERKSL_ _ZN11hb_vector_tI10hb_array_tIKhELb0EEC2I13hb_map_iter_tIS0_IKjERKN3CFF15CFF1StringIndexEL24hb_function_sortedness_t0ELPv0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSD_0EEERKSG_ Line | Count | Source | 63 | 1.43k | explicit hb_vector_t (const Iterable &o) : hb_vector_t () | 64 | 1.43k | { | 65 | 1.43k | extend (o, true); | 66 | 1.43k | } |
|
67 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
68 | 299k | hb_vector_t (const hb_vector_t &o) : hb_vector_t () |
69 | 299k | { |
70 | 299k | alloc_exact (o.length); |
71 | 299k | if (unlikely (in_error ())) return; |
72 | 299k | copy_array (o.as_array ()); |
73 | 299k | } hb_vector_t<unsigned char, false>::hb_vector_t(hb_vector_t<unsigned char, false> const&) Line | Count | Source | 68 | 60.5k | hb_vector_t (const hb_vector_t &o) : hb_vector_t () | 69 | 60.5k | { | 70 | 60.5k | alloc_exact (o.length); | 71 | 60.5k | if (unlikely (in_error ())) return; | 72 | 60.5k | copy_array (o.as_array ()); | 73 | 60.5k | } |
hb_vector_t<unsigned int, false>::hb_vector_t(hb_vector_t<unsigned int, false> const&) Line | Count | Source | 68 | 22.3k | hb_vector_t (const hb_vector_t &o) : hb_vector_t () | 69 | 22.3k | { | 70 | 22.3k | alloc_exact (o.length); | 71 | 22.3k | if (unlikely (in_error ())) return; | 72 | 22.3k | copy_array (o.as_array ()); | 73 | 22.3k | } |
hb_vector_t<hb_vector_t<int, false> const*, false>::hb_vector_t(hb_vector_t<hb_vector_t<int, false> const*, false> const&) Line | Count | Source | 68 | 1.02k | hb_vector_t (const hb_vector_t &o) : hb_vector_t () | 69 | 1.02k | { | 70 | 1.02k | alloc_exact (o.length); | 71 | 1.02k | if (unlikely (in_error ())) return; | 72 | 1.02k | copy_array (o.as_array ()); | 73 | 1.02k | } |
hb_vector_t<OT::LayerRecord, false>::hb_vector_t(hb_vector_t<OT::LayerRecord, false> const&) Line | Count | Source | 68 | 147k | hb_vector_t (const hb_vector_t &o) : hb_vector_t () | 69 | 147k | { | 70 | 147k | alloc_exact (o.length); | 71 | 147k | if (unlikely (in_error ())) return; | 72 | 147k | copy_array (o.as_array ()); | 73 | 147k | } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::hb_vector_t(hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true> const&) Line | Count | Source | 68 | 7.86k | hb_vector_t (const hb_vector_t &o) : hb_vector_t () | 69 | 7.86k | { | 70 | 7.86k | alloc_exact (o.length); | 71 | 7.86k | if (unlikely (in_error ())) return; | 72 | 7.85k | copy_array (o.as_array ()); | 73 | 7.85k | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_op_t, false>::hb_vector_t(hb_vector_t<CFF::parsed_cs_op_t, false> const&) Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t, false>::hb_vector_t(hb_vector_t<CFF::parsed_cs_str_t, false> const&) hb_vector_t<CFF::number_t, false>::hb_vector_t(hb_vector_t<CFF::number_t, false> const&) Line | Count | Source | 68 | 59.5k | hb_vector_t (const hb_vector_t &o) : hb_vector_t () | 69 | 59.5k | { | 70 | 59.5k | alloc_exact (o.length); | 71 | 59.5k | if (unlikely (in_error ())) return; | 72 | 59.5k | copy_array (o.as_array ()); | 73 | 59.5k | } |
Unexecuted instantiation: hb_vector_t<char, false>::hb_vector_t(hb_vector_t<char, false> const&) |
74 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
75 | | hb_vector_t (array_t o) : hb_vector_t () |
76 | | { |
77 | | alloc_exact (o.length); |
78 | | if (unlikely (in_error ())) return; |
79 | | copy_array (o); |
80 | | } |
81 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
82 | 2.19k | hb_vector_t (c_array_t o) : hb_vector_t () |
83 | 2.19k | { |
84 | 2.19k | alloc_exact (o.length); |
85 | 2.19k | if (unlikely (in_error ())) return; |
86 | 2.16k | copy_array (o); |
87 | 2.16k | } |
88 | | hb_vector_t (hb_vector_t &&o) noexcept |
89 | 1.09M | { |
90 | 1.09M | allocated = o.allocated; |
91 | 1.09M | length = o.length; |
92 | 1.09M | arrayZ = o.arrayZ; |
93 | 1.09M | o.init (); |
94 | 1.09M | } hb_vector_t<unsigned char, false>::hb_vector_t(hb_vector_t<unsigned char, false>&&) Line | Count | Source | 89 | 187k | { | 90 | 187k | allocated = o.allocated; | 91 | 187k | length = o.length; | 92 | 187k | arrayZ = o.arrayZ; | 93 | 187k | o.init (); | 94 | 187k | } |
hb_vector_t<unsigned int, false>::hb_vector_t(hb_vector_t<unsigned int, false>&&) Line | Count | Source | 89 | 3.14k | { | 90 | 3.14k | allocated = o.allocated; | 91 | 3.14k | length = o.length; | 92 | 3.14k | arrayZ = o.arrayZ; | 93 | 3.14k | o.init (); | 94 | 3.14k | } |
hb_vector_t<graph::MarkBasePosFormat1::class_info_t, false>::hb_vector_t(hb_vector_t<graph::MarkBasePosFormat1::class_info_t, false>&&) Line | Count | Source | 89 | 197 | { | 90 | 197 | allocated = o.allocated; | 91 | 197 | length = o.length; | 92 | 197 | arrayZ = o.arrayZ; | 93 | 197 | o.init (); | 94 | 197 | } |
hb_vector_t<OT::tuple_delta_t, false>::hb_vector_t(hb_vector_t<OT::tuple_delta_t, false>&&) Line | Count | Source | 89 | 12.7k | { | 90 | 12.7k | allocated = o.allocated; | 91 | 12.7k | length = o.length; | 92 | 12.7k | arrayZ = o.arrayZ; | 93 | 12.7k | o.init (); | 94 | 12.7k | } |
hb_vector_t<char, false>::hb_vector_t(hb_vector_t<char, false>&&) Line | Count | Source | 89 | 729k | { | 90 | 729k | allocated = o.allocated; | 91 | 729k | length = o.length; | 92 | 729k | arrayZ = o.arrayZ; | 93 | 729k | o.init (); | 94 | 729k | } |
hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>::hb_vector_t(hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>&&) Line | Count | Source | 89 | 683 | { | 90 | 683 | allocated = o.allocated; | 91 | 683 | length = o.length; | 92 | 683 | arrayZ = o.arrayZ; | 93 | 683 | o.init (); | 94 | 683 | } |
hb_vector_t<hb_vector_t<int, false> const*, false>::hb_vector_t(hb_vector_t<hb_vector_t<int, false> const*, false>&&) Line | Count | Source | 89 | 17.5k | { | 90 | 17.5k | allocated = o.allocated; | 91 | 17.5k | length = o.length; | 92 | 17.5k | arrayZ = o.arrayZ; | 93 | 17.5k | o.init (); | 94 | 17.5k | } |
hb_vector_t<OT::LayerRecord, false>::hb_vector_t(hb_vector_t<OT::LayerRecord, false>&&) Line | Count | Source | 89 | 147k | { | 90 | 147k | allocated = o.allocated; | 91 | 147k | length = o.length; | 92 | 147k | arrayZ = o.arrayZ; | 93 | 147k | o.init (); | 94 | 147k | } |
|
95 | 237M | ~hb_vector_t () { fini (); }hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::~hb_vector_t() Line | Count | Source | 95 | 55.0k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_aat_map_builder_t::feature_range_t, true>::~hb_vector_t() Line | Count | Source | 95 | 55.0k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_vector_t<hb_aat_map_t::range_flags_t, true>, false>::~hb_vector_t() Line | Count | Source | 95 | 64.6k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_aat_map_t::range_flags_t, true>::~hb_vector_t() Line | Count | Source | 95 | 6.21k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_set_digest_t, false>::~hb_vector_t() Line | Count | Source | 95 | 36.4k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_bit_page_t, false>::~hb_vector_t() Line | Count | Source | 95 | 38.3M | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_bit_set_t::page_map_t, true>::~hb_vector_t() Line | Count | Source | 95 | 38.3M | ~hb_vector_t () { fini (); } |
hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::~hb_vector_t() Line | Count | Source | 95 | 141k | ~hb_vector_t () { fini (); } |
hb_vector_t<unsigned int, false>::~hb_vector_t() Line | Count | Source | 95 | 28.6M | ~hb_vector_t () { fini (); } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_event_t, false>::~hb_vector_t() hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>::~hb_vector_t() Line | Count | Source | 95 | 9.60k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_serialize_context_t::object_t*, false>::~hb_vector_t() Line | Count | Source | 95 | 122k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*, false>::~hb_vector_t() Line | Count | Source | 95 | 122k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_bounds_t<float>, false>::~hb_vector_t() Line | Count | Source | 95 | 1.65M | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_transform_t<float>, false>::~hb_vector_t() Line | Count | Source | 95 | 841k | ~hb_vector_t () { fini (); } |
Unexecuted instantiation: hb_vector_t<hb_outline_point_t, false>::~hb_vector_t() hb_vector_t<bool, false>::~hb_vector_t() Line | Count | Source | 95 | 113k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_atomic_t<OT::SVG::svg_doc_cache_t*>, false>::~hb_vector_t() Line | Count | Source | 95 | 64.3k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_ot_name_entry_t, false>::~hb_vector_t() Line | Count | Source | 95 | 36.3k | ~hb_vector_t () { fini (); } |
hb_vector_t<contour_point_t, false>::~hb_vector_t() Line | Count | Source | 95 | 1.10M | ~hb_vector_t () { fini (); } |
hb_vector_t<int, false>::~hb_vector_t() Line | Count | Source | 95 | 28.7M | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::op_str_t, false>::~hb_vector_t() Line | Count | Source | 95 | 268k | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::dict_val_t, false>::~hb_vector_t() Line | Count | Source | 95 | 1.84M | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::dict_val_t>, false>::~hb_vector_t() Line | Count | Source | 95 | 56.1k | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::cff1_font_dict_values_t, false>::~hb_vector_t() Line | Count | Source | 95 | 96.8k | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::cff1_top_dict_val_t, false>::~hb_vector_t() Line | Count | Source | 95 | 99.5k | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::dict_val_t>, false>::~hb_vector_t() Line | Count | Source | 95 | 58.3k | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::cff2_font_dict_values_t, false>::~hb_vector_t() Line | Count | Source | 95 | 61.5k | ~hb_vector_t () { fini (); } |
hb_vector_t<float, false>::~hb_vector_t() Line | Count | Source | 95 | 151k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_set_t, false>::~hb_vector_t() Line | Count | Source | 95 | 35.1k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_ot_map_t::stage_map_t, false>::~hb_vector_t() Line | Count | Source | 95 | 109k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::~hb_vector_t() Line | Count | Source | 95 | 109k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_ot_map_t::feature_map_t, true>::~hb_vector_t() Line | Count | Source | 95 | 54.9k | ~hb_vector_t () { fini (); } |
hb_vector_t<char, false>::~hb_vector_t() Line | Count | Source | 95 | 4.68M | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_ot_map_builder_t::stage_info_t, false>::~hb_vector_t() Line | Count | Source | 95 | 110k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::~hb_vector_t() Line | Count | Source | 95 | 55.0k | ~hb_vector_t () { fini (); } |
hb_vector_t<unsigned char, false>::~hb_vector_t() Line | Count | Source | 95 | 1.31M | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_vector_t<unsigned int, false>, false>::~hb_vector_t() Line | Count | Source | 95 | 2.70k | ~hb_vector_t () { fini (); } |
hb_vector_t<short, false>::~hb_vector_t() Line | Count | Source | 95 | 17.4k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_raster_edge_t, false>::~hb_vector_t() Line | Count | Source | 95 | 2.70k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_color_stop_t, false>::~hb_vector_t() Line | Count | Source | 95 | 71.3k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_raster_image_t*, false>::~hb_vector_t() Line | Count | Source | 95 | 2.69k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_raster_clip_t, false>::~hb_vector_t() Line | Count | Source | 95 | 2.69k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_subset_serialize_object_t const*, false>::~hb_vector_t() Line | Count | Source | 95 | 3.75k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::~hb_vector_t() Line | Count | Source | 95 | 84.3M | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_pair_t<long, unsigned int>, false>::~hb_vector_t() Line | Count | Source | 95 | 88.2k | ~hb_vector_t () { fini (); } |
hb_vector_t<graph::MarkBasePosFormat1::class_info_t, false>::~hb_vector_t() Line | Count | Source | 95 | 816 | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >, false>::~hb_vector_t() Line | Count | Source | 95 | 30.8k | ~hb_vector_t () { fini (); } |
hb_vector_t<lookup_size_t, false>::~hb_vector_t() Line | Count | Source | 95 | 2.77k | ~hb_vector_t () { fini (); } |
hb_vector_t<graph::overflow_record_t, false>::~hb_vector_t() Line | Count | Source | 95 | 5.49k | ~hb_vector_t () { fini (); } |
hb_vector_t<char*, false>::~hb_vector_t() Line | Count | Source | 95 | 5.86k | ~hb_vector_t () { fini (); } |
hb_vector_t<graph::graph_t::vertex_t, false>::~hb_vector_t() Line | Count | Source | 95 | 5.86k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_gpu_encode_curve_info_t, false>::~hb_vector_t() Line | Count | Source | 95 | 26.9k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_gpu_curve_t, false>::~hb_vector_t() Line | Count | Source | 95 | 26.9k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_blob_t*, false>::~hb_vector_t() Line | Count | Source | 95 | 14.3k | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::code_pair_t, false>::~hb_vector_t() Line | Count | Source | 95 | 13.6k | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::parsed_cs_str_vec_t, false>::~hb_vector_t() Line | Count | Source | 95 | 3.40k | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::parsed_cs_str_t, false>::~hb_vector_t() Line | Count | Source | 95 | 17.9k | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::parsed_cs_op_t, false>::~hb_vector_t() Line | Count | Source | 95 | 1.07M | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::op_str_t>, false>::~hb_vector_t() Line | Count | Source | 95 | 40.6k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_inc_bimap_t, false>::~hb_vector_t() Line | Count | Source | 95 | 114k | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::op_str_t>, false>::~hb_vector_t() Line | Count | Source | 95 | 3.16k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::~hb_vector_t() Line | Count | Source | 95 | 92.1k | ~hb_vector_t () { fini (); } |
hb_vector_t<unsigned int, true>::~hb_vector_t() Line | Count | Source | 95 | 68.3k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_variation_t, false>::~hb_vector_t() Line | Count | Source | 95 | 1.73k | ~hb_vector_t () { fini (); } |
hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::~hb_vector_t() Line | Count | Source | 95 | 133k | ~hb_vector_t () { fini (); } |
hb_vector_t<OT::tuple_delta_t, false>::~hb_vector_t() Line | Count | Source | 95 | 42.4k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_pair_t<double, Triple>, false>::~hb_vector_t() Line | Count | Source | 95 | 10.5k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::~hb_vector_t() Line | Count | Source | 95 | 2.14k | ~hb_vector_t () { fini (); } |
hb_vector_t<double, false>::~hb_vector_t() Line | Count | Source | 95 | 2.47k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>::~hb_vector_t() Line | Count | Source | 95 | 1.36k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_vector_t<int, false> const*, false>::~hb_vector_t() Line | Count | Source | 95 | 29.9k | ~hb_vector_t () { fini (); } |
hb_vector_t<OT::delta_row_encoding_t, false>::~hb_vector_t() Line | Count | Source | 95 | 2.48k | ~hb_vector_t () { fini (); } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, bool, hb_vector_t<hb_vector_t<int, false> const*, false> const&)::delta_size_t, false>::~hb_vector_t() Line | Count | Source | 95 | 2.28k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_vector_t<int, false>, false>::~hb_vector_t() Line | Count | Source | 95 | 1.11k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false>, false>::~hb_vector_t() Line | Count | Source | 95 | 1.11k | ~hb_vector_t () { fini (); } |
hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::~hb_vector_t() Line | Count | Source | 95 | 1.45k | ~hb_vector_t () { fini (); } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, OT::VarData const*, hb_inc_bimap_t const&, hb_inc_bimap_t const&)::delta_size_t, false>::~hb_vector_t() Line | Count | Source | 95 | 23.2k | ~hb_vector_t () { fini (); } |
hb_vector_t<OT::DeltaSetIndexMap const*, false>::~hb_vector_t() Line | Count | Source | 95 | 1.58k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_set_t*, false>::~hb_vector_t() Line | Count | Source | 95 | 1.58k | ~hb_vector_t () { fini (); } |
hb_vector_t<OT::index_map_subset_plan_t, false>::~hb_vector_t() Line | Count | Source | 95 | 1.58k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int>, false>::~hb_vector_t() Line | Count | Source | 95 | 79 | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_vector_t<char, false>, false>::~hb_vector_t() Line | Count | Source | 95 | 342 | ~hb_vector_t () { fini (); } |
hb_vector_t<OT::AxisValueMap, false>::~hb_vector_t() Line | Count | Source | 95 | 168 | ~hb_vector_t () { fini (); } |
hb_vector_t<OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*, false>::~hb_vector_t() Line | Count | Source | 95 | 272 | ~hb_vector_t () { fini (); } |
hb_vector_t<OT::LayerRecord, false>::~hb_vector_t() Line | Count | Source | 95 | 442k | ~hb_vector_t () { fini (); } |
hb_vector_t<OT::IndexSubtableRecord, false>::~hb_vector_t() Line | Count | Source | 95 | 170 | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>, false>::~hb_vector_t() Line | Count | Source | 95 | 170 | ~hb_vector_t () { fini (); } |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::~hb_vector_t() Line | Count | Source | 95 | 8.01k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::~hb_vector_t() Line | Count | Source | 95 | 4.38k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_ot_name_record_ids_t, false>::~hb_vector_t() Line | Count | Source | 95 | 2.18k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_array_t<unsigned char const>, false>::~hb_vector_t() Line | Count | Source | 95 | 1.72k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_vector_t<unsigned char, false>, false>::~hb_vector_t() Line | Count | Source | 95 | 18.8k | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::subr_remap_t, false>::~hb_vector_t() Line | Count | Source | 95 | 3.40k | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::parsed_cs_str_t const*, false>::~hb_vector_t() Line | Count | Source | 95 | 3.40k | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::cff1_font_dict_values_mod_t, false>::~hb_vector_t() Line | Count | Source | 95 | 2.74k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_vector_t<hb_vector_t<unsigned char, false>, false>, false>::~hb_vector_t() Line | Count | Source | 95 | 5.12k | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::number_t, false>::~hb_vector_t() Line | Count | Source | 95 | 2.88M | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::cs_command_t, false>::~hb_vector_t() Line | Count | Source | 95 | 3.40k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_vector_t<CFF::cs_command_t, false>, false>::~hb_vector_t() Line | Count | Source | 95 | 2.38k | ~hb_vector_t () { fini (); } |
hb_vector_t<CFF::table_info_t, false>::~hb_vector_t() Line | Count | Source | 95 | 1.46k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_vector_buf_t, false>::~hb_vector_t() Line | Count | Source | 95 | 55.6k | ~hb_vector_t () { fini (); } |
hb_vector_t<hb_pdf_obj_t, false>::~hb_vector_t() Line | Count | Source | 95 | 11.8k | ~hb_vector_t () { fini (); } |
|
96 | | |
97 | | template <unsigned n> |
98 | | void |
99 | | set_storage (Type (&array)[n]) |
100 | 11.1M | { set_storage (array, n); } |
101 | | void |
102 | | set_storage (hb_array_t<Type> array) |
103 | | { set_storage (array.arrayZ, array.length); } |
104 | | template <typename T = Type, |
105 | | hb_enable_if (hb_is_trivially_constructible(T) && |
106 | | hb_is_trivially_destructible(T))> |
107 | | void |
108 | | set_storage (Type *array, unsigned n) |
109 | 11.1M | { |
110 | 11.1M | assert (allocated == 0); |
111 | 11.1M | assert (length == 0); |
112 | | |
113 | 11.1M | arrayZ = array; |
114 | 11.1M | length = n; |
115 | 11.1M | } _ZN11hb_vector_tIjLb0EE11set_storageIjTnPN12hb_enable_ifIXaasr3std26is_trivially_constructibleIT_EE5valuesr3std25is_trivially_destructibleIS3_EE5valueEvE4typeELPv0EEEvPjj Line | Count | Source | 109 | 11.1M | { | 110 | 11.1M | assert (allocated == 0); | 111 | 11.1M | assert (length == 0); | 112 | | | 113 | 11.1M | arrayZ = array; | 114 | 11.1M | length = n; | 115 | 11.1M | } |
_ZN11hb_vector_tIhLb0EE11set_storageIhTnPN12hb_enable_ifIXaasr3std26is_trivially_constructibleIT_EE5valuesr3std25is_trivially_destructibleIS3_EE5valueEvE4typeELPv0EEEvPhj Line | Count | Source | 109 | 3.27k | { | 110 | 3.27k | assert (allocated == 0); | 111 | 3.27k | assert (length == 0); | 112 | | | 113 | 3.27k | arrayZ = array; | 114 | 3.27k | length = n; | 115 | 3.27k | } |
|
116 | | |
117 | | template <typename Iterable, |
118 | | hb_requires (hb_is_iterable (Iterable))> |
119 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
120 | | void extend (const Iterable &o, bool exact=false) |
121 | 7.03M | { |
122 | 7.03M | auto iter = hb_iter (o); |
123 | 7.03M | if (iter.is_random_access_iterator || iter.has_fast_len) |
124 | 793k | { |
125 | 793k | if (unlikely (!alloc (length + hb_len (iter), exact))) |
126 | 2.04k | return; |
127 | 791k | unsigned count = hb_len (iter); |
128 | 5.24M | for (unsigned i = 0; i < count; i++) |
129 | 4.45M | push_has_room (*iter++); |
130 | 791k | } |
131 | 11.0M | while (iter) |
132 | 4.10M | { |
133 | 4.10M | if (unlikely (!alloc (length + 1))) |
134 | 47.0k | return; |
135 | 4.05M | unsigned room = allocated - length; |
136 | 92.6M | for (unsigned i = 0; i < room && iter; i++) |
137 | 88.6M | push_has_room (*iter++); |
138 | 4.05M | } |
139 | 7.03M | } Unexecuted instantiation: hb-aat-layout.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_19LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-aat-layout.cc:_ZN11hb_vector_tIjLb0EE6extendI16hb_filter_iter_tI15hb_range_iter_tIjjER8hb_map_tRK4$_19LPv0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSA_0EEEvRKSD_b Unexecuted instantiation: hb-aat-map.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_19LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-common.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_19LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-common.cc:_ZN11hb_vector_tI9hb_pair_tIjjELb0EE6extendI16hb_filter_iter_tIS4_IS4_I17hb_sorted_array_tIKS1_EZNK2OT4cmap6subsetEP19hb_subset_context_tEUlS1_E_RK4$_19LPv0EERK8hb_set_tRK3$_6LSG_0EEZNS8_19CmapSubtableFormat49serializeISO_TnPN12hb_enable_ifIXsr17hb_is_iterator_ofIT_NSS_6item_tEEE5valueEvE4typeELSG_0EEEvP22hb_serialize_context_tSS_EUlS1_E_SF_LSG_0EETnPNSR_IXsr14hb_is_iterableISS_EE5valueEvE4typeELSG_0EEEvRKSS_b Unexecuted instantiation: hb-common.cc:_ZN11hb_vector_tI9hb_pair_tIjjELb0EE6extendI16hb_filter_iter_tIS4_I17hb_sorted_array_tIKS1_EZNK2OT4cmap6subsetEP19hb_subset_context_tEUlS1_E_RK4$_19LPv0EEZNS8_19CmapSubtableFormat49serializeISH_TnPN12hb_enable_ifIXsr17hb_is_iterator_ofIT_NSL_6item_tEEE5valueEvE4typeELSG_0EEEvP22hb_serialize_context_tSL_EUlS1_E_SF_LSG_0EETnPNSK_IXsr14hb_is_iterableISL_EE5valueEvE4typeELSG_0EEEvRKSL_b Unexecuted instantiation: hb-face.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK4$_32L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_18LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-face.cc:_ZN11hb_vector_tI9hb_pair_tIjjELb0EE6extendI16hb_filter_iter_tIS4_IS4_I17hb_sorted_array_tIKS1_EZNK2OT4cmap6subsetEP19hb_subset_context_tEUlS1_E_RK4$_18LPv0EERK8hb_set_tRK3$_6LSG_0EEZNS8_19CmapSubtableFormat49serializeISO_TnPN12hb_enable_ifIXsr17hb_is_iterator_ofIT_NSS_6item_tEEE5valueEvE4typeELSG_0EEEvP22hb_serialize_context_tSS_EUlS1_E_SF_LSG_0EETnPNSR_IXsr14hb_is_iterableISS_EE5valueEvE4typeELSG_0EEEvRKSS_b Unexecuted instantiation: hb-face.cc:_ZN11hb_vector_tI9hb_pair_tIjjELb0EE6extendI16hb_filter_iter_tIS4_I17hb_sorted_array_tIKS1_EZNK2OT4cmap6subsetEP19hb_subset_context_tEUlS1_E_RK4$_18LPv0EEZNS8_19CmapSubtableFormat49serializeISH_TnPN12hb_enable_ifIXsr17hb_is_iterator_ofIT_NSL_6item_tEEE5valueEvE4typeELSG_0EEEvP22hb_serialize_context_tSL_EUlS1_E_SF_LSG_0EETnPNSK_IXsr14hb_is_iterableISL_EE5valueEvE4typeELSG_0EEEvRKSL_b Unexecuted instantiation: hb-font.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK4$_32L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_18LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-ot-color.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK4$_30L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_18LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-ot-face.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_19LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-ot-face.cc:_ZN11hb_vector_tI9hb_pair_tIjjELb0EE6extendI16hb_filter_iter_tIS4_IS4_I17hb_sorted_array_tIKS1_EZNK2OT4cmap6subsetEP19hb_subset_context_tEUlS1_E_RK4$_19LPv0EERK8hb_set_tRK3$_6LSG_0EEZNS8_19CmapSubtableFormat49serializeISO_TnPN12hb_enable_ifIXsr17hb_is_iterator_ofIT_NSS_6item_tEEE5valueEvE4typeELSG_0EEEvP22hb_serialize_context_tSS_EUlS1_E_SF_LSG_0EETnPNSR_IXsr14hb_is_iterableISS_EE5valueEvE4typeELSG_0EEEvRKSS_b Unexecuted instantiation: hb-ot-face.cc:_ZN11hb_vector_tI9hb_pair_tIjjELb0EE6extendI16hb_filter_iter_tIS4_I17hb_sorted_array_tIKS1_EZNK2OT4cmap6subsetEP19hb_subset_context_tEUlS1_E_RK4$_19LPv0EEZNS8_19CmapSubtableFormat49serializeISH_TnPN12hb_enable_ifIXsr17hb_is_iterator_ofIT_NSL_6item_tEEE5valueEvE4typeELSG_0EEEvP22hb_serialize_context_tSL_EUlS1_E_SF_LSG_0EETnPNSK_IXsr14hb_is_iterableISL_EE5valueEvE4typeELSG_0EEEvRKSL_b Unexecuted instantiation: _ZN11hb_vector_tI10hb_array_tIKhELb0EE6extendI13hb_map_iter_tIS0_IKjERKN3CFF15CFF1StringIndexEL24hb_function_sortedness_t0ELPv0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSD_0EEEvRKSG_b Unexecuted instantiation: hb-ot-face.cc:_ZN11hb_vector_tIjLb0EE6extendI16hb_filter_iter_tI15hb_range_iter_tIjjER8hb_map_tRK4$_19LPv0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSA_0EEEvRKSD_b Unexecuted instantiation: hb-ot-font.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK4$_30L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_18LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-ot-font.cc:_ZN11hb_vector_tI9hb_pair_tIjjELb0EE6extendI16hb_filter_iter_tIS4_IS4_I17hb_sorted_array_tIKS1_EZNK2OT4cmap6subsetEP19hb_subset_context_tEUlS1_E_RK4$_18LPv0EERK8hb_set_tRK3$_6LSG_0EEZNS8_19CmapSubtableFormat49serializeISO_TnPN12hb_enable_ifIXsr17hb_is_iterator_ofIT_NSS_6item_tEEE5valueEvE4typeELSG_0EEEvP22hb_serialize_context_tSS_EUlS1_E_SF_LSG_0EETnPNSR_IXsr14hb_is_iterableISS_EE5valueEvE4typeELSG_0EEEvRKSS_b Unexecuted instantiation: hb-ot-font.cc:_ZN11hb_vector_tI9hb_pair_tIjjELb0EE6extendI16hb_filter_iter_tIS4_I17hb_sorted_array_tIKS1_EZNK2OT4cmap6subsetEP19hb_subset_context_tEUlS1_E_RK4$_18LPv0EEZNS8_19CmapSubtableFormat49serializeISH_TnPN12hb_enable_ifIXsr17hb_is_iterator_ofIT_NSL_6item_tEEE5valueEvE4typeELSG_0EEEvP22hb_serialize_context_tSL_EUlS1_E_SF_LSG_0EETnPNSK_IXsr14hb_is_iterableISL_EE5valueEvE4typeELSG_0EEEvRKSL_b _ZN11hb_vector_tIjLb0EE6extendIN2OT11TupleValues6iter_tETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELPv0EEEvRKS6_b Line | Count | Source | 121 | 6.20M | { | 122 | 6.20M | auto iter = hb_iter (o); | 123 | 6.20M | if (iter.is_random_access_iterator || iter.has_fast_len) | 124 | 0 | { | 125 | 0 | if (unlikely (!alloc (length + hb_len (iter), exact))) | 126 | 0 | return; | 127 | 0 | unsigned count = hb_len (iter); | 128 | 0 | for (unsigned i = 0; i < count; i++) | 129 | 0 | push_has_room (*iter++); | 130 | 0 | } | 131 | 10.1M | while (iter) | 132 | 4.01M | { | 133 | 4.01M | if (unlikely (!alloc (length + 1))) | 134 | 46.9k | return; | 135 | 3.97M | unsigned room = allocated - length; | 136 | 32.9M | for (unsigned i = 0; i < room && iter; i++) | 137 | 28.9M | push_has_room (*iter++); | 138 | 3.97M | } | 139 | 6.20M | } |
Unexecuted instantiation: VARC.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_19LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-ot-layout.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_19LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-ot-layout.cc:_ZN11hb_vector_tIjLb0EE6extendI16hb_filter_iter_tI15hb_range_iter_tIjjER8hb_map_tRK4$_19LPv0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSA_0EEEvRKSD_b Unexecuted instantiation: hb-ot-math.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK4$_32L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_18LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-ot-metrics.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK4$_32L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_18LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-ot-shape.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_19LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-ot-var.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK4$_32L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_18LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-ot-cff1-table.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK4$_32L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_18LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-ot-cff2-table.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK4$_32L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_18LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-ot-shaper-arabic.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_19LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-ot-shape-fallback.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_19LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-ot-shape-fallback.cc:_ZN11hb_vector_tIjLb0EE6extendI16hb_filter_iter_tI15hb_range_iter_tIjjER8hb_map_tRK4$_19LPv0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSA_0EEEvRKSD_b _ZN11hb_vector_tIjLb0EE6extendIS0_TnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELPv0EEEvRKS3_b Line | Count | Source | 121 | 792k | { | 122 | 792k | auto iter = hb_iter (o); | 123 | 792k | if (iter.is_random_access_iterator || iter.has_fast_len) | 124 | 792k | { | 125 | 792k | if (unlikely (!alloc (length + hb_len (iter), exact))) | 126 | 2.04k | return; | 127 | 790k | unsigned count = hb_len (iter); | 128 | 5.23M | for (unsigned i = 0; i < count; i++) | 129 | 4.44M | push_has_room (*iter++); | 130 | 790k | } | 131 | 790k | while (iter) | 132 | 0 | { | 133 | 0 | if (unlikely (!alloc (length + 1))) | 134 | 0 | return; | 135 | 0 | unsigned room = allocated - length; | 136 | 0 | for (unsigned i = 0; i < room && iter; i++) | 137 | 0 | push_has_room (*iter++); | 138 | 0 | } | 139 | 790k | } |
Unexecuted instantiation: hb-subset-serialize.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_19LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: gsubgpos-context.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK3$_8LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b _ZN11hb_vector_tI10hb_array_tIKhELb0EE6extendI13hb_map_iter_tIS0_IKjERKN3CFF15CFF1StringIndexEL24hb_function_sortedness_t0ELPv0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSD_0EEEvRKSG_b Line | Count | Source | 121 | 1.43k | { | 122 | 1.43k | auto iter = hb_iter (o); | 123 | 1.43k | if (iter.is_random_access_iterator || iter.has_fast_len) | 124 | 1.43k | { | 125 | 1.43k | if (unlikely (!alloc (length + hb_len (iter), exact))) | 126 | 1 | return; | 127 | 1.43k | unsigned count = hb_len (iter); | 128 | 15.0k | for (unsigned i = 0; i < count; i++) | 129 | 13.6k | push_has_room (*iter++); | 130 | 1.43k | } | 131 | 1.43k | while (iter) | 132 | 0 | { | 133 | 0 | if (unlikely (!alloc (length + 1))) | 134 | 0 | return; | 135 | 0 | unsigned room = allocated - length; | 136 | 0 | for (unsigned i = 0; i < room && iter; i++) | 137 | 0 | push_has_room (*iter++); | 138 | 0 | } | 139 | 1.43k | } |
Unexecuted instantiation: hb-subset.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_22LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-subset.cc:_ZN11hb_vector_tI9hb_pair_tIjjELb0EE6extendI16hb_filter_iter_tIS4_IS4_I17hb_sorted_array_tIKS1_EZNK2OT4cmap6subsetEP19hb_subset_context_tEUlS1_E_RK4$_22LPv0EERK8hb_set_tRK3$_6LSG_0EEZNS8_19CmapSubtableFormat49serializeISO_TnPN12hb_enable_ifIXsr17hb_is_iterator_ofIT_NSS_6item_tEEE5valueEvE4typeELSG_0EEEvP22hb_serialize_context_tSS_EUlS1_E_SF_LSG_0EETnPNSR_IXsr14hb_is_iterableISS_EE5valueEvE4typeELSG_0EEEvRKSS_b Unexecuted instantiation: hb-subset.cc:_ZN11hb_vector_tI9hb_pair_tIjjELb0EE6extendI16hb_filter_iter_tIS4_I17hb_sorted_array_tIKS1_EZNK2OT4cmap6subsetEP19hb_subset_context_tEUlS1_E_RK4$_22LPv0EEZNS8_19CmapSubtableFormat49serializeISH_TnPN12hb_enable_ifIXsr17hb_is_iterator_ofIT_NSL_6item_tEEE5valueEvE4typeELSG_0EEEvP22hb_serialize_context_tSL_EUlS1_E_SF_LSG_0EETnPNSK_IXsr14hb_is_iterableISL_EE5valueEvE4typeELSG_0EEEvRKSL_b Unexecuted instantiation: hb-subset-plan.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK3$_9LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-subset-plan.cc:_ZN11hb_vector_tI9hb_pair_tIjjELb0EE6extendI16hb_filter_iter_tIS4_IS4_I17hb_sorted_array_tIKS1_EZNK2OT4cmap6subsetEP19hb_subset_context_tEUlS1_E_RK3$_9LPv0EERK8hb_set_tRK3$_6LSG_0EEZNS8_19CmapSubtableFormat49serializeISO_TnPN12hb_enable_ifIXsr17hb_is_iterator_ofIT_NSS_6item_tEEE5valueEvE4typeELSG_0EEEvP22hb_serialize_context_tSS_EUlS1_E_SF_LSG_0EETnPNSR_IXsr14hb_is_iterableISS_EE5valueEvE4typeELSG_0EEEvRKSS_b Unexecuted instantiation: hb-subset-plan.cc:_ZN11hb_vector_tI9hb_pair_tIjjELb0EE6extendI16hb_filter_iter_tIS4_I17hb_sorted_array_tIKS1_EZNK2OT4cmap6subsetEP19hb_subset_context_tEUlS1_E_RK3$_9LPv0EEZNS8_19CmapSubtableFormat49serializeISH_TnPN12hb_enable_ifIXsr17hb_is_iterator_ofIT_NSL_6item_tEEE5valueEvE4typeELSG_0EEEvP22hb_serialize_context_tSL_EUlS1_E_SF_LSG_0EETnPNSK_IXsr14hb_is_iterableISL_EE5valueEvE4typeELSG_0EEEvRKSL_b Unexecuted instantiation: hb-subset-plan-layout.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_19LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-subset-plan-layout.cc:_ZN11hb_vector_tIjLb0EE6extendI16hb_filter_iter_tI15hb_range_iter_tIjjER8hb_map_tRK4$_19LPv0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSA_0EEEvRKSD_b Unexecuted instantiation: hb-subset-plan-var.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK3$_9LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b hb-subset-table-layout.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_19LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Line | Count | Source | 121 | 38.6k | { | 122 | 38.6k | auto iter = hb_iter (o); | 123 | 38.6k | if (iter.is_random_access_iterator || iter.has_fast_len) | 124 | 0 | { | 125 | 0 | if (unlikely (!alloc (length + hb_len (iter), exact))) | 126 | 0 | return; | 127 | 0 | unsigned count = hb_len (iter); | 128 | 0 | for (unsigned i = 0; i < count; i++) | 129 | 0 | push_has_room (*iter++); | 130 | 0 | } | 131 | 120k | while (iter) | 132 | 82.2k | { | 133 | 82.2k | if (unlikely (!alloc (length + 1))) | 134 | 21 | return; | 135 | 82.2k | unsigned room = allocated - length; | 136 | 59.7M | for (unsigned i = 0; i < room && iter; i++) | 137 | 59.6M | push_has_room (*iter++); | 138 | 82.2k | } | 139 | 38.6k | } |
hb-subset-table-layout.cc:_ZN11hb_vector_tIjLb0EE6extendI16hb_filter_iter_tI15hb_range_iter_tIjjER8hb_map_tRK4$_19LPv0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSA_0EEEvRKSD_b Line | Count | Source | 121 | 1.59k | { | 122 | 1.59k | auto iter = hb_iter (o); | 123 | 1.59k | if (iter.is_random_access_iterator || iter.has_fast_len) | 124 | 0 | { | 125 | 0 | if (unlikely (!alloc (length + hb_len (iter), exact))) | 126 | 0 | return; | 127 | 0 | unsigned count = hb_len (iter); | 128 | 0 | for (unsigned i = 0; i < count; i++) | 129 | 0 | push_has_room (*iter++); | 130 | 0 | } | 131 | 3.03k | while (iter) | 132 | 1.44k | { | 133 | 1.44k | if (unlikely (!alloc (length + 1))) | 134 | 0 | return; | 135 | 1.44k | unsigned room = allocated - length; | 136 | 7.14k | for (unsigned i = 0; i < room && iter; i++) | 137 | 5.69k | push_has_room (*iter++); | 138 | 1.44k | } | 139 | 1.59k | } |
hb-subset-table-var.cc:_ZN11hb_vector_tI9hb_pair_tIPKS_IN2OT7HBFixedINS1_7NumTypeILb1EsLj2EEELj14EEELb0EEjELb0EE6extendI16hb_filter_iter_tI13hb_map_iter_tISC_I10hb_array_tIN12hb_hashmap_tIS8_jLb0EE6item_tEEMSH_KFbvERK4$_19LPv0EEMSH_KFS9_vEL24hb_function_sortedness_t0ELSO_0EEZNS1_18glyph_variations_tINS3_ILb1EtLj2EEEE21compile_shared_tuplesERK8hb_map_tSZ_EUlRKS9_E_SN_LSO_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSO_0EEEvRKS15_b Line | Count | Source | 121 | 79 | { | 122 | 79 | auto iter = hb_iter (o); | 123 | 79 | if (iter.is_random_access_iterator || iter.has_fast_len) | 124 | 0 | { | 125 | 0 | if (unlikely (!alloc (length + hb_len (iter), exact))) | 126 | 0 | return; | 127 | 0 | unsigned count = hb_len (iter); | 128 | 0 | for (unsigned i = 0; i < count; i++) | 129 | 0 | push_has_room (*iter++); | 130 | 0 | } | 131 | 81 | while (iter) | 132 | 2 | { | 133 | 2 | if (unlikely (!alloc (length + 1))) | 134 | 0 | return; | 135 | 2 | unsigned room = allocated - length; | 136 | 4 | for (unsigned i = 0; i < room && iter; i++) | 137 | 2 | push_has_room (*iter++); | 138 | 2 | } | 139 | 79 | } |
Unexecuted instantiation: hb-subset-table-var.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_19LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-subset-table-cff.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_19LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-subset-table-color.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_19LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b hb-subset-table-other.cc:_ZN11hb_vector_tI9hb_pair_tIjjELb0EE6extendI16hb_filter_iter_tIS4_IS4_I17hb_sorted_array_tIKS1_EZNK2OT4cmap6subsetEP19hb_subset_context_tEUlS1_E_RK4$_19LPv0EERK8hb_set_tRK3$_6LSG_0EEZNS8_19CmapSubtableFormat49serializeISO_TnPN12hb_enable_ifIXsr17hb_is_iterator_ofIT_NSS_6item_tEEE5valueEvE4typeELSG_0EEEvP22hb_serialize_context_tSS_EUlS1_E_SF_LSG_0EETnPNSR_IXsr14hb_is_iterableISS_EE5valueEvE4typeELSG_0EEEvRKSS_b Line | Count | Source | 121 | 1.82k | { | 122 | 1.82k | auto iter = hb_iter (o); | 123 | 1.82k | if (iter.is_random_access_iterator || iter.has_fast_len) | 124 | 0 | { | 125 | 0 | if (unlikely (!alloc (length + hb_len (iter), exact))) | 126 | 0 | return; | 127 | 0 | unsigned count = hb_len (iter); | 128 | 0 | for (unsigned i = 0; i < count; i++) | 129 | 0 | push_has_room (*iter++); | 130 | 0 | } | 131 | 4.36k | while (iter) | 132 | 2.54k | { | 133 | 2.54k | if (unlikely (!alloc (length + 1))) | 134 | 3 | return; | 135 | 2.54k | unsigned room = allocated - length; | 136 | 19.7k | for (unsigned i = 0; i < room && iter; i++) | 137 | 17.2k | push_has_room (*iter++); | 138 | 2.54k | } | 139 | 1.82k | } |
Unexecuted instantiation: hb-subset-table-other.cc:_ZN11hb_vector_tI9hb_pair_tIjjELb0EE6extendI16hb_filter_iter_tIS4_I17hb_sorted_array_tIKS1_EZNK2OT4cmap6subsetEP19hb_subset_context_tEUlS1_E_RK4$_19LPv0EEZNS8_19CmapSubtableFormat49serializeISH_TnPN12hb_enable_ifIXsr17hb_is_iterator_ofIT_NSL_6item_tEEE5valueEvE4typeELSG_0EEEvP22hb_serialize_context_tSL_EUlS1_E_SF_LSG_0EETnPNSK_IXsr14hb_is_iterableISL_EE5valueEvE4typeELSG_0EEEvRKSL_b Unexecuted instantiation: hb-subset-table-other.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK3$_7L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_19LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-subset-cff1.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK4$_32L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_18LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-subset-cff2.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK4$_34L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK3$_8LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b Unexecuted instantiation: hb-subset-cff-common.cc:_ZN11hb_vector_tIjLb1EE6extendI16hb_filter_iter_tI13hb_map_iter_tIS3_I13hb_zip_iter_tI15hb_range_iter_tIjjEN2OT6Layout6Common8Coverage6iter_tEERK4$_32L24hb_function_sortedness_t1ELPv0EER8hb_map_tLSG_1ELSH_0EEZNKSA_6subsetEP19hb_subset_context_tEUljE_RK4$_18LSH_0EETnPN12hb_enable_ifIXsr14hb_is_iterableIT_EE5valueEvE4typeELSH_0EEEvRKSU_b |
140 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
141 | | void extend (array_t o, bool exact=false) |
142 | 11.2M | { |
143 | 11.2M | alloc (length + o.length, exact); |
144 | 11.2M | if (unlikely (in_error ())) return; |
145 | 11.1M | copy_array (o); |
146 | 11.1M | } hb_vector_t<contour_point_t, false>::extend(hb_array_t<contour_point_t>, bool) Line | Count | Source | 142 | 11.0M | { | 143 | 11.0M | alloc (length + o.length, exact); | 144 | 11.0M | if (unlikely (in_error ())) return; | 145 | 10.9M | copy_array (o); | 146 | 10.9M | } |
hb_vector_t<int, false>::extend(hb_array_t<int>, bool) Line | Count | Source | 142 | 188k | { | 143 | 188k | alloc (length + o.length, exact); | 144 | 188k | if (unlikely (in_error ())) return; | 145 | 170k | copy_array (o); | 146 | 170k | } |
|
147 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
148 | | void extend (c_array_t o, bool exact=false) |
149 | 168k | { |
150 | 168k | alloc (length + o.length, exact); |
151 | 168k | if (unlikely (in_error ())) return; |
152 | 161k | copy_array (o); |
153 | 161k | } |
154 | | |
155 | | public: |
156 | | int allocated = 0; /* < 0 means allocation failed. */ |
157 | | unsigned int length = 0; |
158 | | public: |
159 | | Type *arrayZ = nullptr; |
160 | | |
161 | | void init () |
162 | 534M | { |
163 | 534M | allocated = length = 0; |
164 | 534M | arrayZ = nullptr; |
165 | 534M | } hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::init() Line | Count | Source | 162 | 55.0k | { | 163 | 55.0k | allocated = length = 0; | 164 | 55.0k | arrayZ = nullptr; | 165 | 55.0k | } |
hb_vector_t<hb_aat_map_builder_t::feature_range_t, true>::init() Line | Count | Source | 162 | 55.0k | { | 163 | 55.0k | allocated = length = 0; | 164 | 55.0k | arrayZ = nullptr; | 165 | 55.0k | } |
hb_vector_t<hb_bit_set_t::page_map_t, true>::init() Line | Count | Source | 162 | 115M | { | 163 | 115M | allocated = length = 0; | 164 | 115M | arrayZ = nullptr; | 165 | 115M | } |
hb_vector_t<hb_bit_page_t, false>::init() Line | Count | Source | 162 | 115M | { | 163 | 115M | allocated = length = 0; | 164 | 115M | arrayZ = nullptr; | 165 | 115M | } |
hb_vector_t<hb_aat_map_t::range_flags_t, true>::init() Line | Count | Source | 162 | 6.21k | { | 163 | 6.21k | allocated = length = 0; | 164 | 6.21k | arrayZ = nullptr; | 165 | 6.21k | } |
hb_vector_t<hb_vector_t<hb_aat_map_t::range_flags_t, true>, false>::init() Line | Count | Source | 162 | 64.6k | { | 163 | 64.6k | allocated = length = 0; | 164 | 64.6k | arrayZ = nullptr; | 165 | 64.6k | } |
hb_vector_t<hb_set_digest_t, false>::init() Line | Count | Source | 162 | 36.4k | { | 163 | 36.4k | allocated = length = 0; | 164 | 36.4k | arrayZ = nullptr; | 165 | 36.4k | } |
hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::init() Line | Count | Source | 162 | 141k | { | 163 | 141k | allocated = length = 0; | 164 | 141k | arrayZ = nullptr; | 165 | 141k | } |
hb_vector_t<unsigned int, false>::init() Line | Count | Source | 162 | 28.6M | { | 163 | 28.6M | allocated = length = 0; | 164 | 28.6M | arrayZ = nullptr; | 165 | 28.6M | } |
hb_vector_t<hb_user_data_array_t::hb_user_data_item_t, false>::init() Line | Count | Source | 162 | 52.0k | { | 163 | 52.0k | allocated = length = 0; | 164 | 52.0k | arrayZ = nullptr; | 165 | 52.0k | } |
hb_vector_t<hb_ot_map_t::feature_map_t, true>::init() Line | Count | Source | 162 | 110k | { | 163 | 110k | allocated = length = 0; | 164 | 110k | arrayZ = nullptr; | 165 | 110k | } |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::init() Line | Count | Source | 162 | 220k | { | 163 | 220k | allocated = length = 0; | 164 | 220k | arrayZ = nullptr; | 165 | 220k | } |
hb_vector_t<hb_ot_map_t::stage_map_t, false>::init() Line | Count | Source | 162 | 220k | { | 163 | 220k | allocated = length = 0; | 164 | 220k | arrayZ = nullptr; | 165 | 220k | } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::init() Line | Count | Source | 162 | 222M | { | 163 | 222M | allocated = length = 0; | 164 | 222M | arrayZ = nullptr; | 165 | 222M | } |
hb_vector_t<hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*, false>::init() Line | Count | Source | 162 | 122k | { | 163 | 122k | allocated = length = 0; | 164 | 122k | arrayZ = nullptr; | 165 | 122k | } |
hb_vector_t<hb_serialize_context_t::object_t*, false>::init() Line | Count | Source | 162 | 374k | { | 163 | 374k | allocated = length = 0; | 164 | 374k | arrayZ = nullptr; | 165 | 374k | } |
hb_vector_t<hb_transform_t<float>, false>::init() Line | Count | Source | 162 | 841k | { | 163 | 841k | allocated = length = 0; | 164 | 841k | arrayZ = nullptr; | 165 | 841k | } |
hb_vector_t<hb_bounds_t<float>, false>::init() Line | Count | Source | 162 | 1.65M | { | 163 | 1.65M | allocated = length = 0; | 164 | 1.65M | arrayZ = nullptr; | 165 | 1.65M | } |
Unexecuted instantiation: hb_vector_t<hb_outline_point_t, false>::init() hb_vector_t<char, false>::init() Line | Count | Source | 162 | 5.44M | { | 163 | 5.44M | allocated = length = 0; | 164 | 5.44M | arrayZ = nullptr; | 165 | 5.44M | } |
hb_vector_t<bool, false>::init() Line | Count | Source | 162 | 113k | { | 163 | 113k | allocated = length = 0; | 164 | 113k | arrayZ = nullptr; | 165 | 113k | } |
hb_vector_t<float, false>::init() Line | Count | Source | 162 | 156k | { | 163 | 156k | allocated = length = 0; | 164 | 156k | arrayZ = nullptr; | 165 | 156k | } |
hb_vector_t<contour_point_t, false>::init() Line | Count | Source | 162 | 1.10M | { | 163 | 1.10M | allocated = length = 0; | 164 | 1.10M | arrayZ = nullptr; | 165 | 1.10M | } |
hb_vector_t<int, false>::init() Line | Count | Source | 162 | 28.7M | { | 163 | 28.7M | allocated = length = 0; | 164 | 28.7M | arrayZ = nullptr; | 165 | 28.7M | } |
hb_vector_t<hb_set_t, false>::init() Line | Count | Source | 162 | 35.1k | { | 163 | 35.1k | allocated = length = 0; | 164 | 35.1k | arrayZ = nullptr; | 165 | 35.1k | } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_event_t, false>::init() hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::init() Line | Count | Source | 162 | 4.38k | { | 163 | 4.38k | allocated = length = 0; | 164 | 4.38k | arrayZ = nullptr; | 165 | 4.38k | } |
hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>::init() Line | Count | Source | 162 | 9.60k | { | 163 | 9.60k | allocated = length = 0; | 164 | 9.60k | arrayZ = nullptr; | 165 | 9.60k | } |
hb_vector_t<hb_atomic_t<OT::SVG::svg_doc_cache_t*>, false>::init() Line | Count | Source | 162 | 193k | { | 163 | 193k | allocated = length = 0; | 164 | 193k | arrayZ = nullptr; | 165 | 193k | } |
Unexecuted instantiation: hb_vector_t<OT::SVG::svg_defs_entry_t, false>::init() Unexecuted instantiation: hb_vector_t<OT::_hb_svg_cache_impl::glyph_entry_t, false>::init() Unexecuted instantiation: hb_vector_t<OT::_hb_svg_cache_impl::id_entry_t, false>::init() hb_vector_t<hb_ot_name_entry_t, false>::init() Line | Count | Source | 162 | 36.3k | { | 163 | 36.3k | allocated = length = 0; | 164 | 36.3k | arrayZ = nullptr; | 165 | 36.3k | } |
hb_vector_t<OT::cff1::accelerator_t::gname_t, true>::init() Line | Count | Source | 162 | 1.76k | { | 163 | 1.76k | allocated = length = 0; | 164 | 1.76k | arrayZ = nullptr; | 165 | 1.76k | } |
hb_vector_t<CFF::cff1_top_dict_val_t, false>::init() Line | Count | Source | 162 | 396k | { | 163 | 396k | allocated = length = 0; | 164 | 396k | arrayZ = nullptr; | 165 | 396k | } |
hb_vector_t<CFF::op_str_t, false>::init() Line | Count | Source | 162 | 655k | { | 163 | 655k | allocated = length = 0; | 164 | 655k | arrayZ = nullptr; | 165 | 655k | } |
hb_vector_t<CFF::cff1_font_dict_values_t, false>::init() Line | Count | Source | 162 | 378k | { | 163 | 378k | allocated = length = 0; | 164 | 378k | arrayZ = nullptr; | 165 | 378k | } |
hb_vector_t<CFF::dict_val_t, false>::init() Line | Count | Source | 162 | 2.11M | { | 163 | 2.11M | allocated = length = 0; | 164 | 2.11M | arrayZ = nullptr; | 165 | 2.11M | } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::dict_val_t>, false>::init() Line | Count | Source | 162 | 220k | { | 163 | 220k | allocated = length = 0; | 164 | 220k | arrayZ = nullptr; | 165 | 220k | } |
hb_vector_t<CFF::cff2_font_dict_values_t, false>::init() Line | Count | Source | 162 | 239k | { | 163 | 239k | allocated = length = 0; | 164 | 239k | arrayZ = nullptr; | 165 | 239k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::dict_val_t>, false>::init() Line | Count | Source | 162 | 229k | { | 163 | 229k | allocated = length = 0; | 164 | 229k | arrayZ = nullptr; | 165 | 229k | } |
hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::init() Line | Count | Source | 162 | 165k | { | 163 | 165k | allocated = length = 0; | 164 | 165k | arrayZ = nullptr; | 165 | 165k | } |
hb_vector_t<hb_ot_map_builder_t::stage_info_t, false>::init() Line | Count | Source | 162 | 330k | { | 163 | 330k | allocated = length = 0; | 164 | 330k | arrayZ = nullptr; | 165 | 330k | } |
hb_vector_t<unsigned char, false>::init() Line | Count | Source | 162 | 1.49M | { | 163 | 1.49M | allocated = length = 0; | 164 | 1.49M | arrayZ = nullptr; | 165 | 1.49M | } |
hb_vector_t<hb_vector_t<unsigned int, false>, false>::init() Line | Count | Source | 162 | 2.70k | { | 163 | 2.70k | allocated = length = 0; | 164 | 2.70k | arrayZ = nullptr; | 165 | 2.70k | } |
hb_vector_t<short, false>::init() Line | Count | Source | 162 | 17.4k | { | 163 | 17.4k | allocated = length = 0; | 164 | 17.4k | arrayZ = nullptr; | 165 | 17.4k | } |
hb_vector_t<hb_raster_edge_t, false>::init() Line | Count | Source | 162 | 2.70k | { | 163 | 2.70k | allocated = length = 0; | 164 | 2.70k | arrayZ = nullptr; | 165 | 2.70k | } |
hb_vector_t<hb_color_stop_t, false>::init() Line | Count | Source | 162 | 71.3k | { | 163 | 71.3k | allocated = length = 0; | 164 | 71.3k | arrayZ = nullptr; | 165 | 71.3k | } |
hb_vector_t<hb_raster_image_t*, false>::init() Line | Count | Source | 162 | 2.69k | { | 163 | 2.69k | allocated = length = 0; | 164 | 2.69k | arrayZ = nullptr; | 165 | 2.69k | } |
hb_vector_t<hb_raster_clip_t, false>::init() Line | Count | Source | 162 | 2.69k | { | 163 | 2.69k | allocated = length = 0; | 164 | 2.69k | arrayZ = nullptr; | 165 | 2.69k | } |
hb_vector_t<hb_subset_serialize_object_t const*, false>::init() Line | Count | Source | 162 | 3.75k | { | 163 | 3.75k | allocated = length = 0; | 164 | 3.75k | arrayZ = nullptr; | 165 | 3.75k | } |
hb_vector_t<hb_pair_t<long, unsigned int>, false>::init() Line | Count | Source | 162 | 88.2k | { | 163 | 88.2k | allocated = length = 0; | 164 | 88.2k | arrayZ = nullptr; | 165 | 88.2k | } |
hb_vector_t<graph::MarkBasePosFormat1::class_info_t, false>::init() Line | Count | Source | 162 | 1.01k | { | 163 | 1.01k | allocated = length = 0; | 164 | 1.01k | arrayZ = nullptr; | 165 | 1.01k | } |
hb_vector_t<hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >, false>::init() Line | Count | Source | 162 | 30.8k | { | 163 | 30.8k | allocated = length = 0; | 164 | 30.8k | arrayZ = nullptr; | 165 | 30.8k | } |
hb_vector_t<lookup_size_t, false>::init() Line | Count | Source | 162 | 2.77k | { | 163 | 2.77k | allocated = length = 0; | 164 | 2.77k | arrayZ = nullptr; | 165 | 2.77k | } |
hb_vector_t<graph::overflow_record_t, false>::init() Line | Count | Source | 162 | 5.49k | { | 163 | 5.49k | allocated = length = 0; | 164 | 5.49k | arrayZ = nullptr; | 165 | 5.49k | } |
hb_vector_t<char*, false>::init() Line | Count | Source | 162 | 5.86k | { | 163 | 5.86k | allocated = length = 0; | 164 | 5.86k | arrayZ = nullptr; | 165 | 5.86k | } |
hb_vector_t<graph::graph_t::vertex_t, false>::init() Line | Count | Source | 162 | 5.86k | { | 163 | 5.86k | allocated = length = 0; | 164 | 5.86k | arrayZ = nullptr; | 165 | 5.86k | } |
hb_vector_t<hb_gpu_encode_curve_info_t, false>::init() Line | Count | Source | 162 | 26.9k | { | 163 | 26.9k | allocated = length = 0; | 164 | 26.9k | arrayZ = nullptr; | 165 | 26.9k | } |
hb_vector_t<hb_gpu_curve_t, false>::init() Line | Count | Source | 162 | 26.9k | { | 163 | 26.9k | allocated = length = 0; | 164 | 26.9k | arrayZ = nullptr; | 165 | 26.9k | } |
hb_vector_t<hb_blob_t*, false>::init() Line | Count | Source | 162 | 14.3k | { | 163 | 14.3k | allocated = length = 0; | 164 | 14.3k | arrayZ = nullptr; | 165 | 14.3k | } |
hb_vector_t<unsigned int, true>::init() Line | Count | Source | 162 | 68.3k | { | 163 | 68.3k | allocated = length = 0; | 164 | 68.3k | arrayZ = nullptr; | 165 | 68.3k | } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::init() Line | Count | Source | 162 | 129k | { | 163 | 129k | allocated = length = 0; | 164 | 129k | arrayZ = nullptr; | 165 | 129k | } |
hb_vector_t<hb_vector_t<int, false> const*, false>::init() Line | Count | Source | 162 | 47.5k | { | 163 | 47.5k | allocated = length = 0; | 164 | 47.5k | arrayZ = nullptr; | 165 | 47.5k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, bool, hb_vector_t<hb_vector_t<int, false> const*, false> const&)::delta_size_t, false>::init() Line | Count | Source | 162 | 2.28k | { | 163 | 2.28k | allocated = length = 0; | 164 | 2.28k | arrayZ = nullptr; | 165 | 2.28k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, OT::VarData const*, hb_inc_bimap_t const&, hb_inc_bimap_t const&)::delta_size_t, false>::init() Line | Count | Source | 162 | 23.2k | { | 163 | 23.2k | allocated = length = 0; | 164 | 23.2k | arrayZ = nullptr; | 165 | 23.2k | } |
hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::init() Line | Count | Source | 162 | 133k | { | 163 | 133k | allocated = length = 0; | 164 | 133k | arrayZ = nullptr; | 165 | 133k | } |
hb_vector_t<OT::tuple_delta_t, false>::init() Line | Count | Source | 162 | 55.1k | { | 163 | 55.1k | allocated = length = 0; | 164 | 55.1k | arrayZ = nullptr; | 165 | 55.1k | } |
hb_vector_t<double, false>::init() Line | Count | Source | 162 | 2.47k | { | 163 | 2.47k | allocated = length = 0; | 164 | 2.47k | arrayZ = nullptr; | 165 | 2.47k | } |
hb_vector_t<hb_pair_t<double, Triple>, false>::init() Line | Count | Source | 162 | 10.5k | { | 163 | 10.5k | allocated = length = 0; | 164 | 10.5k | arrayZ = nullptr; | 165 | 10.5k | } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::init() Line | Count | Source | 162 | 2.14k | { | 163 | 2.14k | allocated = length = 0; | 164 | 2.14k | arrayZ = nullptr; | 165 | 2.14k | } |
hb_vector_t<OT::delta_row_encoding_t, false>::init() Line | Count | Source | 162 | 2.48k | { | 163 | 2.48k | allocated = length = 0; | 164 | 2.48k | arrayZ = nullptr; | 165 | 2.48k | } |
hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>::init() Line | Count | Source | 162 | 2.04k | { | 163 | 2.04k | allocated = length = 0; | 164 | 2.04k | arrayZ = nullptr; | 165 | 2.04k | } |
hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::init() Line | Count | Source | 162 | 1.45k | { | 163 | 1.45k | allocated = length = 0; | 164 | 1.45k | arrayZ = nullptr; | 165 | 1.45k | } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false>, false>::init() Line | Count | Source | 162 | 1.11k | { | 163 | 1.11k | allocated = length = 0; | 164 | 1.11k | arrayZ = nullptr; | 165 | 1.11k | } |
hb_vector_t<hb_vector_t<int, false>, false>::init() Line | Count | Source | 162 | 1.11k | { | 163 | 1.11k | allocated = length = 0; | 164 | 1.11k | arrayZ = nullptr; | 165 | 1.11k | } |
hb_vector_t<OT::LayerRecord, false>::init() Line | Count | Source | 162 | 589k | { | 163 | 589k | allocated = length = 0; | 164 | 589k | arrayZ = nullptr; | 165 | 589k | } |
hb_vector_t<hb_set_t*, false>::init() Line | Count | Source | 162 | 1.58k | { | 163 | 1.58k | allocated = length = 0; | 164 | 1.58k | arrayZ = nullptr; | 165 | 1.58k | } |
hb_vector_t<hb_inc_bimap_t, false>::init() Line | Count | Source | 162 | 153k | { | 163 | 153k | allocated = length = 0; | 164 | 153k | arrayZ = nullptr; | 165 | 153k | } |
hb_vector_t<OT::index_map_subset_plan_t, false>::init() Line | Count | Source | 162 | 3.17k | { | 163 | 3.17k | allocated = length = 0; | 164 | 3.17k | arrayZ = nullptr; | 165 | 3.17k | } |
hb_vector_t<OT::DeltaSetIndexMap const*, false>::init() Line | Count | Source | 162 | 1.58k | { | 163 | 1.58k | allocated = length = 0; | 164 | 1.58k | arrayZ = nullptr; | 165 | 1.58k | } |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::init() Line | Count | Source | 162 | 8.01k | { | 163 | 8.01k | allocated = length = 0; | 164 | 8.01k | arrayZ = nullptr; | 165 | 8.01k | } |
hb_vector_t<hb_variation_t, false>::init() Line | Count | Source | 162 | 1.73k | { | 163 | 1.73k | allocated = length = 0; | 164 | 1.73k | arrayZ = nullptr; | 165 | 1.73k | } |
hb_vector_t<CFF::number_t, false>::init() Line | Count | Source | 162 | 2.88M | { | 163 | 2.88M | allocated = length = 0; | 164 | 2.88M | arrayZ = nullptr; | 165 | 2.88M | } |
hb_vector_t<CFF::parsed_cs_op_t, false>::init() Line | Count | Source | 162 | 2.15M | { | 163 | 2.15M | allocated = length = 0; | 164 | 2.15M | arrayZ = nullptr; | 165 | 2.15M | } |
hb_vector_t<CFF::parsed_cs_str_t, false>::init() Line | Count | Source | 162 | 17.9k | { | 163 | 17.9k | allocated = length = 0; | 164 | 17.9k | arrayZ = nullptr; | 165 | 17.9k | } |
hb_vector_t<CFF::parsed_cs_str_vec_t, false>::init() Line | Count | Source | 162 | 3.40k | { | 163 | 3.40k | allocated = length = 0; | 164 | 3.40k | arrayZ = nullptr; | 165 | 3.40k | } |
hb_vector_t<CFF::code_pair_t, false>::init() Line | Count | Source | 162 | 13.6k | { | 163 | 13.6k | allocated = length = 0; | 164 | 13.6k | arrayZ = nullptr; | 165 | 13.6k | } |
hb_vector_t<CFF::subr_remap_t, false>::init() Line | Count | Source | 162 | 3.40k | { | 163 | 3.40k | allocated = length = 0; | 164 | 3.40k | arrayZ = nullptr; | 165 | 3.40k | } |
hb_vector_t<hb_array_t<unsigned char const>, false>::init() Line | Count | Source | 162 | 1.72k | { | 163 | 1.72k | allocated = length = 0; | 164 | 1.72k | arrayZ = nullptr; | 165 | 1.72k | } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::op_str_t>, false>::init() Line | Count | Source | 162 | 157k | { | 163 | 157k | allocated = length = 0; | 164 | 157k | arrayZ = nullptr; | 165 | 157k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::op_str_t>, false>::init() Line | Count | Source | 162 | 10.3k | { | 163 | 10.3k | allocated = length = 0; | 164 | 10.3k | arrayZ = nullptr; | 165 | 10.3k | } |
hb_vector_t<hb_ot_name_record_ids_t, false>::init() Line | Count | Source | 162 | 2.18k | { | 163 | 2.18k | allocated = length = 0; | 164 | 2.18k | arrayZ = nullptr; | 165 | 2.18k | } |
hb_vector_t<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>, false>::init() Line | Count | Source | 162 | 170 | { | 163 | 170 | allocated = length = 0; | 164 | 170 | arrayZ = nullptr; | 165 | 170 | } |
hb_vector_t<OT::IndexSubtableRecord, false>::init() Line | Count | Source | 162 | 170 | { | 163 | 170 | allocated = length = 0; | 164 | 170 | arrayZ = nullptr; | 165 | 170 | } |
hb_vector_t<OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*, false>::init() Line | Count | Source | 162 | 272 | { | 163 | 272 | allocated = length = 0; | 164 | 272 | arrayZ = nullptr; | 165 | 272 | } |
hb_vector_t<OT::AxisValueMap, false>::init() Line | Count | Source | 162 | 168 | { | 163 | 168 | allocated = length = 0; | 164 | 168 | arrayZ = nullptr; | 165 | 168 | } |
hb_vector_t<hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int>, false>::init() Line | Count | Source | 162 | 79 | { | 163 | 79 | allocated = length = 0; | 164 | 79 | arrayZ = nullptr; | 165 | 79 | } |
hb_vector_t<hb_vector_t<char, false>, false>::init() Line | Count | Source | 162 | 342 | { | 163 | 342 | allocated = length = 0; | 164 | 342 | arrayZ = nullptr; | 165 | 342 | } |
hb_vector_t<hb_vector_t<unsigned char, false>, false>::init() Line | Count | Source | 162 | 27.0k | { | 163 | 27.0k | allocated = length = 0; | 164 | 27.0k | arrayZ = nullptr; | 165 | 27.0k | } |
hb_vector_t<CFF::parsed_cs_str_t const*, false>::init() Line | Count | Source | 162 | 3.40k | { | 163 | 3.40k | allocated = length = 0; | 164 | 3.40k | arrayZ = nullptr; | 165 | 3.40k | } |
hb_vector_t<CFF::cff1_font_dict_values_mod_t, false>::init() Line | Count | Source | 162 | 2.74k | { | 163 | 2.74k | allocated = length = 0; | 164 | 2.74k | arrayZ = nullptr; | 165 | 2.74k | } |
hb_vector_t<hb_vector_t<hb_vector_t<unsigned char, false>, false>, false>::init() Line | Count | Source | 162 | 5.12k | { | 163 | 5.12k | allocated = length = 0; | 164 | 5.12k | arrayZ = nullptr; | 165 | 5.12k | } |
hb_vector_t<CFF::cs_command_t, false>::init() Line | Count | Source | 162 | 3.40k | { | 163 | 3.40k | allocated = length = 0; | 164 | 3.40k | arrayZ = nullptr; | 165 | 3.40k | } |
hb_vector_t<hb_vector_t<CFF::cs_command_t, false>, false>::init() Line | Count | Source | 162 | 2.38k | { | 163 | 2.38k | allocated = length = 0; | 164 | 2.38k | arrayZ = nullptr; | 165 | 2.38k | } |
hb_vector_t<CFF::table_info_t, false>::init() Line | Count | Source | 162 | 1.46k | { | 163 | 1.46k | allocated = length = 0; | 164 | 1.46k | arrayZ = nullptr; | 165 | 1.46k | } |
hb_vector_t<hb_vector_buf_t, false>::init() Line | Count | Source | 162 | 55.6k | { | 163 | 55.6k | allocated = length = 0; | 164 | 55.6k | arrayZ = nullptr; | 165 | 55.6k | } |
hb_vector_t<hb_pdf_obj_t, false>::init() Line | Count | Source | 162 | 11.8k | { | 163 | 11.8k | allocated = length = 0; | 164 | 11.8k | arrayZ = nullptr; | 165 | 11.8k | } |
|
166 | | void init0 () |
167 | 275k | { |
168 | 275k | } hb_vector_t<hb_ot_map_t::feature_map_t, true>::init0() Line | Count | Source | 167 | 55.0k | { | 168 | 55.0k | } |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::init0() Line | Count | Source | 167 | 110k | { | 168 | 110k | } |
hb_vector_t<hb_ot_map_t::stage_map_t, false>::init0() Line | Count | Source | 167 | 110k | { | 168 | 110k | } |
|
169 | | |
170 | | void fini () |
171 | 453M | { |
172 | 453M | if (is_owned ()) |
173 | 33.4M | { |
174 | 33.4M | shrink_vector (0); |
175 | 33.4M | hb_free (arrayZ); |
176 | 33.4M | } |
177 | 453M | init (); |
178 | 453M | } hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::fini() Line | Count | Source | 171 | 55.0k | { | 172 | 55.0k | if (is_owned ()) | 173 | 0 | { | 174 | 0 | shrink_vector (0); | 175 | 0 | hb_free (arrayZ); | 176 | 0 | } | 177 | 55.0k | init (); | 178 | 55.0k | } |
hb_vector_t<hb_aat_map_builder_t::feature_range_t, true>::fini() Line | Count | Source | 171 | 55.0k | { | 172 | 55.0k | if (is_owned ()) | 173 | 0 | { | 174 | 0 | shrink_vector (0); | 175 | 0 | hb_free (arrayZ); | 176 | 0 | } | 177 | 55.0k | init (); | 178 | 55.0k | } |
hb_vector_t<hb_bit_set_t::page_map_t, true>::fini() Line | Count | Source | 171 | 76.7M | { | 172 | 76.7M | if (is_owned ()) | 173 | 10.9M | { | 174 | 10.9M | shrink_vector (0); | 175 | 10.9M | hb_free (arrayZ); | 176 | 10.9M | } | 177 | 76.7M | init (); | 178 | 76.7M | } |
hb_vector_t<hb_bit_page_t, false>::fini() Line | Count | Source | 171 | 76.7M | { | 172 | 76.7M | if (is_owned ()) | 173 | 10.9M | { | 174 | 10.9M | shrink_vector (0); | 175 | 10.9M | hb_free (arrayZ); | 176 | 10.9M | } | 177 | 76.7M | init (); | 178 | 76.7M | } |
hb_vector_t<hb_vector_t<hb_aat_map_t::range_flags_t, true>, false>::fini() Line | Count | Source | 171 | 64.6k | { | 172 | 64.6k | if (is_owned ()) | 173 | 3.81k | { | 174 | 3.81k | shrink_vector (0); | 175 | 3.81k | hb_free (arrayZ); | 176 | 3.81k | } | 177 | 64.6k | init (); | 178 | 64.6k | } |
hb_vector_t<hb_aat_map_t::range_flags_t, true>::fini() Line | Count | Source | 171 | 6.21k | { | 172 | 6.21k | if (is_owned ()) | 173 | 6.07k | { | 174 | 6.07k | shrink_vector (0); | 175 | 6.07k | hb_free (arrayZ); | 176 | 6.07k | } | 177 | 6.21k | init (); | 178 | 6.21k | } |
hb_vector_t<hb_set_digest_t, false>::fini() Line | Count | Source | 171 | 36.4k | { | 172 | 36.4k | if (is_owned ()) | 173 | 252 | { | 174 | 252 | shrink_vector (0); | 175 | 252 | hb_free (arrayZ); | 176 | 252 | } | 177 | 36.4k | init (); | 178 | 36.4k | } |
hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::fini() Line | Count | Source | 171 | 141k | { | 172 | 141k | if (is_owned ()) | 173 | 2.86k | { | 174 | 2.86k | shrink_vector (0); | 175 | 2.86k | hb_free (arrayZ); | 176 | 2.86k | } | 177 | 141k | init (); | 178 | 141k | } |
hb_vector_t<unsigned int, false>::fini() Line | Count | Source | 171 | 28.6M | { | 172 | 28.6M | if (is_owned ()) | 173 | 1.04M | { | 174 | 1.04M | shrink_vector (0); | 175 | 1.04M | hb_free (arrayZ); | 176 | 1.04M | } | 177 | 28.6M | init (); | 178 | 28.6M | } |
hb_vector_t<hb_user_data_array_t::hb_user_data_item_t, false>::fini() Line | Count | Source | 171 | 26.0k | { | 172 | 26.0k | if (is_owned ()) | 173 | 25.6k | { | 174 | 25.6k | shrink_vector (0); | 175 | 25.6k | hb_free (arrayZ); | 176 | 25.6k | } | 177 | 26.0k | init (); | 178 | 26.0k | } |
hb_vector_t<hb_ot_map_t::feature_map_t, true>::fini() Line | Count | Source | 171 | 110k | { | 172 | 110k | if (is_owned ()) | 173 | 52.9k | { | 174 | 52.9k | shrink_vector (0); | 175 | 52.9k | hb_free (arrayZ); | 176 | 52.9k | } | 177 | 110k | init (); | 178 | 110k | } |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::fini() Line | Count | Source | 171 | 220k | { | 172 | 220k | if (is_owned ()) | 173 | 14.6k | { | 174 | 14.6k | shrink_vector (0); | 175 | 14.6k | hb_free (arrayZ); | 176 | 14.6k | } | 177 | 220k | init (); | 178 | 220k | } |
hb_vector_t<hb_ot_map_t::stage_map_t, false>::fini() Line | Count | Source | 171 | 220k | { | 172 | 220k | if (is_owned ()) | 173 | 107k | { | 174 | 107k | shrink_vector (0); | 175 | 107k | hb_free (arrayZ); | 176 | 107k | } | 177 | 220k | init (); | 178 | 220k | } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::fini() Line | Count | Source | 171 | 222M | { | 172 | 222M | if (is_owned ()) | 173 | 4.61M | { | 174 | 4.61M | shrink_vector (0); | 175 | 4.61M | hb_free (arrayZ); | 176 | 4.61M | } | 177 | 222M | init (); | 178 | 222M | } |
hb_vector_t<hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*, false>::fini() Line | Count | Source | 171 | 122k | { | 172 | 122k | if (is_owned ()) | 173 | 96.4k | { | 174 | 96.4k | shrink_vector (0); | 175 | 96.4k | hb_free (arrayZ); | 176 | 96.4k | } | 177 | 122k | init (); | 178 | 122k | } |
hb_vector_t<hb_serialize_context_t::object_t*, false>::fini() Line | Count | Source | 171 | 374k | { | 172 | 374k | if (is_owned ()) | 173 | 130k | { | 174 | 130k | shrink_vector (0); | 175 | 130k | hb_free (arrayZ); | 176 | 130k | } | 177 | 374k | init (); | 178 | 374k | } |
hb_vector_t<hb_transform_t<float>, false>::fini() Line | Count | Source | 171 | 841k | { | 172 | 841k | if (is_owned ()) | 173 | 792k | { | 174 | 792k | shrink_vector (0); | 175 | 792k | hb_free (arrayZ); | 176 | 792k | } | 177 | 841k | init (); | 178 | 841k | } |
hb_vector_t<hb_bounds_t<float>, false>::fini() Line | Count | Source | 171 | 1.65M | { | 172 | 1.65M | if (is_owned ()) | 173 | 1.58M | { | 174 | 1.58M | shrink_vector (0); | 175 | 1.58M | hb_free (arrayZ); | 176 | 1.58M | } | 177 | 1.65M | init (); | 178 | 1.65M | } |
Unexecuted instantiation: hb_vector_t<hb_outline_point_t, false>::fini() hb_vector_t<char, false>::fini() Line | Count | Source | 171 | 4.68M | { | 172 | 4.68M | if (is_owned ()) | 173 | 1.26M | { | 174 | 1.26M | shrink_vector (0); | 175 | 1.26M | hb_free (arrayZ); | 176 | 1.26M | } | 177 | 4.68M | init (); | 178 | 4.68M | } |
hb_vector_t<bool, false>::fini() Line | Count | Source | 171 | 113k | { | 172 | 113k | if (is_owned ()) | 173 | 56.2k | { | 174 | 56.2k | shrink_vector (0); | 175 | 56.2k | hb_free (arrayZ); | 176 | 56.2k | } | 177 | 113k | init (); | 178 | 113k | } |
hb_vector_t<float, false>::fini() Line | Count | Source | 171 | 154k | { | 172 | 154k | if (is_owned ()) | 173 | 21.5k | { | 174 | 21.5k | shrink_vector (0); | 175 | 21.5k | hb_free (arrayZ); | 176 | 21.5k | } | 177 | 154k | init (); | 178 | 154k | } |
hb_vector_t<contour_point_t, false>::fini() Line | Count | Source | 171 | 1.10M | { | 172 | 1.10M | if (is_owned ()) | 173 | 442k | { | 174 | 442k | shrink_vector (0); | 175 | 442k | hb_free (arrayZ); | 176 | 442k | } | 177 | 1.10M | init (); | 178 | 1.10M | } |
hb_vector_t<int, false>::fini() Line | Count | Source | 171 | 28.7M | { | 172 | 28.7M | if (is_owned ()) | 173 | 369k | { | 174 | 369k | shrink_vector (0); | 175 | 369k | hb_free (arrayZ); | 176 | 369k | } | 177 | 28.7M | init (); | 178 | 28.7M | } |
hb_vector_t<hb_set_t, false>::fini() Line | Count | Source | 171 | 35.1k | { | 172 | 35.1k | if (is_owned ()) | 173 | 7.25k | { | 174 | 7.25k | shrink_vector (0); | 175 | 7.25k | hb_free (arrayZ); | 176 | 7.25k | } | 177 | 35.1k | init (); | 178 | 35.1k | } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_event_t, false>::fini() hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::fini() Line | Count | Source | 171 | 4.38k | { | 172 | 4.38k | if (is_owned ()) | 173 | 3.84k | { | 174 | 3.84k | shrink_vector (0); | 175 | 3.84k | hb_free (arrayZ); | 176 | 3.84k | } | 177 | 4.38k | init (); | 178 | 4.38k | } |
hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>::fini() Line | Count | Source | 171 | 9.60k | { | 172 | 9.60k | if (is_owned ()) | 173 | 9.27k | { | 174 | 9.27k | shrink_vector (0); | 175 | 9.27k | hb_free (arrayZ); | 176 | 9.27k | } | 177 | 9.60k | init (); | 178 | 9.60k | } |
Unexecuted instantiation: hb_vector_t<OT::SVG::svg_defs_entry_t, false>::fini() hb_vector_t<hb_atomic_t<OT::SVG::svg_doc_cache_t*>, false>::fini() Line | Count | Source | 171 | 128k | { | 172 | 128k | if (is_owned ()) | 173 | 971 | { | 174 | 971 | shrink_vector (0); | 175 | 971 | hb_free (arrayZ); | 176 | 971 | } | 177 | 128k | init (); | 178 | 128k | } |
Unexecuted instantiation: hb_vector_t<OT::_hb_svg_cache_impl::id_entry_t, false>::fini() Unexecuted instantiation: hb_vector_t<OT::_hb_svg_cache_impl::glyph_entry_t, false>::fini() hb_vector_t<hb_ot_name_entry_t, false>::fini() Line | Count | Source | 171 | 36.3k | { | 172 | 36.3k | if (is_owned ()) | 173 | 775 | { | 174 | 775 | shrink_vector (0); | 175 | 775 | hb_free (arrayZ); | 176 | 775 | } | 177 | 36.3k | init (); | 178 | 36.3k | } |
hb_vector_t<OT::cff1::accelerator_t::gname_t, true>::fini() Line | Count | Source | 171 | 883 | { | 172 | 883 | if (is_owned ()) | 173 | 883 | { | 174 | 883 | shrink_vector (0); | 175 | 883 | hb_free (arrayZ); | 176 | 883 | } | 177 | 883 | init (); | 178 | 883 | } |
hb_vector_t<CFF::cff1_top_dict_val_t, false>::fini() Line | Count | Source | 171 | 284k | { | 172 | 284k | if (is_owned ()) | 173 | 12.1k | { | 174 | 12.1k | shrink_vector (0); | 175 | 12.1k | hb_free (arrayZ); | 176 | 12.1k | } | 177 | 284k | init (); | 178 | 284k | } |
hb_vector_t<CFF::cff1_font_dict_values_t, false>::fini() Line | Count | Source | 171 | 281k | { | 172 | 281k | if (is_owned ()) | 173 | 1.41k | { | 174 | 1.41k | shrink_vector (0); | 175 | 1.41k | hb_free (arrayZ); | 176 | 1.41k | } | 177 | 281k | init (); | 178 | 281k | } |
hb_vector_t<CFF::op_str_t, false>::fini() Line | Count | Source | 171 | 384k | { | 172 | 384k | if (is_owned ()) | 173 | 62.2k | { | 174 | 62.2k | shrink_vector (0); | 175 | 62.2k | hb_free (arrayZ); | 176 | 62.2k | } | 177 | 384k | init (); | 178 | 384k | } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::dict_val_t>, false>::fini() Line | Count | Source | 171 | 164k | { | 172 | 164k | if (is_owned ()) | 173 | 4.31k | { | 174 | 4.31k | shrink_vector (0); | 175 | 4.31k | hb_free (arrayZ); | 176 | 4.31k | } | 177 | 164k | init (); | 178 | 164k | } |
hb_vector_t<CFF::dict_val_t, false>::fini() Line | Count | Source | 171 | 1.84M | { | 172 | 1.84M | if (is_owned ()) | 173 | 16.5k | { | 174 | 16.5k | shrink_vector (0); | 175 | 16.5k | hb_free (arrayZ); | 176 | 16.5k | } | 177 | 1.84M | init (); | 178 | 1.84M | } |
hb_vector_t<CFF::cff2_font_dict_values_t, false>::fini() Line | Count | Source | 171 | 177k | { | 172 | 177k | if (is_owned ()) | 173 | 5.04k | { | 174 | 5.04k | shrink_vector (0); | 175 | 5.04k | hb_free (arrayZ); | 176 | 5.04k | } | 177 | 177k | init (); | 178 | 177k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::dict_val_t>, false>::fini() Line | Count | Source | 171 | 170k | { | 172 | 170k | if (is_owned ()) | 173 | 2.64k | { | 174 | 2.64k | shrink_vector (0); | 175 | 2.64k | hb_free (arrayZ); | 176 | 2.64k | } | 177 | 170k | init (); | 178 | 170k | } |
hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::fini() Line | Count | Source | 171 | 110k | { | 172 | 110k | if (is_owned ()) | 173 | 54.4k | { | 174 | 54.4k | shrink_vector (0); | 175 | 54.4k | hb_free (arrayZ); | 176 | 54.4k | } | 177 | 110k | init (); | 178 | 110k | } |
hb_vector_t<hb_ot_map_builder_t::stage_info_t, false>::fini() Line | Count | Source | 171 | 220k | { | 172 | 220k | if (is_owned ()) | 173 | 109k | { | 174 | 109k | shrink_vector (0); | 175 | 109k | hb_free (arrayZ); | 176 | 109k | } | 177 | 220k | init (); | 178 | 220k | } |
hb_vector_t<unsigned char, false>::fini() Line | Count | Source | 171 | 1.31M | { | 172 | 1.31M | if (is_owned ()) | 173 | 104k | { | 174 | 104k | shrink_vector (0); | 175 | 104k | hb_free (arrayZ); | 176 | 104k | } | 177 | 1.31M | init (); | 178 | 1.31M | } |
hb_vector_t<hb_vector_t<unsigned int, false>, false>::fini() Line | Count | Source | 171 | 2.70k | { | 172 | 2.70k | if (is_owned ()) | 173 | 963 | { | 174 | 963 | shrink_vector (0); | 175 | 963 | hb_free (arrayZ); | 176 | 963 | } | 177 | 2.70k | init (); | 178 | 2.70k | } |
hb_vector_t<short, false>::fini() Line | Count | Source | 171 | 17.4k | { | 172 | 17.4k | if (is_owned ()) | 173 | 9.19k | { | 174 | 9.19k | shrink_vector (0); | 175 | 9.19k | hb_free (arrayZ); | 176 | 9.19k | } | 177 | 17.4k | init (); | 178 | 17.4k | } |
hb_vector_t<hb_raster_edge_t, false>::fini() Line | Count | Source | 171 | 2.70k | { | 172 | 2.70k | if (is_owned ()) | 173 | 1.00k | { | 174 | 1.00k | shrink_vector (0); | 175 | 1.00k | hb_free (arrayZ); | 176 | 1.00k | } | 177 | 2.70k | init (); | 178 | 2.70k | } |
hb_vector_t<hb_color_stop_t, false>::fini() Line | Count | Source | 171 | 71.3k | { | 172 | 71.3k | if (is_owned ()) | 173 | 54.9k | { | 174 | 54.9k | shrink_vector (0); | 175 | 54.9k | hb_free (arrayZ); | 176 | 54.9k | } | 177 | 71.3k | init (); | 178 | 71.3k | } |
hb_vector_t<hb_raster_image_t*, false>::fini() Line | Count | Source | 171 | 2.69k | { | 172 | 2.69k | if (is_owned ()) | 173 | 1.73k | { | 174 | 1.73k | shrink_vector (0); | 175 | 1.73k | hb_free (arrayZ); | 176 | 1.73k | } | 177 | 2.69k | init (); | 178 | 2.69k | } |
hb_vector_t<hb_raster_clip_t, false>::fini() Line | Count | Source | 171 | 2.69k | { | 172 | 2.69k | if (is_owned ()) | 173 | 1.16k | { | 174 | 1.16k | shrink_vector (0); | 175 | 1.16k | hb_free (arrayZ); | 176 | 1.16k | } | 177 | 2.69k | init (); | 178 | 2.69k | } |
hb_vector_t<hb_subset_serialize_object_t const*, false>::fini() Line | Count | Source | 171 | 3.75k | { | 172 | 3.75k | if (is_owned ()) | 173 | 3.72k | { | 174 | 3.72k | shrink_vector (0); | 175 | 3.72k | hb_free (arrayZ); | 176 | 3.72k | } | 177 | 3.75k | init (); | 178 | 3.75k | } |
hb_vector_t<hb_pair_t<long, unsigned int>, false>::fini() Line | Count | Source | 171 | 88.2k | { | 172 | 88.2k | if (is_owned ()) | 173 | 88.1k | { | 174 | 88.1k | shrink_vector (0); | 175 | 88.1k | hb_free (arrayZ); | 176 | 88.1k | } | 177 | 88.2k | init (); | 178 | 88.2k | } |
hb_vector_t<graph::MarkBasePosFormat1::class_info_t, false>::fini() Line | Count | Source | 171 | 816 | { | 172 | 816 | if (is_owned ()) | 173 | 301 | { | 174 | 301 | shrink_vector (0); | 175 | 301 | hb_free (arrayZ); | 176 | 301 | } | 177 | 816 | init (); | 178 | 816 | } |
hb_vector_t<hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >, false>::fini() Line | Count | Source | 171 | 30.8k | { | 172 | 30.8k | if (is_owned ()) | 173 | 727 | { | 174 | 727 | shrink_vector (0); | 175 | 727 | hb_free (arrayZ); | 176 | 727 | } | 177 | 30.8k | init (); | 178 | 30.8k | } |
hb_vector_t<lookup_size_t, false>::fini() Line | Count | Source | 171 | 2.77k | { | 172 | 2.77k | if (is_owned ()) | 173 | 2.75k | { | 174 | 2.75k | shrink_vector (0); | 175 | 2.75k | hb_free (arrayZ); | 176 | 2.75k | } | 177 | 2.77k | init (); | 178 | 2.77k | } |
hb_vector_t<graph::overflow_record_t, false>::fini() Line | Count | Source | 171 | 5.49k | { | 172 | 5.49k | if (is_owned ()) | 173 | 4.27k | { | 174 | 4.27k | shrink_vector (0); | 175 | 4.27k | hb_free (arrayZ); | 176 | 4.27k | } | 177 | 5.49k | init (); | 178 | 5.49k | } |
hb_vector_t<char*, false>::fini() Line | Count | Source | 171 | 5.86k | { | 172 | 5.86k | if (is_owned ()) | 173 | 2.66k | { | 174 | 2.66k | shrink_vector (0); | 175 | 2.66k | hb_free (arrayZ); | 176 | 2.66k | } | 177 | 5.86k | init (); | 178 | 5.86k | } |
hb_vector_t<graph::graph_t::vertex_t, false>::fini() Line | Count | Source | 171 | 5.86k | { | 172 | 5.86k | if (is_owned ()) | 173 | 5.81k | { | 174 | 5.81k | shrink_vector (0); | 175 | 5.81k | hb_free (arrayZ); | 176 | 5.81k | } | 177 | 5.86k | init (); | 178 | 5.86k | } |
hb_vector_t<hb_gpu_encode_curve_info_t, false>::fini() Line | Count | Source | 171 | 26.9k | { | 172 | 26.9k | if (is_owned ()) | 173 | 7.45k | { | 174 | 7.45k | shrink_vector (0); | 175 | 7.45k | hb_free (arrayZ); | 176 | 7.45k | } | 177 | 26.9k | init (); | 178 | 26.9k | } |
hb_vector_t<hb_gpu_curve_t, false>::fini() Line | Count | Source | 171 | 26.9k | { | 172 | 26.9k | if (is_owned ()) | 173 | 8.88k | { | 174 | 8.88k | shrink_vector (0); | 175 | 8.88k | hb_free (arrayZ); | 176 | 8.88k | } | 177 | 26.9k | init (); | 178 | 26.9k | } |
hb_vector_t<hb_blob_t*, false>::fini() Line | Count | Source | 171 | 14.3k | { | 172 | 14.3k | if (is_owned ()) | 173 | 7.84k | { | 174 | 7.84k | shrink_vector (0); | 175 | 7.84k | hb_free (arrayZ); | 176 | 7.84k | } | 177 | 14.3k | init (); | 178 | 14.3k | } |
hb_vector_t<unsigned int, true>::fini() Line | Count | Source | 171 | 68.3k | { | 172 | 68.3k | if (is_owned ()) | 173 | 52.5k | { | 174 | 52.5k | shrink_vector (0); | 175 | 52.5k | hb_free (arrayZ); | 176 | 52.5k | } | 177 | 68.3k | init (); | 178 | 68.3k | } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::fini() Line | Count | Source | 171 | 92.1k | { | 172 | 92.1k | if (is_owned ()) | 173 | 71.9k | { | 174 | 71.9k | shrink_vector (0); | 175 | 71.9k | hb_free (arrayZ); | 176 | 71.9k | } | 177 | 92.1k | init (); | 178 | 92.1k | } |
hb_vector_t<hb_vector_t<int, false> const*, false>::fini() Line | Count | Source | 171 | 29.9k | { | 172 | 29.9k | if (is_owned ()) | 173 | 6.69k | { | 174 | 6.69k | shrink_vector (0); | 175 | 6.69k | hb_free (arrayZ); | 176 | 6.69k | } | 177 | 29.9k | init (); | 178 | 29.9k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, bool, hb_vector_t<hb_vector_t<int, false> const*, false> const&)::delta_size_t, false>::fini() Line | Count | Source | 171 | 2.28k | { | 172 | 2.28k | if (is_owned ()) | 173 | 2.28k | { | 174 | 2.28k | shrink_vector (0); | 175 | 2.28k | hb_free (arrayZ); | 176 | 2.28k | } | 177 | 2.28k | init (); | 178 | 2.28k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, OT::VarData const*, hb_inc_bimap_t const&, hb_inc_bimap_t const&)::delta_size_t, false>::fini() Line | Count | Source | 171 | 23.2k | { | 172 | 23.2k | if (is_owned ()) | 173 | 21.7k | { | 174 | 21.7k | shrink_vector (0); | 175 | 21.7k | hb_free (arrayZ); | 176 | 21.7k | } | 177 | 23.2k | init (); | 178 | 23.2k | } |
hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::fini() Line | Count | Source | 171 | 133k | { | 172 | 133k | if (is_owned ()) | 173 | 2 | { | 174 | 2 | shrink_vector (0); | 175 | 2 | hb_free (arrayZ); | 176 | 2 | } | 177 | 133k | init (); | 178 | 133k | } |
hb_vector_t<OT::tuple_delta_t, false>::fini() Line | Count | Source | 171 | 42.4k | { | 172 | 42.4k | if (is_owned ()) | 173 | 19.1k | { | 174 | 19.1k | shrink_vector (0); | 175 | 19.1k | hb_free (arrayZ); | 176 | 19.1k | } | 177 | 42.4k | init (); | 178 | 42.4k | } |
hb_vector_t<double, false>::fini() Line | Count | Source | 171 | 2.47k | { | 172 | 2.47k | if (is_owned ()) | 173 | 0 | { | 174 | 0 | shrink_vector (0); | 175 | 0 | hb_free (arrayZ); | 176 | 0 | } | 177 | 2.47k | init (); | 178 | 2.47k | } |
hb_vector_t<hb_pair_t<double, Triple>, false>::fini() Line | Count | Source | 171 | 10.5k | { | 172 | 10.5k | if (is_owned ()) | 173 | 1.20k | { | 174 | 1.20k | shrink_vector (0); | 175 | 1.20k | hb_free (arrayZ); | 176 | 1.20k | } | 177 | 10.5k | init (); | 178 | 10.5k | } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::fini() Line | Count | Source | 171 | 2.14k | { | 172 | 2.14k | if (is_owned ()) | 173 | 1.51k | { | 174 | 1.51k | shrink_vector (0); | 175 | 1.51k | hb_free (arrayZ); | 176 | 1.51k | } | 177 | 2.14k | init (); | 178 | 2.14k | } |
hb_vector_t<OT::delta_row_encoding_t, false>::fini() Line | Count | Source | 171 | 2.48k | { | 172 | 2.48k | if (is_owned ()) | 173 | 2.05k | { | 174 | 2.05k | shrink_vector (0); | 175 | 2.05k | hb_free (arrayZ); | 176 | 2.05k | } | 177 | 2.48k | init (); | 178 | 2.48k | } |
hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>::fini() Line | Count | Source | 171 | 1.36k | { | 172 | 1.36k | if (is_owned ()) | 173 | 461 | { | 174 | 461 | shrink_vector (0); | 175 | 461 | hb_free (arrayZ); | 176 | 461 | } | 177 | 1.36k | init (); | 178 | 1.36k | } |
hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::fini() Line | Count | Source | 171 | 1.45k | { | 172 | 1.45k | if (is_owned ()) | 173 | 1.43k | { | 174 | 1.43k | shrink_vector (0); | 175 | 1.43k | hb_free (arrayZ); | 176 | 1.43k | } | 177 | 1.45k | init (); | 178 | 1.45k | } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false>, false>::fini() Line | Count | Source | 171 | 1.11k | { | 172 | 1.11k | if (is_owned ()) | 173 | 1.07k | { | 174 | 1.07k | shrink_vector (0); | 175 | 1.07k | hb_free (arrayZ); | 176 | 1.07k | } | 177 | 1.11k | init (); | 178 | 1.11k | } |
hb_vector_t<hb_vector_t<int, false>, false>::fini() Line | Count | Source | 171 | 1.11k | { | 172 | 1.11k | if (is_owned ()) | 173 | 688 | { | 174 | 688 | shrink_vector (0); | 175 | 688 | hb_free (arrayZ); | 176 | 688 | } | 177 | 1.11k | init (); | 178 | 1.11k | } |
hb_vector_t<OT::LayerRecord, false>::fini() Line | Count | Source | 171 | 442k | { | 172 | 442k | if (is_owned ()) | 173 | 5.03k | { | 174 | 5.03k | shrink_vector (0); | 175 | 5.03k | hb_free (arrayZ); | 176 | 5.03k | } | 177 | 442k | init (); | 178 | 442k | } |
hb_vector_t<hb_set_t*, false>::fini() Line | Count | Source | 171 | 1.58k | { | 172 | 1.58k | if (is_owned ()) | 173 | 1.53k | { | 174 | 1.53k | shrink_vector (0); | 175 | 1.53k | hb_free (arrayZ); | 176 | 1.53k | } | 177 | 1.58k | init (); | 178 | 1.58k | } |
hb_vector_t<hb_inc_bimap_t, false>::fini() Line | Count | Source | 171 | 115k | { | 172 | 115k | if (is_owned ()) | 173 | 3.95k | { | 174 | 3.95k | shrink_vector (0); | 175 | 3.95k | hb_free (arrayZ); | 176 | 3.95k | } | 177 | 115k | init (); | 178 | 115k | } |
hb_vector_t<OT::index_map_subset_plan_t, false>::fini() Line | Count | Source | 171 | 3.17k | { | 172 | 3.17k | if (is_owned ()) | 173 | 1.58k | { | 174 | 1.58k | shrink_vector (0); | 175 | 1.58k | hb_free (arrayZ); | 176 | 1.58k | } | 177 | 3.17k | init (); | 178 | 3.17k | } |
hb_vector_t<OT::DeltaSetIndexMap const*, false>::fini() Line | Count | Source | 171 | 1.58k | { | 172 | 1.58k | if (is_owned ()) | 173 | 1.58k | { | 174 | 1.58k | shrink_vector (0); | 175 | 1.58k | hb_free (arrayZ); | 176 | 1.58k | } | 177 | 1.58k | init (); | 178 | 1.58k | } |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::fini() Line | Count | Source | 171 | 8.01k | { | 172 | 8.01k | if (is_owned ()) | 173 | 8.00k | { | 174 | 8.00k | shrink_vector (0); | 175 | 8.00k | hb_free (arrayZ); | 176 | 8.00k | } | 177 | 8.01k | init (); | 178 | 8.01k | } |
hb_vector_t<hb_variation_t, false>::fini() Line | Count | Source | 171 | 1.73k | { | 172 | 1.73k | if (is_owned ()) | 173 | 1.73k | { | 174 | 1.73k | shrink_vector (0); | 175 | 1.73k | hb_free (arrayZ); | 176 | 1.73k | } | 177 | 1.73k | init (); | 178 | 1.73k | } |
hb_vector_t<CFF::number_t, false>::fini() Line | Count | Source | 171 | 2.88M | { | 172 | 2.88M | if (is_owned ()) | 173 | 92.6k | { | 174 | 92.6k | shrink_vector (0); | 175 | 92.6k | hb_free (arrayZ); | 176 | 92.6k | } | 177 | 2.88M | init (); | 178 | 2.88M | } |
hb_vector_t<CFF::parsed_cs_op_t, false>::fini() Line | Count | Source | 171 | 1.07M | { | 172 | 1.07M | if (is_owned ()) | 173 | 16.1k | { | 174 | 16.1k | shrink_vector (0); | 175 | 16.1k | hb_free (arrayZ); | 176 | 16.1k | } | 177 | 1.07M | init (); | 178 | 1.07M | } |
hb_vector_t<CFF::parsed_cs_str_t, false>::fini() Line | Count | Source | 171 | 17.9k | { | 172 | 17.9k | if (is_owned ()) | 173 | 6.02k | { | 174 | 6.02k | shrink_vector (0); | 175 | 6.02k | hb_free (arrayZ); | 176 | 6.02k | } | 177 | 17.9k | init (); | 178 | 17.9k | } |
hb_vector_t<CFF::parsed_cs_str_vec_t, false>::fini() Line | Count | Source | 171 | 3.40k | { | 172 | 3.40k | if (is_owned ()) | 173 | 3.38k | { | 174 | 3.38k | shrink_vector (0); | 175 | 3.38k | hb_free (arrayZ); | 176 | 3.38k | } | 177 | 3.40k | init (); | 178 | 3.40k | } |
hb_vector_t<CFF::code_pair_t, false>::fini() Line | Count | Source | 171 | 13.6k | { | 172 | 13.6k | if (is_owned ()) | 173 | 2.38k | { | 174 | 2.38k | shrink_vector (0); | 175 | 2.38k | hb_free (arrayZ); | 176 | 2.38k | } | 177 | 13.6k | init (); | 178 | 13.6k | } |
hb_vector_t<CFF::subr_remap_t, false>::fini() Line | Count | Source | 171 | 3.40k | { | 172 | 3.40k | if (is_owned ()) | 173 | 3.37k | { | 174 | 3.37k | shrink_vector (0); | 175 | 3.37k | hb_free (arrayZ); | 176 | 3.37k | } | 177 | 3.40k | init (); | 178 | 3.40k | } |
hb_vector_t<hb_array_t<unsigned char const>, false>::fini() Line | Count | Source | 171 | 1.72k | { | 172 | 1.72k | if (is_owned ()) | 173 | 1.72k | { | 174 | 1.72k | shrink_vector (0); | 175 | 1.72k | hb_free (arrayZ); | 176 | 1.72k | } | 177 | 1.72k | init (); | 178 | 1.72k | } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::op_str_t>, false>::fini() Line | Count | Source | 171 | 117k | { | 172 | 117k | if (is_owned ()) | 173 | 4.95k | { | 174 | 4.95k | shrink_vector (0); | 175 | 4.95k | hb_free (arrayZ); | 176 | 4.95k | } | 177 | 117k | init (); | 178 | 117k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::op_str_t>, false>::fini() Line | Count | Source | 171 | 7.17k | { | 172 | 7.17k | if (is_owned ()) | 173 | 2.46k | { | 174 | 2.46k | shrink_vector (0); | 175 | 2.46k | hb_free (arrayZ); | 176 | 2.46k | } | 177 | 7.17k | init (); | 178 | 7.17k | } |
hb_vector_t<hb_ot_name_record_ids_t, false>::fini() Line | Count | Source | 171 | 2.18k | { | 172 | 2.18k | if (is_owned ()) | 173 | 0 | { | 174 | 0 | shrink_vector (0); | 175 | 0 | hb_free (arrayZ); | 176 | 0 | } | 177 | 2.18k | init (); | 178 | 2.18k | } |
hb_vector_t<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>, false>::fini() Line | Count | Source | 171 | 170 | { | 172 | 170 | if (is_owned ()) | 173 | 90 | { | 174 | 90 | shrink_vector (0); | 175 | 90 | hb_free (arrayZ); | 176 | 90 | } | 177 | 170 | init (); | 178 | 170 | } |
hb_vector_t<OT::IndexSubtableRecord, false>::fini() Line | Count | Source | 171 | 170 | { | 172 | 170 | if (is_owned ()) | 173 | 90 | { | 174 | 90 | shrink_vector (0); | 175 | 90 | hb_free (arrayZ); | 176 | 90 | } | 177 | 170 | init (); | 178 | 170 | } |
hb_vector_t<OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*, false>::fini() Line | Count | Source | 171 | 272 | { | 172 | 272 | if (is_owned ()) | 173 | 233 | { | 174 | 233 | shrink_vector (0); | 175 | 233 | hb_free (arrayZ); | 176 | 233 | } | 177 | 272 | init (); | 178 | 272 | } |
hb_vector_t<OT::AxisValueMap, false>::fini() Line | Count | Source | 171 | 168 | { | 172 | 168 | if (is_owned ()) | 173 | 168 | { | 174 | 168 | shrink_vector (0); | 175 | 168 | hb_free (arrayZ); | 176 | 168 | } | 177 | 168 | init (); | 178 | 168 | } |
hb_vector_t<hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int>, false>::fini() Line | Count | Source | 171 | 79 | { | 172 | 79 | if (is_owned ()) | 173 | 2 | { | 174 | 2 | shrink_vector (0); | 175 | 2 | hb_free (arrayZ); | 176 | 2 | } | 177 | 79 | init (); | 178 | 79 | } |
hb_vector_t<hb_vector_t<char, false>, false>::fini() Line | Count | Source | 171 | 342 | { | 172 | 342 | if (is_owned ()) | 173 | 106 | { | 174 | 106 | shrink_vector (0); | 175 | 106 | hb_free (arrayZ); | 176 | 106 | } | 177 | 342 | init (); | 178 | 342 | } |
hb_vector_t<hb_vector_t<unsigned char, false>, false>::fini() Line | Count | Source | 171 | 18.8k | { | 172 | 18.8k | if (is_owned ()) | 173 | 5.16k | { | 174 | 5.16k | shrink_vector (0); | 175 | 5.16k | hb_free (arrayZ); | 176 | 5.16k | } | 177 | 18.8k | init (); | 178 | 18.8k | } |
hb_vector_t<CFF::parsed_cs_str_t const*, false>::fini() Line | Count | Source | 171 | 3.40k | { | 172 | 3.40k | if (is_owned ()) | 173 | 0 | { | 174 | 0 | shrink_vector (0); | 175 | 0 | hb_free (arrayZ); | 176 | 0 | } | 177 | 3.40k | init (); | 178 | 3.40k | } |
hb_vector_t<CFF::cff1_font_dict_values_mod_t, false>::fini() Line | Count | Source | 171 | 2.74k | { | 172 | 2.74k | if (is_owned ()) | 173 | 1.85k | { | 174 | 1.85k | shrink_vector (0); | 175 | 1.85k | hb_free (arrayZ); | 176 | 1.85k | } | 177 | 2.74k | init (); | 178 | 2.74k | } |
hb_vector_t<hb_vector_t<hb_vector_t<unsigned char, false>, false>, false>::fini() Line | Count | Source | 171 | 5.12k | { | 172 | 5.12k | if (is_owned ()) | 173 | 2.40k | { | 174 | 2.40k | shrink_vector (0); | 175 | 2.40k | hb_free (arrayZ); | 176 | 2.40k | } | 177 | 5.12k | init (); | 178 | 5.12k | } |
hb_vector_t<CFF::cs_command_t, false>::fini() Line | Count | Source | 171 | 3.40k | { | 172 | 3.40k | if (is_owned ()) | 173 | 1.02k | { | 174 | 1.02k | shrink_vector (0); | 175 | 1.02k | hb_free (arrayZ); | 176 | 1.02k | } | 177 | 3.40k | init (); | 178 | 3.40k | } |
hb_vector_t<hb_vector_t<CFF::cs_command_t, false>, false>::fini() Line | Count | Source | 171 | 2.38k | { | 172 | 2.38k | if (is_owned ()) | 173 | 766 | { | 174 | 766 | shrink_vector (0); | 175 | 766 | hb_free (arrayZ); | 176 | 766 | } | 177 | 2.38k | init (); | 178 | 2.38k | } |
hb_vector_t<CFF::table_info_t, false>::fini() Line | Count | Source | 171 | 1.46k | { | 172 | 1.46k | if (is_owned ()) | 173 | 1.45k | { | 174 | 1.45k | shrink_vector (0); | 175 | 1.45k | hb_free (arrayZ); | 176 | 1.45k | } | 177 | 1.46k | init (); | 178 | 1.46k | } |
hb_vector_t<hb_vector_buf_t, false>::fini() Line | Count | Source | 171 | 55.6k | { | 172 | 55.6k | if (is_owned ()) | 173 | 28.2k | { | 174 | 28.2k | shrink_vector (0); | 175 | 28.2k | hb_free (arrayZ); | 176 | 28.2k | } | 177 | 55.6k | init (); | 178 | 55.6k | } |
hb_vector_t<hb_pdf_obj_t, false>::fini() Line | Count | Source | 171 | 11.8k | { | 172 | 11.8k | if (is_owned ()) | 173 | 1.04k | { | 174 | 1.04k | shrink_vector (0); | 175 | 1.04k | hb_free (arrayZ); | 176 | 1.04k | } | 177 | 11.8k | init (); | 178 | 11.8k | } |
|
179 | | |
180 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
181 | | hb_vector_t &reset () |
182 | 28.7M | { |
183 | 28.7M | if (unlikely (in_error ())) |
184 | 2.29k | reset_error (); |
185 | 28.7M | clear (); |
186 | 28.7M | return *this; |
187 | 28.7M | } hb_vector_t<hb_bit_set_t::page_map_t, true>::reset() Line | Count | Source | 182 | 11.4M | { | 183 | 11.4M | if (unlikely (in_error ())) | 184 | 0 | reset_error (); | 185 | 11.4M | clear (); | 186 | 11.4M | return *this; | 187 | 11.4M | } |
hb_vector_t<hb_bit_page_t, false>::reset() Line | Count | Source | 182 | 11.4M | { | 183 | 11.4M | if (unlikely (in_error ())) | 184 | 0 | reset_error (); | 185 | 11.4M | clear (); | 186 | 11.4M | return *this; | 187 | 11.4M | } |
hb_vector_t<hb_set_t, false>::reset() Line | Count | Source | 182 | 4.30M | { | 183 | 4.30M | if (unlikely (in_error ())) | 184 | 63 | reset_error (); | 185 | 4.30M | clear (); | 186 | 4.30M | return *this; | 187 | 4.30M | } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::reset() hb_vector_t<contour_point_t, false>::reset() Line | Count | Source | 182 | 182k | { | 183 | 182k | if (unlikely (in_error ())) | 184 | 0 | reset_error (); | 185 | 182k | clear (); | 186 | 182k | return *this; | 187 | 182k | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t, false>::reset() Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_vec_t, false>::reset() hb_vector_t<unsigned int, false>::reset() Line | Count | Source | 182 | 7.74k | { | 183 | 7.74k | if (unlikely (in_error ())) | 184 | 1.03k | reset_error (); | 185 | 7.74k | clear (); | 186 | 7.74k | return *this; | 187 | 7.74k | } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::reset() Line | Count | Source | 182 | 449k | { | 183 | 449k | if (unlikely (in_error ())) | 184 | 0 | reset_error (); | 185 | 449k | clear (); | 186 | 449k | return *this; | 187 | 449k | } |
hb_vector_t<hb_gpu_encode_curve_info_t, false>::reset() Line | Count | Source | 182 | 115 | { | 183 | 115 | if (unlikely (in_error ())) | 184 | 115 | reset_error (); | 185 | 115 | clear (); | 186 | 115 | return *this; | 187 | 115 | } |
hb_vector_t<hb_gpu_curve_t, false>::reset() Line | Count | Source | 182 | 479k | { | 183 | 479k | if (unlikely (in_error ())) | 184 | 648 | reset_error (); | 185 | 479k | clear (); | 186 | 479k | return *this; | 187 | 479k | } |
hb_vector_t<short, false>::reset() Line | Count | Source | 182 | 119k | { | 183 | 119k | if (unlikely (in_error ())) | 184 | 146 | reset_error (); | 185 | 119k | clear (); | 186 | 119k | return *this; | 187 | 119k | } |
hb_vector_t<hb_blob_t*, false>::reset() Line | Count | Source | 182 | 119k | { | 183 | 119k | if (unlikely (in_error ())) | 184 | 195 | reset_error (); | 185 | 119k | clear (); | 186 | 119k | return *this; | 187 | 119k | } |
hb_vector_t<hb_transform_t<float>, false>::reset() Line | Count | Source | 182 | 119k | { | 183 | 119k | if (unlikely (in_error ())) | 184 | 65 | reset_error (); | 185 | 119k | clear (); | 186 | 119k | return *this; | 187 | 119k | } |
hb_vector_t<OT::tuple_delta_t, false>::reset() Line | Count | Source | 182 | 15.9k | { | 183 | 15.9k | if (unlikely (in_error ())) | 184 | 0 | reset_error (); | 185 | 15.9k | clear (); | 186 | 15.9k | return *this; | 187 | 15.9k | } |
hb_vector_t<bool, false>::reset() Line | Count | Source | 182 | 52 | { | 183 | 52 | if (unlikely (in_error ())) | 184 | 0 | reset_error (); | 185 | 52 | clear (); | 186 | 52 | return *this; | 187 | 52 | } |
hb_vector_t<float, false>::reset() Line | Count | Source | 182 | 88 | { | 183 | 88 | if (unlikely (in_error ())) | 184 | 0 | reset_error (); | 185 | 88 | clear (); | 186 | 88 | return *this; | 187 | 88 | } |
hb_vector_t<unsigned char, false>::reset() Line | Count | Source | 182 | 12.7k | { | 183 | 12.7k | if (unlikely (in_error ())) | 184 | 0 | reset_error (); | 185 | 12.7k | clear (); | 186 | 12.7k | return *this; | 187 | 12.7k | } |
hb_vector_t<hb_vector_t<int, false> const*, false>::reset() Line | Count | Source | 182 | 5.00k | { | 183 | 5.00k | if (unlikely (in_error ())) | 184 | 0 | reset_error (); | 185 | 5.00k | clear (); | 186 | 5.00k | return *this; | 187 | 5.00k | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t, false>::reset() Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_vec_t, false>::reset() hb_vector_t<unsigned int, true>::reset() Line | Count | Source | 182 | 1.98k | { | 183 | 1.98k | if (unlikely (in_error ())) | 184 | 35 | reset_error (); | 185 | 1.98k | clear (); | 186 | 1.98k | return *this; | 187 | 1.98k | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_op_t, false>::reset() Unexecuted instantiation: hb_vector_t<int, false>::reset() hb_vector_t<hb_pair_t<double, Triple>, false>::reset() Line | Count | Source | 182 | 11.3k | { | 183 | 11.3k | if (unlikely (in_error ())) | 184 | 0 | reset_error (); | 185 | 11.3k | clear (); | 186 | 11.3k | return *this; | 187 | 11.3k | } |
|
188 | | |
189 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
190 | | hb_vector_t &reset_if_error () |
191 | 297k | { |
192 | 297k | if (unlikely (in_error ())) |
193 | 1.14k | reset (); |
194 | 297k | return *this; |
195 | 297k | } hb_vector_t<hb_gpu_encode_curve_info_t, false>::reset_if_error() Line | Count | Source | 191 | 24.8k | { | 192 | 24.8k | if (unlikely (in_error ())) | 193 | 115 | reset (); | 194 | 24.8k | return *this; | 195 | 24.8k | } |
hb_vector_t<unsigned int, false>::reset_if_error() Line | Count | Source | 191 | 272k | { | 192 | 272k | if (unlikely (in_error ())) | 193 | 1.03k | reset (); | 194 | 272k | return *this; | 195 | 272k | } |
|
196 | | |
197 | | /* Transfer ownership of the backing storage to caller. |
198 | | * Returns nullptr if storage is not owned by this vector. */ |
199 | | Type * |
200 | | steal (unsigned *len = nullptr, int *allocated_out = nullptr) |
201 | 27.7k | { |
202 | 27.7k | if (!is_owned ()) |
203 | 453 | return nullptr; |
204 | 27.3k | if (len) |
205 | 27.3k | *len = length; |
206 | 27.3k | if (allocated_out) |
207 | 27.3k | *allocated_out = allocated; |
208 | 27.3k | Type *p = arrayZ; |
209 | 27.3k | init (); |
210 | 27.3k | return p; |
211 | 27.7k | } |
212 | | |
213 | | /* Adopt a previously detached owned buffer. */ |
214 | | void |
215 | | recycle_buffer (Type *buffer, |
216 | | unsigned len, |
217 | | int allocated_len) |
218 | 0 | { |
219 | 0 | fini (); |
220 | 0 | arrayZ = buffer; |
221 | 0 | length = len; |
222 | 0 | allocated = allocated_len; |
223 | 0 | } |
224 | | |
225 | | friend void swap (hb_vector_t& a, hb_vector_t& b) noexcept |
226 | 93.0M | { |
227 | 93.0M | hb_swap (a.allocated, b.allocated); |
228 | 93.0M | hb_swap (a.length, b.length); |
229 | 93.0M | hb_swap (a.arrayZ, b.arrayZ); |
230 | 93.0M | } swap(hb_vector_t<hb_bit_set_t::page_map_t, true>&, hb_vector_t<hb_bit_set_t::page_map_t, true>&) Line | Count | Source | 226 | 7.24M | { | 227 | 7.24M | hb_swap (a.allocated, b.allocated); | 228 | 7.24M | hb_swap (a.length, b.length); | 229 | 7.24M | hb_swap (a.arrayZ, b.arrayZ); | 230 | 7.24M | } |
swap(hb_vector_t<hb_bit_page_t, false>&, hb_vector_t<hb_bit_page_t, false>&) Line | Count | Source | 226 | 7.24M | { | 227 | 7.24M | hb_swap (a.allocated, b.allocated); | 228 | 7.24M | hb_swap (a.length, b.length); | 229 | 7.24M | hb_swap (a.arrayZ, b.arrayZ); | 230 | 7.24M | } |
swap(hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>&, hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>&) Line | Count | Source | 226 | 70.5k | { | 227 | 70.5k | hb_swap (a.allocated, b.allocated); | 228 | 70.5k | hb_swap (a.length, b.length); | 229 | 70.5k | hb_swap (a.arrayZ, b.arrayZ); | 230 | 70.5k | } |
swap(hb_vector_t<unsigned int, false>&, hb_vector_t<unsigned int, false>&) Line | Count | Source | 226 | 22.4M | { | 227 | 22.4M | hb_swap (a.allocated, b.allocated); | 228 | 22.4M | hb_swap (a.length, b.length); | 229 | 22.4M | hb_swap (a.arrayZ, b.arrayZ); | 230 | 22.4M | } |
Unexecuted instantiation: swap(hb_vector_t<CFF::parsed_cs_op_t, false>&, hb_vector_t<CFF::parsed_cs_op_t, false>&) Unexecuted instantiation: swap(hb_vector_t<CFF::dict_val_t, false>&, hb_vector_t<CFF::dict_val_t, false>&) swap(hb_vector_t<CFF::op_str_t, false>&, hb_vector_t<CFF::op_str_t, false>&) Line | Count | Source | 226 | 90.9k | { | 227 | 90.9k | hb_swap (a.allocated, b.allocated); | 228 | 90.9k | hb_swap (a.length, b.length); | 229 | 90.9k | hb_swap (a.arrayZ, b.arrayZ); | 230 | 90.9k | } |
swap(hb_vector_t<unsigned char, false>&, hb_vector_t<unsigned char, false>&) Line | Count | Source | 226 | 619k | { | 227 | 619k | hb_swap (a.allocated, b.allocated); | 228 | 619k | hb_swap (a.length, b.length); | 229 | 619k | hb_swap (a.arrayZ, b.arrayZ); | 230 | 619k | } |
swap(hb_vector_t<hb_serialize_context_t::object_t::link_t, false>&, hb_vector_t<hb_serialize_context_t::object_t::link_t, false>&) Line | Count | Source | 226 | 51.8M | { | 227 | 51.8M | hb_swap (a.allocated, b.allocated); | 228 | 51.8M | hb_swap (a.length, b.length); | 229 | 51.8M | hb_swap (a.arrayZ, b.arrayZ); | 230 | 51.8M | } |
swap(hb_vector_t<hb_vector_t<int, false> const*, false>&, hb_vector_t<hb_vector_t<int, false> const*, false>&) Line | Count | Source | 226 | 25.5k | { | 227 | 25.5k | hb_swap (a.allocated, b.allocated); | 228 | 25.5k | hb_swap (a.length, b.length); | 229 | 25.5k | hb_swap (a.arrayZ, b.arrayZ); | 230 | 25.5k | } |
swap(hb_vector_t<char, false>&, hb_vector_t<char, false>&) Line | Count | Source | 226 | 2.51M | { | 227 | 2.51M | hb_swap (a.allocated, b.allocated); | 228 | 2.51M | hb_swap (a.length, b.length); | 229 | 2.51M | hb_swap (a.arrayZ, b.arrayZ); | 230 | 2.51M | } |
swap(hb_vector_t<bool, false>&, hb_vector_t<bool, false>&) Line | Count | Source | 226 | 50.7k | { | 227 | 50.7k | hb_swap (a.allocated, b.allocated); | 228 | 50.7k | hb_swap (a.length, b.length); | 229 | 50.7k | hb_swap (a.arrayZ, b.arrayZ); | 230 | 50.7k | } |
swap(hb_vector_t<float, false>&, hb_vector_t<float, false>&) Line | Count | Source | 226 | 101k | { | 227 | 101k | hb_swap (a.allocated, b.allocated); | 228 | 101k | hb_swap (a.length, b.length); | 229 | 101k | hb_swap (a.arrayZ, b.arrayZ); | 230 | 101k | } |
swap(hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>&, hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>&) Line | Count | Source | 226 | 50.7k | { | 227 | 50.7k | hb_swap (a.allocated, b.allocated); | 228 | 50.7k | hb_swap (a.length, b.length); | 229 | 50.7k | hb_swap (a.arrayZ, b.arrayZ); | 230 | 50.7k | } |
swap(hb_vector_t<OT::tuple_delta_t, false>&, hb_vector_t<OT::tuple_delta_t, false>&) Line | Count | Source | 226 | 11.4k | { | 227 | 11.4k | hb_swap (a.allocated, b.allocated); | 228 | 11.4k | hb_swap (a.length, b.length); | 229 | 11.4k | hb_swap (a.arrayZ, b.arrayZ); | 230 | 11.4k | } |
swap(hb_vector_t<OT::delta_row_encoding_t, false>&, hb_vector_t<OT::delta_row_encoding_t, false>&) Line | Count | Source | 226 | 688 | { | 227 | 688 | hb_swap (a.allocated, b.allocated); | 228 | 688 | hb_swap (a.length, b.length); | 229 | 688 | hb_swap (a.arrayZ, b.arrayZ); | 230 | 688 | } |
swap(hb_vector_t<contour_point_t, false>&, hb_vector_t<contour_point_t, false>&) Line | Count | Source | 226 | 234k | { | 227 | 234k | hb_swap (a.allocated, b.allocated); | 228 | 234k | hb_swap (a.length, b.length); | 229 | 234k | hb_swap (a.arrayZ, b.arrayZ); | 230 | 234k | } |
swap(hb_vector_t<CFF::number_t, false>&, hb_vector_t<CFF::number_t, false>&) Line | Count | Source | 226 | 492k | { | 227 | 492k | hb_swap (a.allocated, b.allocated); | 228 | 492k | hb_swap (a.length, b.length); | 229 | 492k | hb_swap (a.arrayZ, b.arrayZ); | 230 | 492k | } |
|
231 | | |
232 | | hb_vector_t& operator = (const hb_vector_t &o) |
233 | 23.5M | { |
234 | 23.5M | reset (); |
235 | 23.5M | alloc_exact (o.length); |
236 | 23.5M | if (unlikely (in_error ())) return *this; |
237 | | |
238 | 23.5M | length = 0; |
239 | 23.5M | copy_array (o.as_array ()); |
240 | | |
241 | 23.5M | return *this; |
242 | 23.5M | } hb_vector_t<hb_bit_set_t::page_map_t, true>::operator=(hb_vector_t<hb_bit_set_t::page_map_t, true> const&) Line | Count | Source | 233 | 11.4M | { | 234 | 11.4M | reset (); | 235 | 11.4M | alloc_exact (o.length); | 236 | 11.4M | if (unlikely (in_error ())) return *this; | 237 | | | 238 | 11.4M | length = 0; | 239 | 11.4M | copy_array (o.as_array ()); | 240 | | | 241 | 11.4M | return *this; | 242 | 11.4M | } |
hb_vector_t<hb_bit_page_t, false>::operator=(hb_vector_t<hb_bit_page_t, false> const&) Line | Count | Source | 233 | 11.4M | { | 234 | 11.4M | reset (); | 235 | 11.4M | alloc_exact (o.length); | 236 | 11.4M | if (unlikely (in_error ())) return *this; | 237 | | | 238 | 11.4M | length = 0; | 239 | 11.4M | copy_array (o.as_array ()); | 240 | | | 241 | 11.4M | return *this; | 242 | 11.4M | } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::operator=(hb_vector_t<hb_aat_map_builder_t::feature_info_t, true> const&) hb_vector_t<contour_point_t, false>::operator=(hb_vector_t<contour_point_t, false> const&) Line | Count | Source | 233 | 182k | { | 234 | 182k | reset (); | 235 | 182k | alloc_exact (o.length); | 236 | 182k | if (unlikely (in_error ())) return *this; | 237 | | | 238 | 182k | length = 0; | 239 | 182k | copy_array (o.as_array ()); | 240 | | | 241 | 182k | return *this; | 242 | 182k | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t, false>::operator=(hb_vector_t<CFF::parsed_cs_str_t, false> const&) Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_vec_t, false>::operator=(hb_vector_t<CFF::parsed_cs_str_vec_t, false> const&) hb_vector_t<unsigned int, false>::operator=(hb_vector_t<unsigned int, false> const&) Line | Count | Source | 233 | 6.07k | { | 234 | 6.07k | reset (); | 235 | 6.07k | alloc_exact (o.length); | 236 | 6.07k | if (unlikely (in_error ())) return *this; | 237 | | | 238 | 6.07k | length = 0; | 239 | 6.07k | copy_array (o.as_array ()); | 240 | | | 241 | 6.07k | return *this; | 242 | 6.07k | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t, false>::operator=(hb_vector_t<CFF::parsed_cs_str_t, false> const&) Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_vec_t, false>::operator=(hb_vector_t<CFF::parsed_cs_str_vec_t, false> const&) hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::operator=(hb_vector_t<hb_serialize_context_t::object_t::link_t, false> const&) Line | Count | Source | 233 | 449k | { | 234 | 449k | reset (); | 235 | 449k | alloc_exact (o.length); | 236 | 449k | if (unlikely (in_error ())) return *this; | 237 | | | 238 | 449k | length = 0; | 239 | 449k | copy_array (o.as_array ()); | 240 | | | 241 | 449k | return *this; | 242 | 449k | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_op_t, false>::operator=(hb_vector_t<CFF::parsed_cs_op_t, false> const&) |
243 | | hb_vector_t& operator = (hb_vector_t &&o) noexcept |
244 | 55.9M | { |
245 | 55.9M | hb_swap (*this, o); |
246 | 55.9M | return *this; |
247 | 55.9M | } hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::operator=(hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>&&) Line | Count | Source | 244 | 70.5k | { | 245 | 70.5k | hb_swap (*this, o); | 246 | 70.5k | return *this; | 247 | 70.5k | } |
Unexecuted instantiation: hb_vector_t<float, false>::operator=(hb_vector_t<float, false>&&) Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_op_t, false>::operator=(hb_vector_t<CFF::parsed_cs_op_t, false>&&) Unexecuted instantiation: hb_vector_t<CFF::dict_val_t, false>::operator=(hb_vector_t<CFF::dict_val_t, false>&&) hb_vector_t<CFF::op_str_t, false>::operator=(hb_vector_t<CFF::op_str_t, false>&&) Line | Count | Source | 244 | 90.9k | { | 245 | 90.9k | hb_swap (*this, o); | 246 | 90.9k | return *this; | 247 | 90.9k | } |
hb_vector_t<unsigned char, false>::operator=(hb_vector_t<unsigned char, false>&&) Line | Count | Source | 244 | 518k | { | 245 | 518k | hb_swap (*this, o); | 246 | 518k | return *this; | 247 | 518k | } |
hb_vector_t<unsigned int, false>::operator=(hb_vector_t<unsigned int, false>&&) Line | Count | Source | 244 | 153k | { | 245 | 153k | hb_swap (*this, o); | 246 | 153k | return *this; | 247 | 153k | } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::operator=(hb_vector_t<hb_serialize_context_t::object_t::link_t, false>&&) Line | Count | Source | 244 | 51.8M | { | 245 | 51.8M | hb_swap (*this, o); | 246 | 51.8M | return *this; | 247 | 51.8M | } |
hb_vector_t<hb_vector_t<int, false> const*, false>::operator=(hb_vector_t<hb_vector_t<int, false> const*, false>&&) Line | Count | Source | 244 | 25.5k | { | 245 | 25.5k | hb_swap (*this, o); | 246 | 25.5k | return *this; | 247 | 25.5k | } |
hb_vector_t<bool, false>::operator=(hb_vector_t<bool, false>&&) Line | Count | Source | 244 | 3 | { | 245 | 3 | hb_swap (*this, o); | 246 | 3 | return *this; | 247 | 3 | } |
hb_vector_t<OT::tuple_delta_t, false>::operator=(hb_vector_t<OT::tuple_delta_t, false>&&) Line | Count | Source | 244 | 11.4k | { | 245 | 11.4k | hb_swap (*this, o); | 246 | 11.4k | return *this; | 247 | 11.4k | } |
hb_vector_t<OT::delta_row_encoding_t, false>::operator=(hb_vector_t<OT::delta_row_encoding_t, false>&&) Line | Count | Source | 244 | 688 | { | 245 | 688 | hb_swap (*this, o); | 246 | 688 | return *this; | 247 | 688 | } |
hb_vector_t<contour_point_t, false>::operator=(hb_vector_t<contour_point_t, false>&&) Line | Count | Source | 244 | 234k | { | 245 | 234k | hb_swap (*this, o); | 246 | 234k | return *this; | 247 | 234k | } |
hb_vector_t<CFF::number_t, false>::operator=(hb_vector_t<CFF::number_t, false>&&) Line | Count | Source | 244 | 492k | { | 245 | 492k | hb_swap (*this, o); | 246 | 492k | return *this; | 247 | 492k | } |
hb_vector_t<char, false>::operator=(hb_vector_t<char, false>&&) Line | Count | Source | 244 | 2.51M | { | 245 | 2.51M | hb_swap (*this, o); | 246 | 2.51M | return *this; | 247 | 2.51M | } |
|
248 | | |
249 | | hb_bytes_t as_bytes () const |
250 | 21.2M | { return hb_bytes_t ((const char *) arrayZ, get_size ()); }hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::as_bytes() const Line | Count | Source | 250 | 21.2M | { return hb_bytes_t ((const char *) arrayZ, get_size ()); } |
hb_vector_t<unsigned char, false>::as_bytes() const Line | Count | Source | 250 | 5.59k | { return hb_bytes_t ((const char *) arrayZ, get_size ()); } |
|
251 | | |
252 | 12.4k | bool operator == (const hb_vector_t &o) const { return as_array () == o.as_array (); }hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::operator==(hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const&) const Line | Count | Source | 252 | 6 | bool operator == (const hb_vector_t &o) const { return as_array () == o.as_array (); } |
hb_vector_t<int, false>::operator==(hb_vector_t<int, false> const&) const Line | Count | Source | 252 | 10.1k | bool operator == (const hb_vector_t &o) const { return as_array () == o.as_array (); } |
hb_vector_t<unsigned char, false>::operator==(hb_vector_t<unsigned char, false> const&) const Line | Count | Source | 252 | 2.05k | bool operator == (const hb_vector_t &o) const { return as_array () == o.as_array (); } |
hb_vector_t<bool, false>::operator==(hb_vector_t<bool, false> const&) const Line | Count | Source | 252 | 241 | bool operator == (const hb_vector_t &o) const { return as_array () == o.as_array (); } |
|
253 | | bool operator != (const hb_vector_t &o) const { return !(*this == o); } |
254 | 29.9k | uint32_t hash () const { return as_array ().hash (); }hb_vector_t<int, false>::hash() const Line | Count | Source | 254 | 29.4k | uint32_t hash () const { return as_array ().hash (); } |
hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::hash() const Line | Count | Source | 254 | 87 | uint32_t hash () const { return as_array ().hash (); } |
hb_vector_t<bool, false>::hash() const Line | Count | Source | 254 | 403 | uint32_t hash () const { return as_array ().hash (); } |
|
255 | | |
256 | | Type& operator [] (int i_) |
257 | 3.59G | { |
258 | 3.59G | unsigned int i = (unsigned int) i_; |
259 | 3.59G | if (unlikely (i >= length)) |
260 | 3.07M | return Crap (Type); |
261 | 3.59G | return arrayZ[i]; |
262 | 3.59G | } hb_vector_t<hb_vector_t<hb_aat_map_t::range_flags_t, true>, false>::operator[](int) Line | Count | Source | 257 | 6.21k | { | 258 | 6.21k | unsigned int i = (unsigned int) i_; | 259 | 6.21k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 6.21k | return arrayZ[i]; | 262 | 6.21k | } |
hb_vector_t<hb_user_data_array_t::hb_user_data_item_t, false>::operator[](int) Line | Count | Source | 257 | 25.6k | { | 258 | 25.6k | unsigned int i = (unsigned int) i_; | 259 | 25.6k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 25.6k | return arrayZ[i]; | 262 | 25.6k | } |
hb_vector_t<hb_bit_set_t::page_map_t, true>::operator[](int) Line | Count | Source | 257 | 6.92M | { | 258 | 6.92M | unsigned int i = (unsigned int) i_; | 259 | 6.92M | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 6.92M | return arrayZ[i]; | 262 | 6.92M | } |
hb_vector_t<unsigned int, false>::operator[](int) Line | Count | Source | 257 | 1.02G | { | 258 | 1.02G | unsigned int i = (unsigned int) i_; | 259 | 1.02G | if (unlikely (i >= length)) | 260 | 181k | return Crap (Type); | 261 | 1.02G | return arrayZ[i]; | 262 | 1.02G | } |
hb_vector_t<hb_bit_page_t, false>::operator[](int) Line | Count | Source | 257 | 1.73M | { | 258 | 1.73M | unsigned int i = (unsigned int) i_; | 259 | 1.73M | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 1.73M | return arrayZ[i]; | 262 | 1.73M | } |
hb_vector_t<hb_serialize_context_t::object_t*, false>::operator[](int) Line | Count | Source | 257 | 152M | { | 258 | 152M | unsigned int i = (unsigned int) i_; | 259 | 152M | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 152M | return arrayZ[i]; | 262 | 152M | } |
hb_vector_t<hb_bounds_t<float>, false>::operator[](int) Line | Count | Source | 257 | 6.03M | { | 258 | 6.03M | unsigned int i = (unsigned int) i_; | 259 | 6.03M | if (unlikely (i >= length)) | 260 | 543k | return Crap (Type); | 261 | 5.48M | return arrayZ[i]; | 262 | 6.03M | } |
hb_vector_t<hb_transform_t<float>, false>::operator[](int) Line | Count | Source | 257 | 3.70M | { | 258 | 3.70M | unsigned int i = (unsigned int) i_; | 259 | 3.70M | if (unlikely (i >= length)) | 260 | 250k | return Crap (Type); | 261 | 3.45M | return arrayZ[i]; | 262 | 3.70M | } |
hb_vector_t<float, false>::operator[](int) Line | Count | Source | 257 | 26.9M | { | 258 | 26.9M | unsigned int i = (unsigned int) i_; | 259 | 26.9M | if (unlikely (i >= length)) | 260 | 367k | return Crap (Type); | 261 | 26.5M | return arrayZ[i]; | 262 | 26.9M | } |
hb_vector_t<int, false>::operator[](int) Line | Count | Source | 257 | 62.8k | { | 258 | 62.8k | unsigned int i = (unsigned int) i_; | 259 | 62.8k | if (unlikely (i >= length)) | 260 | 2.32k | return Crap (Type); | 261 | 60.5k | return arrayZ[i]; | 262 | 62.8k | } |
hb_vector_t<hb_set_t, false>::operator[](int) Line | Count | Source | 257 | 5.57M | { | 258 | 5.57M | unsigned int i = (unsigned int) i_; | 259 | 5.57M | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 5.57M | return arrayZ[i]; | 262 | 5.57M | } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_event_t, false>::operator[](int) Unexecuted instantiation: hb_vector_t<hb_aat_map_t::range_flags_t, true>::operator[](int) hb_vector_t<contour_point_t, false>::operator[](int) Line | Count | Source | 257 | 5.63M | { | 258 | 5.63M | unsigned int i = (unsigned int) i_; | 259 | 5.63M | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 5.63M | return arrayZ[i]; | 262 | 5.63M | } |
Unexecuted instantiation: hb_vector_t<OT::SVG::svg_defs_entry_t, false>::operator[](int) hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::dict_val_t>, false>::operator[](int) Line | Count | Source | 257 | 217k | { | 258 | 217k | unsigned int i = (unsigned int) i_; | 259 | 217k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 217k | return arrayZ[i]; | 262 | 217k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::dict_val_t>, false>::operator[](int) Line | Count | Source | 257 | 61.2k | { | 258 | 61.2k | unsigned int i = (unsigned int) i_; | 259 | 61.2k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 61.2k | return arrayZ[i]; | 262 | 61.2k | } |
hb_vector_t<hb_ot_name_entry_t, false>::operator[](int) Line | Count | Source | 257 | 416k | { | 258 | 416k | unsigned int i = (unsigned int) i_; | 259 | 416k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 416k | return arrayZ[i]; | 262 | 416k | } |
Unexecuted instantiation: hb_vector_t<hb_outline_point_t, false>::operator[](int) hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::operator[](int) Line | Count | Source | 257 | 1.47M | { | 258 | 1.47M | unsigned int i = (unsigned int) i_; | 259 | 1.47M | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 1.47M | return arrayZ[i]; | 262 | 1.47M | } |
hb_vector_t<hb_ot_map_builder_t::stage_info_t, false>::operator[](int) Line | Count | Source | 257 | 499k | { | 258 | 499k | unsigned int i = (unsigned int) i_; | 259 | 499k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 499k | return arrayZ[i]; | 262 | 499k | } |
hb_vector_t<hb_raster_clip_t, false>::operator[](int) Line | Count | Source | 257 | 155k | { | 258 | 155k | unsigned int i = (unsigned int) i_; | 259 | 155k | if (unlikely (i >= length)) | 260 | 42 | return Crap (Type); | 261 | 155k | return arrayZ[i]; | 262 | 155k | } |
hb_vector_t<unsigned char, false>::operator[](int) Line | Count | Source | 257 | 63.3k | { | 258 | 63.3k | unsigned int i = (unsigned int) i_; | 259 | 63.3k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 63.3k | return arrayZ[i]; | 262 | 63.3k | } |
hb_vector_t<hb_raster_image_t*, false>::operator[](int) Line | Count | Source | 257 | 161k | { | 258 | 161k | unsigned int i = (unsigned int) i_; | 259 | 161k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 161k | return arrayZ[i]; | 262 | 161k | } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::operator[](int) Line | Count | Source | 257 | 642 | { | 258 | 642 | unsigned int i = (unsigned int) i_; | 259 | 642 | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 642 | return arrayZ[i]; | 262 | 642 | } |
hb_vector_t<bool, false>::operator[](int) Line | Count | Source | 257 | 712M | { | 258 | 712M | unsigned int i = (unsigned int) i_; | 259 | 712M | if (unlikely (i >= length)) | 260 | 7.58k | return Crap (Type); | 261 | 712M | return arrayZ[i]; | 262 | 712M | } |
hb_vector_t<graph::graph_t::vertex_t, false>::operator[](int) Line | Count | Source | 257 | 1.61G | { | 258 | 1.61G | unsigned int i = (unsigned int) i_; | 259 | 1.61G | if (unlikely (i >= length)) | 260 | 1.33M | return Crap (Type); | 261 | 1.61G | return arrayZ[i]; | 262 | 1.61G | } |
hb_vector_t<graph::MarkBasePosFormat1::class_info_t, false>::operator[](int) Line | Count | Source | 257 | 527k | { | 258 | 527k | unsigned int i = (unsigned int) i_; | 259 | 527k | if (unlikely (i >= length)) | 260 | 381k | return Crap (Type); | 261 | 145k | return arrayZ[i]; | 262 | 527k | } |
hb_vector_t<short, false>::operator[](int) Line | Count | Source | 257 | 3.30k | { | 258 | 3.30k | unsigned int i = (unsigned int) i_; | 259 | 3.30k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 3.30k | return arrayZ[i]; | 262 | 3.30k | } |
hb_vector_t<hb_blob_t*, false>::operator[](int) Line | Count | Source | 257 | 82.9k | { | 258 | 82.9k | unsigned int i = (unsigned int) i_; | 259 | 82.9k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 82.9k | return arrayZ[i]; | 262 | 82.9k | } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::operator[](int) Line | Count | Source | 257 | 268k | { | 258 | 268k | unsigned int i = (unsigned int) i_; | 259 | 268k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 268k | return arrayZ[i]; | 262 | 268k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, bool, hb_vector_t<hb_vector_t<int, false> const*, false> const&)::delta_size_t, false>::operator[](int) Line | Count | Source | 257 | 50.0k | { | 258 | 50.0k | unsigned int i = (unsigned int) i_; | 259 | 50.0k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 50.0k | return arrayZ[i]; | 262 | 50.0k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, OT::VarData const*, hb_inc_bimap_t const&, hb_inc_bimap_t const&)::delta_size_t, false>::operator[](int) Line | Count | Source | 257 | 9.85M | { | 258 | 9.85M | unsigned int i = (unsigned int) i_; | 259 | 9.85M | if (unlikely (i >= length)) | 260 | 92 | return Crap (Type); | 261 | 9.85M | return arrayZ[i]; | 262 | 9.85M | } |
hb_vector_t<OT::tuple_delta_t, false>::operator[](int) Line | Count | Source | 257 | 14.2k | { | 258 | 14.2k | unsigned int i = (unsigned int) i_; | 259 | 14.2k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 14.2k | return arrayZ[i]; | 262 | 14.2k | } |
hb_vector_t<hb_vector_t<int, false>, false>::operator[](int) Line | Count | Source | 257 | 76.2k | { | 258 | 76.2k | unsigned int i = (unsigned int) i_; | 259 | 76.2k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 76.2k | return arrayZ[i]; | 262 | 76.2k | } |
hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::operator[](int) Line | Count | Source | 257 | 11.7k | { | 258 | 11.7k | unsigned int i = (unsigned int) i_; | 259 | 11.7k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 11.7k | return arrayZ[i]; | 262 | 11.7k | } |
hb_vector_t<OT::delta_row_encoding_t, false>::operator[](int) Line | Count | Source | 257 | 2.28k | { | 258 | 2.28k | unsigned int i = (unsigned int) i_; | 259 | 2.28k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 2.28k | return arrayZ[i]; | 262 | 2.28k | } |
hb_vector_t<OT::LayerRecord, false>::operator[](int) Line | Count | Source | 257 | 210k | { | 258 | 210k | unsigned int i = (unsigned int) i_; | 259 | 210k | if (unlikely (i >= length)) | 260 | 494 | return Crap (Type); | 261 | 209k | return arrayZ[i]; | 262 | 210k | } |
hb_vector_t<hb_set_t*, false>::operator[](int) Line | Count | Source | 257 | 17.4k | { | 258 | 17.4k | unsigned int i = (unsigned int) i_; | 259 | 17.4k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 17.4k | return arrayZ[i]; | 262 | 17.4k | } |
hb_vector_t<OT::index_map_subset_plan_t, false>::operator[](int) Line | Count | Source | 257 | 9.45k | { | 258 | 9.45k | unsigned int i = (unsigned int) i_; | 259 | 9.45k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 9.45k | return arrayZ[i]; | 262 | 9.45k | } |
hb_vector_t<hb_inc_bimap_t, false>::operator[](int) Line | Count | Source | 257 | 29.3k | { | 258 | 29.3k | unsigned int i = (unsigned int) i_; | 259 | 29.3k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 29.3k | return arrayZ[i]; | 262 | 29.3k | } |
hb_vector_t<char, false>::operator[](int) Line | Count | Source | 257 | 2.56k | { | 258 | 2.56k | unsigned int i = (unsigned int) i_; | 259 | 2.56k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 2.56k | return arrayZ[i]; | 262 | 2.56k | } |
hb_vector_t<CFF::parsed_cs_str_t, false>::operator[](int) Line | Count | Source | 257 | 247k | { | 258 | 247k | unsigned int i = (unsigned int) i_; | 259 | 247k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 247k | return arrayZ[i]; | 262 | 247k | } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::op_str_t>, false>::operator[](int) Line | Count | Source | 257 | 50.9k | { | 258 | 50.9k | unsigned int i = (unsigned int) i_; | 259 | 50.9k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 50.9k | return arrayZ[i]; | 262 | 50.9k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::op_str_t>, false>::operator[](int) Line | Count | Source | 257 | 19.7k | { | 258 | 19.7k | unsigned int i = (unsigned int) i_; | 259 | 19.7k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 19.7k | return arrayZ[i]; | 262 | 19.7k | } |
hb_vector_t<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>, false>::operator[](int) Line | Count | Source | 257 | 130 | { | 258 | 130 | unsigned int i = (unsigned int) i_; | 259 | 130 | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 130 | return arrayZ[i]; | 262 | 130 | } |
hb_vector_t<OT::IndexSubtableRecord, false>::operator[](int) Line | Count | Source | 257 | 443 | { | 258 | 443 | unsigned int i = (unsigned int) i_; | 259 | 443 | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 443 | return arrayZ[i]; | 262 | 443 | } |
hb_vector_t<OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*, false>::operator[](int) Line | Count | Source | 257 | 649 | { | 258 | 649 | unsigned int i = (unsigned int) i_; | 259 | 649 | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 649 | return arrayZ[i]; | 262 | 649 | } |
hb_vector_t<hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int>, false>::operator[](int) Line | Count | Source | 257 | 6 | { | 258 | 6 | unsigned int i = (unsigned int) i_; | 259 | 6 | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 6 | return arrayZ[i]; | 262 | 6 | } |
hb_vector_t<hb_vector_t<unsigned char, false>, false>::operator[](int) Line | Count | Source | 257 | 27.0k | { | 258 | 27.0k | unsigned int i = (unsigned int) i_; | 259 | 27.0k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 27.0k | return arrayZ[i]; | 262 | 27.0k | } |
hb_vector_t<hb_vector_t<CFF::cs_command_t, false>, false>::operator[](int) Line | Count | Source | 257 | 4.09k | { | 258 | 4.09k | unsigned int i = (unsigned int) i_; | 259 | 4.09k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 4.09k | return arrayZ[i]; | 262 | 4.09k | } |
hb_vector_t<CFF::parsed_cs_str_vec_t, false>::operator[](int) Line | Count | Source | 257 | 31.8k | { | 258 | 31.8k | unsigned int i = (unsigned int) i_; | 259 | 31.8k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 31.8k | return arrayZ[i]; | 262 | 31.8k | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t const*, false>::operator[](int) hb_vector_t<CFF::parsed_cs_op_t, false>::operator[](int) Line | Count | Source | 257 | 317 | { | 258 | 317 | unsigned int i = (unsigned int) i_; | 259 | 317 | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 317 | return arrayZ[i]; | 262 | 317 | } |
hb_vector_t<hb_vector_t<hb_vector_t<unsigned char, false>, false>, false>::operator[](int) Line | Count | Source | 257 | 16.2k | { | 258 | 16.2k | unsigned int i = (unsigned int) i_; | 259 | 16.2k | if (unlikely (i >= length)) | 260 | 945 | return Crap (Type); | 261 | 15.2k | return arrayZ[i]; | 262 | 16.2k | } |
hb_vector_t<CFF::cff1_font_dict_values_mod_t, false>::operator[](int) Line | Count | Source | 257 | 5.56k | { | 258 | 5.56k | unsigned int i = (unsigned int) i_; | 259 | 5.56k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 5.56k | return arrayZ[i]; | 262 | 5.56k | } |
hb_vector_t<CFF::cs_command_t, false>::operator[](int) Line | Count | Source | 257 | 152k | { | 258 | 152k | unsigned int i = (unsigned int) i_; | 259 | 152k | if (unlikely (i >= length)) | 260 | 1.27k | return Crap (Type); | 261 | 151k | return arrayZ[i]; | 262 | 152k | } |
hb_vector_t<CFF::number_t, false>::operator[](int) Line | Count | Source | 257 | 171k | { | 258 | 171k | unsigned int i = (unsigned int) i_; | 259 | 171k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 171k | return arrayZ[i]; | 262 | 171k | } |
hb_vector_t<CFF::table_info_t, false>::operator[](int) Line | Count | Source | 257 | 2.76k | { | 258 | 2.76k | unsigned int i = (unsigned int) i_; | 259 | 2.76k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 2.76k | return arrayZ[i]; | 262 | 2.76k | } |
hb_vector_t<CFF::code_pair_t, false>::operator[](int) Line | Count | Source | 257 | 1.44k | { | 258 | 1.44k | unsigned int i = (unsigned int) i_; | 259 | 1.44k | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 1.44k | return arrayZ[i]; | 262 | 1.44k | } |
hb_vector_t<hb_vector_buf_t, false>::operator[](int) Line | Count | Source | 257 | 14.0M | { | 258 | 14.0M | unsigned int i = (unsigned int) i_; | 259 | 14.0M | if (unlikely (i >= length)) | 260 | 0 | return Crap (Type); | 261 | 14.0M | return arrayZ[i]; | 262 | 14.0M | } |
|
263 | | const Type& operator [] (int i_) const |
264 | 1.17G | { |
265 | 1.17G | unsigned int i = (unsigned int) i_; |
266 | 1.17G | if (unlikely (i >= length)) |
267 | 700k | return Null (Type); |
268 | 1.17G | return arrayZ[i]; |
269 | 1.17G | } hb_vector_t<hb_vector_t<hb_aat_map_t::range_flags_t, true>, false>::operator[](int) const Line | Count | Source | 264 | 15.0k | { | 265 | 15.0k | unsigned int i = (unsigned int) i_; | 266 | 15.0k | if (unlikely (i >= length)) | 267 | 382 | return Null (Type); | 268 | 14.6k | return arrayZ[i]; | 269 | 15.0k | } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_t::range_flags_t, true>::operator[](int) const hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::operator[](int) const Line | Count | Source | 264 | 12.3k | { | 265 | 12.3k | unsigned int i = (unsigned int) i_; | 266 | 12.3k | if (unlikely (i >= length)) | 267 | 478 | return Null (Type); | 268 | 11.8k | return arrayZ[i]; | 269 | 12.3k | } |
hb_vector_t<hb_ot_map_t::stage_map_t, false>::operator[](int) const Line | Count | Source | 264 | 289k | { | 265 | 289k | unsigned int i = (unsigned int) i_; | 266 | 289k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 289k | return arrayZ[i]; | 269 | 289k | } |
hb_vector_t<hb_bit_page_t, false>::operator[](int) const Line | Count | Source | 264 | 249M | { | 265 | 249M | unsigned int i = (unsigned int) i_; | 266 | 249M | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 249M | return arrayZ[i]; | 269 | 249M | } |
hb_vector_t<unsigned int, false>::operator[](int) const Line | Count | Source | 264 | 66.8M | { | 265 | 66.8M | unsigned int i = (unsigned int) i_; | 266 | 66.8M | if (unlikely (i >= length)) | 267 | 358 | return Null (Type); | 268 | 66.8M | return arrayZ[i]; | 269 | 66.8M | } |
Unexecuted instantiation: hb_vector_t<hb_ot_name_record_ids_t, false>::operator[](int) const Unexecuted instantiation: hb_vector_t<hb_outline_point_t, false>::operator[](int) const hb_vector_t<hb_ot_map_t::lookup_map_t, false>::operator[](int) const Line | Count | Source | 264 | 175k | { | 265 | 175k | unsigned int i = (unsigned int) i_; | 266 | 175k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 175k | return arrayZ[i]; | 269 | 175k | } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::dict_val_t>, false>::operator[](int) const Line | Count | Source | 264 | 400k | { | 265 | 400k | unsigned int i = (unsigned int) i_; | 266 | 400k | if (unlikely (i >= length)) | 267 | 1.32k | return Null (Type); | 268 | 399k | return arrayZ[i]; | 269 | 400k | } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::op_str_t>, false>::operator[](int) const Line | Count | Source | 264 | 25.7k | { | 265 | 25.7k | unsigned int i = (unsigned int) i_; | 266 | 25.7k | if (unlikely (i >= length)) | 267 | 91 | return Null (Type); | 268 | 25.6k | return arrayZ[i]; | 269 | 25.7k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::dict_val_t>, false>::operator[](int) const Line | Count | Source | 264 | 455k | { | 265 | 455k | unsigned int i = (unsigned int) i_; | 266 | 455k | if (unlikely (i >= length)) | 267 | 309k | return Null (Type); | 268 | 145k | return arrayZ[i]; | 269 | 455k | } |
Unexecuted instantiation: hb_vector_t<unsigned char, false>::operator[](int) const hb_vector_t<graph::graph_t::vertex_t, false>::operator[](int) const Line | Count | Source | 264 | 737M | { | 265 | 737M | unsigned int i = (unsigned int) i_; | 266 | 737M | if (unlikely (i >= length)) | 267 | 386k | return Null (Type); | 268 | 736M | return arrayZ[i]; | 269 | 737M | } |
hb_vector_t<graph::overflow_record_t, false>::operator[](int) const Line | Count | Source | 264 | 121M | { | 265 | 121M | unsigned int i = (unsigned int) i_; | 266 | 121M | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 121M | return arrayZ[i]; | 269 | 121M | } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::operator[](int) const Line | Count | Source | 264 | 5.54k | { | 265 | 5.54k | unsigned int i = (unsigned int) i_; | 266 | 5.54k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 5.54k | return arrayZ[i]; | 269 | 5.54k | } |
hb_vector_t<hb_vector_t<int, false> const*, false>::operator[](int) const Line | Count | Source | 264 | 80.4k | { | 265 | 80.4k | unsigned int i = (unsigned int) i_; | 266 | 80.4k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 80.4k | return arrayZ[i]; | 269 | 80.4k | } |
hb_vector_t<OT::delta_row_encoding_t, false>::operator[](int) const Line | Count | Source | 264 | 2.28k | { | 265 | 2.28k | unsigned int i = (unsigned int) i_; | 266 | 2.28k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 2.28k | return arrayZ[i]; | 269 | 2.28k | } |
hb_vector_t<float, false>::operator[](int) const Line | Count | Source | 264 | 21.9k | { | 265 | 21.9k | unsigned int i = (unsigned int) i_; | 266 | 21.9k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 21.9k | return arrayZ[i]; | 269 | 21.9k | } |
hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::operator[](int) const Line | Count | Source | 264 | 138 | { | 265 | 138 | unsigned int i = (unsigned int) i_; | 266 | 138 | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 138 | return arrayZ[i]; | 269 | 138 | } |
hb_vector_t<bool, false>::operator[](int) const Line | Count | Source | 264 | 139 | { | 265 | 139 | unsigned int i = (unsigned int) i_; | 266 | 139 | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 139 | return arrayZ[i]; | 269 | 139 | } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::operator[](int) const Line | Count | Source | 264 | 432 | { | 265 | 432 | unsigned int i = (unsigned int) i_; | 266 | 432 | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 432 | return arrayZ[i]; | 269 | 432 | } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::operator[](int) const Line | Count | Source | 264 | 6.96k | { | 265 | 6.96k | unsigned int i = (unsigned int) i_; | 266 | 6.96k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 6.96k | return arrayZ[i]; | 269 | 6.96k | } |
hb_vector_t<hb_inc_bimap_t, false>::operator[](int) const Line | Count | Source | 264 | 14.8k | { | 265 | 14.8k | unsigned int i = (unsigned int) i_; | 266 | 14.8k | if (unlikely (i >= length)) | 267 | 1.71k | return Null (Type); | 268 | 13.1k | return arrayZ[i]; | 269 | 14.8k | } |
hb_vector_t<contour_point_t, false>::operator[](int) const Line | Count | Source | 264 | 649k | { | 265 | 649k | unsigned int i = (unsigned int) i_; | 266 | 649k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 649k | return arrayZ[i]; | 269 | 649k | } |
hb_vector_t<CFF::parsed_cs_op_t, false>::operator[](int) const Line | Count | Source | 264 | 2.34k | { | 265 | 2.34k | unsigned int i = (unsigned int) i_; | 266 | 2.34k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 2.34k | return arrayZ[i]; | 269 | 2.34k | } |
hb_vector_t<CFF::code_pair_t, false>::operator[](int) const Line | Count | Source | 264 | 5.78k | { | 265 | 5.78k | unsigned int i = (unsigned int) i_; | 266 | 5.78k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 5.78k | return arrayZ[i]; | 269 | 5.78k | } |
hb_vector_t<CFF::op_str_t, false>::operator[](int) const Line | Count | Source | 264 | 83.4k | { | 265 | 83.4k | unsigned int i = (unsigned int) i_; | 266 | 83.4k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 83.4k | return arrayZ[i]; | 269 | 83.4k | } |
Unexecuted instantiation: hb_vector_t<hb_ot_name_record_ids_t, false>::operator[](int) const hb_vector_t<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>, false>::operator[](int) const Line | Count | Source | 264 | 526 | { | 265 | 526 | unsigned int i = (unsigned int) i_; | 266 | 526 | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 526 | return arrayZ[i]; | 269 | 526 | } |
hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::operator[](int) const Line | Count | Source | 264 | 105 | { | 265 | 105 | unsigned int i = (unsigned int) i_; | 266 | 105 | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 105 | return arrayZ[i]; | 269 | 105 | } |
hb_vector_t<CFF::cff1_font_dict_values_t, false>::operator[](int) const Line | Count | Source | 264 | 5.13k | { | 265 | 5.13k | unsigned int i = (unsigned int) i_; | 266 | 5.13k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 5.13k | return arrayZ[i]; | 269 | 5.13k | } |
hb_vector_t<CFF::parsed_cs_str_t, false>::operator[](int) const Line | Count | Source | 264 | 14.1k | { | 265 | 14.1k | unsigned int i = (unsigned int) i_; | 266 | 14.1k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 14.1k | return arrayZ[i]; | 269 | 14.1k | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t const*, false>::operator[](int) const hb_vector_t<CFF::parsed_cs_str_vec_t, false>::operator[](int) const Line | Count | Source | 264 | 4.81k | { | 265 | 4.81k | unsigned int i = (unsigned int) i_; | 266 | 4.81k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 4.81k | return arrayZ[i]; | 269 | 4.81k | } |
hb_vector_t<CFF::subr_remap_t, false>::operator[](int) const Line | Count | Source | 264 | 12.5k | { | 265 | 12.5k | unsigned int i = (unsigned int) i_; | 266 | 12.5k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 12.5k | return arrayZ[i]; | 269 | 12.5k | } |
hb_vector_t<CFF::cff1_top_dict_val_t, false>::operator[](int) const Line | Count | Source | 264 | 11.7k | { | 265 | 11.7k | unsigned int i = (unsigned int) i_; | 266 | 11.7k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 11.7k | return arrayZ[i]; | 269 | 11.7k | } |
Unexecuted instantiation: hb_vector_t<unsigned char, false>::operator[](int) const hb_vector_t<CFF::number_t, false>::operator[](int) const Line | Count | Source | 264 | 5.56k | { | 265 | 5.56k | unsigned int i = (unsigned int) i_; | 266 | 5.56k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 5.56k | return arrayZ[i]; | 269 | 5.56k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::op_str_t>, false>::operator[](int) const Line | Count | Source | 264 | 14.9k | { | 265 | 14.9k | unsigned int i = (unsigned int) i_; | 266 | 14.9k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 14.9k | return arrayZ[i]; | 269 | 14.9k | } |
hb_vector_t<CFF::cff2_font_dict_values_t, false>::operator[](int) const Line | Count | Source | 264 | 3.20k | { | 265 | 3.20k | unsigned int i = (unsigned int) i_; | 266 | 3.20k | if (unlikely (i >= length)) | 267 | 0 | return Null (Type); | 268 | 3.20k | return arrayZ[i]; | 269 | 3.20k | } |
|
270 | | |
271 | 167M | Type& tail () { return (*this)[length - 1]; }hb_vector_t<hb_user_data_array_t::hb_user_data_item_t, false>::tail() Line | Count | Source | 271 | 25.6k | Type& tail () { return (*this)[length - 1]; } |
hb_vector_t<hb_serialize_context_t::object_t*, false>::tail() Line | Count | Source | 271 | 137M | Type& tail () { return (*this)[length - 1]; } |
hb_vector_t<hb_bounds_t<float>, false>::tail() Line | Count | Source | 271 | 6.03M | Type& tail () { return (*this)[length - 1]; } |
hb_vector_t<hb_transform_t<float>, false>::tail() Line | Count | Source | 271 | 3.70M | Type& tail () { return (*this)[length - 1]; } |
hb_vector_t<hb_set_t, false>::tail() Line | Count | Source | 271 | 5.55M | Type& tail () { return (*this)[length - 1]; } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_t::range_flags_t, true>::tail() Unexecuted instantiation: hb_vector_t<OT::SVG::svg_defs_entry_t, false>::tail() hb_vector_t<hb_raster_image_t*, false>::tail() Line | Count | Source | 271 | 160k | Type& tail () { return (*this)[length - 1]; } |
hb_vector_t<hb_raster_clip_t, false>::tail() Line | Count | Source | 271 | 155k | Type& tail () { return (*this)[length - 1]; } |
hb_vector_t<OT::IndexSubtableRecord, false>::tail() Line | Count | Source | 271 | 390 | Type& tail () { return (*this)[length - 1]; } |
hb_vector_t<unsigned char, false>::tail() Line | Count | Source | 271 | 2.39k | Type& tail () { return (*this)[length - 1]; } |
hb_vector_t<CFF::cs_command_t, false>::tail() Line | Count | Source | 271 | 387 | Type& tail () { return (*this)[length - 1]; } |
hb_vector_t<hb_vector_buf_t, false>::tail() Line | Count | Source | 271 | 14.0M | Type& tail () { return (*this)[length - 1]; } |
|
272 | 260 | const Type& tail () const { return (*this)[length - 1]; } |
273 | | |
274 | 79.9M | explicit operator bool () const { return length; }hb_vector_t<hb_set_t, false>::operator bool() const Line | Count | Source | 274 | 22.1M | explicit operator bool () const { return length; } |
Unexecuted instantiation: hb_vector_t<hb_outline_point_t, false>::operator bool() const hb_vector_t<unsigned int, false>::operator bool() const Line | Count | Source | 274 | 57.4M | explicit operator bool () const { return length; } |
hb_vector_t<hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >, false>::operator bool() const Line | Count | Source | 274 | 30.8k | explicit operator bool () const { return length; } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::operator bool() const Line | Count | Source | 274 | 3.14k | explicit operator bool () const { return length; } |
hb_vector_t<unsigned int, true>::operator bool() const Line | Count | Source | 274 | 59.8k | explicit operator bool () const { return length; } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::operator bool() const Line | Count | Source | 274 | 4.18k | explicit operator bool () const { return length; } |
hb_vector_t<hb_vector_t<int, false> const*, false>::operator bool() const Line | Count | Source | 274 | 18.6k | explicit operator bool () const { return length; } |
hb_vector_t<float, false>::operator bool() const Line | Count | Source | 274 | 5.21k | explicit operator bool () const { return length; } |
hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::operator bool() const Line | Count | Source | 274 | 248 | explicit operator bool () const { return length; } |
hb_vector_t<unsigned char, false>::operator bool() const Line | Count | Source | 274 | 160 | explicit operator bool () const { return length; } |
hb_vector_t<int, false>::operator bool() const Line | Count | Source | 274 | 122k | explicit operator bool () const { return length; } |
hb_vector_t<OT::tuple_delta_t, false>::operator bool() const Line | Count | Source | 274 | 28.6k | explicit operator bool () const { return length; } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::operator bool() const Line | Count | Source | 274 | 2.21k | explicit operator bool () const { return length; } |
hb_vector_t<OT::delta_row_encoding_t, false>::operator bool() const Line | Count | Source | 274 | 347 | explicit operator bool () const { return length; } |
hb_vector_t<hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int>, false>::operator bool() const Line | Count | Source | 274 | 79 | explicit operator bool () const { return length; } |
hb_vector_t<CFF::parsed_cs_str_t const*, false>::operator bool() const Line | Count | Source | 274 | 8.18k | explicit operator bool () const { return length; } |
|
275 | 21.4M | size_t get_size () const { return hb_unsigned_mul_saturate (length, item_size); }hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::get_size() const Line | Count | Source | 275 | 21.2M | size_t get_size () const { return hb_unsigned_mul_saturate (length, item_size); } |
hb_vector_t<unsigned int, false>::get_size() const Line | Count | Source | 275 | 149k | size_t get_size () const { return hb_unsigned_mul_saturate (length, item_size); } |
hb_vector_t<unsigned char, false>::get_size() const Line | Count | Source | 275 | 5.59k | size_t get_size () const { return hb_unsigned_mul_saturate (length, item_size); } |
|
276 | | |
277 | | /* Sink interface. */ |
278 | | template <typename T> |
279 | 15.0M | hb_vector_t& operator << (T&& v) { push (std::forward<T> (v)); return *this; }hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>& hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>::operator<< <hb_pair_t<unsigned int, face_table_info_t> >(hb_pair_t<unsigned int, face_table_info_t>&&) Line | Count | Source | 279 | 60.9k | hb_vector_t& operator << (T&& v) { push (std::forward<T> (v)); return *this; } |
hb_vector_t<unsigned int, false>& hb_vector_t<unsigned int, false>::operator<< <unsigned int>(unsigned int&&) Line | Count | Source | 279 | 799 | hb_vector_t& operator << (T&& v) { push (std::forward<T> (v)); return *this; } |
hb_vector_t<unsigned int, true>& hb_vector_t<unsigned int, true>::operator<< <unsigned int const&>(unsigned int const&) Line | Count | Source | 279 | 1.59M | hb_vector_t& operator << (T&& v) { push (std::forward<T> (v)); return *this; } |
hb_vector_t<unsigned int, true>& hb_vector_t<unsigned int, true>::operator<< <unsigned int>(unsigned int&&) Line | Count | Source | 279 | 96.8k | hb_vector_t& operator << (T&& v) { push (std::forward<T> (v)); return *this; } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>& hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::operator<< <hb_pair_t<unsigned int, unsigned int> >(hb_pair_t<unsigned int, unsigned int>&&) Line | Count | Source | 279 | 13.2M | hb_vector_t& operator << (T&& v) { push (std::forward<T> (v)); return *this; } |
hb_vector_t<CFF::cff1_font_dict_values_mod_t, false>& hb_vector_t<CFF::cff1_font_dict_values_mod_t, false>::operator<< <CFF::cff1_font_dict_values_mod_t>(CFF::cff1_font_dict_values_mod_t&&) Line | Count | Source | 279 | 394 | hb_vector_t& operator << (T&& v) { push (std::forward<T> (v)); return *this; } |
hb_vector_t<unsigned int, false>& hb_vector_t<unsigned int, false>::operator<< <long>(long&&) Line | Count | Source | 279 | 1.77k | hb_vector_t& operator << (T&& v) { push (std::forward<T> (v)); return *this; } |
|
280 | | |
281 | 107M | array_t as_array () { return hb_array (arrayZ, length); }hb_vector_t<hb_user_data_array_t::hb_user_data_item_t, false>::as_array() Line | Count | Source | 281 | 26.0k | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<unsigned int, false>::as_array() Line | Count | Source | 281 | 5.85M | array_t as_array () { return hb_array (arrayZ, length); } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_event_t, false>::as_array() Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::as_array() hb_vector_t<int, false>::as_array() Line | Count | Source | 281 | 340k | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<contour_point_t, false>::as_array() Line | Count | Source | 281 | 32.3M | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>::as_array() Line | Count | Source | 281 | 9.55k | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<OT::cff1::accelerator_t::gname_t, true>::as_array() Line | Count | Source | 281 | 1.76k | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<hb_ot_name_entry_t, false>::as_array() Line | Count | Source | 281 | 36.3k | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<float, false>::as_array() Line | Count | Source | 281 | 3.16M | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::as_array() Line | Count | Source | 281 | 8.65k | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<hb_ot_map_t::feature_map_t, true>::as_array() Line | Count | Source | 281 | 46.3k | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::as_array() Line | Count | Source | 281 | 15.1k | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::as_array() Line | Count | Source | 281 | 66.0M | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<lookup_size_t, false>::as_array() Line | Count | Source | 281 | 2.77k | array_t as_array () { return hb_array (arrayZ, length); } |
Unexecuted instantiation: hb_vector_t<graph::graph_t::vertex_t, false>::as_array() hb_vector_t<char, false>::as_array() Line | Count | Source | 281 | 106 | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::as_array() Line | Count | Source | 281 | 128 | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<unsigned char, false>::as_array() Line | Count | Source | 281 | 330 | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<OT::delta_row_encoding_t, false>::as_array() Line | Count | Source | 281 | 683 | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<hb_vector_t<int, false> const*, false>::as_array() Line | Count | Source | 281 | 2.28k | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<hb_inc_bimap_t, false>::as_array() Line | Count | Source | 281 | 6.93k | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<OT::DeltaSetIndexMap const*, false>::as_array() Line | Count | Source | 281 | 1.58k | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<OT::index_map_subset_plan_t, false>::as_array() Line | Count | Source | 281 | 1.27k | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<OT::AxisValueMap, false>::as_array() Line | Count | Source | 281 | 168 | array_t as_array () { return hb_array (arrayZ, length); } |
Unexecuted instantiation: hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::as_array() hb_vector_t<hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int>, false>::as_array() Line | Count | Source | 281 | 2 | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<bool, false>::as_array() Line | Count | Source | 281 | 221 | array_t as_array () { return hb_array (arrayZ, length); } |
hb_vector_t<hb_color_stop_t, false>::as_array() Line | Count | Source | 281 | 62.9k | array_t as_array () { return hb_array (arrayZ, length); } |
|
282 | 3.77G | c_array_t as_array () const { return hb_array (arrayZ, length); }hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::as_array() const Line | Count | Source | 282 | 208k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<hb_bit_set_t::page_map_t, true>::as_array() const Line | Count | Source | 282 | 2.96G | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<hb_aat_map_t::range_flags_t, true>::as_array() const Line | Count | Source | 282 | 37.7k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<hb_ot_map_t::feature_map_t, true>::as_array() const Line | Count | Source | 282 | 521k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::as_array() const Line | Count | Source | 282 | 1.17k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<hb_bit_page_t, false>::as_array() const Line | Count | Source | 282 | 11.4M | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*, false>::as_array() const Line | Count | Source | 282 | 122k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<hb_serialize_context_t::object_t*, false>::as_array() const Line | Count | Source | 282 | 286k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
Unexecuted instantiation: hb_vector_t<hb_inc_bimap_t, false>::as_array() const hb_vector_t<contour_point_t, false>::as_array() const Line | Count | Source | 282 | 182k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>::as_array() const Line | Count | Source | 282 | 9.55k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t, false>::as_array() const Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_op_t, false>::as_array() const Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_vec_t, false>::as_array() const Unexecuted instantiation: hb_vector_t<hb_outline_point_t, false>::as_array() const hb_vector_t<unsigned char, false>::as_array() const Line | Count | Source | 282 | 147k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<unsigned int, false>::as_array() const Line | Count | Source | 282 | 4.43M | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::as_array() const Line | Count | Source | 282 | 785M | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<unsigned int, true>::as_array() const Line | Count | Source | 282 | 67.7k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::as_array() const Line | Count | Source | 282 | 112k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<bool, false>::as_array() const Line | Count | Source | 282 | 2.33k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<float, false>::as_array() const Line | Count | Source | 282 | 2.90k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::as_array() const Line | Count | Source | 282 | 2.66k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<int, false>::as_array() const Line | Count | Source | 282 | 50.5k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<hb_vector_t<int, false> const*, false>::as_array() const Line | Count | Source | 282 | 1.02k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::as_array() const Line | Count | Source | 282 | 5.46k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<OT::LayerRecord, false>::as_array() const Line | Count | Source | 282 | 148k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::as_array() const Line | Count | Source | 282 | 7.86k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<hb_array_t<unsigned char const>, false>::as_array() const Line | Count | Source | 282 | 3.45k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<hb_vector_t<unsigned char, false>, false>::as_array() const Line | Count | Source | 282 | 14.4k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<CFF::cff1_font_dict_values_t, false>::as_array() const Line | Count | Source | 282 | 256 | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<CFF::cff1_font_dict_values_mod_t, false>::as_array() const Line | Count | Source | 282 | 500 | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<CFF::number_t, false>::as_array() const Line | Count | Source | 282 | 59.5k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<CFF::cff2_font_dict_values_t, false>::as_array() const Line | Count | Source | 282 | 1.36k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
hb_vector_t<CFF::table_info_t, false>::as_array() const Line | Count | Source | 282 | 1.36k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
Unexecuted instantiation: hb_vector_t<char, false>::as_array() const hb_vector_t<hb_color_stop_t, false>::as_array() const Line | Count | Source | 282 | 63.0k | c_array_t as_array () const { return hb_array (arrayZ, length); } |
|
283 | | |
284 | | /* Iterator. */ |
285 | | typedef c_array_t iter_t; |
286 | | typedef array_t writer_t; |
287 | 790M | iter_t iter () const { return as_array (); }hb_vector_t<hb_aat_map_t::range_flags_t, true>::iter() const Line | Count | Source | 287 | 37.7k | iter_t iter () const { return as_array (); } |
hb_vector_t<hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*, false>::iter() const Line | Count | Source | 287 | 122k | iter_t iter () const { return as_array (); } |
hb_vector_t<hb_serialize_context_t::object_t*, false>::iter() const Line | Count | Source | 287 | 286k | iter_t iter () const { return as_array (); } |
Unexecuted instantiation: hb_vector_t<hb_inc_bimap_t, false>::iter() const hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>::iter() const Line | Count | Source | 287 | 9.55k | iter_t iter () const { return as_array (); } |
hb_vector_t<unsigned int, false>::iter() const Line | Count | Source | 287 | 4.39M | iter_t iter () const { return as_array (); } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::iter() const Line | Count | Source | 287 | 785M | iter_t iter () const { return as_array (); } |
hb_vector_t<unsigned int, true>::iter() const Line | Count | Source | 287 | 67.7k | iter_t iter () const { return as_array (); } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::iter() const Line | Count | Source | 287 | 104k | iter_t iter () const { return as_array (); } |
hb_vector_t<bool, false>::iter() const Line | Count | Source | 287 | 169 | iter_t iter () const { return as_array (); } |
hb_vector_t<float, false>::iter() const Line | Count | Source | 287 | 338 | iter_t iter () const { return as_array (); } |
hb_vector_t<int, false>::iter() const Line | Count | Source | 287 | 330 | iter_t iter () const { return as_array (); } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::iter() const Line | Count | Source | 287 | 5.46k | iter_t iter () const { return as_array (); } |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::iter() const Line | Count | Source | 287 | 7.86k | iter_t iter () const { return as_array (); } |
hb_vector_t<hb_array_t<unsigned char const>, false>::iter() const Line | Count | Source | 287 | 3.45k | iter_t iter () const { return as_array (); } |
hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::iter() const Line | Count | Source | 287 | 2 | iter_t iter () const { return as_array (); } |
hb_vector_t<hb_vector_t<unsigned char, false>, false>::iter() const Line | Count | Source | 287 | 14.4k | iter_t iter () const { return as_array (); } |
hb_vector_t<unsigned char, false>::iter() const Line | Count | Source | 287 | 70.5k | iter_t iter () const { return as_array (); } |
hb_vector_t<CFF::cff1_font_dict_values_t, false>::iter() const Line | Count | Source | 287 | 256 | iter_t iter () const { return as_array (); } |
hb_vector_t<CFF::cff1_font_dict_values_mod_t, false>::iter() const Line | Count | Source | 287 | 500 | iter_t iter () const { return as_array (); } |
hb_vector_t<CFF::cff2_font_dict_values_t, false>::iter() const Line | Count | Source | 287 | 1.36k | iter_t iter () const { return as_array (); } |
hb_vector_t<CFF::table_info_t, false>::iter() const Line | Count | Source | 287 | 1.36k | iter_t iter () const { return as_array (); } |
hb_vector_t<hb_color_stop_t, false>::iter() const Line | Count | Source | 287 | 63.0k | iter_t iter () const { return as_array (); } |
|
288 | 70.7M | writer_t writer () { return as_array (); }hb_vector_t<unsigned int, false>::writer() Line | Count | Source | 288 | 4.77M | writer_t writer () { return as_array (); } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::writer() Line | Count | Source | 288 | 66.0M | writer_t writer () { return as_array (); } |
Unexecuted instantiation: hb_vector_t<graph::graph_t::vertex_t, false>::writer() hb_vector_t<char, false>::writer() Line | Count | Source | 288 | 106 | writer_t writer () { return as_array (); } |
hb_vector_t<unsigned char, false>::writer() Line | Count | Source | 288 | 165 | writer_t writer () { return as_array (); } |
hb_vector_t<int, false>::writer() Line | Count | Source | 288 | 2.37k | writer_t writer () { return as_array (); } |
|
289 | 68.5k | operator iter_t () const { return iter (); }Unexecuted instantiation: hb_vector_t<hb_inc_bimap_t, false>::operator hb_array_t<hb_inc_bimap_t const>() const hb_vector_t<bool, false>::operator hb_array_t<bool const>() const Line | Count | Source | 289 | 169 | operator iter_t () const { return iter (); } |
hb_vector_t<float, false>::operator hb_array_t<float const>() const Line | Count | Source | 289 | 338 | operator iter_t () const { return iter (); } |
hb_vector_t<int, false>::operator hb_array_t<int const>() const Line | Count | Source | 289 | 330 | operator iter_t () const { return iter (); } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::operator hb_sorted_array_t<hb_pair_t<unsigned int, unsigned int> const>() const Line | Count | Source | 289 | 4.64k | operator iter_t () const { return iter (); } |
hb_vector_t<hb_color_stop_t, false>::operator hb_array_t<hb_color_stop_t const>() const Line | Count | Source | 289 | 63.0k | operator iter_t () const { return iter (); } |
|
290 | 295k | operator writer_t () { return writer (); }hb_vector_t<unsigned int, false>::operator hb_array_t<unsigned int>() Line | Count | Source | 290 | 293k | operator writer_t () { return writer (); } |
hb_vector_t<char, false>::operator hb_array_t<char>() Line | Count | Source | 290 | 106 | operator writer_t () { return writer (); } |
hb_vector_t<unsigned char, false>::operator hb_array_t<unsigned char>() Line | Count | Source | 290 | 165 | operator writer_t () { return writer (); } |
hb_vector_t<int, false>::operator hb_array_t<int>() Line | Count | Source | 290 | 2.37k | operator writer_t () { return writer (); } |
|
291 | | |
292 | | /* Faster range-based for loop. */ |
293 | 220M | Type *begin () const { return arrayZ; }Unexecuted instantiation: hb_vector_t<hb_bit_set_t::page_map_t, true>::begin() const hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::begin() const Line | Count | Source | 293 | 218M | Type *begin () const { return arrayZ; } |
hb_vector_t<unsigned int, false>::begin() const Line | Count | Source | 293 | 876k | Type *begin () const { return arrayZ; } |
Unexecuted instantiation: hb_vector_t<hb_vector_t<hb_aat_map_t::range_flags_t, true>, false>::begin() const hb_vector_t<contour_point_t, false>::begin() const Line | Count | Source | 293 | 800k | Type *begin () const { return arrayZ; } |
Unexecuted instantiation: hb_vector_t<hb_outline_point_t, false>::begin() const hb_vector_t<hb_ot_map_t::feature_map_t, true>::begin() const Line | Count | Source | 293 | 252k | Type *begin () const { return arrayZ; } |
hb_vector_t<hb_raster_edge_t, false>::begin() const Line | Count | Source | 293 | 13.7k | Type *begin () const { return arrayZ; } |
hb_vector_t<hb_raster_image_t*, false>::begin() const Line | Count | Source | 293 | 4.02k | Type *begin () const { return arrayZ; } |
hb_vector_t<hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >, false>::begin() const Line | Count | Source | 293 | 2.18k | Type *begin () const { return arrayZ; } |
hb_vector_t<lookup_size_t, false>::begin() const Line | Count | Source | 293 | 5.54k | Type *begin () const { return arrayZ; } |
Unexecuted instantiation: hb_vector_t<graph::overflow_record_t, false>::begin() const hb_vector_t<char*, false>::begin() const Line | Count | Source | 293 | 5.86k | Type *begin () const { return arrayZ; } |
hb_vector_t<hb_blob_t*, false>::begin() const Line | Count | Source | 293 | 281k | Type *begin () const { return arrayZ; } |
hb_vector_t<hb_vector_t<int, false> const*, false>::begin() const Line | Count | Source | 293 | 6.76k | Type *begin () const { return arrayZ; } |
hb_vector_t<unsigned char, false>::begin() const Line | Count | Source | 293 | 2.44k | Type *begin () const { return arrayZ; } |
hb_vector_t<bool, false>::begin() const Line | Count | Source | 293 | 221 | Type *begin () const { return arrayZ; } |
hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::begin() const Line | Count | Source | 293 | 2.43k | Type *begin () const { return arrayZ; } |
hb_vector_t<OT::tuple_delta_t, false>::begin() const Line | Count | Source | 293 | 29.5k | Type *begin () const { return arrayZ; } |
hb_vector_t<float, false>::begin() const Line | Count | Source | 293 | 7.34k | Type *begin () const { return arrayZ; } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false>, false>::begin() const Line | Count | Source | 293 | 759 | Type *begin () const { return arrayZ; } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::begin() const Line | Count | Source | 293 | 759 | Type *begin () const { return arrayZ; } |
hb_vector_t<int, false>::begin() const Line | Count | Source | 293 | 28.1k | Type *begin () const { return arrayZ; } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::begin() const Line | Count | Source | 293 | 32.5k | Type *begin () const { return arrayZ; } |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::begin() const Line | Count | Source | 293 | 11.3k | Type *begin () const { return arrayZ; } |
hb_vector_t<OT::AxisValueMap, false>::begin() const Line | Count | Source | 293 | 168 | Type *begin () const { return arrayZ; } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::begin() const Line | Count | Source | 293 | 1.63k | Type *begin () const { return arrayZ; } |
hb_vector_t<CFF::cff1_top_dict_val_t, false>::begin() const Line | Count | Source | 293 | 2.33k | Type *begin () const { return arrayZ; } |
hb_vector_t<CFF::parsed_cs_op_t, false>::begin() const Line | Count | Source | 293 | 25.5k | Type *begin () const { return arrayZ; } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t, false>::begin() const Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_vec_t, false>::begin() const hb_vector_t<CFF::cs_command_t, false>::begin() const Line | Count | Source | 293 | 358 | Type *begin () const { return arrayZ; } |
hb_vector_t<CFF::number_t, false>::begin() const Line | Count | Source | 293 | 7.40k | Type *begin () const { return arrayZ; } |
hb_vector_t<CFF::op_str_t, false>::begin() const Line | Count | Source | 293 | 293 | Type *begin () const { return arrayZ; } |
hb_vector_t<hb_pair_t<double, Triple>, false>::begin() const Line | Count | Source | 293 | 7.05k | Type *begin () const { return arrayZ; } |
|
294 | 220M | Type *end () const { return arrayZ + length; }Unexecuted instantiation: hb_vector_t<hb_bit_set_t::page_map_t, true>::end() const hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::end() const Line | Count | Source | 294 | 218M | Type *end () const { return arrayZ + length; } |
hb_vector_t<unsigned int, false>::end() const Line | Count | Source | 294 | 876k | Type *end () const { return arrayZ + length; } |
Unexecuted instantiation: hb_vector_t<hb_vector_t<hb_aat_map_t::range_flags_t, true>, false>::end() const hb_vector_t<contour_point_t, false>::end() const Line | Count | Source | 294 | 800k | Type *end () const { return arrayZ + length; } |
Unexecuted instantiation: hb_vector_t<hb_outline_point_t, false>::end() const hb_vector_t<hb_ot_map_t::feature_map_t, true>::end() const Line | Count | Source | 294 | 252k | Type *end () const { return arrayZ + length; } |
hb_vector_t<hb_raster_edge_t, false>::end() const Line | Count | Source | 294 | 13.7k | Type *end () const { return arrayZ + length; } |
hb_vector_t<hb_raster_image_t*, false>::end() const Line | Count | Source | 294 | 4.02k | Type *end () const { return arrayZ + length; } |
hb_vector_t<hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >, false>::end() const Line | Count | Source | 294 | 2.18k | Type *end () const { return arrayZ + length; } |
hb_vector_t<lookup_size_t, false>::end() const Line | Count | Source | 294 | 5.54k | Type *end () const { return arrayZ + length; } |
Unexecuted instantiation: hb_vector_t<graph::overflow_record_t, false>::end() const hb_vector_t<char*, false>::end() const Line | Count | Source | 294 | 5.86k | Type *end () const { return arrayZ + length; } |
hb_vector_t<hb_blob_t*, false>::end() const Line | Count | Source | 294 | 281k | Type *end () const { return arrayZ + length; } |
hb_vector_t<hb_vector_t<int, false> const*, false>::end() const Line | Count | Source | 294 | 6.76k | Type *end () const { return arrayZ + length; } |
hb_vector_t<unsigned char, false>::end() const Line | Count | Source | 294 | 2.36k | Type *end () const { return arrayZ + length; } |
hb_vector_t<bool, false>::end() const Line | Count | Source | 294 | 221 | Type *end () const { return arrayZ + length; } |
hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::end() const Line | Count | Source | 294 | 2.43k | Type *end () const { return arrayZ + length; } |
hb_vector_t<OT::tuple_delta_t, false>::end() const Line | Count | Source | 294 | 29.5k | Type *end () const { return arrayZ + length; } |
hb_vector_t<float, false>::end() const Line | Count | Source | 294 | 7.34k | Type *end () const { return arrayZ + length; } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false>, false>::end() const Line | Count | Source | 294 | 759 | Type *end () const { return arrayZ + length; } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::end() const Line | Count | Source | 294 | 759 | Type *end () const { return arrayZ + length; } |
hb_vector_t<int, false>::end() const Line | Count | Source | 294 | 28.1k | Type *end () const { return arrayZ + length; } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::end() const Line | Count | Source | 294 | 32.5k | Type *end () const { return arrayZ + length; } |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::end() const Line | Count | Source | 294 | 11.3k | Type *end () const { return arrayZ + length; } |
hb_vector_t<OT::AxisValueMap, false>::end() const Line | Count | Source | 294 | 168 | Type *end () const { return arrayZ + length; } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::end() const Line | Count | Source | 294 | 1.63k | Type *end () const { return arrayZ + length; } |
hb_vector_t<CFF::cff1_top_dict_val_t, false>::end() const Line | Count | Source | 294 | 2.33k | Type *end () const { return arrayZ + length; } |
hb_vector_t<CFF::parsed_cs_op_t, false>::end() const Line | Count | Source | 294 | 25.5k | Type *end () const { return arrayZ + length; } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t, false>::end() const Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_vec_t, false>::end() const hb_vector_t<CFF::cs_command_t, false>::end() const Line | Count | Source | 294 | 358 | Type *end () const { return arrayZ + length; } |
hb_vector_t<CFF::number_t, false>::end() const Line | Count | Source | 294 | 7.40k | Type *end () const { return arrayZ + length; } |
hb_vector_t<CFF::op_str_t, false>::end() const Line | Count | Source | 294 | 293 | Type *end () const { return arrayZ + length; } |
hb_vector_t<hb_pair_t<double, Triple>, false>::end() const Line | Count | Source | 294 | 7.05k | Type *end () const { return arrayZ + length; } |
|
295 | | |
296 | | |
297 | | hb_sorted_array_t<Type> as_sorted_array () |
298 | | { return hb_sorted_array (arrayZ, length); } |
299 | | hb_sorted_array_t<const Type> as_sorted_array () const |
300 | | { return hb_sorted_array (arrayZ, length); } |
301 | | |
302 | 1.56k | template <typename T> explicit operator T * () { return arrayZ; } |
303 | 257k | template <typename T> explicit operator const T * () const { return arrayZ; } |
304 | | |
305 | 1.29M | Type * operator + (unsigned int i) { return arrayZ + i; } |
306 | | const Type * operator + (unsigned int i) const { return arrayZ + i; } |
307 | | |
308 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
309 | | Type *push () |
310 | 47.4M | { |
311 | 47.4M | if (unlikely (!resize (length + 1))) |
312 | 451k | return std::addressof (Crap (Type)); |
313 | 46.9M | return std::addressof (arrayZ[length - 1]); |
314 | 47.4M | } hb_vector_t<hb_set_digest_t, false>::push() Line | Count | Source | 310 | 1.47k | { | 311 | 1.47k | if (unlikely (!resize (length + 1))) | 312 | 176 | return std::addressof (Crap (Type)); | 313 | 1.30k | return std::addressof (arrayZ[length - 1]); | 314 | 1.47k | } |
hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::push() Line | Count | Source | 310 | 4.40k | { | 311 | 4.40k | if (unlikely (!resize (length + 1))) | 312 | 26 | return std::addressof (Crap (Type)); | 313 | 4.37k | return std::addressof (arrayZ[length - 1]); | 314 | 4.40k | } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::push() Line | Count | Source | 310 | 16.9M | { | 311 | 16.9M | if (unlikely (!resize (length + 1))) | 312 | 602 | return std::addressof (Crap (Type)); | 313 | 16.9M | return std::addressof (arrayZ[length - 1]); | 314 | 16.9M | } |
Unexecuted instantiation: hb_vector_t<hb_inc_bimap_t, false>::push() hb_vector_t<hb_set_t, false>::push() Line | Count | Source | 310 | 7.01M | { | 311 | 7.01M | if (unlikely (!resize (length + 1))) | 312 | 152 | return std::addressof (Crap (Type)); | 313 | 7.01M | return std::addressof (arrayZ[length - 1]); | 314 | 7.01M | } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_range_t, true>::push() Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_event_t, false>::push() Unexecuted instantiation: hb_vector_t<OT::SVG::svg_defs_entry_t, false>::push() hb_vector_t<CFF::cff1_font_dict_values_t, false>::push() Line | Count | Source | 310 | 33.5k | { | 311 | 33.5k | if (unlikely (!resize (length + 1))) | 312 | 14 | return std::addressof (Crap (Type)); | 313 | 33.5k | return std::addressof (arrayZ[length - 1]); | 314 | 33.5k | } |
hb_vector_t<CFF::cff2_font_dict_values_t, false>::push() Line | Count | Source | 310 | 20.5k | { | 311 | 20.5k | if (unlikely (!resize (length + 1))) | 312 | 18 | return std::addressof (Crap (Type)); | 313 | 20.5k | return std::addressof (arrayZ[length - 1]); | 314 | 20.5k | } |
hb_vector_t<hb_ot_name_entry_t, false>::push() Line | Count | Source | 310 | 208k | { | 311 | 208k | if (unlikely (!resize (length + 1))) | 312 | 6.19k | return std::addressof (Crap (Type)); | 313 | 201k | return std::addressof (arrayZ[length - 1]); | 314 | 208k | } |
hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::push() Line | Count | Source | 310 | 1.52M | { | 311 | 1.52M | if (unlikely (!resize (length + 1))) | 312 | 27.4k | return std::addressof (Crap (Type)); | 313 | 1.50M | return std::addressof (arrayZ[length - 1]); | 314 | 1.52M | } |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::push() Line | Count | Source | 310 | 1.30M | { | 311 | 1.30M | if (unlikely (!resize (length + 1))) | 312 | 80.7k | return std::addressof (Crap (Type)); | 313 | 1.22M | return std::addressof (arrayZ[length - 1]); | 314 | 1.30M | } |
hb_vector_t<hb_ot_map_builder_t::stage_info_t, false>::push() Line | Count | Source | 310 | 252k | { | 311 | 252k | if (unlikely (!resize (length + 1))) | 312 | 2.21k | return std::addressof (Crap (Type)); | 313 | 249k | return std::addressof (arrayZ[length - 1]); | 314 | 252k | } |
hb_vector_t<hb_ot_map_t::feature_map_t, true>::push() Line | Count | Source | 310 | 64.8k | { | 311 | 64.8k | if (unlikely (!resize (length + 1))) | 312 | 554 | return std::addressof (Crap (Type)); | 313 | 64.2k | return std::addressof (arrayZ[length - 1]); | 314 | 64.8k | } |
hb_vector_t<hb_ot_map_t::stage_map_t, false>::push() Line | Count | Source | 310 | 249k | { | 311 | 249k | if (unlikely (!resize (length + 1))) | 312 | 2.23k | return std::addressof (Crap (Type)); | 313 | 247k | return std::addressof (arrayZ[length - 1]); | 314 | 249k | } |
hb_vector_t<graph::graph_t::vertex_t, false>::push() Line | Count | Source | 310 | 16.4M | { | 311 | 16.4M | if (unlikely (!resize (length + 1))) | 312 | 149k | return std::addressof (Crap (Type)); | 313 | 16.2M | return std::addressof (arrayZ[length - 1]); | 314 | 16.4M | } |
hb_vector_t<hb_vector_t<char, false>, false>::push() Line | Count | Source | 310 | 106 | { | 311 | 106 | if (unlikely (!resize (length + 1))) | 312 | 0 | return std::addressof (Crap (Type)); | 313 | 106 | return std::addressof (arrayZ[length - 1]); | 314 | 106 | } |
hb_vector_t<OT::tuple_delta_t, false>::push() Line | Count | Source | 310 | 8.53k | { | 311 | 8.53k | if (unlikely (!resize (length + 1))) | 312 | 0 | return std::addressof (Crap (Type)); | 313 | 8.53k | return std::addressof (arrayZ[length - 1]); | 314 | 8.53k | } |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::push() Line | Count | Source | 310 | 3.15M | { | 311 | 3.15M | if (unlikely (!resize (length + 1))) | 312 | 0 | return std::addressof (Crap (Type)); | 313 | 3.15M | return std::addressof (arrayZ[length - 1]); | 314 | 3.15M | } |
hb_vector_t<hb_vector_buf_t, false>::push() Line | Count | Source | 310 | 210k | { | 311 | 210k | if (unlikely (!resize (length + 1))) | 312 | 181k | return std::addressof (Crap (Type)); | 313 | 28.8k | return std::addressof (arrayZ[length - 1]); | 314 | 210k | } |
|
315 | | template <typename... Args> |
316 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
317 | | Type *push (Args&&... args) |
318 | 717M | { |
319 | 717M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) |
320 | | // If push failed to allocate then don't copy v, since this may cause |
321 | | // the created copy to leak memory since we won't have stored a |
322 | | // reference to it. |
323 | 20.5M | return std::addressof (Crap (Type)); |
324 | | |
325 | 696M | return push_has_room (std::forward<Args> (args)...); |
326 | 717M | } hb_aat_map_t::range_flags_t* hb_vector_t<hb_aat_map_t::range_flags_t, true>::push<hb_aat_map_t::range_flags_t>(hb_aat_map_t::range_flags_t&&) Line | Count | Source | 318 | 6.21k | { | 319 | 6.21k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 140 | return std::addressof (Crap (Type)); | 324 | | | 325 | 6.07k | return push_has_room (std::forward<Args> (args)...); | 326 | 6.21k | } |
hb_user_data_array_t::hb_user_data_item_t* hb_vector_t<hb_user_data_array_t::hb_user_data_item_t, false>::push<hb_user_data_array_t::hb_user_data_item_t&>(hb_user_data_array_t::hb_user_data_item_t&) Line | Count | Source | 318 | 26.0k | { | 319 | 26.0k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 382 | return std::addressof (Crap (Type)); | 324 | | | 325 | 25.6k | return push_has_room (std::forward<Args> (args)...); | 326 | 26.0k | } |
hb_serialize_context_t::object_t** hb_vector_t<hb_serialize_context_t::object_t*, false>::push<decltype(nullptr)>(decltype(nullptr)&&) Line | Count | Source | 318 | 130k | { | 319 | 130k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 234 | return std::addressof (Crap (Type)); | 324 | | | 325 | 130k | return push_has_room (std::forward<Args> (args)...); | 326 | 130k | } |
hb_serialize_context_t::object_t** hb_vector_t<hb_serialize_context_t::object_t*, false>::push<hb_serialize_context_t::object_t*&>(hb_serialize_context_t::object_t*&) Line | Count | Source | 318 | 4.31M | { | 319 | 4.31M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 176 | return std::addressof (Crap (Type)); | 324 | | | 325 | 4.31M | return push_has_room (std::forward<Args> (args)...); | 326 | 4.31M | } |
hb_serialize_context_t::object_t::link_t* hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::push<hb_serialize_context_t::object_t::link_t const&>(hb_serialize_context_t::object_t::link_t const&) Line | Count | Source | 318 | 18.4M | { | 319 | 18.4M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 65 | return std::addressof (Crap (Type)); | 324 | | | 325 | 18.4M | return push_has_room (std::forward<Args> (args)...); | 326 | 18.4M | } |
hb_transform_t<float>* hb_vector_t<hb_transform_t<float>, false>::push<hb_transform_t<float> >(hb_transform_t<float>&&) Line | Count | Source | 318 | 950k | { | 319 | 950k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 37.0k | return std::addressof (Crap (Type)); | 324 | | | 325 | 913k | return push_has_room (std::forward<Args> (args)...); | 326 | 950k | } |
hb_bounds_t<float>* hb_vector_t<hb_bounds_t<float>, false>::push<hb_bounds_t<float> >(hb_bounds_t<float>&&) Line | Count | Source | 318 | 2.35M | { | 319 | 2.35M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 124k | return std::addressof (Crap (Type)); | 324 | | | 325 | 2.23M | return push_has_room (std::forward<Args> (args)...); | 326 | 2.35M | } |
hb_transform_t<float>* hb_vector_t<hb_transform_t<float>, false>::push<hb_transform_t<float>&>(hb_transform_t<float>&) Line | Count | Source | 318 | 1.78M | { | 319 | 1.78M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 181k | return std::addressof (Crap (Type)); | 324 | | | 325 | 1.60M | return push_has_room (std::forward<Args> (args)...); | 326 | 1.78M | } |
hb_bounds_t<float>* hb_vector_t<hb_bounds_t<float>, false>::push<hb_bounds_t<float>&>(hb_bounds_t<float>&) Line | Count | Source | 318 | 1.85M | { | 319 | 1.85M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 227k | return std::addressof (Crap (Type)); | 324 | | | 325 | 1.62M | return push_has_room (std::forward<Args> (args)...); | 326 | 1.85M | } |
unsigned int* hb_vector_t<unsigned int, false>::push<unsigned int&>(unsigned int&) Line | Count | Source | 318 | 11.8M | { | 319 | 11.8M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 985 | return std::addressof (Crap (Type)); | 324 | | | 325 | 11.8M | return push_has_room (std::forward<Args> (args)...); | 326 | 11.8M | } |
unsigned int* hb_vector_t<unsigned int, false>::push<unsigned int>(unsigned int&&) Line | Count | Source | 318 | 3.45M | { | 319 | 3.45M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 74.8k | return std::addressof (Crap (Type)); | 324 | | | 325 | 3.38M | return push_has_room (std::forward<Args> (args)...); | 326 | 3.45M | } |
hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t** hb_vector_t<hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*, false>::push<hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*&>(hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*&) Line | Count | Source | 318 | 1.19M | { | 319 | 1.19M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 1.19M | return push_has_room (std::forward<Args> (args)...); | 326 | 1.19M | } |
Unexecuted instantiation: hb_vector_t<char, false>* hb_vector_t<hb_vector_t<char, false>, false>::push<hb_vector_t<char, false> >(hb_vector_t<char, false>&&) Unexecuted instantiation: hb_aat_map_builder_t::feature_info_t* hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::push<hb_aat_map_builder_t::feature_info_t&>(hb_aat_map_builder_t::feature_info_t&) bool* hb_vector_t<bool, false>::push<bool&>(bool&) Line | Count | Source | 318 | 538k | { | 319 | 538k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 21.8k | return std::addressof (Crap (Type)); | 324 | | | 325 | 517k | return push_has_room (std::forward<Args> (args)...); | 326 | 538k | } |
contour_point_t* hb_vector_t<contour_point_t, false>::push<contour_point_t&>(contour_point_t&) Line | Count | Source | 318 | 6.83M | { | 319 | 6.83M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 6.83M | return push_has_room (std::forward<Args> (args)...); | 326 | 6.83M | } |
hb_pair_t<unsigned int, face_table_info_t>* hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>::push<hb_pair_t<unsigned int, face_table_info_t> >(hb_pair_t<unsigned int, face_table_info_t>&&) Line | Count | Source | 318 | 60.9k | { | 319 | 60.9k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 160 | return std::addressof (Crap (Type)); | 324 | | | 325 | 60.7k | return push_has_room (std::forward<Args> (args)...); | 326 | 60.9k | } |
int* hb_vector_t<int, false>::push<int&>(int&) Line | Count | Source | 318 | 14.6k | { | 319 | 14.6k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 860 | return std::addressof (Crap (Type)); | 324 | | | 325 | 13.8k | return push_has_room (std::forward<Args> (args)...); | 326 | 14.6k | } |
Unexecuted instantiation: OT::_hb_svg_cache_impl::id_entry_t* hb_vector_t<OT::_hb_svg_cache_impl::id_entry_t, false>::push<OT::_hb_svg_cache_impl::id_entry_t>(OT::_hb_svg_cache_impl::id_entry_t&&) Unexecuted instantiation: OT::_hb_svg_cache_impl::glyph_entry_t* hb_vector_t<OT::_hb_svg_cache_impl::glyph_entry_t, false>::push<OT::_hb_svg_cache_impl::glyph_entry_t>(OT::_hb_svg_cache_impl::glyph_entry_t&&) CFF::cff1_top_dict_val_t* hb_vector_t<CFF::cff1_top_dict_val_t, false>::push<CFF::cff1_top_dict_val_t const&>(CFF::cff1_top_dict_val_t const&) Line | Count | Source | 318 | 151k | { | 319 | 151k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 2.54k | return std::addressof (Crap (Type)); | 324 | | | 325 | 148k | return push_has_room (std::forward<Args> (args)...); | 326 | 151k | } |
CFF::op_str_t* hb_vector_t<CFF::op_str_t, false>::push<CFF::op_str_t const&>(CFF::op_str_t const&) Line | Count | Source | 318 | 1.07M | { | 319 | 1.07M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 151k | return std::addressof (Crap (Type)); | 324 | | | 325 | 921k | return push_has_room (std::forward<Args> (args)...); | 326 | 1.07M | } |
CFF::dict_val_t* hb_vector_t<CFF::dict_val_t, false>::push<CFF::dict_val_t const&>(CFF::dict_val_t const&) Line | Count | Source | 318 | 257k | { | 319 | 257k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 5.39k | return std::addressof (Crap (Type)); | 324 | | | 325 | 252k | return push_has_room (std::forward<Args> (args)...); | 326 | 257k | } |
OT::cff1::accelerator_t::gname_t* hb_vector_t<OT::cff1::accelerator_t::gname_t, true>::push<OT::cff1::accelerator_t::gname_t&>(OT::cff1::accelerator_t::gname_t&) Line | Count | Source | 318 | 496k | { | 319 | 496k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 496k | return push_has_room (std::forward<Args> (args)...); | 326 | 496k | } |
Unexecuted instantiation: hb_ot_name_record_ids_t* hb_vector_t<hb_ot_name_record_ids_t, false>::push<hb_ot_name_record_ids_t const&>(hb_ot_name_record_ids_t const&) unsigned int* hb_vector_t<unsigned int, false>::push<long>(long&&) Line | Count | Source | 318 | 861k | { | 319 | 861k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 19.1k | return std::addressof (Crap (Type)); | 324 | | | 325 | 842k | return push_has_room (std::forward<Args> (args)...); | 326 | 861k | } |
Unexecuted instantiation: hb_outline_point_t* hb_vector_t<hb_outline_point_t, false>::push<hb_outline_point_t>(hb_outline_point_t&&) hb_raster_edge_t* hb_vector_t<hb_raster_edge_t, false>::push<hb_raster_edge_t&>(hb_raster_edge_t&) Line | Count | Source | 318 | 8.17M | { | 319 | 8.17M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 543k | return std::addressof (Crap (Type)); | 324 | | | 325 | 7.63M | return push_has_room (std::forward<Args> (args)...); | 326 | 8.17M | } |
hb_raster_image_t** hb_vector_t<hb_raster_image_t*, false>::push<hb_raster_image_t*&>(hb_raster_image_t*&) Line | Count | Source | 318 | 14.8k | { | 319 | 14.8k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 840 | return std::addressof (Crap (Type)); | 324 | | | 325 | 13.9k | return push_has_room (std::forward<Args> (args)...); | 326 | 14.8k | } |
hb_raster_clip_t* hb_vector_t<hb_raster_clip_t, false>::push<hb_raster_clip_t>(hb_raster_clip_t&&) Line | Count | Source | 318 | 86.2k | { | 319 | 86.2k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 1.22k | return std::addressof (Crap (Type)); | 324 | | | 325 | 85.0k | return push_has_room (std::forward<Args> (args)...); | 326 | 86.2k | } |
hb_serialize_context_t::object_t::link_t* hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::push<hb_subset_serialize_link_t&>(hb_subset_serialize_link_t&) Line | Count | Source | 318 | 17.9M | { | 319 | 17.9M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 50.8k | return std::addressof (Crap (Type)); | 324 | | | 325 | 17.9M | return push_has_room (std::forward<Args> (args)...); | 326 | 17.9M | } |
unsigned int* hb_vector_t<unsigned int, false>::push<unsigned int const&>(unsigned int const&) Line | Count | Source | 318 | 1.26k | { | 319 | 1.26k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 1.26k | return push_has_room (std::forward<Args> (args)...); | 326 | 1.26k | } |
hb_subset_serialize_object_t const** hb_vector_t<hb_subset_serialize_object_t const*, false>::push<decltype(nullptr)>(decltype(nullptr)&&) Line | Count | Source | 318 | 3.75k | { | 319 | 3.75k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 27 | return std::addressof (Crap (Type)); | 324 | | | 325 | 3.72k | return push_has_room (std::forward<Args> (args)...); | 326 | 3.75k | } |
hb_subset_serialize_object_t const** hb_vector_t<hb_subset_serialize_object_t const*, false>::push<hb_subset_serialize_object_t*>(hb_subset_serialize_object_t*&&) Line | Count | Source | 318 | 12.3M | { | 319 | 12.3M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 149k | return std::addressof (Crap (Type)); | 324 | | | 325 | 12.2M | return push_has_room (std::forward<Args> (args)...); | 326 | 12.3M | } |
unsigned int* hb_vector_t<unsigned int, false>::push<int>(int&&) Line | Count | Source | 318 | 85.0k | { | 319 | 85.0k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 37 | return std::addressof (Crap (Type)); | 324 | | | 325 | 85.0k | return push_has_room (std::forward<Args> (args)...); | 326 | 85.0k | } |
hb_pair_t<long, unsigned int>* hb_vector_t<hb_pair_t<long, unsigned int>, false>::push<hb_pair_t<long, unsigned int> >(hb_pair_t<long, unsigned int>&&) Line | Count | Source | 318 | 341M | { | 319 | 341M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 114 | return std::addressof (Crap (Type)); | 324 | | | 325 | 341M | return push_has_room (std::forward<Args> (args)...); | 326 | 341M | } |
graph::overflow_record_t* hb_vector_t<graph::overflow_record_t, false>::push<graph::overflow_record_t&>(graph::overflow_record_t&) Line | Count | Source | 318 | 18.2M | { | 319 | 18.2M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 67 | return std::addressof (Crap (Type)); | 324 | | | 325 | 18.2M | return push_has_room (std::forward<Args> (args)...); | 326 | 18.2M | } |
hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >* hb_vector_t<hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >, false>::push<hb_pair_t<unsigned int&, hb_vector_t<unsigned int, false>&> >(hb_pair_t<unsigned int&, hb_vector_t<unsigned int, false>&>&&) Line | Count | Source | 318 | 336 | { | 319 | 336 | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 336 | return push_has_room (std::forward<Args> (args)...); | 326 | 336 | } |
char** hb_vector_t<char*, false>::push<char*&>(char*&) Line | Count | Source | 318 | 121k | { | 319 | 121k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 12 | return std::addressof (Crap (Type)); | 324 | | | 325 | 121k | return push_has_room (std::forward<Args> (args)...); | 326 | 121k | } |
hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >* hb_vector_t<hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >, false>::push<hb_pair_t<unsigned int&, hb_vector_t<unsigned int, false> > >(hb_pair_t<unsigned int&, hb_vector_t<unsigned int, false> >&&) Line | Count | Source | 318 | 875 | { | 319 | 875 | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 875 | return push_has_room (std::forward<Args> (args)...); | 326 | 875 | } |
lookup_size_t* hb_vector_t<lookup_size_t, false>::push<lookup_size_t>(lookup_size_t&&) Line | Count | Source | 318 | 101k | { | 319 | 101k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 16 | return std::addressof (Crap (Type)); | 324 | | | 325 | 101k | return push_has_room (std::forward<Args> (args)...); | 326 | 101k | } |
hb_gpu_curve_t* hb_vector_t<hb_gpu_curve_t, false>::push<hb_gpu_curve_t&>(hb_gpu_curve_t&) Line | Count | Source | 318 | 71.7M | { | 319 | 71.7M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 670 | return std::addressof (Crap (Type)); | 324 | | | 325 | 71.7M | return push_has_room (std::forward<Args> (args)...); | 326 | 71.7M | } |
hb_blob_t** hb_vector_t<hb_blob_t*, false>::push<hb_blob_t*&>(hb_blob_t*&) Line | Count | Source | 318 | 90.8k | { | 319 | 90.8k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 195 | return std::addressof (Crap (Type)); | 324 | | | 325 | 90.6k | return push_has_room (std::forward<Args> (args)...); | 326 | 90.8k | } |
hb_pair_t<unsigned int, unsigned int>* hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::push<hb_pair_t<unsigned int&, unsigned int&> >(hb_pair_t<unsigned int&, unsigned int&>&&) Line | Count | Source | 318 | 760k | { | 319 | 760k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 248 | return std::addressof (Crap (Type)); | 324 | | | 325 | 760k | return push_has_room (std::forward<Args> (args)...); | 326 | 760k | } |
hb_vector_t<int, false> const** hb_vector_t<hb_vector_t<int, false> const*, false>::push<hb_vector_t<int, false> const*&>(hb_vector_t<int, false> const*&) Line | Count | Source | 318 | 8.54k | { | 319 | 8.54k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 8.54k | return push_has_room (std::forward<Args> (args)...); | 326 | 8.54k | } |
hb_hashmap_t<unsigned int, Triple, false>* hb_vector_t<hb_hashmap_t<unsigned int, Triple, false>, false>::push<hb_hashmap_t<unsigned int, Triple, false> >(hb_hashmap_t<unsigned int, Triple, false>&&) Line | Count | Source | 318 | 136k | { | 319 | 136k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 136k | return push_has_room (std::forward<Args> (args)...); | 326 | 136k | } |
Unexecuted instantiation: hb_vector_t<char, false>* hb_vector_t<hb_vector_t<char, false>, false>::push<hb_vector_t<char, false> >(hb_vector_t<char, false>&&) OT::tuple_delta_t* hb_vector_t<OT::tuple_delta_t, false>::push<OT::tuple_delta_t>(OT::tuple_delta_t&&) Line | Count | Source | 318 | 41.1k | { | 319 | 41.1k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 41.1k | return push_has_room (std::forward<Args> (args)...); | 326 | 41.1k | } |
OT::delta_row_encoding_t* hb_vector_t<OT::delta_row_encoding_t, false>::push<OT::delta_row_encoding_t>(OT::delta_row_encoding_t&&) Line | Count | Source | 318 | 7.95k | { | 319 | 7.95k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 7.95k | return push_has_room (std::forward<Args> (args)...); | 326 | 7.95k | } |
OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t* hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::push<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t>(OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t&&) Line | Count | Source | 318 | 12.7k | { | 319 | 12.7k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 12.7k | return push_has_room (std::forward<Args> (args)...); | 326 | 12.7k | } |
hb_hashmap_t<unsigned int, Triple, false> const** hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::push<hb_hashmap_t<unsigned int, Triple, false> const*&>(hb_hashmap_t<unsigned int, Triple, false> const*&) Line | Count | Source | 318 | 7.29k | { | 319 | 7.29k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 7.29k | return push_has_room (std::forward<Args> (args)...); | 326 | 7.29k | } |
hb_hashmap_t<unsigned int, Triple, false> const** hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::push<hb_hashmap_t<unsigned int, Triple, false> const*>(hb_hashmap_t<unsigned int, Triple, false> const*&&) Line | Count | Source | 318 | 4.82k | { | 319 | 4.82k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 4.82k | return push_has_room (std::forward<Args> (args)...); | 326 | 4.82k | } |
hb_hashmap_t<unsigned int, Triple, false> const** hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::push<hb_hashmap_t<unsigned int, Triple, false> const* const&>(hb_hashmap_t<unsigned int, Triple, false> const* const&) Line | Count | Source | 318 | 719 | { | 319 | 719 | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 719 | return push_has_room (std::forward<Args> (args)...); | 326 | 719 | } |
hb_vector_t<int, false> const** hb_vector_t<hb_vector_t<int, false> const*, false>::push<hb_vector_t<int, false> const*>(hb_vector_t<int, false> const*&&) Line | Count | Source | 318 | 6.69k | { | 319 | 6.69k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 6.69k | return push_has_room (std::forward<Args> (args)...); | 326 | 6.69k | } |
hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>* hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>::push<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int> >(hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>&&) Line | Count | Source | 318 | 7.65k | { | 319 | 7.65k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 7.65k | return push_has_room (std::forward<Args> (args)...); | 326 | 7.65k | } |
OT::delta_row_encoding_t* hb_vector_t<OT::delta_row_encoding_t, false>::push<OT::delta_row_encoding_t&>(OT::delta_row_encoding_t&) Line | Count | Source | 318 | 1.02k | { | 319 | 1.02k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 1.02k | return push_has_room (std::forward<Args> (args)...); | 326 | 1.02k | } |
unsigned int* hb_vector_t<unsigned int, true>::push<unsigned int const&>(unsigned int const&) Line | Count | Source | 318 | 1.59M | { | 319 | 1.59M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 303 | return std::addressof (Crap (Type)); | 324 | | | 325 | 1.59M | return push_has_room (std::forward<Args> (args)...); | 326 | 1.59M | } |
hb_pair_t<unsigned int, unsigned int>* hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::push<hb_pair_t<unsigned int, unsigned int>&>(hb_pair_t<unsigned int, unsigned int>&) Line | Count | Source | 318 | 234 | { | 319 | 234 | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 234 | return push_has_room (std::forward<Args> (args)...); | 326 | 234 | } |
unsigned int* hb_vector_t<unsigned int, false>::push<OT::NumType<true, unsigned short, 2u> const&>(OT::NumType<true, unsigned short, 2u> const&) Line | Count | Source | 318 | 304k | { | 319 | 304k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 6 | return std::addressof (Crap (Type)); | 324 | | | 325 | 304k | return push_has_room (std::forward<Args> (args)...); | 326 | 304k | } |
OT::DeltaSetIndexMap const** hb_vector_t<OT::DeltaSetIndexMap const*, false>::push<OT::DeltaSetIndexMap const*>(OT::DeltaSetIndexMap const*&&) Line | Count | Source | 318 | 2.14k | { | 319 | 2.14k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 5 | return std::addressof (Crap (Type)); | 324 | | | 325 | 2.14k | return push_has_room (std::forward<Args> (args)...); | 326 | 2.14k | } |
OT::DeltaSetIndexMap const** hb_vector_t<OT::DeltaSetIndexMap const*, false>::push<decltype(nullptr)>(decltype(nullptr)&&) Line | Count | Source | 318 | 2.65k | { | 319 | 2.65k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 5 | return std::addressof (Crap (Type)); | 324 | | | 325 | 2.64k | return push_has_room (std::forward<Args> (args)...); | 326 | 2.65k | } |
hb_variation_t* hb_vector_t<hb_variation_t, false>::push<hb_variation_t&>(hb_variation_t&) Line | Count | Source | 318 | 2.52k | { | 319 | 2.52k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 2.52k | return push_has_room (std::forward<Args> (args)...); | 326 | 2.52k | } |
unsigned char* hb_vector_t<unsigned char, false>::push<unsigned char&>(unsigned char&) Line | Count | Source | 318 | 19.6k | { | 319 | 19.6k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 258 | return std::addressof (Crap (Type)); | 324 | | | 325 | 19.3k | return push_has_room (std::forward<Args> (args)...); | 326 | 19.6k | } |
char* hb_vector_t<char, false>::push<int>(int&&) Line | Count | Source | 318 | 2.56k | { | 319 | 2.56k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 2.56k | return push_has_room (std::forward<Args> (args)...); | 326 | 2.56k | } |
CFF::parsed_cs_op_t* hb_vector_t<CFF::parsed_cs_op_t, false>::push<CFF::parsed_cs_op_t const&>(CFF::parsed_cs_op_t const&) Line | Count | Source | 318 | 80.3M | { | 319 | 80.3M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 4.23M | return std::addressof (Crap (Type)); | 324 | | | 325 | 76.0M | return push_has_room (std::forward<Args> (args)...); | 326 | 80.3M | } |
unsigned int* hb_vector_t<unsigned int, false>::push<OT::NumType<true, unsigned char, 1u> const&>(OT::NumType<true, unsigned char, 1u> const&) Line | Count | Source | 318 | 1.99k | { | 319 | 1.99k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 1.99k | return push_has_room (std::forward<Args> (args)...); | 326 | 1.99k | } |
unsigned int* hb_vector_t<unsigned int, true>::push<unsigned int&>(unsigned int&) Line | Count | Source | 318 | 48.8k | { | 319 | 48.8k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 9 | return std::addressof (Crap (Type)); | 324 | | | 325 | 48.8k | return push_has_room (std::forward<Args> (args)...); | 326 | 48.8k | } |
unsigned int* hb_vector_t<unsigned int, true>::push<unsigned int>(unsigned int&&) Line | Count | Source | 318 | 96.8k | { | 319 | 96.8k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 152 | return std::addressof (Crap (Type)); | 324 | | | 325 | 96.7k | return push_has_room (std::forward<Args> (args)...); | 326 | 96.8k | } |
Unexecuted instantiation: hb_ot_name_record_ids_t* hb_vector_t<hb_ot_name_record_ids_t, false>::push<hb_ot_name_record_ids_t const&>(hb_ot_name_record_ids_t const&) hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>* hb_vector_t<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>, false>::push<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*> >(hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>&&) Line | Count | Source | 318 | 251 | { | 319 | 251 | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 251 | return push_has_room (std::forward<Args> (args)...); | 326 | 251 | } |
OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>** hb_vector_t<OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*, false>::push<OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*&>(OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*&) Line | Count | Source | 318 | 815 | { | 319 | 815 | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 815 | return push_has_room (std::forward<Args> (args)...); | 326 | 815 | } |
OT::AxisValueMap* hb_vector_t<OT::AxisValueMap, false>::push<OT::AxisValueMap&>(OT::AxisValueMap&) Line | Count | Source | 318 | 832 | { | 319 | 832 | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 832 | return push_has_room (std::forward<Args> (args)...); | 326 | 832 | } |
hb_pair_t<unsigned int, unsigned int>* hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::push<hb_pair_t<unsigned int, unsigned int> >(hb_pair_t<unsigned int, unsigned int>&&) Line | Count | Source | 318 | 13.2M | { | 319 | 13.2M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 413 | return std::addressof (Crap (Type)); | 324 | | | 325 | 13.2M | return push_has_room (std::forward<Args> (args)...); | 326 | 13.2M | } |
OT::HBFixed<OT::NumType<true, short, 2u>, 14u>* hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::push<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>&>(OT::HBFixed<OT::NumType<true, short, 2u>, 14u>&) Line | Count | Source | 318 | 2 | { | 319 | 2 | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 2 | return push_has_room (std::forward<Args> (args)...); | 326 | 2 | } |
CFF::code_pair_t* hb_vector_t<CFF::code_pair_t, false>::push<CFF::code_pair_t>(CFF::code_pair_t&&) Line | Count | Source | 318 | 6.82k | { | 319 | 6.82k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 3 | return std::addressof (Crap (Type)); | 324 | | | 325 | 6.82k | return push_has_room (std::forward<Args> (args)...); | 326 | 6.82k | } |
unsigned char* hb_vector_t<unsigned char, false>::push<unsigned int>(unsigned int&&) Line | Count | Source | 318 | 12.6k | { | 319 | 12.6k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 1 | return std::addressof (Crap (Type)); | 324 | | | 325 | 12.6k | return push_has_room (std::forward<Args> (args)...); | 326 | 12.6k | } |
CFF::cff1_font_dict_values_mod_t* hb_vector_t<CFF::cff1_font_dict_values_mod_t, false>::push<CFF::cff1_font_dict_values_mod_t>(CFF::cff1_font_dict_values_mod_t&&) Line | Count | Source | 318 | 2.00k | { | 319 | 2.00k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 3 | return std::addressof (Crap (Type)); | 324 | | | 325 | 1.99k | return push_has_room (std::forward<Args> (args)...); | 326 | 2.00k | } |
CFF::cs_command_t* hb_vector_t<CFF::cs_command_t, false>::push<CFF::cs_command_t&>(CFF::cs_command_t&) Line | Count | Source | 318 | 59.5k | { | 319 | 59.5k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 59.5k | return push_has_room (std::forward<Args> (args)...); | 326 | 59.5k | } |
CFF::number_t* hb_vector_t<CFF::number_t, false>::push<CFF::number_t&>(CFF::number_t&) Line | Count | Source | 318 | 133k | { | 319 | 133k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 133k | return push_has_room (std::forward<Args> (args)...); | 326 | 133k | } |
Unexecuted instantiation: unsigned char* hb_vector_t<unsigned char, false>::push<unsigned char const&>(unsigned char const&) unsigned char* hb_vector_t<unsigned char, false>::push<int>(int&&) Line | Count | Source | 318 | 1.51k | { | 319 | 1.51k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 1.51k | return push_has_room (std::forward<Args> (args)...); | 326 | 1.51k | } |
CFF::code_pair_t* hb_vector_t<CFF::code_pair_t, false>::push<CFF::code_pair_t&>(CFF::code_pair_t&) Line | Count | Source | 318 | 289 | { | 319 | 289 | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 289 | return push_has_room (std::forward<Args> (args)...); | 326 | 289 | } |
CFF::number_t* hb_vector_t<CFF::number_t, false>::push<CFF::blend_arg_t const&>(CFF::blend_arg_t const&) Line | Count | Source | 318 | 103k | { | 319 | 103k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 103k | return push_has_room (std::forward<Args> (args)...); | 326 | 103k | } |
hb_array_t<unsigned char const>* hb_vector_t<hb_array_t<unsigned char const>, false>::push<hb_array_t<unsigned char const> >(hb_array_t<unsigned char const>&&) Line | Count | Source | 318 | 586 | { | 319 | 586 | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 586 | return push_has_room (std::forward<Args> (args)...); | 326 | 586 | } |
hb_pair_t<double, Triple>* hb_vector_t<hb_pair_t<double, Triple>, false>::push<hb_pair_t<double, Triple&> >(hb_pair_t<double, Triple&>&&) Line | Count | Source | 318 | 3.56k | { | 319 | 3.56k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 3.56k | return push_has_room (std::forward<Args> (args)...); | 326 | 3.56k | } |
hb_pair_t<double, Triple>* hb_vector_t<hb_pair_t<double, Triple>, false>::push<hb_pair_t<double&, Triple> >(hb_pair_t<double&, Triple>&&) Line | Count | Source | 318 | 2.73k | { | 319 | 2.73k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 2.73k | return push_has_room (std::forward<Args> (args)...); | 326 | 2.73k | } |
hb_pair_t<double, Triple>* hb_vector_t<hb_pair_t<double, Triple>, false>::push<hb_pair_t<double, Triple>&>(hb_pair_t<double, Triple>&) Line | Count | Source | 318 | 740 | { | 319 | 740 | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 740 | return push_has_room (std::forward<Args> (args)...); | 326 | 740 | } |
char* hb_vector_t<char, false>::push<char&>(char&) Line | Count | Source | 318 | 92.4M | { | 319 | 92.4M | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 14.5M | return std::addressof (Crap (Type)); | 324 | | | 325 | 77.9M | return push_has_room (std::forward<Args> (args)...); | 326 | 92.4M | } |
hb_vector_buf_t* hb_vector_t<hb_vector_buf_t, false>::push<hb_vector_buf_t>(hb_vector_buf_t&&) Line | Count | Source | 318 | 13.2k | { | 319 | 13.2k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 0 | return std::addressof (Crap (Type)); | 324 | | | 325 | 13.2k | return push_has_room (std::forward<Args> (args)...); | 326 | 13.2k | } |
hb_pdf_obj_t* hb_vector_t<hb_pdf_obj_t, false>::push<hb_pdf_obj_t>(hb_pdf_obj_t&&) Line | Count | Source | 318 | 863k | { | 319 | 863k | if (unlikely ((int) length >= allocated && !alloc (length + 1))) | 320 | | // If push failed to allocate then don't copy v, since this may cause | 321 | | // the created copy to leak memory since we won't have stored a | 322 | | // reference to it. | 323 | 161k | return std::addressof (Crap (Type)); | 324 | | | 325 | 702k | return push_has_room (std::forward<Args> (args)...); | 326 | 863k | } |
|
327 | | template <typename... Args> |
328 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
329 | | bool push_or_fail (Args&&... args) |
330 | 164M | { |
331 | 164M | return push (std::forward<Args> (args)...) != std::addressof (Crap (Type)); |
332 | 164M | } Unexecuted instantiation: bool hb_vector_t<OT::_hb_svg_cache_impl::id_entry_t, false>::push_or_fail<OT::_hb_svg_cache_impl::id_entry_t>(OT::_hb_svg_cache_impl::id_entry_t&&) Unexecuted instantiation: bool hb_vector_t<OT::SVG::svg_defs_entry_t, false>::push_or_fail<>() Unexecuted instantiation: bool hb_vector_t<OT::_hb_svg_cache_impl::glyph_entry_t, false>::push_or_fail<OT::_hb_svg_cache_impl::glyph_entry_t>(OT::_hb_svg_cache_impl::glyph_entry_t&&) bool hb_vector_t<hb_raster_image_t*, false>::push_or_fail<hb_raster_image_t*&>(hb_raster_image_t*&) Line | Count | Source | 330 | 14.8k | { | 331 | 14.8k | return push (std::forward<Args> (args)...) != std::addressof (Crap (Type)); | 332 | 14.8k | } |
bool hb_vector_t<hb_raster_clip_t, false>::push_or_fail<hb_raster_clip_t>(hb_raster_clip_t&&) Line | Count | Source | 330 | 8.04k | { | 331 | 8.04k | return push (std::forward<Args> (args)...) != std::addressof (Crap (Type)); | 332 | 8.04k | } |
bool hb_vector_t<hb_gpu_curve_t, false>::push_or_fail<hb_gpu_curve_t&>(hb_gpu_curve_t&) Line | Count | Source | 330 | 71.7M | { | 331 | 71.7M | return push (std::forward<Args> (args)...) != std::addressof (Crap (Type)); | 332 | 71.7M | } |
bool hb_vector_t<hb_transform_t<float>, false>::push_or_fail<hb_transform_t<float>&>(hb_transform_t<float>&) Line | Count | Source | 330 | 3.28k | { | 331 | 3.28k | return push (std::forward<Args> (args)...) != std::addressof (Crap (Type)); | 332 | 3.28k | } |
bool hb_vector_t<hb_blob_t*, false>::push_or_fail<hb_blob_t*&>(hb_blob_t*&) Line | Count | Source | 330 | 90.8k | { | 331 | 90.8k | return push (std::forward<Args> (args)...) != std::addressof (Crap (Type)); | 332 | 90.8k | } |
bool hb_vector_t<unsigned char, false>::push_or_fail<int>(int&&) Line | Count | Source | 330 | 1.51k | { | 331 | 1.51k | return push (std::forward<Args> (args)...) != std::addressof (Crap (Type)); | 332 | 1.51k | } |
bool hb_vector_t<char, false>::push_or_fail<char&>(char&) Line | Count | Source | 330 | 92.4M | { | 331 | 92.4M | return push (std::forward<Args> (args)...) != std::addressof (Crap (Type)); | 332 | 92.4M | } |
bool hb_vector_t<hb_vector_buf_t, false>::push_or_fail<>() Line | Count | Source | 330 | 210k | { | 331 | 210k | return push (std::forward<Args> (args)...) != std::addressof (Crap (Type)); | 332 | 210k | } |
bool hb_vector_t<hb_vector_buf_t, false>::push_or_fail<hb_vector_buf_t>(hb_vector_buf_t&&) Line | Count | Source | 330 | 13.2k | { | 331 | 13.2k | return push (std::forward<Args> (args)...) != std::addressof (Crap (Type)); | 332 | 13.2k | } |
|
333 | | template <typename... Args> |
334 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
335 | | Type *push_has_room (Args&&... args) |
336 | 790M | { |
337 | | /* Emplace. */ |
338 | 790M | Type *p = std::addressof (arrayZ[length++]); |
339 | 790M | return new (p) Type (std::forward<Args> (args)...); |
340 | 790M | } hb_aat_map_t::range_flags_t* hb_vector_t<hb_aat_map_t::range_flags_t, true>::push_has_room<hb_aat_map_t::range_flags_t>(hb_aat_map_t::range_flags_t&&) Line | Count | Source | 336 | 6.07k | { | 337 | | /* Emplace. */ | 338 | 6.07k | Type *p = std::addressof (arrayZ[length++]); | 339 | 6.07k | return new (p) Type (std::forward<Args> (args)...); | 340 | 6.07k | } |
hb_user_data_array_t::hb_user_data_item_t* hb_vector_t<hb_user_data_array_t::hb_user_data_item_t, false>::push_has_room<hb_user_data_array_t::hb_user_data_item_t&>(hb_user_data_array_t::hb_user_data_item_t&) Line | Count | Source | 336 | 25.6k | { | 337 | | /* Emplace. */ | 338 | 25.6k | Type *p = std::addressof (arrayZ[length++]); | 339 | 25.6k | return new (p) Type (std::forward<Args> (args)...); | 340 | 25.6k | } |
hb_serialize_context_t::object_t** hb_vector_t<hb_serialize_context_t::object_t*, false>::push_has_room<decltype(nullptr)>(decltype(nullptr)&&) Line | Count | Source | 336 | 130k | { | 337 | | /* Emplace. */ | 338 | 130k | Type *p = std::addressof (arrayZ[length++]); | 339 | 130k | return new (p) Type (std::forward<Args> (args)...); | 340 | 130k | } |
hb_serialize_context_t::object_t** hb_vector_t<hb_serialize_context_t::object_t*, false>::push_has_room<hb_serialize_context_t::object_t*&>(hb_serialize_context_t::object_t*&) Line | Count | Source | 336 | 4.31M | { | 337 | | /* Emplace. */ | 338 | 4.31M | Type *p = std::addressof (arrayZ[length++]); | 339 | 4.31M | return new (p) Type (std::forward<Args> (args)...); | 340 | 4.31M | } |
hb_serialize_context_t::object_t::link_t* hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::push_has_room<hb_serialize_context_t::object_t::link_t const&>(hb_serialize_context_t::object_t::link_t const&) Line | Count | Source | 336 | 18.4M | { | 337 | | /* Emplace. */ | 338 | 18.4M | Type *p = std::addressof (arrayZ[length++]); | 339 | 18.4M | return new (p) Type (std::forward<Args> (args)...); | 340 | 18.4M | } |
hb_transform_t<float>* hb_vector_t<hb_transform_t<float>, false>::push_has_room<hb_transform_t<float> >(hb_transform_t<float>&&) Line | Count | Source | 336 | 913k | { | 337 | | /* Emplace. */ | 338 | 913k | Type *p = std::addressof (arrayZ[length++]); | 339 | 913k | return new (p) Type (std::forward<Args> (args)...); | 340 | 913k | } |
hb_bounds_t<float>* hb_vector_t<hb_bounds_t<float>, false>::push_has_room<hb_bounds_t<float> >(hb_bounds_t<float>&&) Line | Count | Source | 336 | 2.23M | { | 337 | | /* Emplace. */ | 338 | 2.23M | Type *p = std::addressof (arrayZ[length++]); | 339 | 2.23M | return new (p) Type (std::forward<Args> (args)...); | 340 | 2.23M | } |
hb_transform_t<float>* hb_vector_t<hb_transform_t<float>, false>::push_has_room<hb_transform_t<float>&>(hb_transform_t<float>&) Line | Count | Source | 336 | 1.60M | { | 337 | | /* Emplace. */ | 338 | 1.60M | Type *p = std::addressof (arrayZ[length++]); | 339 | 1.60M | return new (p) Type (std::forward<Args> (args)...); | 340 | 1.60M | } |
hb_bounds_t<float>* hb_vector_t<hb_bounds_t<float>, false>::push_has_room<hb_bounds_t<float>&>(hb_bounds_t<float>&) Line | Count | Source | 336 | 1.62M | { | 337 | | /* Emplace. */ | 338 | 1.62M | Type *p = std::addressof (arrayZ[length++]); | 339 | 1.62M | return new (p) Type (std::forward<Args> (args)...); | 340 | 1.62M | } |
unsigned int* hb_vector_t<unsigned int, false>::push_has_room<unsigned int&>(unsigned int&) Line | Count | Source | 336 | 11.8M | { | 337 | | /* Emplace. */ | 338 | 11.8M | Type *p = std::addressof (arrayZ[length++]); | 339 | 11.8M | return new (p) Type (std::forward<Args> (args)...); | 340 | 11.8M | } |
unsigned int* hb_vector_t<unsigned int, false>::push_has_room<unsigned int>(unsigned int&&) Line | Count | Source | 336 | 3.38M | { | 337 | | /* Emplace. */ | 338 | 3.38M | Type *p = std::addressof (arrayZ[length++]); | 339 | 3.38M | return new (p) Type (std::forward<Args> (args)...); | 340 | 3.38M | } |
hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t** hb_vector_t<hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*, false>::push_has_room<hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*&>(hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*&) Line | Count | Source | 336 | 1.19M | { | 337 | | /* Emplace. */ | 338 | 1.19M | Type *p = std::addressof (arrayZ[length++]); | 339 | 1.19M | return new (p) Type (std::forward<Args> (args)...); | 340 | 1.19M | } |
Unexecuted instantiation: hb_vector_t<char, false>* hb_vector_t<hb_vector_t<char, false>, false>::push_has_room<hb_vector_t<char, false> >(hb_vector_t<char, false>&&) Unexecuted instantiation: hb_aat_map_builder_t::feature_info_t* hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::push_has_room<hb_aat_map_builder_t::feature_info_t&>(hb_aat_map_builder_t::feature_info_t&) bool* hb_vector_t<bool, false>::push_has_room<bool&>(bool&) Line | Count | Source | 336 | 517k | { | 337 | | /* Emplace. */ | 338 | 517k | Type *p = std::addressof (arrayZ[length++]); | 339 | 517k | return new (p) Type (std::forward<Args> (args)...); | 340 | 517k | } |
contour_point_t* hb_vector_t<contour_point_t, false>::push_has_room<contour_point_t&>(contour_point_t&) Line | Count | Source | 336 | 6.83M | { | 337 | | /* Emplace. */ | 338 | 6.83M | Type *p = std::addressof (arrayZ[length++]); | 339 | 6.83M | return new (p) Type (std::forward<Args> (args)...); | 340 | 6.83M | } |
hb_pair_t<unsigned int, face_table_info_t>* hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>::push_has_room<hb_pair_t<unsigned int, face_table_info_t> >(hb_pair_t<unsigned int, face_table_info_t>&&) Line | Count | Source | 336 | 60.7k | { | 337 | | /* Emplace. */ | 338 | 60.7k | Type *p = std::addressof (arrayZ[length++]); | 339 | 60.7k | return new (p) Type (std::forward<Args> (args)...); | 340 | 60.7k | } |
int* hb_vector_t<int, false>::push_has_room<int&>(int&) Line | Count | Source | 336 | 13.8k | { | 337 | | /* Emplace. */ | 338 | 13.8k | Type *p = std::addressof (arrayZ[length++]); | 339 | 13.8k | return new (p) Type (std::forward<Args> (args)...); | 340 | 13.8k | } |
Unexecuted instantiation: OT::_hb_svg_cache_impl::id_entry_t* hb_vector_t<OT::_hb_svg_cache_impl::id_entry_t, false>::push_has_room<OT::_hb_svg_cache_impl::id_entry_t>(OT::_hb_svg_cache_impl::id_entry_t&&) Unexecuted instantiation: OT::_hb_svg_cache_impl::glyph_entry_t* hb_vector_t<OT::_hb_svg_cache_impl::glyph_entry_t, false>::push_has_room<OT::_hb_svg_cache_impl::glyph_entry_t>(OT::_hb_svg_cache_impl::glyph_entry_t&&) CFF::cff1_top_dict_val_t* hb_vector_t<CFF::cff1_top_dict_val_t, false>::push_has_room<CFF::cff1_top_dict_val_t const&>(CFF::cff1_top_dict_val_t const&) Line | Count | Source | 336 | 148k | { | 337 | | /* Emplace. */ | 338 | 148k | Type *p = std::addressof (arrayZ[length++]); | 339 | 148k | return new (p) Type (std::forward<Args> (args)...); | 340 | 148k | } |
CFF::op_str_t* hb_vector_t<CFF::op_str_t, false>::push_has_room<CFF::op_str_t const&>(CFF::op_str_t const&) Line | Count | Source | 336 | 921k | { | 337 | | /* Emplace. */ | 338 | 921k | Type *p = std::addressof (arrayZ[length++]); | 339 | 921k | return new (p) Type (std::forward<Args> (args)...); | 340 | 921k | } |
CFF::dict_val_t* hb_vector_t<CFF::dict_val_t, false>::push_has_room<CFF::dict_val_t const&>(CFF::dict_val_t const&) Line | Count | Source | 336 | 252k | { | 337 | | /* Emplace. */ | 338 | 252k | Type *p = std::addressof (arrayZ[length++]); | 339 | 252k | return new (p) Type (std::forward<Args> (args)...); | 340 | 252k | } |
OT::cff1::accelerator_t::gname_t* hb_vector_t<OT::cff1::accelerator_t::gname_t, true>::push_has_room<OT::cff1::accelerator_t::gname_t&>(OT::cff1::accelerator_t::gname_t&) Line | Count | Source | 336 | 496k | { | 337 | | /* Emplace. */ | 338 | 496k | Type *p = std::addressof (arrayZ[length++]); | 339 | 496k | return new (p) Type (std::forward<Args> (args)...); | 340 | 496k | } |
Unexecuted instantiation: hb_ot_name_record_ids_t* hb_vector_t<hb_ot_name_record_ids_t, false>::push_has_room<hb_ot_name_record_ids_t const&>(hb_ot_name_record_ids_t const&) unsigned int* hb_vector_t<unsigned int, false>::push_has_room<long>(long&&) Line | Count | Source | 336 | 842k | { | 337 | | /* Emplace. */ | 338 | 842k | Type *p = std::addressof (arrayZ[length++]); | 339 | 842k | return new (p) Type (std::forward<Args> (args)...); | 340 | 842k | } |
Unexecuted instantiation: hb_outline_point_t* hb_vector_t<hb_outline_point_t, false>::push_has_room<hb_outline_point_t>(hb_outline_point_t&&) unsigned int* hb_vector_t<unsigned int, false>::push_has_room<int>(int&&) Line | Count | Source | 336 | 29.0M | { | 337 | | /* Emplace. */ | 338 | 29.0M | Type *p = std::addressof (arrayZ[length++]); | 339 | 29.0M | return new (p) Type (std::forward<Args> (args)...); | 340 | 29.0M | } |
unsigned int* hb_vector_t<unsigned int, false>::push_has_room<unsigned int const&>(unsigned int const&) Line | Count | Source | 336 | 4.44M | { | 337 | | /* Emplace. */ | 338 | 4.44M | Type *p = std::addressof (arrayZ[length++]); | 339 | 4.44M | return new (p) Type (std::forward<Args> (args)...); | 340 | 4.44M | } |
hb_raster_edge_t* hb_vector_t<hb_raster_edge_t, false>::push_has_room<hb_raster_edge_t&>(hb_raster_edge_t&) Line | Count | Source | 336 | 7.63M | { | 337 | | /* Emplace. */ | 338 | 7.63M | Type *p = std::addressof (arrayZ[length++]); | 339 | 7.63M | return new (p) Type (std::forward<Args> (args)...); | 340 | 7.63M | } |
hb_raster_image_t** hb_vector_t<hb_raster_image_t*, false>::push_has_room<hb_raster_image_t*&>(hb_raster_image_t*&) Line | Count | Source | 336 | 13.9k | { | 337 | | /* Emplace. */ | 338 | 13.9k | Type *p = std::addressof (arrayZ[length++]); | 339 | 13.9k | return new (p) Type (std::forward<Args> (args)...); | 340 | 13.9k | } |
hb_raster_clip_t* hb_vector_t<hb_raster_clip_t, false>::push_has_room<hb_raster_clip_t>(hb_raster_clip_t&&) Line | Count | Source | 336 | 85.0k | { | 337 | | /* Emplace. */ | 338 | 85.0k | Type *p = std::addressof (arrayZ[length++]); | 339 | 85.0k | return new (p) Type (std::forward<Args> (args)...); | 340 | 85.0k | } |
hb_serialize_context_t::object_t::link_t* hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::push_has_room<hb_subset_serialize_link_t&>(hb_subset_serialize_link_t&) Line | Count | Source | 336 | 17.9M | { | 337 | | /* Emplace. */ | 338 | 17.9M | Type *p = std::addressof (arrayZ[length++]); | 339 | 17.9M | return new (p) Type (std::forward<Args> (args)...); | 340 | 17.9M | } |
hb_subset_serialize_object_t const** hb_vector_t<hb_subset_serialize_object_t const*, false>::push_has_room<decltype(nullptr)>(decltype(nullptr)&&) Line | Count | Source | 336 | 3.72k | { | 337 | | /* Emplace. */ | 338 | 3.72k | Type *p = std::addressof (arrayZ[length++]); | 339 | 3.72k | return new (p) Type (std::forward<Args> (args)...); | 340 | 3.72k | } |
hb_subset_serialize_object_t const** hb_vector_t<hb_subset_serialize_object_t const*, false>::push_has_room<hb_subset_serialize_object_t*>(hb_subset_serialize_object_t*&&) Line | Count | Source | 336 | 12.2M | { | 337 | | /* Emplace. */ | 338 | 12.2M | Type *p = std::addressof (arrayZ[length++]); | 339 | 12.2M | return new (p) Type (std::forward<Args> (args)...); | 340 | 12.2M | } |
hb_pair_t<long, unsigned int>* hb_vector_t<hb_pair_t<long, unsigned int>, false>::push_has_room<hb_pair_t<long, unsigned int> >(hb_pair_t<long, unsigned int>&&) Line | Count | Source | 336 | 341M | { | 337 | | /* Emplace. */ | 338 | 341M | Type *p = std::addressof (arrayZ[length++]); | 339 | 341M | return new (p) Type (std::forward<Args> (args)...); | 340 | 341M | } |
graph::overflow_record_t* hb_vector_t<graph::overflow_record_t, false>::push_has_room<graph::overflow_record_t&>(graph::overflow_record_t&) Line | Count | Source | 336 | 18.2M | { | 337 | | /* Emplace. */ | 338 | 18.2M | Type *p = std::addressof (arrayZ[length++]); | 339 | 18.2M | return new (p) Type (std::forward<Args> (args)...); | 340 | 18.2M | } |
hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >* hb_vector_t<hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >, false>::push_has_room<hb_pair_t<unsigned int&, hb_vector_t<unsigned int, false>&> >(hb_pair_t<unsigned int&, hb_vector_t<unsigned int, false>&>&&) Line | Count | Source | 336 | 336 | { | 337 | | /* Emplace. */ | 338 | 336 | Type *p = std::addressof (arrayZ[length++]); | 339 | 336 | return new (p) Type (std::forward<Args> (args)...); | 340 | 336 | } |
char** hb_vector_t<char*, false>::push_has_room<char*&>(char*&) Line | Count | Source | 336 | 121k | { | 337 | | /* Emplace. */ | 338 | 121k | Type *p = std::addressof (arrayZ[length++]); | 339 | 121k | return new (p) Type (std::forward<Args> (args)...); | 340 | 121k | } |
hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >* hb_vector_t<hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >, false>::push_has_room<hb_pair_t<unsigned int&, hb_vector_t<unsigned int, false> > >(hb_pair_t<unsigned int&, hb_vector_t<unsigned int, false> >&&) Line | Count | Source | 336 | 875 | { | 337 | | /* Emplace. */ | 338 | 875 | Type *p = std::addressof (arrayZ[length++]); | 339 | 875 | return new (p) Type (std::forward<Args> (args)...); | 340 | 875 | } |
lookup_size_t* hb_vector_t<lookup_size_t, false>::push_has_room<lookup_size_t>(lookup_size_t&&) Line | Count | Source | 336 | 101k | { | 337 | | /* Emplace. */ | 338 | 101k | Type *p = std::addressof (arrayZ[length++]); | 339 | 101k | return new (p) Type (std::forward<Args> (args)...); | 340 | 101k | } |
hb_gpu_curve_t* hb_vector_t<hb_gpu_curve_t, false>::push_has_room<hb_gpu_curve_t&>(hb_gpu_curve_t&) Line | Count | Source | 336 | 71.7M | { | 337 | | /* Emplace. */ | 338 | 71.7M | Type *p = std::addressof (arrayZ[length++]); | 339 | 71.7M | return new (p) Type (std::forward<Args> (args)...); | 340 | 71.7M | } |
hb_blob_t** hb_vector_t<hb_blob_t*, false>::push_has_room<hb_blob_t*&>(hb_blob_t*&) Line | Count | Source | 336 | 90.6k | { | 337 | | /* Emplace. */ | 338 | 90.6k | Type *p = std::addressof (arrayZ[length++]); | 339 | 90.6k | return new (p) Type (std::forward<Args> (args)...); | 340 | 90.6k | } |
unsigned int* hb_vector_t<unsigned int, true>::push_has_room<unsigned int const&>(unsigned int const&) Line | Count | Source | 336 | 61.2M | { | 337 | | /* Emplace. */ | 338 | 61.2M | Type *p = std::addressof (arrayZ[length++]); | 339 | 61.2M | return new (p) Type (std::forward<Args> (args)...); | 340 | 61.2M | } |
hb_pair_t<unsigned int, unsigned int>* hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::push_has_room<hb_pair_t<unsigned int&, unsigned int&> >(hb_pair_t<unsigned int&, unsigned int&>&&) Line | Count | Source | 336 | 760k | { | 337 | | /* Emplace. */ | 338 | 760k | Type *p = std::addressof (arrayZ[length++]); | 339 | 760k | return new (p) Type (std::forward<Args> (args)...); | 340 | 760k | } |
hb_vector_t<int, false> const** hb_vector_t<hb_vector_t<int, false> const*, false>::push_has_room<hb_vector_t<int, false> const*&>(hb_vector_t<int, false> const*&) Line | Count | Source | 336 | 8.54k | { | 337 | | /* Emplace. */ | 338 | 8.54k | Type *p = std::addressof (arrayZ[length++]); | 339 | 8.54k | return new (p) Type (std::forward<Args> (args)...); | 340 | 8.54k | } |
hb_hashmap_t<unsigned int, Triple, false>* hb_vector_t<hb_hashmap_t<unsigned int, Triple, false>, false>::push_has_room<hb_hashmap_t<unsigned int, Triple, false> >(hb_hashmap_t<unsigned int, Triple, false>&&) Line | Count | Source | 336 | 136k | { | 337 | | /* Emplace. */ | 338 | 136k | Type *p = std::addressof (arrayZ[length++]); | 339 | 136k | return new (p) Type (std::forward<Args> (args)...); | 340 | 136k | } |
OT::tuple_delta_t* hb_vector_t<OT::tuple_delta_t, false>::push_has_room<OT::tuple_delta_t>(OT::tuple_delta_t&&) Line | Count | Source | 336 | 41.1k | { | 337 | | /* Emplace. */ | 338 | 41.1k | Type *p = std::addressof (arrayZ[length++]); | 339 | 41.1k | return new (p) Type (std::forward<Args> (args)...); | 340 | 41.1k | } |
OT::delta_row_encoding_t* hb_vector_t<OT::delta_row_encoding_t, false>::push_has_room<OT::delta_row_encoding_t>(OT::delta_row_encoding_t&&) Line | Count | Source | 336 | 7.95k | { | 337 | | /* Emplace. */ | 338 | 7.95k | Type *p = std::addressof (arrayZ[length++]); | 339 | 7.95k | return new (p) Type (std::forward<Args> (args)...); | 340 | 7.95k | } |
OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t* hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::push_has_room<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t>(OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t&&) Line | Count | Source | 336 | 12.7k | { | 337 | | /* Emplace. */ | 338 | 12.7k | Type *p = std::addressof (arrayZ[length++]); | 339 | 12.7k | return new (p) Type (std::forward<Args> (args)...); | 340 | 12.7k | } |
hb_hashmap_t<unsigned int, Triple, false> const** hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::push_has_room<hb_hashmap_t<unsigned int, Triple, false> const*&>(hb_hashmap_t<unsigned int, Triple, false> const*&) Line | Count | Source | 336 | 7.29k | { | 337 | | /* Emplace. */ | 338 | 7.29k | Type *p = std::addressof (arrayZ[length++]); | 339 | 7.29k | return new (p) Type (std::forward<Args> (args)...); | 340 | 7.29k | } |
hb_hashmap_t<unsigned int, Triple, false> const** hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::push_has_room<hb_hashmap_t<unsigned int, Triple, false> const*>(hb_hashmap_t<unsigned int, Triple, false> const*&&) Line | Count | Source | 336 | 4.82k | { | 337 | | /* Emplace. */ | 338 | 4.82k | Type *p = std::addressof (arrayZ[length++]); | 339 | 4.82k | return new (p) Type (std::forward<Args> (args)...); | 340 | 4.82k | } |
hb_hashmap_t<unsigned int, Triple, false> const** hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::push_has_room<hb_hashmap_t<unsigned int, Triple, false> const* const&>(hb_hashmap_t<unsigned int, Triple, false> const* const&) Line | Count | Source | 336 | 719 | { | 337 | | /* Emplace. */ | 338 | 719 | Type *p = std::addressof (arrayZ[length++]); | 339 | 719 | return new (p) Type (std::forward<Args> (args)...); | 340 | 719 | } |
hb_vector_t<int, false> const** hb_vector_t<hb_vector_t<int, false> const*, false>::push_has_room<hb_vector_t<int, false> const*>(hb_vector_t<int, false> const*&&) Line | Count | Source | 336 | 6.69k | { | 337 | | /* Emplace. */ | 338 | 6.69k | Type *p = std::addressof (arrayZ[length++]); | 339 | 6.69k | return new (p) Type (std::forward<Args> (args)...); | 340 | 6.69k | } |
hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>* hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>::push_has_room<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int> >(hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>&&) Line | Count | Source | 336 | 7.65k | { | 337 | | /* Emplace. */ | 338 | 7.65k | Type *p = std::addressof (arrayZ[length++]); | 339 | 7.65k | return new (p) Type (std::forward<Args> (args)...); | 340 | 7.65k | } |
OT::delta_row_encoding_t* hb_vector_t<OT::delta_row_encoding_t, false>::push_has_room<OT::delta_row_encoding_t&>(OT::delta_row_encoding_t&) Line | Count | Source | 336 | 1.02k | { | 337 | | /* Emplace. */ | 338 | 1.02k | Type *p = std::addressof (arrayZ[length++]); | 339 | 1.02k | return new (p) Type (std::forward<Args> (args)...); | 340 | 1.02k | } |
hb_pair_t<unsigned int, unsigned int>* hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::push_has_room<hb_pair_t<unsigned int, unsigned int>&>(hb_pair_t<unsigned int, unsigned int>&) Line | Count | Source | 336 | 234 | { | 337 | | /* Emplace. */ | 338 | 234 | Type *p = std::addressof (arrayZ[length++]); | 339 | 234 | return new (p) Type (std::forward<Args> (args)...); | 340 | 234 | } |
hb_pair_t<unsigned int, unsigned int>* hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::push_has_room<hb_pair_t<unsigned int, unsigned int> const&>(hb_pair_t<unsigned int, unsigned int> const&) Line | Count | Source | 336 | 17.2k | { | 337 | | /* Emplace. */ | 338 | 17.2k | Type *p = std::addressof (arrayZ[length++]); | 339 | 17.2k | return new (p) Type (std::forward<Args> (args)...); | 340 | 17.2k | } |
unsigned int* hb_vector_t<unsigned int, false>::push_has_room<OT::NumType<true, unsigned short, 2u> const&>(OT::NumType<true, unsigned short, 2u> const&) Line | Count | Source | 336 | 304k | { | 337 | | /* Emplace. */ | 338 | 304k | Type *p = std::addressof (arrayZ[length++]); | 339 | 304k | return new (p) Type (std::forward<Args> (args)...); | 340 | 304k | } |
OT::DeltaSetIndexMap const** hb_vector_t<OT::DeltaSetIndexMap const*, false>::push_has_room<OT::DeltaSetIndexMap const*>(OT::DeltaSetIndexMap const*&&) Line | Count | Source | 336 | 2.14k | { | 337 | | /* Emplace. */ | 338 | 2.14k | Type *p = std::addressof (arrayZ[length++]); | 339 | 2.14k | return new (p) Type (std::forward<Args> (args)...); | 340 | 2.14k | } |
OT::DeltaSetIndexMap const** hb_vector_t<OT::DeltaSetIndexMap const*, false>::push_has_room<decltype(nullptr)>(decltype(nullptr)&&) Line | Count | Source | 336 | 2.64k | { | 337 | | /* Emplace. */ | 338 | 2.64k | Type *p = std::addressof (arrayZ[length++]); | 339 | 2.64k | return new (p) Type (std::forward<Args> (args)...); | 340 | 2.64k | } |
hb_variation_t* hb_vector_t<hb_variation_t, false>::push_has_room<hb_variation_t&>(hb_variation_t&) Line | Count | Source | 336 | 2.52k | { | 337 | | /* Emplace. */ | 338 | 2.52k | Type *p = std::addressof (arrayZ[length++]); | 339 | 2.52k | return new (p) Type (std::forward<Args> (args)...); | 340 | 2.52k | } |
unsigned char* hb_vector_t<unsigned char, false>::push_has_room<unsigned char&>(unsigned char&) Line | Count | Source | 336 | 19.3k | { | 337 | | /* Emplace. */ | 338 | 19.3k | Type *p = std::addressof (arrayZ[length++]); | 339 | 19.3k | return new (p) Type (std::forward<Args> (args)...); | 340 | 19.3k | } |
char* hb_vector_t<char, false>::push_has_room<int>(int&&) Line | Count | Source | 336 | 2.56k | { | 337 | | /* Emplace. */ | 338 | 2.56k | Type *p = std::addressof (arrayZ[length++]); | 339 | 2.56k | return new (p) Type (std::forward<Args> (args)...); | 340 | 2.56k | } |
CFF::parsed_cs_op_t* hb_vector_t<CFF::parsed_cs_op_t, false>::push_has_room<CFF::parsed_cs_op_t const&>(CFF::parsed_cs_op_t const&) Line | Count | Source | 336 | 76.0M | { | 337 | | /* Emplace. */ | 338 | 76.0M | Type *p = std::addressof (arrayZ[length++]); | 339 | 76.0M | return new (p) Type (std::forward<Args> (args)...); | 340 | 76.0M | } |
unsigned int* hb_vector_t<unsigned int, false>::push_has_room<OT::NumType<true, unsigned char, 1u> const&>(OT::NumType<true, unsigned char, 1u> const&) Line | Count | Source | 336 | 1.99k | { | 337 | | /* Emplace. */ | 338 | 1.99k | Type *p = std::addressof (arrayZ[length++]); | 339 | 1.99k | return new (p) Type (std::forward<Args> (args)...); | 340 | 1.99k | } |
hb_array_t<unsigned char const>* hb_vector_t<hb_array_t<unsigned char const>, false>::push_has_room<hb_array_t<unsigned char const> >(hb_array_t<unsigned char const>&&) Line | Count | Source | 336 | 14.2k | { | 337 | | /* Emplace. */ | 338 | 14.2k | Type *p = std::addressof (arrayZ[length++]); | 339 | 14.2k | return new (p) Type (std::forward<Args> (args)...); | 340 | 14.2k | } |
unsigned int* hb_vector_t<unsigned int, true>::push_has_room<unsigned int&>(unsigned int&) Line | Count | Source | 336 | 48.8k | { | 337 | | /* Emplace. */ | 338 | 48.8k | Type *p = std::addressof (arrayZ[length++]); | 339 | 48.8k | return new (p) Type (std::forward<Args> (args)...); | 340 | 48.8k | } |
unsigned int* hb_vector_t<unsigned int, true>::push_has_room<unsigned int>(unsigned int&&) Line | Count | Source | 336 | 96.7k | { | 337 | | /* Emplace. */ | 338 | 96.7k | Type *p = std::addressof (arrayZ[length++]); | 339 | 96.7k | return new (p) Type (std::forward<Args> (args)...); | 340 | 96.7k | } |
hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>* hb_vector_t<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>, false>::push_has_room<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*> >(hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>&&) Line | Count | Source | 336 | 251 | { | 337 | | /* Emplace. */ | 338 | 251 | Type *p = std::addressof (arrayZ[length++]); | 339 | 251 | return new (p) Type (std::forward<Args> (args)...); | 340 | 251 | } |
OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>** hb_vector_t<OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*, false>::push_has_room<OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*&>(OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*&) Line | Count | Source | 336 | 815 | { | 337 | | /* Emplace. */ | 338 | 815 | Type *p = std::addressof (arrayZ[length++]); | 339 | 815 | return new (p) Type (std::forward<Args> (args)...); | 340 | 815 | } |
OT::AxisValueMap* hb_vector_t<OT::AxisValueMap, false>::push_has_room<OT::AxisValueMap&>(OT::AxisValueMap&) Line | Count | Source | 336 | 832 | { | 337 | | /* Emplace. */ | 338 | 832 | Type *p = std::addressof (arrayZ[length++]); | 339 | 832 | return new (p) Type (std::forward<Args> (args)...); | 340 | 832 | } |
hb_pair_t<unsigned int, unsigned int>* hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::push_has_room<hb_pair_t<unsigned int, unsigned int> >(hb_pair_t<unsigned int, unsigned int>&&) Line | Count | Source | 336 | 13.2M | { | 337 | | /* Emplace. */ | 338 | 13.2M | Type *p = std::addressof (arrayZ[length++]); | 339 | 13.2M | return new (p) Type (std::forward<Args> (args)...); | 340 | 13.2M | } |
hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int>* hb_vector_t<hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int>, false>::push_has_room<hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int> >(hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int>&&) Line | Count | Source | 336 | 2 | { | 337 | | /* Emplace. */ | 338 | 2 | Type *p = std::addressof (arrayZ[length++]); | 339 | 2 | return new (p) Type (std::forward<Args> (args)...); | 340 | 2 | } |
OT::HBFixed<OT::NumType<true, short, 2u>, 14u>* hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::push_has_room<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>&>(OT::HBFixed<OT::NumType<true, short, 2u>, 14u>&) Line | Count | Source | 336 | 2 | { | 337 | | /* Emplace. */ | 338 | 2 | Type *p = std::addressof (arrayZ[length++]); | 339 | 2 | return new (p) Type (std::forward<Args> (args)...); | 340 | 2 | } |
CFF::code_pair_t* hb_vector_t<CFF::code_pair_t, false>::push_has_room<CFF::code_pair_t>(CFF::code_pair_t&&) Line | Count | Source | 336 | 6.82k | { | 337 | | /* Emplace. */ | 338 | 6.82k | Type *p = std::addressof (arrayZ[length++]); | 339 | 6.82k | return new (p) Type (std::forward<Args> (args)...); | 340 | 6.82k | } |
unsigned char* hb_vector_t<unsigned char, false>::push_has_room<unsigned int>(unsigned int&&) Line | Count | Source | 336 | 12.6k | { | 337 | | /* Emplace. */ | 338 | 12.6k | Type *p = std::addressof (arrayZ[length++]); | 339 | 12.6k | return new (p) Type (std::forward<Args> (args)...); | 340 | 12.6k | } |
CFF::cff1_font_dict_values_mod_t* hb_vector_t<CFF::cff1_font_dict_values_mod_t, false>::push_has_room<CFF::cff1_font_dict_values_mod_t>(CFF::cff1_font_dict_values_mod_t&&) Line | Count | Source | 336 | 1.99k | { | 337 | | /* Emplace. */ | 338 | 1.99k | Type *p = std::addressof (arrayZ[length++]); | 339 | 1.99k | return new (p) Type (std::forward<Args> (args)...); | 340 | 1.99k | } |
CFF::cs_command_t* hb_vector_t<CFF::cs_command_t, false>::push_has_room<CFF::cs_command_t&>(CFF::cs_command_t&) Line | Count | Source | 336 | 59.5k | { | 337 | | /* Emplace. */ | 338 | 59.5k | Type *p = std::addressof (arrayZ[length++]); | 339 | 59.5k | return new (p) Type (std::forward<Args> (args)...); | 340 | 59.5k | } |
CFF::number_t* hb_vector_t<CFF::number_t, false>::push_has_room<CFF::number_t&>(CFF::number_t&) Line | Count | Source | 336 | 133k | { | 337 | | /* Emplace. */ | 338 | 133k | Type *p = std::addressof (arrayZ[length++]); | 339 | 133k | return new (p) Type (std::forward<Args> (args)...); | 340 | 133k | } |
Unexecuted instantiation: unsigned char* hb_vector_t<unsigned char, false>::push_has_room<unsigned char const&>(unsigned char const&) unsigned char* hb_vector_t<unsigned char, false>::push_has_room<int>(int&&) Line | Count | Source | 336 | 1.51k | { | 337 | | /* Emplace. */ | 338 | 1.51k | Type *p = std::addressof (arrayZ[length++]); | 339 | 1.51k | return new (p) Type (std::forward<Args> (args)...); | 340 | 1.51k | } |
CFF::code_pair_t* hb_vector_t<CFF::code_pair_t, false>::push_has_room<CFF::code_pair_t&>(CFF::code_pair_t&) Line | Count | Source | 336 | 289 | { | 337 | | /* Emplace. */ | 338 | 289 | Type *p = std::addressof (arrayZ[length++]); | 339 | 289 | return new (p) Type (std::forward<Args> (args)...); | 340 | 289 | } |
CFF::number_t* hb_vector_t<CFF::number_t, false>::push_has_room<CFF::blend_arg_t const&>(CFF::blend_arg_t const&) Line | Count | Source | 336 | 103k | { | 337 | | /* Emplace. */ | 338 | 103k | Type *p = std::addressof (arrayZ[length++]); | 339 | 103k | return new (p) Type (std::forward<Args> (args)...); | 340 | 103k | } |
hb_pair_t<double, Triple>* hb_vector_t<hb_pair_t<double, Triple>, false>::push_has_room<hb_pair_t<double, Triple&> >(hb_pair_t<double, Triple&>&&) Line | Count | Source | 336 | 3.56k | { | 337 | | /* Emplace. */ | 338 | 3.56k | Type *p = std::addressof (arrayZ[length++]); | 339 | 3.56k | return new (p) Type (std::forward<Args> (args)...); | 340 | 3.56k | } |
hb_pair_t<double, Triple>* hb_vector_t<hb_pair_t<double, Triple>, false>::push_has_room<hb_pair_t<double&, Triple> >(hb_pair_t<double&, Triple>&&) Line | Count | Source | 336 | 2.73k | { | 337 | | /* Emplace. */ | 338 | 2.73k | Type *p = std::addressof (arrayZ[length++]); | 339 | 2.73k | return new (p) Type (std::forward<Args> (args)...); | 340 | 2.73k | } |
hb_pair_t<double, Triple>* hb_vector_t<hb_pair_t<double, Triple>, false>::push_has_room<hb_pair_t<double, Triple>&>(hb_pair_t<double, Triple>&) Line | Count | Source | 336 | 740 | { | 337 | | /* Emplace. */ | 338 | 740 | Type *p = std::addressof (arrayZ[length++]); | 339 | 740 | return new (p) Type (std::forward<Args> (args)...); | 340 | 740 | } |
char* hb_vector_t<char, false>::push_has_room<char&>(char&) Line | Count | Source | 336 | 77.9M | { | 337 | | /* Emplace. */ | 338 | 77.9M | Type *p = std::addressof (arrayZ[length++]); | 339 | 77.9M | return new (p) Type (std::forward<Args> (args)...); | 340 | 77.9M | } |
hb_vector_buf_t* hb_vector_t<hb_vector_buf_t, false>::push_has_room<hb_vector_buf_t>(hb_vector_buf_t&&) Line | Count | Source | 336 | 13.2k | { | 337 | | /* Emplace. */ | 338 | 13.2k | Type *p = std::addressof (arrayZ[length++]); | 339 | 13.2k | return new (p) Type (std::forward<Args> (args)...); | 340 | 13.2k | } |
hb_pdf_obj_t* hb_vector_t<hb_pdf_obj_t, false>::push_has_room<hb_pdf_obj_t>(hb_pdf_obj_t&&) Line | Count | Source | 336 | 702k | { | 337 | | /* Emplace. */ | 338 | 702k | Type *p = std::addressof (arrayZ[length++]); | 339 | 702k | return new (p) Type (std::forward<Args> (args)...); | 340 | 702k | } |
|
341 | | |
342 | | bool is_owned () const |
343 | 454M | { |
344 | 454M | return allocated != 0 && allocated != -1; |
345 | 454M | } hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::is_owned() const Line | Count | Source | 343 | 55.0k | { | 344 | 55.0k | return allocated != 0 && allocated != -1; | 345 | 55.0k | } |
hb_vector_t<hb_aat_map_builder_t::feature_range_t, true>::is_owned() const Line | Count | Source | 343 | 55.0k | { | 344 | 55.0k | return allocated != 0 && allocated != -1; | 345 | 55.0k | } |
hb_vector_t<hb_bit_set_t::page_map_t, true>::is_owned() const Line | Count | Source | 343 | 76.7M | { | 344 | 76.7M | return allocated != 0 && allocated != -1; | 345 | 76.7M | } |
hb_vector_t<hb_bit_page_t, false>::is_owned() const Line | Count | Source | 343 | 76.7M | { | 344 | 76.7M | return allocated != 0 && allocated != -1; | 345 | 76.7M | } |
hb_vector_t<hb_vector_t<hb_aat_map_t::range_flags_t, true>, false>::is_owned() const Line | Count | Source | 343 | 64.6k | { | 344 | 64.6k | return allocated != 0 && allocated != -1; | 345 | 64.6k | } |
hb_vector_t<hb_aat_map_t::range_flags_t, true>::is_owned() const Line | Count | Source | 343 | 6.21k | { | 344 | 6.21k | return allocated != 0 && allocated != -1; | 345 | 6.21k | } |
hb_vector_t<hb_set_digest_t, false>::is_owned() const Line | Count | Source | 343 | 36.4k | { | 344 | 36.4k | return allocated != 0 && allocated != -1; | 345 | 36.4k | } |
hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::is_owned() const Line | Count | Source | 343 | 143k | { | 344 | 143k | return allocated != 0 && allocated != -1; | 345 | 143k | } |
hb_vector_t<unsigned int, false>::is_owned() const Line | Count | Source | 343 | 28.6M | { | 344 | 28.6M | return allocated != 0 && allocated != -1; | 345 | 28.6M | } |
hb_vector_t<hb_user_data_array_t::hb_user_data_item_t, false>::is_owned() const Line | Count | Source | 343 | 26.0k | { | 344 | 26.0k | return allocated != 0 && allocated != -1; | 345 | 26.0k | } |
hb_vector_t<hb_ot_map_t::feature_map_t, true>::is_owned() const Line | Count | Source | 343 | 110k | { | 344 | 110k | return allocated != 0 && allocated != -1; | 345 | 110k | } |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::is_owned() const Line | Count | Source | 343 | 232k | { | 344 | 232k | return allocated != 0 && allocated != -1; | 345 | 232k | } |
hb_vector_t<hb_ot_map_t::stage_map_t, false>::is_owned() const Line | Count | Source | 343 | 220k | { | 344 | 220k | return allocated != 0 && allocated != -1; | 345 | 220k | } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::is_owned() const Line | Count | Source | 343 | 222M | { | 344 | 222M | return allocated != 0 && allocated != -1; | 345 | 222M | } |
hb_vector_t<hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*, false>::is_owned() const Line | Count | Source | 343 | 122k | { | 344 | 122k | return allocated != 0 && allocated != -1; | 345 | 122k | } |
hb_vector_t<hb_serialize_context_t::object_t*, false>::is_owned() const Line | Count | Source | 343 | 374k | { | 344 | 374k | return allocated != 0 && allocated != -1; | 345 | 374k | } |
hb_vector_t<hb_transform_t<float>, false>::is_owned() const Line | Count | Source | 343 | 845k | { | 344 | 845k | return allocated != 0 && allocated != -1; | 345 | 845k | } |
hb_vector_t<hb_bounds_t<float>, false>::is_owned() const Line | Count | Source | 343 | 1.65M | { | 344 | 1.65M | return allocated != 0 && allocated != -1; | 345 | 1.65M | } |
Unexecuted instantiation: hb_vector_t<hb_outline_point_t, false>::is_owned() const hb_vector_t<char, false>::is_owned() const Line | Count | Source | 343 | 4.82M | { | 344 | 4.82M | return allocated != 0 && allocated != -1; | 345 | 4.82M | } |
hb_vector_t<bool, false>::is_owned() const Line | Count | Source | 343 | 113k | { | 344 | 113k | return allocated != 0 && allocated != -1; | 345 | 113k | } |
hb_vector_t<float, false>::is_owned() const Line | Count | Source | 343 | 154k | { | 344 | 154k | return allocated != 0 && allocated != -1; | 345 | 154k | } |
hb_vector_t<int, false>::is_owned() const Line | Count | Source | 343 | 28.7M | { | 344 | 28.7M | return allocated != 0 && allocated != -1; | 345 | 28.7M | } |
hb_vector_t<contour_point_t, false>::is_owned() const Line | Count | Source | 343 | 1.10M | { | 344 | 1.10M | return allocated != 0 && allocated != -1; | 345 | 1.10M | } |
hb_vector_t<hb_set_t, false>::is_owned() const Line | Count | Source | 343 | 35.1k | { | 344 | 35.1k | return allocated != 0 && allocated != -1; | 345 | 35.1k | } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_event_t, false>::is_owned() const hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::is_owned() const Line | Count | Source | 343 | 4.38k | { | 344 | 4.38k | return allocated != 0 && allocated != -1; | 345 | 4.38k | } |
hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>::is_owned() const Line | Count | Source | 343 | 9.60k | { | 344 | 9.60k | return allocated != 0 && allocated != -1; | 345 | 9.60k | } |
hb_vector_t<hb_atomic_t<OT::SVG::svg_doc_cache_t*>, false>::is_owned() const Line | Count | Source | 343 | 128k | { | 344 | 128k | return allocated != 0 && allocated != -1; | 345 | 128k | } |
Unexecuted instantiation: hb_vector_t<OT::SVG::svg_defs_entry_t, false>::is_owned() const Unexecuted instantiation: hb_vector_t<OT::_hb_svg_cache_impl::glyph_entry_t, false>::is_owned() const Unexecuted instantiation: hb_vector_t<OT::_hb_svg_cache_impl::id_entry_t, false>::is_owned() const hb_vector_t<hb_ot_name_entry_t, false>::is_owned() const Line | Count | Source | 343 | 36.3k | { | 344 | 36.3k | return allocated != 0 && allocated != -1; | 345 | 36.3k | } |
hb_vector_t<OT::cff1::accelerator_t::gname_t, true>::is_owned() const Line | Count | Source | 343 | 883 | { | 344 | 883 | return allocated != 0 && allocated != -1; | 345 | 883 | } |
hb_vector_t<CFF::cff1_top_dict_val_t, false>::is_owned() const Line | Count | Source | 343 | 284k | { | 344 | 284k | return allocated != 0 && allocated != -1; | 345 | 284k | } |
hb_vector_t<CFF::cff1_font_dict_values_t, false>::is_owned() const Line | Count | Source | 343 | 284k | { | 344 | 284k | return allocated != 0 && allocated != -1; | 345 | 284k | } |
hb_vector_t<CFF::op_str_t, false>::is_owned() const Line | Count | Source | 343 | 384k | { | 344 | 384k | return allocated != 0 && allocated != -1; | 345 | 384k | } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::dict_val_t>, false>::is_owned() const Line | Count | Source | 343 | 168k | { | 344 | 168k | return allocated != 0 && allocated != -1; | 345 | 168k | } |
hb_vector_t<CFF::dict_val_t, false>::is_owned() const Line | Count | Source | 343 | 1.84M | { | 344 | 1.84M | return allocated != 0 && allocated != -1; | 345 | 1.84M | } |
hb_vector_t<CFF::cff2_font_dict_values_t, false>::is_owned() const Line | Count | Source | 343 | 183k | { | 344 | 183k | return allocated != 0 && allocated != -1; | 345 | 183k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::dict_val_t>, false>::is_owned() const Line | Count | Source | 343 | 173k | { | 344 | 173k | return allocated != 0 && allocated != -1; | 345 | 173k | } |
hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::is_owned() const Line | Count | Source | 343 | 118k | { | 344 | 118k | return allocated != 0 && allocated != -1; | 345 | 118k | } |
hb_vector_t<hb_ot_map_builder_t::stage_info_t, false>::is_owned() const Line | Count | Source | 343 | 220k | { | 344 | 220k | return allocated != 0 && allocated != -1; | 345 | 220k | } |
hb_vector_t<unsigned char, false>::is_owned() const Line | Count | Source | 343 | 1.31M | { | 344 | 1.31M | return allocated != 0 && allocated != -1; | 345 | 1.31M | } |
hb_vector_t<hb_vector_t<unsigned int, false>, false>::is_owned() const Line | Count | Source | 343 | 2.70k | { | 344 | 2.70k | return allocated != 0 && allocated != -1; | 345 | 2.70k | } |
hb_vector_t<short, false>::is_owned() const Line | Count | Source | 343 | 17.4k | { | 344 | 17.4k | return allocated != 0 && allocated != -1; | 345 | 17.4k | } |
hb_vector_t<hb_raster_edge_t, false>::is_owned() const Line | Count | Source | 343 | 2.70k | { | 344 | 2.70k | return allocated != 0 && allocated != -1; | 345 | 2.70k | } |
hb_vector_t<hb_raster_image_t*, false>::is_owned() const Line | Count | Source | 343 | 2.69k | { | 344 | 2.69k | return allocated != 0 && allocated != -1; | 345 | 2.69k | } |
hb_vector_t<hb_raster_clip_t, false>::is_owned() const Line | Count | Source | 343 | 3.86k | { | 344 | 3.86k | return allocated != 0 && allocated != -1; | 345 | 3.86k | } |
hb_vector_t<hb_color_stop_t, false>::is_owned() const Line | Count | Source | 343 | 71.3k | { | 344 | 71.3k | return allocated != 0 && allocated != -1; | 345 | 71.3k | } |
hb_vector_t<hb_subset_serialize_object_t const*, false>::is_owned() const Line | Count | Source | 343 | 3.75k | { | 344 | 3.75k | return allocated != 0 && allocated != -1; | 345 | 3.75k | } |
hb_vector_t<graph::graph_t::vertex_t, false>::is_owned() const Line | Count | Source | 343 | 14.9k | { | 344 | 14.9k | return allocated != 0 && allocated != -1; | 345 | 14.9k | } |
hb_vector_t<hb_pair_t<long, unsigned int>, false>::is_owned() const Line | Count | Source | 343 | 88.2k | { | 344 | 88.2k | return allocated != 0 && allocated != -1; | 345 | 88.2k | } |
hb_vector_t<graph::overflow_record_t, false>::is_owned() const Line | Count | Source | 343 | 5.49k | { | 344 | 5.49k | return allocated != 0 && allocated != -1; | 345 | 5.49k | } |
hb_vector_t<hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >, false>::is_owned() const Line | Count | Source | 343 | 31.5k | { | 344 | 31.5k | return allocated != 0 && allocated != -1; | 345 | 31.5k | } |
hb_vector_t<char*, false>::is_owned() const Line | Count | Source | 343 | 5.86k | { | 344 | 5.86k | return allocated != 0 && allocated != -1; | 345 | 5.86k | } |
hb_vector_t<graph::MarkBasePosFormat1::class_info_t, false>::is_owned() const Line | Count | Source | 343 | 1.11k | { | 344 | 1.11k | return allocated != 0 && allocated != -1; | 345 | 1.11k | } |
hb_vector_t<lookup_size_t, false>::is_owned() const Line | Count | Source | 343 | 2.77k | { | 344 | 2.77k | return allocated != 0 && allocated != -1; | 345 | 2.77k | } |
hb_vector_t<hb_gpu_curve_t, false>::is_owned() const Line | Count | Source | 343 | 26.9k | { | 344 | 26.9k | return allocated != 0 && allocated != -1; | 345 | 26.9k | } |
hb_vector_t<hb_gpu_encode_curve_info_t, false>::is_owned() const Line | Count | Source | 343 | 26.9k | { | 344 | 26.9k | return allocated != 0 && allocated != -1; | 345 | 26.9k | } |
hb_vector_t<hb_blob_t*, false>::is_owned() const Line | Count | Source | 343 | 14.3k | { | 344 | 14.3k | return allocated != 0 && allocated != -1; | 345 | 14.3k | } |
hb_vector_t<unsigned int, true>::is_owned() const Line | Count | Source | 343 | 68.3k | { | 344 | 68.3k | return allocated != 0 && allocated != -1; | 345 | 68.3k | } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::is_owned() const Line | Count | Source | 343 | 92.1k | { | 344 | 92.1k | return allocated != 0 && allocated != -1; | 345 | 92.1k | } |
hb_vector_t<hb_vector_t<int, false> const*, false>::is_owned() const Line | Count | Source | 343 | 29.9k | { | 344 | 29.9k | return allocated != 0 && allocated != -1; | 345 | 29.9k | } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false>, false>::is_owned() const Line | Count | Source | 343 | 1.11k | { | 344 | 1.11k | return allocated != 0 && allocated != -1; | 345 | 1.11k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, bool, hb_vector_t<hb_vector_t<int, false> const*, false> const&)::delta_size_t, false>::is_owned() const Line | Count | Source | 343 | 2.28k | { | 344 | 2.28k | return allocated != 0 && allocated != -1; | 345 | 2.28k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, OT::VarData const*, hb_inc_bimap_t const&, hb_inc_bimap_t const&)::delta_size_t, false>::is_owned() const Line | Count | Source | 343 | 23.2k | { | 344 | 23.2k | return allocated != 0 && allocated != -1; | 345 | 23.2k | } |
hb_vector_t<hb_vector_t<char, false>, false>::is_owned() const Line | Count | Source | 343 | 342 | { | 344 | 342 | return allocated != 0 && allocated != -1; | 345 | 342 | } |
hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::is_owned() const Line | Count | Source | 343 | 133k | { | 344 | 133k | return allocated != 0 && allocated != -1; | 345 | 133k | } |
hb_vector_t<OT::tuple_delta_t, false>::is_owned() const Line | Count | Source | 343 | 42.4k | { | 344 | 42.4k | return allocated != 0 && allocated != -1; | 345 | 42.4k | } |
hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::is_owned() const Line | Count | Source | 343 | 2.88k | { | 344 | 2.88k | return allocated != 0 && allocated != -1; | 345 | 2.88k | } |
hb_vector_t<double, false>::is_owned() const Line | Count | Source | 343 | 2.47k | { | 344 | 2.47k | return allocated != 0 && allocated != -1; | 345 | 2.47k | } |
hb_vector_t<hb_pair_t<double, Triple>, false>::is_owned() const Line | Count | Source | 343 | 10.5k | { | 344 | 10.5k | return allocated != 0 && allocated != -1; | 345 | 10.5k | } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::is_owned() const Line | Count | Source | 343 | 2.14k | { | 344 | 2.14k | return allocated != 0 && allocated != -1; | 345 | 2.14k | } |
hb_vector_t<hb_vector_t<int, false>, false>::is_owned() const Line | Count | Source | 343 | 1.11k | { | 344 | 1.11k | return allocated != 0 && allocated != -1; | 345 | 1.11k | } |
hb_vector_t<OT::delta_row_encoding_t, false>::is_owned() const Line | Count | Source | 343 | 4.84k | { | 344 | 4.84k | return allocated != 0 && allocated != -1; | 345 | 4.84k | } |
hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>::is_owned() const Line | Count | Source | 343 | 1.36k | { | 344 | 1.36k | return allocated != 0 && allocated != -1; | 345 | 1.36k | } |
hb_vector_t<OT::LayerRecord, false>::is_owned() const Line | Count | Source | 343 | 442k | { | 344 | 442k | return allocated != 0 && allocated != -1; | 345 | 442k | } |
hb_vector_t<hb_set_t*, false>::is_owned() const Line | Count | Source | 343 | 1.58k | { | 344 | 1.58k | return allocated != 0 && allocated != -1; | 345 | 1.58k | } |
hb_vector_t<OT::index_map_subset_plan_t, false>::is_owned() const Line | Count | Source | 343 | 4.75k | { | 344 | 4.75k | return allocated != 0 && allocated != -1; | 345 | 4.75k | } |
hb_vector_t<hb_inc_bimap_t, false>::is_owned() const Line | Count | Source | 343 | 119k | { | 344 | 119k | return allocated != 0 && allocated != -1; | 345 | 119k | } |
hb_vector_t<OT::DeltaSetIndexMap const*, false>::is_owned() const Line | Count | Source | 343 | 1.58k | { | 344 | 1.58k | return allocated != 0 && allocated != -1; | 345 | 1.58k | } |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::is_owned() const Line | Count | Source | 343 | 8.01k | { | 344 | 8.01k | return allocated != 0 && allocated != -1; | 345 | 8.01k | } |
hb_vector_t<hb_variation_t, false>::is_owned() const Line | Count | Source | 343 | 1.73k | { | 344 | 1.73k | return allocated != 0 && allocated != -1; | 345 | 1.73k | } |
hb_vector_t<CFF::number_t, false>::is_owned() const Line | Count | Source | 343 | 2.88M | { | 344 | 2.88M | return allocated != 0 && allocated != -1; | 345 | 2.88M | } |
hb_vector_t<CFF::parsed_cs_op_t, false>::is_owned() const Line | Count | Source | 343 | 1.08M | { | 344 | 1.08M | return allocated != 0 && allocated != -1; | 345 | 1.08M | } |
hb_vector_t<CFF::parsed_cs_str_t, false>::is_owned() const Line | Count | Source | 343 | 24.0k | { | 344 | 24.0k | return allocated != 0 && allocated != -1; | 345 | 24.0k | } |
hb_vector_t<CFF::parsed_cs_str_vec_t, false>::is_owned() const Line | Count | Source | 343 | 3.40k | { | 344 | 3.40k | return allocated != 0 && allocated != -1; | 345 | 3.40k | } |
hb_vector_t<CFF::code_pair_t, false>::is_owned() const Line | Count | Source | 343 | 13.6k | { | 344 | 13.6k | return allocated != 0 && allocated != -1; | 345 | 13.6k | } |
hb_vector_t<CFF::subr_remap_t, false>::is_owned() const Line | Count | Source | 343 | 6.78k | { | 344 | 6.78k | return allocated != 0 && allocated != -1; | 345 | 6.78k | } |
hb_vector_t<hb_array_t<unsigned char const>, false>::is_owned() const Line | Count | Source | 343 | 1.72k | { | 344 | 1.72k | return allocated != 0 && allocated != -1; | 345 | 1.72k | } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::op_str_t>, false>::is_owned() const Line | Count | Source | 343 | 122k | { | 344 | 122k | return allocated != 0 && allocated != -1; | 345 | 122k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::op_str_t>, false>::is_owned() const Line | Count | Source | 343 | 9.64k | { | 344 | 9.64k | return allocated != 0 && allocated != -1; | 345 | 9.64k | } |
hb_vector_t<hb_ot_name_record_ids_t, false>::is_owned() const Line | Count | Source | 343 | 2.18k | { | 344 | 2.18k | return allocated != 0 && allocated != -1; | 345 | 2.18k | } |
hb_vector_t<OT::IndexSubtableRecord, false>::is_owned() const Line | Count | Source | 343 | 260 | { | 344 | 260 | return allocated != 0 && allocated != -1; | 345 | 260 | } |
hb_vector_t<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>, false>::is_owned() const Line | Count | Source | 343 | 170 | { | 344 | 170 | return allocated != 0 && allocated != -1; | 345 | 170 | } |
hb_vector_t<OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*, false>::is_owned() const Line | Count | Source | 343 | 272 | { | 344 | 272 | return allocated != 0 && allocated != -1; | 345 | 272 | } |
hb_vector_t<OT::AxisValueMap, false>::is_owned() const Line | Count | Source | 343 | 168 | { | 344 | 168 | return allocated != 0 && allocated != -1; | 345 | 168 | } |
hb_vector_t<hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int>, false>::is_owned() const Line | Count | Source | 343 | 79 | { | 344 | 79 | return allocated != 0 && allocated != -1; | 345 | 79 | } |
hb_vector_t<hb_vector_t<unsigned char, false>, false>::is_owned() const Line | Count | Source | 343 | 18.8k | { | 344 | 18.8k | return allocated != 0 && allocated != -1; | 345 | 18.8k | } |
hb_vector_t<CFF::parsed_cs_str_t const*, false>::is_owned() const Line | Count | Source | 343 | 3.40k | { | 344 | 3.40k | return allocated != 0 && allocated != -1; | 345 | 3.40k | } |
hb_vector_t<hb_vector_t<hb_vector_t<unsigned char, false>, false>, false>::is_owned() const Line | Count | Source | 343 | 5.12k | { | 344 | 5.12k | return allocated != 0 && allocated != -1; | 345 | 5.12k | } |
hb_vector_t<CFF::cff1_font_dict_values_mod_t, false>::is_owned() const Line | Count | Source | 343 | 2.74k | { | 344 | 2.74k | return allocated != 0 && allocated != -1; | 345 | 2.74k | } |
hb_vector_t<CFF::cs_command_t, false>::is_owned() const Line | Count | Source | 343 | 6.09k | { | 344 | 6.09k | return allocated != 0 && allocated != -1; | 345 | 6.09k | } |
hb_vector_t<hb_vector_t<CFF::cs_command_t, false>, false>::is_owned() const Line | Count | Source | 343 | 2.38k | { | 344 | 2.38k | return allocated != 0 && allocated != -1; | 345 | 2.38k | } |
hb_vector_t<CFF::table_info_t, false>::is_owned() const Line | Count | Source | 343 | 1.46k | { | 344 | 1.46k | return allocated != 0 && allocated != -1; | 345 | 1.46k | } |
hb_vector_t<hb_vector_buf_t, false>::is_owned() const Line | Count | Source | 343 | 55.6k | { | 344 | 55.6k | return allocated != 0 && allocated != -1; | 345 | 55.6k | } |
hb_vector_t<hb_pdf_obj_t, false>::is_owned() const Line | Count | Source | 343 | 18.1k | { | 344 | 18.1k | return allocated != 0 && allocated != -1; | 345 | 18.1k | } |
|
346 | | |
347 | 1.84G | bool in_error () const { return allocated < 0; }hb_vector_t<hb_set_digest_t, false>::in_error() const Line | Count | Source | 347 | 1.76k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_vector_t<hb_aat_map_t::range_flags_t, true>, false>::in_error() const Line | Count | Source | 347 | 7.86k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_aat_map_t::range_flags_t, true>::in_error() const Line | Count | Source | 347 | 12.4k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_bit_page_t, false>::in_error() const Line | Count | Source | 347 | 115M | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_bit_set_t::page_map_t, true>::in_error() const Line | Count | Source | 347 | 114M | bool in_error () const { return allocated < 0; } |
hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::in_error() const Line | Count | Source | 347 | 11.7k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_user_data_array_t::hb_user_data_item_t, false>::in_error() const Line | Count | Source | 347 | 78.0k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::in_error() const Line | Count | Source | 347 | 71.5M | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_serialize_context_t::object_t*, false>::in_error() const Line | Count | Source | 347 | 4.79M | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_transform_t<float>, false>::in_error() const Line | Count | Source | 347 | 1.96M | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_bounds_t<float>, false>::in_error() const Line | Count | Source | 347 | 3.58M | bool in_error () const { return allocated < 0; } |
hb_vector_t<unsigned int, false>::in_error() const Line | Count | Source | 347 | 18.2M | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*, false>::in_error() const Line | Count | Source | 347 | 1.29M | bool in_error () const { return allocated < 0; } |
hb_vector_t<char, false>::in_error() const Line | Count | Source | 347 | 323M | bool in_error () const { return allocated < 0; } |
hb_vector_t<int, false>::in_error() const Line | Count | Source | 347 | 2.04M | bool in_error () const { return allocated < 0; } |
hb_vector_t<bool, false>::in_error() const Line | Count | Source | 347 | 135k | bool in_error () const { return allocated < 0; } |
hb_vector_t<float, false>::in_error() const Line | Count | Source | 347 | 9.49M | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_set_t, false>::in_error() const Line | Count | Source | 347 | 18.3M | bool in_error () const { return allocated < 0; } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_range_t, true>::in_error() const Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_event_t, false>::in_error() const Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::in_error() const hb_vector_t<contour_point_t, false>::in_error() const Line | Count | Source | 347 | 75.4M | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>::in_error() const Line | Count | Source | 347 | 34.0k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_atomic_t<OT::SVG::svg_doc_cache_t*>, false>::in_error() const Line | Count | Source | 347 | 1.97k | bool in_error () const { return allocated < 0; } |
Unexecuted instantiation: hb_vector_t<OT::SVG::svg_defs_entry_t, false>::in_error() const Unexecuted instantiation: hb_vector_t<OT::_hb_svg_cache_impl::glyph_entry_t, false>::in_error() const Unexecuted instantiation: hb_vector_t<OT::_hb_svg_cache_impl::id_entry_t, false>::in_error() const hb_vector_t<CFF::cff1_top_dict_val_t, false>::in_error() const Line | Count | Source | 347 | 42.5k | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::op_str_t, false>::in_error() const Line | Count | Source | 347 | 308k | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::dict_val_t, false>::in_error() const Line | Count | Source | 347 | 54.5k | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::dict_val_t>, false>::in_error() const Line | Count | Source | 347 | 8.67k | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::cff1_font_dict_values_t, false>::in_error() const Line | Count | Source | 347 | 69.4k | bool in_error () const { return allocated < 0; } |
hb_vector_t<OT::cff1::accelerator_t::gname_t, true>::in_error() const Line | Count | Source | 347 | 6.78k | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::dict_val_t>, false>::in_error() const Line | Count | Source | 347 | 7.45k | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::cff2_font_dict_values_t, false>::in_error() const Line | Count | Source | 347 | 25.8k | bool in_error () const { return allocated < 0; } |
Unexecuted instantiation: hb_vector_t<hb_ot_name_record_ids_t, false>::in_error() const hb_vector_t<hb_ot_name_entry_t, false>::in_error() const Line | Count | Source | 347 | 281k | bool in_error () const { return allocated < 0; } |
Unexecuted instantiation: hb_vector_t<hb_outline_point_t, false>::in_error() const hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::in_error() const Line | Count | Source | 347 | 1.70M | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::in_error() const Line | Count | Source | 347 | 1.36M | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_ot_map_builder_t::stage_info_t, false>::in_error() const Line | Count | Source | 347 | 369k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_ot_map_t::feature_map_t, true>::in_error() const Line | Count | Source | 347 | 118k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_ot_map_t::stage_map_t, false>::in_error() const Line | Count | Source | 347 | 366k | bool in_error () const { return allocated < 0; } |
hb_vector_t<unsigned char, false>::in_error() const Line | Count | Source | 347 | 490k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_raster_edge_t, false>::in_error() const Line | Count | Source | 347 | 554k | bool in_error () const { return allocated < 0; } |
hb_vector_t<short, false>::in_error() const Line | Count | Source | 347 | 238k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_vector_t<unsigned int, false>, false>::in_error() const Line | Count | Source | 347 | 2.75k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_raster_image_t*, false>::in_error() const Line | Count | Source | 347 | 4.31k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_raster_clip_t, false>::in_error() const Line | Count | Source | 347 | 3.57k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_color_stop_t, false>::in_error() const Line | Count | Source | 347 | 253k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_subset_serialize_object_t const*, false>::in_error() const Line | Count | Source | 347 | 157k | bool in_error () const { return allocated < 0; } |
hb_vector_t<graph::graph_t::vertex_t, false>::in_error() const Line | Count | Source | 347 | 32.9M | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_pair_t<long, unsigned int>, false>::in_error() const Line | Count | Source | 347 | 1.02G | bool in_error () const { return allocated < 0; } |
hb_vector_t<graph::overflow_record_t, false>::in_error() const Line | Count | Source | 347 | 36.7k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >, false>::in_error() const Line | Count | Source | 347 | 1.45k | bool in_error () const { return allocated < 0; } |
hb_vector_t<char*, false>::in_error() const Line | Count | Source | 347 | 133k | bool in_error () const { return allocated < 0; } |
hb_vector_t<graph::MarkBasePosFormat1::class_info_t, false>::in_error() const Line | Count | Source | 347 | 628 | bool in_error () const { return allocated < 0; } |
hb_vector_t<lookup_size_t, false>::in_error() const Line | Count | Source | 347 | 5.55k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_gpu_curve_t, false>::in_error() const Line | Count | Source | 347 | 599k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_gpu_encode_curve_info_t, false>::in_error() const Line | Count | Source | 347 | 59.1k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_blob_t*, false>::in_error() const Line | Count | Source | 347 | 136k | bool in_error () const { return allocated < 0; } |
hb_vector_t<unsigned int, true>::in_error() const Line | Count | Source | 347 | 243k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::in_error() const Line | Count | Source | 347 | 259k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_vector_t<int, false> const*, false>::in_error() const Line | Count | Source | 347 | 20.6k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false>, false>::in_error() const Line | Count | Source | 347 | 3.29k | bool in_error () const { return allocated < 0; } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, bool, hb_vector_t<hb_vector_t<int, false> const*, false> const&)::delta_size_t, false>::in_error() const Line | Count | Source | 347 | 4.57k | bool in_error () const { return allocated < 0; } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, OT::VarData const*, hb_inc_bimap_t const&, hb_inc_bimap_t const&)::delta_size_t, false>::in_error() const Line | Count | Source | 347 | 45.0k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_inc_bimap_t, false>::in_error() const Line | Count | Source | 347 | 118k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_vector_t<char, false>, false>::in_error() const Line | Count | Source | 347 | 960 | bool in_error () const { return allocated < 0; } |
hb_vector_t<OT::tuple_delta_t, false>::in_error() const Line | Count | Source | 347 | 90.9k | bool in_error () const { return allocated < 0; } |
hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::in_error() const Line | Count | Source | 347 | 2.73k | bool in_error () const { return allocated < 0; } |
hb_vector_t<OT::delta_row_encoding_t, false>::in_error() const Line | Count | Source | 347 | 5.40k | bool in_error () const { return allocated < 0; } |
hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::in_error() const Line | Count | Source | 347 | 4.12k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::in_error() const Line | Count | Source | 347 | 4.67k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_vector_t<int, false>, false>::in_error() const Line | Count | Source | 347 | 1.37k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>::in_error() const Line | Count | Source | 347 | 10.0k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::in_error() const Line | Count | Source | 347 | 11.7k | bool in_error () const { return allocated < 0; } |
hb_vector_t<OT::LayerRecord, false>::in_error() const Line | Count | Source | 347 | 303k | bool in_error () const { return allocated < 0; } |
hb_vector_t<OT::index_map_subset_plan_t, false>::in_error() const Line | Count | Source | 347 | 3.16k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_set_t*, false>::in_error() const Line | Count | Source | 347 | 3.12k | bool in_error () const { return allocated < 0; } |
hb_vector_t<OT::DeltaSetIndexMap const*, false>::in_error() const Line | Count | Source | 347 | 3.17k | bool in_error () const { return allocated < 0; } |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::in_error() const Line | Count | Source | 347 | 3.16M | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_variation_t, false>::in_error() const Line | Count | Source | 347 | 3.46k | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::parsed_cs_op_t, false>::in_error() const Line | Count | Source | 347 | 4.31M | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::parsed_cs_str_t, false>::in_error() const Line | Count | Source | 347 | 41.9k | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::parsed_cs_str_vec_t, false>::in_error() const Line | Count | Source | 347 | 6.79k | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::subr_remap_t, false>::in_error() const Line | Count | Source | 347 | 10.1k | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::code_pair_t, false>::in_error() const Line | Count | Source | 347 | 7.42k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_array_t<unsigned char const>, false>::in_error() const Line | Count | Source | 347 | 4.89k | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::op_str_t>, false>::in_error() const Line | Count | Source | 347 | 9.97k | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::op_str_t>, false>::in_error() const Line | Count | Source | 347 | 4.96k | bool in_error () const { return allocated < 0; } |
hb_vector_t<OT::IndexSubtableRecord, false>::in_error() const Line | Count | Source | 347 | 277 | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>, false>::in_error() const Line | Count | Source | 347 | 352 | bool in_error () const { return allocated < 0; } |
hb_vector_t<OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*, false>::in_error() const Line | Count | Source | 347 | 482 | bool in_error () const { return allocated < 0; } |
hb_vector_t<OT::AxisValueMap, false>::in_error() const Line | Count | Source | 347 | 354 | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::number_t, false>::in_error() const Line | Count | Source | 347 | 345k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int>, false>::in_error() const Line | Count | Source | 347 | 83 | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_vector_t<unsigned char, false>, false>::in_error() const Line | Count | Source | 347 | 16.1k | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::parsed_cs_str_t const*, false>::in_error() const Line | Count | Source | 347 | 3.39k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_vector_t<hb_vector_t<unsigned char, false>, false>, false>::in_error() const Line | Count | Source | 347 | 4.82k | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::cff1_font_dict_values_mod_t, false>::in_error() const Line | Count | Source | 347 | 3.72k | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::cs_command_t, false>::in_error() const Line | Count | Source | 347 | 5.38k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_vector_t<CFF::cs_command_t, false>, false>::in_error() const Line | Count | Source | 347 | 1.53k | bool in_error () const { return allocated < 0; } |
hb_vector_t<CFF::table_info_t, false>::in_error() const Line | Count | Source | 347 | 2.92k | bool in_error () const { return allocated < 0; } |
Unexecuted instantiation: hb_vector_t<double, false>::in_error() const hb_vector_t<hb_pair_t<double, Triple>, false>::in_error() const Line | Count | Source | 347 | 13.7k | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_vector_buf_t, false>::in_error() const Line | Count | Source | 347 | 7.04M | bool in_error () const { return allocated < 0; } |
hb_vector_t<hb_pdf_obj_t, false>::in_error() const Line | Count | Source | 347 | 173k | bool in_error () const { return allocated < 0; } |
|
348 | | void set_error () |
349 | 229k | { |
350 | 229k | assert (allocated >= 0); |
351 | 229k | allocated = -allocated - 1; |
352 | 229k | } hb_vector_t<hb_set_digest_t, false>::set_error() Line | Count | Source | 349 | 10 | { | 350 | 10 | assert (allocated >= 0); | 351 | 10 | allocated = -allocated - 1; | 352 | 10 | } |
hb_vector_t<hb_vector_t<hb_aat_map_t::range_flags_t, true>, false>::set_error() Line | Count | Source | 349 | 99 | { | 350 | 99 | assert (allocated >= 0); | 351 | 99 | allocated = -allocated - 1; | 352 | 99 | } |
hb_vector_t<hb_aat_map_t::range_flags_t, true>::set_error() Line | Count | Source | 349 | 140 | { | 350 | 140 | assert (allocated >= 0); | 351 | 140 | allocated = -allocated - 1; | 352 | 140 | } |
hb_vector_t<hb_bit_page_t, false>::set_error() Line | Count | Source | 349 | 11.9k | { | 350 | 11.9k | assert (allocated >= 0); | 351 | 11.9k | allocated = -allocated - 1; | 352 | 11.9k | } |
hb_vector_t<hb_bit_set_t::page_map_t, true>::set_error() Line | Count | Source | 349 | 8.85k | { | 350 | 8.85k | assert (allocated >= 0); | 351 | 8.85k | allocated = -allocated - 1; | 352 | 8.85k | } |
hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::set_error() Line | Count | Source | 349 | 26 | { | 350 | 26 | assert (allocated >= 0); | 351 | 26 | allocated = -allocated - 1; | 352 | 26 | } |
hb_vector_t<hb_user_data_array_t::hb_user_data_item_t, false>::set_error() Line | Count | Source | 349 | 382 | { | 350 | 382 | assert (allocated >= 0); | 351 | 382 | allocated = -allocated - 1; | 352 | 382 | } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::set_error() Line | Count | Source | 349 | 785 | { | 350 | 785 | assert (allocated >= 0); | 351 | 785 | allocated = -allocated - 1; | 352 | 785 | } |
hb_vector_t<hb_serialize_context_t::object_t*, false>::set_error() Line | Count | Source | 349 | 282 | { | 350 | 282 | assert (allocated >= 0); | 351 | 282 | allocated = -allocated - 1; | 352 | 282 | } |
hb_vector_t<hb_transform_t<float>, false>::set_error() Line | Count | Source | 349 | 33.1k | { | 350 | 33.1k | assert (allocated >= 0); | 351 | 33.1k | allocated = -allocated - 1; | 352 | 33.1k | } |
hb_vector_t<hb_bounds_t<float>, false>::set_error() Line | Count | Source | 349 | 65.8k | { | 350 | 65.8k | assert (allocated >= 0); | 351 | 65.8k | allocated = -allocated - 1; | 352 | 65.8k | } |
hb_vector_t<unsigned int, false>::set_error() Line | Count | Source | 349 | 8.99k | { | 350 | 8.99k | assert (allocated >= 0); | 351 | 8.99k | allocated = -allocated - 1; | 352 | 8.99k | } |
hb_vector_t<hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*, false>::set_error() Line | Count | Source | 349 | 149 | { | 350 | 149 | assert (allocated >= 0); | 351 | 149 | allocated = -allocated - 1; | 352 | 149 | } |
Unexecuted instantiation: hb_vector_t<hb_vector_t<int, false> const*, false>::set_error() Unexecuted instantiation: hb_vector_t<hb_hashmap_t<unsigned int, Triple, false>, false>::set_error() Unexecuted instantiation: hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, bool, hb_vector_t<hb_vector_t<int, false> const*, false> const&)::delta_size_t, false>::set_error() hb_vector_t<char, false>::set_error() Line | Count | Source | 349 | 68.9k | { | 350 | 68.9k | assert (allocated >= 0); | 351 | 68.9k | allocated = -allocated - 1; | 352 | 68.9k | } |
Unexecuted instantiation: hb_vector_t<hb_vector_t<char, false>, false>::set_error() hb_vector_t<bool, false>::set_error() Line | Count | Source | 349 | 434 | { | 350 | 434 | assert (allocated >= 0); | 351 | 434 | allocated = -allocated - 1; | 352 | 434 | } |
hb_vector_t<float, false>::set_error() Line | Count | Source | 349 | 106 | { | 350 | 106 | assert (allocated >= 0); | 351 | 106 | allocated = -allocated - 1; | 352 | 106 | } |
Unexecuted instantiation: hb_vector_t<OT::tuple_delta_t, false>::set_error() Unexecuted instantiation: hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::set_error() hb_vector_t<int, false>::set_error() Line | Count | Source | 349 | 18.4k | { | 350 | 18.4k | assert (allocated >= 0); | 351 | 18.4k | allocated = -allocated - 1; | 352 | 18.4k | } |
Unexecuted instantiation: hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::set_error() Unexecuted instantiation: hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::set_error() Unexecuted instantiation: hb_vector_t<hb_vector_t<int, false>, false>::set_error() Unexecuted instantiation: hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>::set_error() Unexecuted instantiation: hb_vector_t<OT::delta_row_encoding_t, false>::set_error() hb_vector_t<hb_set_t, false>::set_error() Line | Count | Source | 349 | 74 | { | 350 | 74 | assert (allocated >= 0); | 351 | 74 | allocated = -allocated - 1; | 352 | 74 | } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_range_t, true>::set_error() Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_event_t, false>::set_error() Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::set_error() hb_vector_t<contour_point_t, false>::set_error() Line | Count | Source | 349 | 1.26k | { | 350 | 1.26k | assert (allocated >= 0); | 351 | 1.26k | allocated = -allocated - 1; | 352 | 1.26k | } |
Unexecuted instantiation: hb_vector_t<hb_variation_t, false>::set_error() hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>::set_error() Line | Count | Source | 349 | 42 | { | 350 | 42 | assert (allocated >= 0); | 351 | 42 | allocated = -allocated - 1; | 352 | 42 | } |
Unexecuted instantiation: hb_vector_t<OT::AxisValueMap, false>::set_error() hb_vector_t<hb_atomic_t<OT::SVG::svg_doc_cache_t*>, false>::set_error() Line | Count | Source | 349 | 18 | { | 350 | 18 | assert (allocated >= 0); | 351 | 18 | allocated = -allocated - 1; | 352 | 18 | } |
Unexecuted instantiation: hb_vector_t<OT::IndexSubtableRecord, false>::set_error() Unexecuted instantiation: hb_vector_t<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>, false>::set_error() Unexecuted instantiation: hb_vector_t<OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*, false>::set_error() Unexecuted instantiation: hb_vector_t<OT::SVG::svg_defs_entry_t, false>::set_error() Unexecuted instantiation: hb_vector_t<OT::_hb_svg_cache_impl::glyph_entry_t, false>::set_error() Unexecuted instantiation: hb_vector_t<OT::_hb_svg_cache_impl::id_entry_t, false>::set_error() hb_vector_t<CFF::cff1_top_dict_val_t, false>::set_error() Line | Count | Source | 349 | 182 | { | 350 | 182 | assert (allocated >= 0); | 351 | 182 | allocated = -allocated - 1; | 352 | 182 | } |
hb_vector_t<CFF::op_str_t, false>::set_error() Line | Count | Source | 349 | 504 | { | 350 | 504 | assert (allocated >= 0); | 351 | 504 | allocated = -allocated - 1; | 352 | 504 | } |
hb_vector_t<CFF::dict_val_t, false>::set_error() Line | Count | Source | 349 | 239 | { | 350 | 239 | assert (allocated >= 0); | 351 | 239 | allocated = -allocated - 1; | 352 | 239 | } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::dict_val_t>, false>::set_error() Line | Count | Source | 349 | 8 | { | 350 | 8 | assert (allocated >= 0); | 351 | 8 | allocated = -allocated - 1; | 352 | 8 | } |
hb_vector_t<CFF::cff1_font_dict_values_t, false>::set_error() Line | Count | Source | 349 | 14 | { | 350 | 14 | assert (allocated >= 0); | 351 | 14 | allocated = -allocated - 1; | 352 | 14 | } |
Unexecuted instantiation: hb_vector_t<OT::cff1::accelerator_t::gname_t, true>::set_error() hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::dict_val_t>, false>::set_error() Line | Count | Source | 349 | 12 | { | 350 | 12 | assert (allocated >= 0); | 351 | 12 | allocated = -allocated - 1; | 352 | 12 | } |
hb_vector_t<CFF::cff2_font_dict_values_t, false>::set_error() Line | Count | Source | 349 | 18 | { | 350 | 18 | assert (allocated >= 0); | 351 | 18 | allocated = -allocated - 1; | 352 | 18 | } |
Unexecuted instantiation: hb_vector_t<hb_ot_name_record_ids_t, false>::set_error() hb_vector_t<hb_ot_name_entry_t, false>::set_error() Line | Count | Source | 349 | 15 | { | 350 | 15 | assert (allocated >= 0); | 351 | 15 | allocated = -allocated - 1; | 352 | 15 | } |
Unexecuted instantiation: hb_vector_t<hb_outline_point_t, false>::set_error() hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::set_error() Line | Count | Source | 349 | 1.66k | { | 350 | 1.66k | assert (allocated >= 0); | 351 | 1.66k | allocated = -allocated - 1; | 352 | 1.66k | } |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::set_error() Line | Count | Source | 349 | 323 | { | 350 | 323 | assert (allocated >= 0); | 351 | 323 | allocated = -allocated - 1; | 352 | 323 | } |
hb_vector_t<hb_ot_map_builder_t::stage_info_t, false>::set_error() Line | Count | Source | 349 | 1.02k | { | 350 | 1.02k | assert (allocated >= 0); | 351 | 1.02k | allocated = -allocated - 1; | 352 | 1.02k | } |
hb_vector_t<hb_ot_map_t::feature_map_t, true>::set_error() Line | Count | Source | 349 | 481 | { | 350 | 481 | assert (allocated >= 0); | 351 | 481 | allocated = -allocated - 1; | 352 | 481 | } |
hb_vector_t<hb_ot_map_t::stage_map_t, false>::set_error() Line | Count | Source | 349 | 1.17k | { | 350 | 1.17k | assert (allocated >= 0); | 351 | 1.17k | allocated = -allocated - 1; | 352 | 1.17k | } |
hb_vector_t<unsigned char, false>::set_error() Line | Count | Source | 349 | 238 | { | 350 | 238 | assert (allocated >= 0); | 351 | 238 | allocated = -allocated - 1; | 352 | 238 | } |
hb_vector_t<hb_raster_edge_t, false>::set_error() Line | Count | Source | 349 | 48 | { | 350 | 48 | assert (allocated >= 0); | 351 | 48 | allocated = -allocated - 1; | 352 | 48 | } |
hb_vector_t<short, false>::set_error() Line | Count | Source | 349 | 175 | { | 350 | 175 | assert (allocated >= 0); | 351 | 175 | allocated = -allocated - 1; | 352 | 175 | } |
hb_vector_t<hb_vector_t<unsigned int, false>, false>::set_error() Line | Count | Source | 349 | 3 | { | 350 | 3 | assert (allocated >= 0); | 351 | 3 | allocated = -allocated - 1; | 352 | 3 | } |
hb_vector_t<hb_raster_image_t*, false>::set_error() Line | Count | Source | 349 | 9 | { | 350 | 9 | assert (allocated >= 0); | 351 | 9 | allocated = -allocated - 1; | 352 | 9 | } |
hb_vector_t<hb_raster_clip_t, false>::set_error() Line | Count | Source | 349 | 10 | { | 350 | 10 | assert (allocated >= 0); | 351 | 10 | allocated = -allocated - 1; | 352 | 10 | } |
hb_vector_t<hb_color_stop_t, false>::set_error() Line | Count | Source | 349 | 909 | { | 350 | 909 | assert (allocated >= 0); | 351 | 909 | allocated = -allocated - 1; | 352 | 909 | } |
hb_vector_t<hb_subset_serialize_object_t const*, false>::set_error() Line | Count | Source | 349 | 27 | { | 350 | 27 | assert (allocated >= 0); | 351 | 27 | allocated = -allocated - 1; | 352 | 27 | } |
hb_vector_t<graph::graph_t::vertex_t, false>::set_error() Line | Count | Source | 349 | 45 | { | 350 | 45 | assert (allocated >= 0); | 351 | 45 | allocated = -allocated - 1; | 352 | 45 | } |
hb_vector_t<hb_pair_t<long, unsigned int>, false>::set_error() Line | Count | Source | 349 | 132 | { | 350 | 132 | assert (allocated >= 0); | 351 | 132 | allocated = -allocated - 1; | 352 | 132 | } |
hb_vector_t<graph::overflow_record_t, false>::set_error() Line | Count | Source | 349 | 12 | { | 350 | 12 | assert (allocated >= 0); | 351 | 12 | allocated = -allocated - 1; | 352 | 12 | } |
Unexecuted instantiation: hb_vector_t<hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >, false>::set_error() hb_vector_t<char*, false>::set_error() Line | Count | Source | 349 | 12 | { | 350 | 12 | assert (allocated >= 0); | 351 | 12 | allocated = -allocated - 1; | 352 | 12 | } |
hb_vector_t<graph::MarkBasePosFormat1::class_info_t, false>::set_error() Line | Count | Source | 349 | 13 | { | 350 | 13 | assert (allocated >= 0); | 351 | 13 | allocated = -allocated - 1; | 352 | 13 | } |
hb_vector_t<lookup_size_t, false>::set_error() Line | Count | Source | 349 | 14 | { | 350 | 14 | assert (allocated >= 0); | 351 | 14 | allocated = -allocated - 1; | 352 | 14 | } |
hb_vector_t<hb_gpu_curve_t, false>::set_error() Line | Count | Source | 349 | 670 | { | 350 | 670 | assert (allocated >= 0); | 351 | 670 | allocated = -allocated - 1; | 352 | 670 | } |
hb_vector_t<hb_gpu_encode_curve_info_t, false>::set_error() Line | Count | Source | 349 | 169 | { | 350 | 169 | assert (allocated >= 0); | 351 | 169 | allocated = -allocated - 1; | 352 | 169 | } |
hb_vector_t<hb_blob_t*, false>::set_error() Line | Count | Source | 349 | 195 | { | 350 | 195 | assert (allocated >= 0); | 351 | 195 | allocated = -allocated - 1; | 352 | 195 | } |
hb_vector_t<unsigned int, true>::set_error() Line | Count | Source | 349 | 160 | { | 350 | 160 | assert (allocated >= 0); | 351 | 160 | allocated = -allocated - 1; | 352 | 160 | } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::set_error() Line | Count | Source | 349 | 208 | { | 350 | 208 | assert (allocated >= 0); | 351 | 208 | allocated = -allocated - 1; | 352 | 208 | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, OT::VarData const*, hb_inc_bimap_t const&, hb_inc_bimap_t const&)::delta_size_t, false>::set_error() Line | Count | Source | 349 | 14 | { | 350 | 14 | assert (allocated >= 0); | 351 | 14 | allocated = -allocated - 1; | 352 | 14 | } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::set_error() Line | Count | Source | 349 | 26 | { | 350 | 26 | assert (allocated >= 0); | 351 | 26 | allocated = -allocated - 1; | 352 | 26 | } |
hb_vector_t<OT::LayerRecord, false>::set_error() Line | Count | Source | 349 | 33 | { | 350 | 33 | assert (allocated >= 0); | 351 | 33 | allocated = -allocated - 1; | 352 | 33 | } |
hb_vector_t<OT::index_map_subset_plan_t, false>::set_error() Line | Count | Source | 349 | 2 | { | 350 | 2 | assert (allocated >= 0); | 351 | 2 | allocated = -allocated - 1; | 352 | 2 | } |
hb_vector_t<hb_set_t*, false>::set_error() Line | Count | Source | 349 | 4 | { | 350 | 4 | assert (allocated >= 0); | 351 | 4 | allocated = -allocated - 1; | 352 | 4 | } |
hb_vector_t<hb_inc_bimap_t, false>::set_error() Line | Count | Source | 349 | 19 | { | 350 | 19 | assert (allocated >= 0); | 351 | 19 | allocated = -allocated - 1; | 352 | 19 | } |
hb_vector_t<OT::DeltaSetIndexMap const*, false>::set_error() Line | Count | Source | 349 | 3 | { | 350 | 3 | assert (allocated >= 0); | 351 | 3 | allocated = -allocated - 1; | 352 | 3 | } |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::set_error() Line | Count | Source | 349 | 2 | { | 350 | 2 | assert (allocated >= 0); | 351 | 2 | allocated = -allocated - 1; | 352 | 2 | } |
hb_vector_t<CFF::parsed_cs_op_t, false>::set_error() Line | Count | Source | 349 | 73 | { | 350 | 73 | assert (allocated >= 0); | 351 | 73 | allocated = -allocated - 1; | 352 | 73 | } |
hb_vector_t<CFF::parsed_cs_str_t, false>::set_error() Line | Count | Source | 349 | 8 | { | 350 | 8 | assert (allocated >= 0); | 351 | 8 | allocated = -allocated - 1; | 352 | 8 | } |
hb_vector_t<CFF::parsed_cs_str_vec_t, false>::set_error() Line | Count | Source | 349 | 1 | { | 350 | 1 | assert (allocated >= 0); | 351 | 1 | allocated = -allocated - 1; | 352 | 1 | } |
hb_vector_t<CFF::subr_remap_t, false>::set_error() Line | Count | Source | 349 | 11 | { | 350 | 11 | assert (allocated >= 0); | 351 | 11 | allocated = -allocated - 1; | 352 | 11 | } |
hb_vector_t<CFF::code_pair_t, false>::set_error() Line | Count | Source | 349 | 14 | { | 350 | 14 | assert (allocated >= 0); | 351 | 14 | allocated = -allocated - 1; | 352 | 14 | } |
hb_vector_t<hb_array_t<unsigned char const>, false>::set_error() Line | Count | Source | 349 | 1 | { | 350 | 1 | assert (allocated >= 0); | 351 | 1 | allocated = -allocated - 1; | 352 | 1 | } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::op_str_t>, false>::set_error() Line | Count | Source | 349 | 22 | { | 350 | 22 | assert (allocated >= 0); | 351 | 22 | allocated = -allocated - 1; | 352 | 22 | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::op_str_t>, false>::set_error() Line | Count | Source | 349 | 3 | { | 350 | 3 | assert (allocated >= 0); | 351 | 3 | allocated = -allocated - 1; | 352 | 3 | } |
hb_vector_t<CFF::number_t, false>::set_error() Line | Count | Source | 349 | 18 | { | 350 | 18 | assert (allocated >= 0); | 351 | 18 | allocated = -allocated - 1; | 352 | 18 | } |
Unexecuted instantiation: hb_vector_t<hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int>, false>::set_error() hb_vector_t<hb_vector_t<unsigned char, false>, false>::set_error() Line | Count | Source | 349 | 6 | { | 350 | 6 | assert (allocated >= 0); | 351 | 6 | allocated = -allocated - 1; | 352 | 6 | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t const*, false>::set_error() hb_vector_t<hb_vector_t<hb_vector_t<unsigned char, false>, false>, false>::set_error() Line | Count | Source | 349 | 6 | { | 350 | 6 | assert (allocated >= 0); | 351 | 6 | allocated = -allocated - 1; | 352 | 6 | } |
hb_vector_t<CFF::cff1_font_dict_values_mod_t, false>::set_error() Line | Count | Source | 349 | 3 | { | 350 | 3 | assert (allocated >= 0); | 351 | 3 | allocated = -allocated - 1; | 352 | 3 | } |
Unexecuted instantiation: hb_vector_t<CFF::cs_command_t, false>::set_error() Unexecuted instantiation: hb_vector_t<hb_vector_t<CFF::cs_command_t, false>, false>::set_error() hb_vector_t<CFF::table_info_t, false>::set_error() Line | Count | Source | 349 | 3 | { | 350 | 3 | assert (allocated >= 0); | 351 | 3 | allocated = -allocated - 1; | 352 | 3 | } |
Unexecuted instantiation: hb_vector_t<double, false>::set_error() Unexecuted instantiation: hb_vector_t<hb_pair_t<double, Triple>, false>::set_error() hb_vector_t<hb_vector_buf_t, false>::set_error() Line | Count | Source | 349 | 550 | { | 350 | 550 | assert (allocated >= 0); | 351 | 550 | allocated = -allocated - 1; | 352 | 550 | } |
hb_vector_t<hb_pdf_obj_t, false>::set_error() Line | Count | Source | 349 | 154 | { | 350 | 154 | assert (allocated >= 0); | 351 | 154 | allocated = -allocated - 1; | 352 | 154 | } |
|
353 | | void reset_error () |
354 | 2.29k | { |
355 | 2.29k | assert (allocated < 0); |
356 | 2.29k | allocated = -(allocated + 1); |
357 | 2.29k | } Unexecuted instantiation: hb_vector_t<hb_bit_set_t::page_map_t, true>::reset_error() Unexecuted instantiation: hb_vector_t<hb_bit_page_t, false>::reset_error() Unexecuted instantiation: hb_vector_t<OT::tuple_delta_t, false>::reset_error() Unexecuted instantiation: hb_vector_t<bool, false>::reset_error() Unexecuted instantiation: hb_vector_t<float, false>::reset_error() Unexecuted instantiation: hb_vector_t<unsigned char, false>::reset_error() Unexecuted instantiation: hb_vector_t<hb_vector_t<int, false> const*, false>::reset_error() hb_vector_t<hb_set_t, false>::reset_error() Line | Count | Source | 354 | 63 | { | 355 | 63 | assert (allocated < 0); | 356 | 63 | allocated = -(allocated + 1); | 357 | 63 | } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::reset_error() Unexecuted instantiation: hb_vector_t<contour_point_t, false>::reset_error() Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t, false>::reset_error() Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_vec_t, false>::reset_error() hb_vector_t<unsigned int, false>::reset_error() Line | Count | Source | 354 | 1.03k | { | 355 | 1.03k | assert (allocated < 0); | 356 | 1.03k | allocated = -(allocated + 1); | 357 | 1.03k | } |
Unexecuted instantiation: hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::reset_error() hb_vector_t<hb_gpu_encode_curve_info_t, false>::reset_error() Line | Count | Source | 354 | 115 | { | 355 | 115 | assert (allocated < 0); | 356 | 115 | allocated = -(allocated + 1); | 357 | 115 | } |
hb_vector_t<hb_gpu_curve_t, false>::reset_error() Line | Count | Source | 354 | 648 | { | 355 | 648 | assert (allocated < 0); | 356 | 648 | allocated = -(allocated + 1); | 357 | 648 | } |
hb_vector_t<short, false>::reset_error() Line | Count | Source | 354 | 146 | { | 355 | 146 | assert (allocated < 0); | 356 | 146 | allocated = -(allocated + 1); | 357 | 146 | } |
hb_vector_t<hb_blob_t*, false>::reset_error() Line | Count | Source | 354 | 195 | { | 355 | 195 | assert (allocated < 0); | 356 | 195 | allocated = -(allocated + 1); | 357 | 195 | } |
hb_vector_t<hb_transform_t<float>, false>::reset_error() Line | Count | Source | 354 | 65 | { | 355 | 65 | assert (allocated < 0); | 356 | 65 | allocated = -(allocated + 1); | 357 | 65 | } |
hb_vector_t<unsigned int, true>::reset_error() Line | Count | Source | 354 | 35 | { | 355 | 35 | assert (allocated < 0); | 356 | 35 | allocated = -(allocated + 1); | 357 | 35 | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_op_t, false>::reset_error() Unexecuted instantiation: hb_vector_t<int, false>::reset_error() Unexecuted instantiation: hb_vector_t<hb_pair_t<double, Triple>, false>::reset_error() |
358 | | void ensure_error () |
359 | 4 | { |
360 | 4 | if (!in_error ()) |
361 | 4 | set_error (); |
362 | 4 | } |
363 | | |
364 | | Type * |
365 | | _realloc (unsigned new_allocated) |
366 | 39.0M | { |
367 | 39.0M | if (!new_allocated) |
368 | 53.9k | { |
369 | 53.9k | if (is_owned ()) |
370 | 53.9k | hb_free (arrayZ); |
371 | 53.9k | return nullptr; |
372 | 53.9k | } |
373 | 38.9M | if (!allocated && arrayZ) |
374 | 67.0k | { |
375 | | /* If we have a non-null arrayZ but allocated is 0, then we are |
376 | | * reallocating from a foreign array. */ |
377 | 67.0k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); |
378 | 67.0k | if (unlikely (!new_array)) |
379 | 2.16k | return nullptr; |
380 | 64.9k | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); |
381 | 64.9k | return new_array; |
382 | 67.0k | } |
383 | 38.9M | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); |
384 | 38.9M | } hb_vector_t<hb_set_digest_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 291 | { | 367 | 291 | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 291 | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 291 | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 291 | } |
hb_vector_t<hb_vector_t<hb_aat_map_t::range_flags_t, true>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 3.90k | { | 367 | 3.90k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 3.90k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 3.90k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 3.90k | } |
hb_vector_t<hb_aat_map_t::range_flags_t, true>::_realloc(unsigned int) Line | Count | Source | 366 | 6.21k | { | 367 | 6.21k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 6.21k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 6.21k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 6.21k | } |
hb_vector_t<hb_bit_page_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 12.3M | { | 367 | 12.3M | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 12.3M | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 12.3M | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 12.3M | } |
hb_vector_t<hb_bit_set_t::page_map_t, true>::_realloc(unsigned int) Line | Count | Source | 366 | 11.8M | { | 367 | 11.8M | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 11.8M | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 11.8M | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 11.8M | } |
hb_vector_t<hb_user_data_array_t::hb_user_data_item_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 26.0k | { | 367 | 26.0k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 26.0k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 26.0k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 26.0k | } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 5.32M | { | 367 | 5.32M | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 5.32M | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 5.32M | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 5.32M | } |
hb_vector_t<hb_serialize_context_t::object_t*, false>::_realloc(unsigned int) Line | Count | Source | 366 | 174k | { | 367 | 174k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 174k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 174k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 174k | } |
hb_vector_t<hb_transform_t<float>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 828k | { | 367 | 828k | if (!new_allocated) | 368 | 711 | { | 369 | 711 | if (is_owned ()) | 370 | 711 | hb_free (arrayZ); | 371 | 711 | return nullptr; | 372 | 711 | } | 373 | 828k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 828k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 828k | } |
hb_vector_t<hb_bounds_t<float>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 1.64M | { | 367 | 1.64M | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 1.64M | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 1.64M | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 1.64M | } |
hb_vector_t<unsigned int, false>::_realloc(unsigned int) Line | Count | Source | 366 | 1.12M | { | 367 | 1.12M | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 1.12M | if (!allocated && arrayZ) | 374 | 67.0k | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 67.0k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 67.0k | if (unlikely (!new_array)) | 379 | 2.16k | return nullptr; | 380 | 64.9k | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 64.9k | return new_array; | 382 | 67.0k | } | 383 | 1.05M | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 1.12M | } |
Unexecuted instantiation: hb_vector_t<unsigned int, true>::_realloc(unsigned int) hb_vector_t<hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*, false>::_realloc(unsigned int) Line | Count | Source | 366 | 100k | { | 367 | 100k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 100k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 100k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 100k | } |
Unexecuted instantiation: hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<unsigned char, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<hb_vector_t<int, false> const*, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<hb_hashmap_t<unsigned int, Triple, false>, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, bool, hb_vector_t<hb_vector_t<int, false> const*, false> const&)::delta_size_t, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, OT::VarData const*, hb_inc_bimap_t const&, hb_inc_bimap_t const&)::delta_size_t, false>::_realloc(unsigned int) hb_vector_t<char, false>::_realloc(unsigned int) Line | Count | Source | 366 | 2.98M | { | 367 | 2.98M | if (!new_allocated) | 368 | 53.1k | { | 369 | 53.1k | if (is_owned ()) | 370 | 53.1k | hb_free (arrayZ); | 371 | 53.1k | return nullptr; | 372 | 53.1k | } | 373 | 2.93M | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 2.93M | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 2.93M | } |
Unexecuted instantiation: hb_vector_t<hb_vector_t<char, false>, false>::_realloc(unsigned int) hb_vector_t<bool, false>::_realloc(unsigned int) Line | Count | Source | 366 | 57.0k | { | 367 | 57.0k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 57.0k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 57.0k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 57.0k | } |
hb_vector_t<float, false>::_realloc(unsigned int) Line | Count | Source | 366 | 21.8k | { | 367 | 21.8k | if (!new_allocated) | 368 | 23 | { | 369 | 23 | if (is_owned ()) | 370 | 23 | hb_free (arrayZ); | 371 | 23 | return nullptr; | 372 | 23 | } | 373 | 21.8k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 21.8k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 21.8k | } |
Unexecuted instantiation: hb_vector_t<OT::tuple_delta_t, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::_realloc(unsigned int) hb_vector_t<int, false>::_realloc(unsigned int) Line | Count | Source | 366 | 549k | { | 367 | 549k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 549k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 549k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 549k | } |
Unexecuted instantiation: hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<hb_vector_t<int, false>, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>::_realloc(unsigned int) hb_vector_t<hb_set_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 7.32k | { | 367 | 7.32k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 7.32k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 7.32k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 7.32k | } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_range_t, true>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_event_t, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<OT::LayerRecord, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<hb_set_t*, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<OT::DeltaSetIndexMap const*, false>::_realloc(unsigned int) hb_vector_t<contour_point_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 484k | { | 367 | 484k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 484k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 484k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 484k | } |
Unexecuted instantiation: hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<hb_variation_t, false>::_realloc(unsigned int) hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 12.1k | { | 367 | 12.1k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 12.1k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 12.1k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 12.1k | } |
Unexecuted instantiation: hb_vector_t<OT::AxisValueMap, false>::_realloc(unsigned int) hb_vector_t<hb_atomic_t<OT::SVG::svg_doc_cache_t*>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 989 | { | 367 | 989 | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 989 | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 989 | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 989 | } |
Unexecuted instantiation: hb_vector_t<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<OT::SVG::svg_defs_entry_t, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<OT::_hb_svg_cache_impl::glyph_entry_t, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<OT::_hb_svg_cache_impl::id_entry_t, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_op_t, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_vec_t, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<CFF::code_pair_t, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<hb_array_t<unsigned char const>, false>::_realloc(unsigned int) hb_vector_t<CFF::cff1_top_dict_val_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 20.0k | { | 367 | 20.0k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 20.0k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 20.0k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 20.0k | } |
hb_vector_t<CFF::op_str_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 79.1k | { | 367 | 79.1k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 79.1k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 79.1k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 79.1k | } |
hb_vector_t<CFF::dict_val_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 24.6k | { | 367 | 24.6k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 24.6k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 24.6k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 24.6k | } |
hb_vector_t<OT::cff1::accelerator_t::gname_t, true>::_realloc(unsigned int) Line | Count | Source | 366 | 3.39k | { | 367 | 3.39k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 3.39k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 3.39k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 3.39k | } |
Unexecuted instantiation: hb_vector_t<hb_ot_name_record_ids_t, false>::_realloc(unsigned int) hb_vector_t<hb_ot_name_entry_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 790 | { | 367 | 790 | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 790 | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 790 | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 790 | } |
Unexecuted instantiation: hb_vector_t<hb_outline_point_t, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<CFF::number_t, false>::_realloc(unsigned int) hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 170k | { | 367 | 170k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 170k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 170k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 170k | } |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 50.1k | { | 367 | 50.1k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 50.1k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 50.1k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 50.1k | } |
hb_vector_t<hb_ot_map_builder_t::stage_info_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 117k | { | 367 | 117k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 117k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 117k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 117k | } |
hb_vector_t<hb_ot_map_t::feature_map_t, true>::_realloc(unsigned int) Line | Count | Source | 366 | 53.4k | { | 367 | 53.4k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 53.4k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 53.4k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 53.4k | } |
hb_vector_t<hb_ot_map_t::stage_map_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 116k | { | 367 | 116k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 116k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 116k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 116k | } |
hb_vector_t<unsigned char, false>::_realloc(unsigned int) Line | Count | Source | 366 | 115k | { | 367 | 115k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 115k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 115k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 115k | } |
Unexecuted instantiation: hb_vector_t<char, false>::_realloc(unsigned int) Unexecuted instantiation: hb_vector_t<hb_ot_name_entry_t, false>::_realloc(unsigned int) hb_vector_t<hb_raster_edge_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 5.55k | { | 367 | 5.55k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 5.55k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 5.55k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 5.55k | } |
hb_vector_t<short, false>::_realloc(unsigned int) Line | Count | Source | 366 | 11.6k | { | 367 | 11.6k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 11.6k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 11.6k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 11.6k | } |
hb_vector_t<hb_vector_t<unsigned int, false>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 1.16k | { | 367 | 1.16k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 1.16k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 1.16k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 1.16k | } |
hb_vector_t<hb_raster_image_t*, false>::_realloc(unsigned int) Line | Count | Source | 366 | 1.74k | { | 367 | 1.74k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 1.74k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 1.74k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 1.74k | } |
hb_vector_t<hb_color_stop_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 56.6k | { | 367 | 56.6k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 56.6k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 56.6k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 56.6k | } |
hb_vector_t<hb_subset_serialize_object_t const*, false>::_realloc(unsigned int) Line | Count | Source | 366 | 3.75k | { | 367 | 3.75k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 3.75k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 3.75k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 3.75k | } |
hb_vector_t<hb_pair_t<long, unsigned int>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 88.3k | { | 367 | 88.3k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 88.3k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 88.3k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 88.3k | } |
hb_vector_t<graph::overflow_record_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 18.3k | { | 367 | 18.3k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 18.3k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 18.3k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 18.3k | } |
hb_vector_t<char*, false>::_realloc(unsigned int) Line | Count | Source | 366 | 5.98k | { | 367 | 5.98k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 5.98k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 5.98k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 5.98k | } |
hb_vector_t<lookup_size_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 2.77k | { | 367 | 2.77k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 2.77k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 2.77k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 2.77k | } |
hb_vector_t<hb_gpu_curve_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 60.0k | { | 367 | 60.0k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 60.0k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 60.0k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 60.0k | } |
hb_vector_t<hb_gpu_encode_curve_info_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 9.36k | { | 367 | 9.36k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 9.36k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 9.36k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 9.36k | } |
hb_vector_t<hb_blob_t*, false>::_realloc(unsigned int) Line | Count | Source | 366 | 8.57k | { | 367 | 8.57k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 8.57k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 8.57k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 8.57k | } |
hb_vector_t<unsigned int, true>::_realloc(unsigned int) Line | Count | Source | 366 | 120k | { | 367 | 120k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 120k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 120k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 120k | } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::_realloc(unsigned int) Line | Count | Source | 366 | 77.8k | { | 367 | 77.8k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 77.8k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 77.8k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 77.8k | } |
hb_vector_t<hb_vector_t<int, false> const*, false>::_realloc(unsigned int) Line | Count | Source | 366 | 6.82k | { | 367 | 6.82k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 6.82k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 6.82k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 6.82k | } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 1.07k | { | 367 | 1.07k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 1.07k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 1.07k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 1.07k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, bool, hb_vector_t<hb_vector_t<int, false> const*, false> const&)::delta_size_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 2.28k | { | 367 | 2.28k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 2.28k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 2.28k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 2.28k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, OT::VarData const*, hb_inc_bimap_t const&, hb_inc_bimap_t const&)::delta_size_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 21.7k | { | 367 | 21.7k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 21.7k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 21.7k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 21.7k | } |
hb_vector_t<hb_vector_t<char, false>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 106 | { | 367 | 106 | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 106 | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 106 | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 106 | } |
hb_vector_t<OT::tuple_delta_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 19.2k | { | 367 | 19.2k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 19.2k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 19.2k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 19.2k | } |
hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 2 | { | 367 | 2 | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 2 | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 2 | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 2 | } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::_realloc(unsigned int) Line | Count | Source | 366 | 1.95k | { | 367 | 1.95k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 1.95k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 1.95k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 1.95k | } |
hb_vector_t<hb_vector_t<int, false>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 688 | { | 367 | 688 | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 688 | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 688 | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 688 | } |
hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 885 | { | 367 | 885 | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 885 | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 885 | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 885 | } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 4.58k | { | 367 | 4.58k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 4.58k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 4.58k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 4.58k | } |
hb_vector_t<OT::LayerRecord, false>::_realloc(unsigned int) Line | Count | Source | 366 | 5.06k | { | 367 | 5.06k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 5.06k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 5.06k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 5.06k | } |
hb_vector_t<hb_set_t*, false>::_realloc(unsigned int) Line | Count | Source | 366 | 1.53k | { | 367 | 1.53k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 1.53k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 1.53k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 1.53k | } |
hb_vector_t<OT::DeltaSetIndexMap const*, false>::_realloc(unsigned int) Line | Count | Source | 366 | 1.58k | { | 367 | 1.58k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 1.58k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 1.58k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 1.58k | } |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::_realloc(unsigned int) Line | Count | Source | 366 | 8.01k | { | 367 | 8.01k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 8.01k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 8.01k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 8.01k | } |
hb_vector_t<hb_variation_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 1.73k | { | 367 | 1.73k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 1.73k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 1.73k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 1.73k | } |
hb_vector_t<CFF::parsed_cs_op_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 28.7k | { | 367 | 28.7k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 28.7k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 28.7k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 28.7k | } |
hb_vector_t<CFF::parsed_cs_str_vec_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 3.38k | { | 367 | 3.38k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 3.38k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 3.38k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 3.38k | } |
hb_vector_t<CFF::code_pair_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 2.47k | { | 367 | 2.47k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 2.47k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 2.47k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 2.47k | } |
hb_vector_t<hb_array_t<unsigned char const>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 1.72k | { | 367 | 1.72k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 1.72k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 1.72k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 1.72k | } |
Unexecuted instantiation: hb_vector_t<hb_ot_name_record_ids_t, false>::_realloc(unsigned int) hb_vector_t<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 91 | { | 367 | 91 | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 91 | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 91 | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 91 | } |
hb_vector_t<OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*, false>::_realloc(unsigned int) Line | Count | Source | 366 | 241 | { | 367 | 241 | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 241 | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 241 | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 241 | } |
hb_vector_t<OT::AxisValueMap, false>::_realloc(unsigned int) Line | Count | Source | 366 | 177 | { | 367 | 177 | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 177 | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 177 | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 177 | } |
hb_vector_t<CFF::number_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 114k | { | 367 | 114k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 114k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 114k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 114k | } |
hb_vector_t<hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 2 | { | 367 | 2 | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 2 | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 2 | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 2 | } |
hb_vector_t<hb_vector_t<unsigned char, false>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 5.17k | { | 367 | 5.17k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 5.17k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 5.17k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 5.17k | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t const*, false>::_realloc(unsigned int) hb_vector_t<hb_vector_t<hb_vector_t<unsigned char, false>, false>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 2.41k | { | 367 | 2.41k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 2.41k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 2.41k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 2.41k | } |
hb_vector_t<CFF::cff1_font_dict_values_mod_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 1.86k | { | 367 | 1.86k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 1.86k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 1.86k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 1.86k | } |
hb_vector_t<hb_vector_t<CFF::cs_command_t, false>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 766 | { | 367 | 766 | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 766 | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 766 | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 766 | } |
hb_vector_t<CFF::table_info_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 1.46k | { | 367 | 1.46k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 1.46k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 1.46k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 1.46k | } |
Unexecuted instantiation: hb_vector_t<double, false>::_realloc(unsigned int) hb_vector_t<hb_pair_t<double, Triple>, false>::_realloc(unsigned int) Line | Count | Source | 366 | 1.20k | { | 367 | 1.20k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 1.20k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 1.20k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 1.20k | } |
hb_vector_t<hb_vector_buf_t, false>::_realloc(unsigned int) Line | Count | Source | 366 | 28.7k | { | 367 | 28.7k | if (!new_allocated) | 368 | 0 | { | 369 | 0 | if (is_owned ()) | 370 | 0 | hb_free (arrayZ); | 371 | 0 | return nullptr; | 372 | 0 | } | 373 | 28.7k | if (!allocated && arrayZ) | 374 | 0 | { | 375 | | /* If we have a non-null arrayZ but allocated is 0, then we are | 376 | | * reallocating from a foreign array. */ | 377 | 0 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 378 | 0 | if (unlikely (!new_array)) | 379 | 0 | return nullptr; | 380 | 0 | hb_memcpy ((void *) new_array, (const void *) arrayZ, length * sizeof (Type)); | 381 | 0 | return new_array; | 382 | 0 | } | 383 | 28.7k | return (Type *) hb_realloc (arrayZ, new_allocated * sizeof (Type)); | 384 | 28.7k | } |
|
385 | | Type * |
386 | | _malloc_move (unsigned new_allocated) |
387 | 64.4k | { |
388 | 64.4k | if (!new_allocated) |
389 | 0 | { |
390 | 0 | if (is_owned ()) |
391 | 0 | hb_free (arrayZ); |
392 | 0 | return nullptr; |
393 | 0 | } |
394 | 64.4k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); |
395 | 64.4k | if (likely (new_array)) |
396 | 64.1k | { |
397 | 15.8M | for (unsigned i = 0; i < length; i++) |
398 | 15.7M | { |
399 | 15.7M | new (std::addressof (new_array[i])) Type (); |
400 | 15.7M | new_array[i] = std::move (arrayZ[i]); |
401 | 15.7M | arrayZ[i].~Type (); |
402 | 15.7M | } |
403 | 64.1k | if (is_owned ()) |
404 | 11.8k | hb_free (arrayZ); |
405 | 64.1k | } |
406 | 64.4k | return new_array; |
407 | 64.4k | } hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 2.94k | { | 388 | 2.94k | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 2.94k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 2.94k | if (likely (new_array)) | 396 | 2.91k | { | 397 | 3.52k | for (unsigned i = 0; i < length; i++) | 398 | 612 | { | 399 | 612 | new (std::addressof (new_array[i])) Type (); | 400 | 612 | new_array[i] = std::move (arrayZ[i]); | 401 | 612 | arrayZ[i].~Type (); | 402 | 612 | } | 403 | 2.91k | if (is_owned ()) | 404 | 51 | hb_free (arrayZ); | 405 | 2.91k | } | 406 | 2.94k | return new_array; | 407 | 2.94k | } |
Unexecuted instantiation: hb_vector_t<hb_inc_bimap_t, false>::_malloc_move(unsigned int) Unexecuted instantiation: hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::_malloc_move(unsigned int) Unexecuted instantiation: hb_vector_t<OT::delta_row_encoding_t, false>::_malloc_move(unsigned int) Unexecuted instantiation: hb_vector_t<OT::index_map_subset_plan_t, false>::_malloc_move(unsigned int) Unexecuted instantiation: hb_vector_t<OT::IndexSubtableRecord, false>::_malloc_move(unsigned int) Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t, false>::_malloc_move(unsigned int) Unexecuted instantiation: hb_vector_t<CFF::subr_remap_t, false>::_malloc_move(unsigned int) hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::dict_val_t>, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 4.32k | { | 388 | 4.32k | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 4.32k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 4.32k | if (likely (new_array)) | 396 | 4.31k | { | 397 | 4.31k | for (unsigned i = 0; i < length; i++) | 398 | 0 | { | 399 | 0 | new (std::addressof (new_array[i])) Type (); | 400 | 0 | new_array[i] = std::move (arrayZ[i]); | 401 | 0 | arrayZ[i].~Type (); | 402 | 0 | } | 403 | 4.31k | if (is_owned ()) | 404 | 0 | hb_free (arrayZ); | 405 | 4.31k | } | 406 | 4.32k | return new_array; | 407 | 4.32k | } |
hb_vector_t<CFF::cff1_font_dict_values_t, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 2.38k | { | 388 | 2.38k | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 2.38k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 2.38k | if (likely (new_array)) | 396 | 2.37k | { | 397 | 66.2k | for (unsigned i = 0; i < length; i++) | 398 | 63.8k | { | 399 | 63.8k | new (std::addressof (new_array[i])) Type (); | 400 | 63.8k | new_array[i] = std::move (arrayZ[i]); | 401 | 63.8k | arrayZ[i].~Type (); | 402 | 63.8k | } | 403 | 2.37k | if (is_owned ()) | 404 | 960 | hb_free (arrayZ); | 405 | 2.37k | } | 406 | 2.38k | return new_array; | 407 | 2.38k | } |
Unexecuted instantiation: hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::op_str_t>, false>::_malloc_move(unsigned int) hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::dict_val_t>, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 2.66k | { | 388 | 2.66k | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 2.66k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 2.66k | if (likely (new_array)) | 396 | 2.64k | { | 397 | 2.64k | for (unsigned i = 0; i < length; i++) | 398 | 0 | { | 399 | 0 | new (std::addressof (new_array[i])) Type (); | 400 | 0 | new_array[i] = std::move (arrayZ[i]); | 401 | 0 | arrayZ[i].~Type (); | 402 | 0 | } | 403 | 2.64k | if (is_owned ()) | 404 | 0 | hb_free (arrayZ); | 405 | 2.64k | } | 406 | 2.66k | return new_array; | 407 | 2.66k | } |
hb_vector_t<CFF::cff2_font_dict_values_t, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 5.34k | { | 388 | 5.34k | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 5.34k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 5.34k | if (likely (new_array)) | 396 | 5.32k | { | 397 | 32.4k | for (unsigned i = 0; i < length; i++) | 398 | 27.0k | { | 399 | 27.0k | new (std::addressof (new_array[i])) Type (); | 400 | 27.0k | new_array[i] = std::move (arrayZ[i]); | 401 | 27.0k | arrayZ[i].~Type (); | 402 | 27.0k | } | 403 | 5.32k | if (is_owned ()) | 404 | 280 | hb_free (arrayZ); | 405 | 5.32k | } | 406 | 5.34k | return new_array; | 407 | 5.34k | } |
Unexecuted instantiation: hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::op_str_t>, false>::_malloc_move(unsigned int) hb_vector_t<hb_raster_clip_t, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 1.17k | { | 388 | 1.17k | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 1.17k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 1.17k | if (likely (new_array)) | 396 | 1.16k | { | 397 | 1.16k | for (unsigned i = 0; i < length; i++) | 398 | 0 | { | 399 | 0 | new (std::addressof (new_array[i])) Type (); | 400 | 0 | new_array[i] = std::move (arrayZ[i]); | 401 | 0 | arrayZ[i].~Type (); | 402 | 0 | } | 403 | 1.16k | if (is_owned ()) | 404 | 0 | hb_free (arrayZ); | 405 | 1.16k | } | 406 | 1.17k | return new_array; | 407 | 1.17k | } |
hb_vector_t<graph::graph_t::vertex_t, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 9.11k | { | 388 | 9.11k | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 9.11k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 9.11k | if (likely (new_array)) | 396 | 9.07k | { | 397 | 13.9M | for (unsigned i = 0; i < length; i++) | 398 | 13.9M | { | 399 | 13.9M | new (std::addressof (new_array[i])) Type (); | 400 | 13.9M | new_array[i] = std::move (arrayZ[i]); | 401 | 13.9M | arrayZ[i].~Type (); | 402 | 13.9M | } | 403 | 9.07k | if (is_owned ()) | 404 | 3.25k | hb_free (arrayZ); | 405 | 9.07k | } | 406 | 9.11k | return new_array; | 407 | 9.11k | } |
hb_vector_t<hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 727 | { | 388 | 727 | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 727 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 727 | if (likely (new_array)) | 396 | 727 | { | 397 | 727 | for (unsigned i = 0; i < length; i++) | 398 | 0 | { | 399 | 0 | new (std::addressof (new_array[i])) Type (); | 400 | 0 | new_array[i] = std::move (arrayZ[i]); | 401 | 0 | arrayZ[i].~Type (); | 402 | 0 | } | 403 | 727 | if (is_owned ()) | 404 | 0 | hb_free (arrayZ); | 405 | 727 | } | 406 | 727 | return new_array; | 407 | 727 | } |
hb_vector_t<graph::MarkBasePosFormat1::class_info_t, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 314 | { | 388 | 314 | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 314 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 314 | if (likely (new_array)) | 396 | 301 | { | 397 | 301 | for (unsigned i = 0; i < length; i++) | 398 | 0 | { | 399 | 0 | new (std::addressof (new_array[i])) Type (); | 400 | 0 | new_array[i] = std::move (arrayZ[i]); | 401 | 0 | arrayZ[i].~Type (); | 402 | 0 | } | 403 | 301 | if (is_owned ()) | 404 | 0 | hb_free (arrayZ); | 405 | 301 | } | 406 | 314 | return new_array; | 407 | 314 | } |
hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 1.43k | { | 388 | 1.43k | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 1.43k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 1.43k | if (likely (new_array)) | 396 | 1.43k | { | 397 | 1.43k | for (unsigned i = 0; i < length; i++) | 398 | 0 | { | 399 | 0 | new (std::addressof (new_array[i])) Type (); | 400 | 0 | new_array[i] = std::move (arrayZ[i]); | 401 | 0 | arrayZ[i].~Type (); | 402 | 0 | } | 403 | 1.43k | if (is_owned ()) | 404 | 0 | hb_free (arrayZ); | 405 | 1.43k | } | 406 | 1.43k | return new_array; | 407 | 1.43k | } |
hb_vector_t<OT::delta_row_encoding_t, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 2.36k | { | 388 | 2.36k | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 2.36k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 2.36k | if (likely (new_array)) | 396 | 2.36k | { | 397 | 5.13k | for (unsigned i = 0; i < length; i++) | 398 | 2.77k | { | 399 | 2.77k | new (std::addressof (new_array[i])) Type (); | 400 | 2.77k | new_array[i] = std::move (arrayZ[i]); | 401 | 2.77k | arrayZ[i].~Type (); | 402 | 2.77k | } | 403 | 2.36k | if (is_owned ()) | 404 | 306 | hb_free (arrayZ); | 405 | 2.36k | } | 406 | 2.36k | return new_array; | 407 | 2.36k | } |
hb_vector_t<OT::index_map_subset_plan_t, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 1.58k | { | 388 | 1.58k | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 1.58k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 1.58k | if (likely (new_array)) | 396 | 1.58k | { | 397 | 1.58k | for (unsigned i = 0; i < length; i++) | 398 | 0 | { | 399 | 0 | new (std::addressof (new_array[i])) Type (); | 400 | 0 | new_array[i] = std::move (arrayZ[i]); | 401 | 0 | arrayZ[i].~Type (); | 402 | 0 | } | 403 | 1.58k | if (is_owned ()) | 404 | 0 | hb_free (arrayZ); | 405 | 1.58k | } | 406 | 1.58k | return new_array; | 407 | 1.58k | } |
hb_vector_t<hb_inc_bimap_t, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 3.96k | { | 388 | 3.96k | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 3.96k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 3.96k | if (likely (new_array)) | 396 | 3.95k | { | 397 | 3.95k | for (unsigned i = 0; i < length; i++) | 398 | 0 | { | 399 | 0 | new (std::addressof (new_array[i])) Type (); | 400 | 0 | new_array[i] = std::move (arrayZ[i]); | 401 | 0 | arrayZ[i].~Type (); | 402 | 0 | } | 403 | 3.95k | if (is_owned ()) | 404 | 0 | hb_free (arrayZ); | 405 | 3.95k | } | 406 | 3.96k | return new_array; | 407 | 3.96k | } |
hb_vector_t<CFF::parsed_cs_str_t, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 6.02k | { | 388 | 6.02k | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 6.02k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 6.02k | if (likely (new_array)) | 396 | 6.02k | { | 397 | 6.02k | for (unsigned i = 0; i < length; i++) | 398 | 0 | { | 399 | 0 | new (std::addressof (new_array[i])) Type (); | 400 | 0 | new_array[i] = std::move (arrayZ[i]); | 401 | 0 | arrayZ[i].~Type (); | 402 | 0 | } | 403 | 6.02k | if (is_owned ()) | 404 | 0 | hb_free (arrayZ); | 405 | 6.02k | } | 406 | 6.02k | return new_array; | 407 | 6.02k | } |
hb_vector_t<CFF::subr_remap_t, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 3.38k | { | 388 | 3.38k | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 3.38k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 3.38k | if (likely (new_array)) | 396 | 3.37k | { | 397 | 3.37k | for (unsigned i = 0; i < length; i++) | 398 | 0 | { | 399 | 0 | new (std::addressof (new_array[i])) Type (); | 400 | 0 | new_array[i] = std::move (arrayZ[i]); | 401 | 0 | arrayZ[i].~Type (); | 402 | 0 | } | 403 | 3.37k | if (is_owned ()) | 404 | 0 | hb_free (arrayZ); | 405 | 3.37k | } | 406 | 3.38k | return new_array; | 407 | 3.38k | } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::op_str_t>, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 4.97k | { | 388 | 4.97k | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 4.97k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 4.97k | if (likely (new_array)) | 396 | 4.95k | { | 397 | 4.95k | for (unsigned i = 0; i < length; i++) | 398 | 0 | { | 399 | 0 | new (std::addressof (new_array[i])) Type (); | 400 | 0 | new_array[i] = std::move (arrayZ[i]); | 401 | 0 | arrayZ[i].~Type (); | 402 | 0 | } | 403 | 4.95k | if (is_owned ()) | 404 | 0 | hb_free (arrayZ); | 405 | 4.95k | } | 406 | 4.97k | return new_array; | 407 | 4.97k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::op_str_t>, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 2.47k | { | 388 | 2.47k | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 2.47k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 2.47k | if (likely (new_array)) | 396 | 2.46k | { | 397 | 2.46k | for (unsigned i = 0; i < length; i++) | 398 | 0 | { | 399 | 0 | new (std::addressof (new_array[i])) Type (); | 400 | 0 | new_array[i] = std::move (arrayZ[i]); | 401 | 0 | arrayZ[i].~Type (); | 402 | 0 | } | 403 | 2.46k | if (is_owned ()) | 404 | 0 | hb_free (arrayZ); | 405 | 2.46k | } | 406 | 2.47k | return new_array; | 407 | 2.47k | } |
hb_vector_t<OT::IndexSubtableRecord, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 90 | { | 388 | 90 | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 90 | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 90 | if (likely (new_array)) | 396 | 90 | { | 397 | 90 | for (unsigned i = 0; i < length; i++) | 398 | 0 | { | 399 | 0 | new (std::addressof (new_array[i])) Type (); | 400 | 0 | new_array[i] = std::move (arrayZ[i]); | 401 | 0 | arrayZ[i].~Type (); | 402 | 0 | } | 403 | 90 | if (is_owned ()) | 404 | 0 | hb_free (arrayZ); | 405 | 90 | } | 406 | 90 | return new_array; | 407 | 90 | } |
hb_vector_t<CFF::cs_command_t, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 2.69k | { | 388 | 2.69k | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 2.69k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 2.69k | if (likely (new_array)) | 396 | 2.69k | { | 397 | 79.6k | for (unsigned i = 0; i < length; i++) | 398 | 76.9k | { | 399 | 76.9k | new (std::addressof (new_array[i])) Type (); | 400 | 76.9k | new_array[i] = std::move (arrayZ[i]); | 401 | 76.9k | arrayZ[i].~Type (); | 402 | 76.9k | } | 403 | 2.69k | if (is_owned ()) | 404 | 1.66k | hb_free (arrayZ); | 405 | 2.69k | } | 406 | 2.69k | return new_array; | 407 | 2.69k | } |
hb_vector_t<hb_pdf_obj_t, false>::_malloc_move(unsigned int) Line | Count | Source | 387 | 6.48k | { | 388 | 6.48k | if (!new_allocated) | 389 | 0 | { | 390 | 0 | if (is_owned ()) | 391 | 0 | hb_free (arrayZ); | 392 | 0 | return nullptr; | 393 | 0 | } | 394 | 6.48k | Type *new_array = (Type *) hb_malloc (new_allocated * sizeof (Type)); | 395 | 6.48k | if (likely (new_array)) | 396 | 6.33k | { | 397 | 1.66M | for (unsigned i = 0; i < length; i++) | 398 | 1.65M | { | 399 | 1.65M | new (std::addressof (new_array[i])) Type (); | 400 | 1.65M | new_array[i] = std::move (arrayZ[i]); | 401 | 1.65M | arrayZ[i].~Type (); | 402 | 1.65M | } | 403 | 6.33k | if (is_owned ()) | 404 | 5.28k | hb_free (arrayZ); | 405 | 6.33k | } | 406 | 6.48k | return new_array; | 407 | 6.48k | } |
|
408 | | |
409 | | template <typename T = Type, |
410 | | hb_enable_if (hb_is_trivially_copy_assignable(T))> |
411 | | Type * |
412 | | realloc_vector (unsigned new_allocated, hb_priority<0>) |
413 | 38.9M | { |
414 | 38.9M | return _realloc (new_allocated); |
415 | 38.9M | } _ZN11hb_vector_tI15hb_set_digest_tLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS0_j11hb_priorityILj0EE Line | Count | Source | 413 | 291 | { | 414 | 291 | return _realloc (new_allocated); | 415 | 291 | } |
_ZN11hb_vector_tIN12hb_aat_map_t13range_flags_tELb1EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 6.21k | { | 414 | 6.21k | return _realloc (new_allocated); | 415 | 6.21k | } |
_ZN11hb_vector_tI13hb_bit_page_tLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS0_j11hb_priorityILj0EE Line | Count | Source | 413 | 12.3M | { | 414 | 12.3M | return _realloc (new_allocated); | 415 | 12.3M | } |
_ZN11hb_vector_tIN12hb_bit_set_t10page_map_tELb1EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 11.8M | { | 414 | 11.8M | return _realloc (new_allocated); | 415 | 11.8M | } |
_ZN11hb_vector_tIN20hb_user_data_array_t19hb_user_data_item_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 26.0k | { | 414 | 26.0k | return _realloc (new_allocated); | 415 | 26.0k | } |
_ZN11hb_vector_tIN22hb_serialize_context_t8object_t6link_tELb0EE14realloc_vectorIS2_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS2_j11hb_priorityILj0EE Line | Count | Source | 413 | 5.32M | { | 414 | 5.32M | return _realloc (new_allocated); | 415 | 5.32M | } |
_ZN11hb_vector_tIPN22hb_serialize_context_t8object_tELb0EE14realloc_vectorIS2_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS2_j11hb_priorityILj0EE Line | Count | Source | 413 | 174k | { | 414 | 174k | return _realloc (new_allocated); | 415 | 174k | } |
_ZN11hb_vector_tI14hb_transform_tIfELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 828k | { | 414 | 828k | return _realloc (new_allocated); | 415 | 828k | } |
_ZN11hb_vector_tI11hb_bounds_tIfELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 1.64M | { | 414 | 1.64M | return _realloc (new_allocated); | 415 | 1.64M | } |
_ZN11hb_vector_tIjLb0EE14realloc_vectorIjTnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPjj11hb_priorityILj0EE Line | Count | Source | 413 | 1.12M | { | 414 | 1.12M | return _realloc (new_allocated); | 415 | 1.12M | } |
_ZN11hb_vector_tIPN14hb_free_pool_tIN22hb_serialize_context_t8object_tELj32EE7chunk_tELb0EE14realloc_vectorIS5_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS5_j11hb_priorityILj0EE Line | Count | Source | 413 | 100k | { | 414 | 100k | return _realloc (new_allocated); | 415 | 100k | } |
_ZN11hb_vector_tIcLb0EE14realloc_vectorIcTnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPcj11hb_priorityILj0EE Line | Count | Source | 413 | 2.98M | { | 414 | 2.98M | return _realloc (new_allocated); | 415 | 2.98M | } |
_ZN11hb_vector_tIbLb0EE14realloc_vectorIbTnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPbj11hb_priorityILj0EE Line | Count | Source | 413 | 57.0k | { | 414 | 57.0k | return _realloc (new_allocated); | 415 | 57.0k | } |
_ZN11hb_vector_tIfLb0EE14realloc_vectorIfTnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPfj11hb_priorityILj0EE Line | Count | Source | 413 | 21.8k | { | 414 | 21.8k | return _realloc (new_allocated); | 415 | 21.8k | } |
_ZN11hb_vector_tIiLb0EE14realloc_vectorIiTnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPij11hb_priorityILj0EE Line | Count | Source | 413 | 549k | { | 414 | 549k | return _realloc (new_allocated); | 415 | 549k | } |
Unexecuted instantiation: _ZN11hb_vector_tIN20hb_aat_map_builder_t15feature_range_tELb1EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Unexecuted instantiation: _ZN11hb_vector_tIN20hb_aat_map_builder_t15feature_event_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Unexecuted instantiation: _ZN11hb_vector_tIN20hb_aat_map_builder_t14feature_info_tELb1EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE _ZN11hb_vector_tI15contour_point_tLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS0_j11hb_priorityILj0EE Line | Count | Source | 413 | 484k | { | 414 | 484k | return _realloc (new_allocated); | 415 | 484k | } |
_ZN11hb_vector_tI9hb_pair_tIj17face_table_info_tELb0EE14realloc_vectorIS2_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS2_j11hb_priorityILj0EE Line | Count | Source | 413 | 12.1k | { | 414 | 12.1k | return _realloc (new_allocated); | 415 | 12.1k | } |
_ZN11hb_vector_tI11hb_atomic_tIPN2OT3SVG15svg_doc_cache_tEELb0EE14realloc_vectorIS5_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS5_j11hb_priorityILj0EE Line | Count | Source | 413 | 989 | { | 414 | 989 | return _realloc (new_allocated); | 415 | 989 | } |
Unexecuted instantiation: _ZN11hb_vector_tIN2OT3SVG16svg_defs_entry_tELb0EE14realloc_vectorIS2_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS2_j11hb_priorityILj0EE Unexecuted instantiation: _ZN11hb_vector_tIN2OT18_hb_svg_cache_impl13glyph_entry_tELb0EE14realloc_vectorIS2_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS2_j11hb_priorityILj0EE Unexecuted instantiation: _ZN11hb_vector_tIN2OT18_hb_svg_cache_impl10id_entry_tELb0EE14realloc_vectorIS2_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS2_j11hb_priorityILj0EE _ZN11hb_vector_tIN3CFF19cff1_top_dict_val_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 20.0k | { | 414 | 20.0k | return _realloc (new_allocated); | 415 | 20.0k | } |
_ZN11hb_vector_tIN3CFF8op_str_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 79.1k | { | 414 | 79.1k | return _realloc (new_allocated); | 415 | 79.1k | } |
_ZN11hb_vector_tIN3CFF10dict_val_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 24.6k | { | 414 | 24.6k | return _realloc (new_allocated); | 415 | 24.6k | } |
_ZN11hb_vector_tIN2OT4cff113accelerator_t7gname_tELb1EE14realloc_vectorIS3_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS3_j11hb_priorityILj0EE Line | Count | Source | 413 | 3.39k | { | 414 | 3.39k | return _realloc (new_allocated); | 415 | 3.39k | } |
Unexecuted instantiation: _ZN11hb_vector_tI23hb_ot_name_record_ids_tLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS0_j11hb_priorityILj0EE _ZN11hb_vector_tI18hb_ot_name_entry_tLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS0_j11hb_priorityILj0EE Line | Count | Source | 413 | 790 | { | 414 | 790 | return _realloc (new_allocated); | 415 | 790 | } |
Unexecuted instantiation: _ZN11hb_vector_tI18hb_outline_point_tLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS0_j11hb_priorityILj0EE _ZN11hb_vector_tIN19hb_ot_map_builder_t14feature_info_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 170k | { | 414 | 170k | return _realloc (new_allocated); | 415 | 170k | } |
_ZN11hb_vector_tIN11hb_ot_map_t12lookup_map_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 50.1k | { | 414 | 50.1k | return _realloc (new_allocated); | 415 | 50.1k | } |
_ZN11hb_vector_tIN19hb_ot_map_builder_t12stage_info_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 117k | { | 414 | 117k | return _realloc (new_allocated); | 415 | 117k | } |
_ZN11hb_vector_tIN11hb_ot_map_t13feature_map_tELb1EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 53.4k | { | 414 | 53.4k | return _realloc (new_allocated); | 415 | 53.4k | } |
_ZN11hb_vector_tIN11hb_ot_map_t11stage_map_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 116k | { | 414 | 116k | return _realloc (new_allocated); | 415 | 116k | } |
_ZN11hb_vector_tIhLb0EE14realloc_vectorIhTnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPhj11hb_priorityILj0EE Line | Count | Source | 413 | 115k | { | 414 | 115k | return _realloc (new_allocated); | 415 | 115k | } |
_ZN11hb_vector_tI16hb_raster_edge_tLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS0_j11hb_priorityILj0EE Line | Count | Source | 413 | 5.55k | { | 414 | 5.55k | return _realloc (new_allocated); | 415 | 5.55k | } |
_ZN11hb_vector_tIsLb0EE14realloc_vectorIsTnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPsj11hb_priorityILj0EE Line | Count | Source | 413 | 11.6k | { | 414 | 11.6k | return _realloc (new_allocated); | 415 | 11.6k | } |
_ZN11hb_vector_tIP17hb_raster_image_tLb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 1.74k | { | 414 | 1.74k | return _realloc (new_allocated); | 415 | 1.74k | } |
_ZN11hb_vector_tI15hb_color_stop_tLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS0_j11hb_priorityILj0EE Line | Count | Source | 413 | 56.6k | { | 414 | 56.6k | return _realloc (new_allocated); | 415 | 56.6k | } |
_ZN11hb_vector_tIPK28hb_subset_serialize_object_tLb0EE14realloc_vectorIS2_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS2_j11hb_priorityILj0EE Line | Count | Source | 413 | 3.75k | { | 414 | 3.75k | return _realloc (new_allocated); | 415 | 3.75k | } |
_ZN11hb_vector_tI9hb_pair_tIljELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 88.3k | { | 414 | 88.3k | return _realloc (new_allocated); | 415 | 88.3k | } |
_ZN11hb_vector_tIN5graph17overflow_record_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 18.3k | { | 414 | 18.3k | return _realloc (new_allocated); | 415 | 18.3k | } |
_ZN11hb_vector_tIPcLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS0_j11hb_priorityILj0EE Line | Count | Source | 413 | 5.98k | { | 414 | 5.98k | return _realloc (new_allocated); | 415 | 5.98k | } |
_ZN11hb_vector_tI13lookup_size_tLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS0_j11hb_priorityILj0EE Line | Count | Source | 413 | 2.77k | { | 414 | 2.77k | return _realloc (new_allocated); | 415 | 2.77k | } |
_ZN11hb_vector_tI14hb_gpu_curve_tLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS0_j11hb_priorityILj0EE Line | Count | Source | 413 | 60.0k | { | 414 | 60.0k | return _realloc (new_allocated); | 415 | 60.0k | } |
_ZN11hb_vector_tI26hb_gpu_encode_curve_info_tLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS0_j11hb_priorityILj0EE Line | Count | Source | 413 | 9.36k | { | 414 | 9.36k | return _realloc (new_allocated); | 415 | 9.36k | } |
_ZN11hb_vector_tIP9hb_blob_tLb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 8.57k | { | 414 | 8.57k | return _realloc (new_allocated); | 415 | 8.57k | } |
_ZN11hb_vector_tIjLb1EE14realloc_vectorIjTnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPjj11hb_priorityILj0EE Line | Count | Source | 413 | 120k | { | 414 | 120k | return _realloc (new_allocated); | 415 | 120k | } |
_ZN11hb_vector_tI9hb_pair_tIjjELb1EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 77.8k | { | 414 | 77.8k | return _realloc (new_allocated); | 415 | 77.8k | } |
_ZN11hb_vector_tIPKS_IiLb0EELb0EE14realloc_vectorIS2_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS2_j11hb_priorityILj0EE Line | Count | Source | 413 | 6.82k | { | 414 | 6.82k | return _realloc (new_allocated); | 415 | 6.82k | } |
_ZN11hb_vector_tIZN2OT7VarData9serializeEP22hb_serialize_context_tbRKS_IPKS_IiLb0EELb0EEE12delta_size_tLb0EE14realloc_vectorISA_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPSA_j11hb_priorityILj0EE Line | Count | Source | 413 | 2.28k | { | 414 | 2.28k | return _realloc (new_allocated); | 415 | 2.28k | } |
_ZN11hb_vector_tIZN2OT7VarData9serializeEP22hb_serialize_context_tPKS1_RK14hb_inc_bimap_tS8_E12delta_size_tLb0EE14realloc_vectorIS9_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS9_j11hb_priorityILj0EE Line | Count | Source | 413 | 21.7k | { | 414 | 21.7k | return _realloc (new_allocated); | 415 | 21.7k | } |
_ZN11hb_vector_tIN2OT7HBFixedINS0_7NumTypeILb1EsLj2EEELj14EEELb0EE14realloc_vectorIS4_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS4_j11hb_priorityILj0EE Line | Count | Source | 413 | 2 | { | 414 | 2 | return _realloc (new_allocated); | 415 | 2 | } |
_ZN11hb_vector_tIPK12hb_hashmap_tIj6TripleLb0EELb0EE14realloc_vectorIS4_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS4_j11hb_priorityILj0EE Line | Count | Source | 413 | 1.95k | { | 414 | 1.95k | return _realloc (new_allocated); | 415 | 1.95k | } |
_ZN11hb_vector_tI9hb_pair_tIN2OT17item_variations_t25combined_gain_idx_tuple_tEjELb0EE14realloc_vectorIS4_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS4_j11hb_priorityILj0EE Line | Count | Source | 413 | 885 | { | 414 | 885 | return _realloc (new_allocated); | 415 | 885 | } |
_ZN11hb_vector_tI9hb_pair_tIjjELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 4.58k | { | 414 | 4.58k | return _realloc (new_allocated); | 415 | 4.58k | } |
_ZN11hb_vector_tIN2OT11LayerRecordELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 5.06k | { | 414 | 5.06k | return _realloc (new_allocated); | 415 | 5.06k | } |
_ZN11hb_vector_tIP8hb_set_tLb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 1.53k | { | 414 | 1.53k | return _realloc (new_allocated); | 415 | 1.53k | } |
_ZN11hb_vector_tIPKN2OT16DeltaSetIndexMapELb0EE14realloc_vectorIS3_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS3_j11hb_priorityILj0EE Line | Count | Source | 413 | 1.58k | { | 414 | 1.58k | return _realloc (new_allocated); | 415 | 1.58k | } |
_ZN11hb_vector_tIN2OT9glyf_impl11SubsetGlyphELb0EE14realloc_vectorIS2_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS2_j11hb_priorityILj0EE Line | Count | Source | 413 | 8.01k | { | 414 | 8.01k | return _realloc (new_allocated); | 415 | 8.01k | } |
_ZN11hb_vector_tI14hb_variation_tLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS0_j11hb_priorityILj0EE Line | Count | Source | 413 | 1.73k | { | 414 | 1.73k | return _realloc (new_allocated); | 415 | 1.73k | } |
_ZN11hb_vector_tIN3CFF14parsed_cs_op_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 28.7k | { | 414 | 28.7k | return _realloc (new_allocated); | 415 | 28.7k | } |
_ZN11hb_vector_tIN3CFF11code_pair_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 2.47k | { | 414 | 2.47k | return _realloc (new_allocated); | 415 | 2.47k | } |
_ZN11hb_vector_tI9hb_pair_tIjPKN2OT19IndexSubtableRecordEELb0EE14realloc_vectorIS5_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS5_j11hb_priorityILj0EE Line | Count | Source | 413 | 91 | { | 414 | 91 | return _realloc (new_allocated); | 415 | 91 | } |
_ZN11hb_vector_tIPN2OT8OffsetToINS0_10SBIXStrikeENS0_7NumTypeILb1EjLj4EEEvLb1EEELb0EE14realloc_vectorIS6_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS6_j11hb_priorityILj0EE Line | Count | Source | 413 | 241 | { | 414 | 241 | return _realloc (new_allocated); | 415 | 241 | } |
_ZN11hb_vector_tIN2OT12AxisValueMapELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 177 | { | 414 | 177 | return _realloc (new_allocated); | 415 | 177 | } |
_ZN11hb_vector_tIN3CFF8number_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 114k | { | 414 | 114k | return _realloc (new_allocated); | 415 | 114k | } |
_ZN11hb_vector_tI9hb_pair_tIPKS_IN2OT7HBFixedINS1_7NumTypeILb1EsLj2EEELj14EEELb0EEjELb0EE14realloc_vectorIS9_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS9_j11hb_priorityILj0EE Line | Count | Source | 413 | 2 | { | 414 | 2 | return _realloc (new_allocated); | 415 | 2 | } |
Unexecuted instantiation: _ZN11hb_vector_tIPKN3CFF15parsed_cs_str_tELb0EE14realloc_vectorIS3_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS3_j11hb_priorityILj0EE _ZN11hb_vector_tIN3CFF27cff1_font_dict_values_mod_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 1.86k | { | 414 | 1.86k | return _realloc (new_allocated); | 415 | 1.86k | } |
_ZN11hb_vector_tIN3CFF12table_info_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 413 | 1.46k | { | 414 | 1.46k | return _realloc (new_allocated); | 415 | 1.46k | } |
Unexecuted instantiation: _ZN11hb_vector_tIdLb0EE14realloc_vectorIdTnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPdj11hb_priorityILj0EE _ZN11hb_vector_tI9hb_pair_tId6TripleELb0EE14realloc_vectorIS2_TnPN12hb_enable_ifIXsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS2_j11hb_priorityILj0EE Line | Count | Source | 413 | 1.20k | { | 414 | 1.20k | return _realloc (new_allocated); | 415 | 1.20k | } |
|
416 | | template <typename T = Type, |
417 | | hb_enable_if (!hb_is_trivially_copy_assignable(T))> |
418 | | Type * |
419 | | realloc_vector (unsigned new_allocated, hb_priority<0>) |
420 | 64.4k | { |
421 | 64.4k | return _malloc_move (new_allocated); |
422 | 64.4k | } _ZN11hb_vector_tIN3AAT32kern_subtable_accelerator_data_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 420 | 2.94k | { | 421 | 2.94k | return _malloc_move (new_allocated); | 422 | 2.94k | } |
_ZN11hb_vector_tIN3CFF31cff1_private_dict_values_base_tINS0_10dict_val_tEEELb0EE14realloc_vectorIS3_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS3_j11hb_priorityILj0EE Line | Count | Source | 420 | 4.32k | { | 421 | 4.32k | return _malloc_move (new_allocated); | 422 | 4.32k | } |
_ZN11hb_vector_tIN3CFF23cff1_font_dict_values_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 420 | 2.38k | { | 421 | 2.38k | return _malloc_move (new_allocated); | 422 | 2.38k | } |
_ZN11hb_vector_tIN3CFF31cff2_private_dict_values_base_tINS0_10dict_val_tEEELb0EE14realloc_vectorIS3_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS3_j11hb_priorityILj0EE Line | Count | Source | 420 | 2.66k | { | 421 | 2.66k | return _malloc_move (new_allocated); | 422 | 2.66k | } |
_ZN11hb_vector_tIN3CFF23cff2_font_dict_values_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 420 | 5.34k | { | 421 | 5.34k | return _malloc_move (new_allocated); | 422 | 5.34k | } |
_ZN11hb_vector_tI16hb_raster_clip_tLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS0_j11hb_priorityILj0EE Line | Count | Source | 420 | 1.17k | { | 421 | 1.17k | return _malloc_move (new_allocated); | 422 | 1.17k | } |
_ZN11hb_vector_tIN5graph7graph_t8vertex_tELb0EE14realloc_vectorIS2_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS2_j11hb_priorityILj0EE Line | Count | Source | 420 | 9.11k | { | 421 | 9.11k | return _malloc_move (new_allocated); | 422 | 9.11k | } |
_ZN11hb_vector_tI9hb_pair_tIjS_IjLb0EEELb0EE14realloc_vectorIS2_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS2_j11hb_priorityILj0EE Line | Count | Source | 420 | 727 | { | 421 | 727 | return _malloc_move (new_allocated); | 422 | 727 | } |
_ZN11hb_vector_tIN5graph18MarkBasePosFormat112class_info_tELb0EE14realloc_vectorIS2_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS2_j11hb_priorityILj0EE Line | Count | Source | 420 | 314 | { | 421 | 314 | return _malloc_move (new_allocated); | 422 | 314 | } |
_ZN11hb_vector_tIN2OT18TupleVariationDataINS0_7NumTypeILb1EtLj2EEEE18tuple_variations_tELb0EE14realloc_vectorIS5_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS5_j11hb_priorityILj0EE Line | Count | Source | 420 | 1.43k | { | 421 | 1.43k | return _malloc_move (new_allocated); | 422 | 1.43k | } |
_ZN11hb_vector_tIN2OT20delta_row_encoding_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 420 | 2.36k | { | 421 | 2.36k | return _malloc_move (new_allocated); | 422 | 2.36k | } |
_ZN11hb_vector_tIN2OT23index_map_subset_plan_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 420 | 1.58k | { | 421 | 1.58k | return _malloc_move (new_allocated); | 422 | 1.58k | } |
_ZN11hb_vector_tI14hb_inc_bimap_tLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS0_j11hb_priorityILj0EE Line | Count | Source | 420 | 3.96k | { | 421 | 3.96k | return _malloc_move (new_allocated); | 422 | 3.96k | } |
_ZN11hb_vector_tIN3CFF15parsed_cs_str_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 420 | 6.02k | { | 421 | 6.02k | return _malloc_move (new_allocated); | 422 | 6.02k | } |
_ZN11hb_vector_tIN3CFF12subr_remap_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 420 | 3.38k | { | 421 | 3.38k | return _malloc_move (new_allocated); | 422 | 3.38k | } |
_ZN11hb_vector_tIN3CFF31cff1_private_dict_values_base_tINS0_8op_str_tEEELb0EE14realloc_vectorIS3_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS3_j11hb_priorityILj0EE Line | Count | Source | 420 | 4.97k | { | 421 | 4.97k | return _malloc_move (new_allocated); | 422 | 4.97k | } |
_ZN11hb_vector_tIN3CFF31cff2_private_dict_values_base_tINS0_8op_str_tEEELb0EE14realloc_vectorIS3_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS3_j11hb_priorityILj0EE Line | Count | Source | 420 | 2.47k | { | 421 | 2.47k | return _malloc_move (new_allocated); | 422 | 2.47k | } |
_ZN11hb_vector_tIN2OT19IndexSubtableRecordELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 420 | 90 | { | 421 | 90 | return _malloc_move (new_allocated); | 422 | 90 | } |
_ZN11hb_vector_tIN3CFF12cs_command_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS1_j11hb_priorityILj0EE Line | Count | Source | 420 | 2.69k | { | 421 | 2.69k | return _malloc_move (new_allocated); | 422 | 2.69k | } |
_ZN11hb_vector_tI12hb_pdf_obj_tLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXntsr3std28is_trivially_copy_assignableIT_EE5valueEvE4typeELPv0EEEPS0_j11hb_priorityILj0EE Line | Count | Source | 420 | 6.48k | { | 421 | 6.48k | return _malloc_move (new_allocated); | 422 | 6.48k | } |
|
423 | | /* Specialization for types that can be moved using realloc(). */ |
424 | | template <typename T = Type, |
425 | | hb_enable_if (T::realloc_move)> |
426 | | Type * |
427 | | realloc_vector (unsigned new_allocated, hb_priority<1>) |
428 | 75.7k | { |
429 | 75.7k | return _realloc (new_allocated); |
430 | 75.7k | } _ZN11hb_vector_tIS_IN12hb_aat_map_t13range_flags_tELb1EELb0EE14realloc_vectorIS2_TnPN12hb_enable_ifIXsrT_12realloc_moveEvE4typeELPv0EEEPS2_j11hb_priorityILj1EE Line | Count | Source | 428 | 3.90k | { | 429 | 3.90k | return _realloc (new_allocated); | 430 | 3.90k | } |
_ZN11hb_vector_tI8hb_set_tLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsrT_12realloc_moveEvE4typeELPv0EEEPS0_j11hb_priorityILj1EE Line | Count | Source | 428 | 7.32k | { | 429 | 7.32k | return _realloc (new_allocated); | 430 | 7.32k | } |
_ZN11hb_vector_tIS_IjLb0EELb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsrT_12realloc_moveEvE4typeELPv0EEEPS0_j11hb_priorityILj1EE Line | Count | Source | 428 | 1.16k | { | 429 | 1.16k | return _realloc (new_allocated); | 430 | 1.16k | } |
_ZN11hb_vector_tI12hb_hashmap_tIj6TripleLb0EELb0EE14realloc_vectorIS2_TnPN12hb_enable_ifIXsrT_12realloc_moveEvE4typeELPv0EEEPS2_j11hb_priorityILj1EE Line | Count | Source | 428 | 1.07k | { | 429 | 1.07k | return _realloc (new_allocated); | 430 | 1.07k | } |
_ZN11hb_vector_tIS_IcLb0EELb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsrT_12realloc_moveEvE4typeELPv0EEEPS0_j11hb_priorityILj1EE Line | Count | Source | 428 | 106 | { | 429 | 106 | return _realloc (new_allocated); | 430 | 106 | } |
_ZN11hb_vector_tIN2OT13tuple_delta_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsrT_12realloc_moveEvE4typeELPv0EEEPS1_j11hb_priorityILj1EE Line | Count | Source | 428 | 19.2k | { | 429 | 19.2k | return _realloc (new_allocated); | 430 | 19.2k | } |
_ZN11hb_vector_tIS_IiLb0EELb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsrT_12realloc_moveEvE4typeELPv0EEEPS0_j11hb_priorityILj1EE Line | Count | Source | 428 | 688 | { | 429 | 688 | return _realloc (new_allocated); | 430 | 688 | } |
_ZN11hb_vector_tIN3CFF19parsed_cs_str_vec_tELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsrT_12realloc_moveEvE4typeELPv0EEEPS1_j11hb_priorityILj1EE Line | Count | Source | 428 | 3.38k | { | 429 | 3.38k | return _realloc (new_allocated); | 430 | 3.38k | } |
_ZN11hb_vector_tI10hb_array_tIKhELb0EE14realloc_vectorIS2_TnPN12hb_enable_ifIXsrT_12realloc_moveEvE4typeELPv0EEEPS2_j11hb_priorityILj1EE Line | Count | Source | 428 | 1.72k | { | 429 | 1.72k | return _realloc (new_allocated); | 430 | 1.72k | } |
_ZN11hb_vector_tIS_IhLb0EELb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsrT_12realloc_moveEvE4typeELPv0EEEPS0_j11hb_priorityILj1EE Line | Count | Source | 428 | 5.17k | { | 429 | 5.17k | return _realloc (new_allocated); | 430 | 5.17k | } |
_ZN11hb_vector_tIS_IS_IhLb0EELb0EELb0EE14realloc_vectorIS1_TnPN12hb_enable_ifIXsrT_12realloc_moveEvE4typeELPv0EEEPS1_j11hb_priorityILj1EE Line | Count | Source | 428 | 2.41k | { | 429 | 2.41k | return _realloc (new_allocated); | 430 | 2.41k | } |
_ZN11hb_vector_tIS_IN3CFF12cs_command_tELb0EELb0EE14realloc_vectorIS2_TnPN12hb_enable_ifIXsrT_12realloc_moveEvE4typeELPv0EEEPS2_j11hb_priorityILj1EE Line | Count | Source | 428 | 766 | { | 429 | 766 | return _realloc (new_allocated); | 430 | 766 | } |
_ZN11hb_vector_tI15hb_vector_buf_tLb0EE14realloc_vectorIS0_TnPN12hb_enable_ifIXsrT_12realloc_moveEvE4typeELPv0EEEPS0_j11hb_priorityILj1EE Line | Count | Source | 428 | 28.7k | { | 429 | 28.7k | return _realloc (new_allocated); | 430 | 28.7k | } |
|
431 | | |
432 | | template <typename T = Type, |
433 | | hb_enable_if (hb_is_trivially_constructible(T))> |
434 | | void |
435 | | grow_vector (unsigned size, hb_priority<0>) |
436 | 77.1M | { |
437 | 77.1M | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); |
438 | 77.1M | length = size; |
439 | 77.1M | } _ZN11hb_vector_tIN12hb_bit_set_t10page_map_tELb1EE11grow_vectorIS1_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 38.7M | { | 437 | 38.7M | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 38.7M | length = size; | 439 | 38.7M | } |
_ZN11hb_vector_tIjLb0EE11grow_vectorIjTnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 622k | { | 437 | 622k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 622k | length = size; | 439 | 622k | } |
_ZN11hb_vector_tIN22hb_serialize_context_t8object_t6link_tELb0EE11grow_vectorIS2_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 16.9M | { | 437 | 16.9M | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 16.9M | length = size; | 439 | 16.9M | } |
_ZN11hb_vector_tIcLb0EE11grow_vectorIcTnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 7.49k | { | 437 | 7.49k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 7.49k | length = size; | 439 | 7.49k | } |
_ZN11hb_vector_tIfLb0EE11grow_vectorIfTnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 3.93M | { | 437 | 3.93M | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 3.93M | length = size; | 439 | 3.93M | } |
_ZN11hb_vector_tIiLb0EE11grow_vectorIiTnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 267k | { | 437 | 267k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 267k | length = size; | 439 | 267k | } |
Unexecuted instantiation: _ZN11hb_vector_tIN20hb_aat_map_builder_t15feature_range_tELb1EE11grow_vectorIS1_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Unexecuted instantiation: _ZN11hb_vector_tIN20hb_aat_map_builder_t15feature_event_tELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE _ZN11hb_vector_tI15contour_point_tLb0EE11grow_vectorIS0_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 12.8M | { | 437 | 12.8M | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 12.8M | length = size; | 439 | 12.8M | } |
Unexecuted instantiation: _ZN11hb_vector_tIN2OT3SVG16svg_defs_entry_tELb0EE11grow_vectorIS2_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Unexecuted instantiation: _ZN11hb_vector_tIN3CFF11code_pair_tELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE _ZN11hb_vector_tI18hb_ot_name_entry_tLb0EE11grow_vectorIS0_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 201k | { | 437 | 201k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 201k | length = size; | 439 | 201k | } |
_ZN11hb_vector_tIN19hb_ot_map_builder_t14feature_info_tELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 1.50M | { | 437 | 1.50M | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 1.50M | length = size; | 439 | 1.50M | } |
_ZN11hb_vector_tIN11hb_ot_map_t12lookup_map_tELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 1.22M | { | 437 | 1.22M | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 1.22M | length = size; | 439 | 1.22M | } |
_ZN11hb_vector_tIN19hb_ot_map_builder_t12stage_info_tELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 249k | { | 437 | 249k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 249k | length = size; | 439 | 249k | } |
_ZN11hb_vector_tIN11hb_ot_map_t13feature_map_tELb1EE11grow_vectorIS1_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 64.2k | { | 437 | 64.2k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 64.2k | length = size; | 439 | 64.2k | } |
_ZN11hb_vector_tIN11hb_ot_map_t11stage_map_tELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 247k | { | 437 | 247k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 247k | length = size; | 439 | 247k | } |
_ZN11hb_vector_tIhLb0EE11grow_vectorIhTnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 67.0k | { | 437 | 67.0k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 67.0k | length = size; | 439 | 67.0k | } |
_ZN11hb_vector_tIsLb0EE11grow_vectorIsTnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 93.1k | { | 437 | 93.1k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 93.1k | length = size; | 439 | 93.1k | } |
_ZN11hb_vector_tI15hb_color_stop_tLb0EE11grow_vectorIS0_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 40.5k | { | 437 | 40.5k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 40.5k | length = size; | 439 | 40.5k | } |
_ZN11hb_vector_tIbLb0EE11grow_vectorIbTnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 38.1k | { | 437 | 38.1k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 38.1k | length = size; | 439 | 38.1k | } |
_ZN11hb_vector_tI26hb_gpu_encode_curve_info_tLb0EE11grow_vectorIS0_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 12.2k | { | 437 | 12.2k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 12.2k | length = size; | 439 | 12.2k | } |
_ZN11hb_vector_tIZN2OT7VarData9serializeEP22hb_serialize_context_tbRKS_IPKS_IiLb0EELb0EEE12delta_size_tLb0EE11grow_vectorISA_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 2.28k | { | 437 | 2.28k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 2.28k | length = size; | 439 | 2.28k | } |
_ZN11hb_vector_tIZN2OT7VarData9serializeEP22hb_serialize_context_tPKS1_RK14hb_inc_bimap_tS8_E12delta_size_tLb0EE11grow_vectorIS9_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 21.7k | { | 437 | 21.7k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 21.7k | length = size; | 439 | 21.7k | } |
_ZN11hb_vector_tIN2OT7HBFixedINS0_7NumTypeILb1EsLj2EEELj14EEELb0EE11grow_vectorIS4_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 145 | { | 437 | 145 | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 145 | length = size; | 439 | 145 | } |
_ZN11hb_vector_tIN2OT11LayerRecordELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 2.37k | { | 437 | 2.37k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 2.37k | length = size; | 439 | 2.37k | } |
_ZN11hb_vector_tIP8hb_set_tLb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 1.53k | { | 437 | 1.53k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 1.53k | length = size; | 439 | 1.53k | } |
_ZN11hb_vector_tIN2OT19IndexSubtableRecordELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 130 | { | 437 | 130 | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 130 | length = size; | 439 | 130 | } |
Unexecuted instantiation: _ZN11hb_vector_tIPKN3CFF15parsed_cs_str_tELb0EE11grow_vectorIS3_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE _ZN11hb_vector_tIN3CFF12table_info_tELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 436 | 1.45k | { | 437 | 1.45k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 438 | 1.45k | length = size; | 439 | 1.45k | } |
Unexecuted instantiation: _ZN11hb_vector_tIdLb0EE11grow_vectorIdTnPN12hb_enable_ifIXsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE |
440 | | template <typename T = Type, |
441 | | hb_enable_if (!hb_is_trivially_constructible(T))> |
442 | | void |
443 | | grow_vector (unsigned size, hb_priority<0>) |
444 | 65.3M | { |
445 | 401M | for (; length < size; length++) |
446 | 336M | new (std::addressof (arrayZ[length])) Type (); |
447 | 65.3M | } _ZN11hb_vector_tI15hb_set_digest_tLb0EE11grow_vectorIS0_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 1.30k | { | 445 | 2.60k | for (; length < size; length++) | 446 | 1.30k | new (std::addressof (arrayZ[length])) Type (); | 447 | 1.30k | } |
_ZN11hb_vector_tIS_IN12hb_aat_map_t13range_flags_tELb1EELb0EE11grow_vectorIS2_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 3.81k | { | 445 | 10.0k | for (; length < size; length++) | 446 | 6.21k | new (std::addressof (arrayZ[length])) Type (); | 447 | 3.81k | } |
_ZN11hb_vector_tI13hb_bit_page_tLb0EE11grow_vectorIS0_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 38.7M | { | 445 | 343M | for (; length < size; length++) | 446 | 304M | new (std::addressof (arrayZ[length])) Type (); | 447 | 38.7M | } |
_ZN11hb_vector_tIN3AAT32kern_subtable_accelerator_data_tELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 4.37k | { | 445 | 8.74k | for (; length < size; length++) | 446 | 4.37k | new (std::addressof (arrayZ[length])) Type (); | 447 | 4.37k | } |
Unexecuted instantiation: _ZN11hb_vector_tI9hb_pair_tIN2OT17item_variations_t25combined_gain_idx_tuple_tEjELb0EE11grow_vectorIS4_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE _ZN11hb_vector_tI8hb_set_tLb0EE11grow_vectorIS0_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 7.01M | { | 445 | 14.0M | for (; length < size; length++) | 446 | 7.02M | new (std::addressof (arrayZ[length])) Type (); | 447 | 7.01M | } |
_ZN11hb_vector_tI11hb_atomic_tIPN2OT3SVG15svg_doc_cache_tEELb0EE11grow_vectorIS5_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 971 | { | 445 | 55.0k | for (; length < size; length++) | 446 | 54.0k | new (std::addressof (arrayZ[length])) Type (); | 447 | 971 | } |
Unexecuted instantiation: _ZN11hb_vector_tI9hb_pair_tIjjELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE _ZN11hb_vector_tIN3CFF31cff1_private_dict_values_base_tINS0_10dict_val_tEEELb0EE11grow_vectorIS3_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 4.31k | { | 445 | 202k | for (; length < size; length++) | 446 | 198k | new (std::addressof (arrayZ[length])) Type (); | 447 | 4.31k | } |
_ZN11hb_vector_tIN3CFF23cff1_font_dict_values_tELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 33.5k | { | 445 | 67.0k | for (; length < size; length++) | 446 | 33.5k | new (std::addressof (arrayZ[length])) Type (); | 447 | 33.5k | } |
_ZN11hb_vector_tIN3CFF31cff2_private_dict_values_base_tINS0_10dict_val_tEEELb0EE11grow_vectorIS3_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 2.64k | { | 445 | 1.65M | for (; length < size; length++) | 446 | 1.64M | new (std::addressof (arrayZ[length])) Type (); | 447 | 2.64k | } |
_ZN11hb_vector_tIN3CFF23cff2_font_dict_values_tELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 20.5k | { | 445 | 41.0k | for (; length < size; length++) | 446 | 20.5k | new (std::addressof (arrayZ[length])) Type (); | 447 | 20.5k | } |
_ZN11hb_vector_tIN5graph7graph_t8vertex_tELb0EE11grow_vectorIS2_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 16.2M | { | 445 | 32.5M | for (; length < size; length++) | 446 | 16.2M | new (std::addressof (arrayZ[length])) Type (); | 447 | 16.2M | } |
Unexecuted instantiation: _ZN11hb_vector_tI9hb_pair_tIljELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE _ZN11hb_vector_tIN5graph18MarkBasePosFormat112class_info_tELb0EE11grow_vectorIS2_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 301 | { | 445 | 2.07M | for (; length < size; length++) | 446 | 2.07M | new (std::addressof (arrayZ[length])) Type (); | 447 | 301 | } |
_ZN11hb_vector_tIN2OT13tuple_delta_tELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 8.53k | { | 445 | 17.0k | for (; length < size; length++) | 446 | 8.53k | new (std::addressof (arrayZ[length])) Type (); | 447 | 8.53k | } |
_ZN11hb_vector_tIN2OT23index_map_subset_plan_tELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 1.58k | { | 445 | 6.36k | for (; length < size; length++) | 446 | 4.78k | new (std::addressof (arrayZ[length])) Type (); | 447 | 1.58k | } |
_ZN11hb_vector_tI14hb_inc_bimap_tLb0EE11grow_vectorIS0_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 3.95k | { | 445 | 52.0k | for (; length < size; length++) | 446 | 48.0k | new (std::addressof (arrayZ[length])) Type (); | 447 | 3.95k | } |
_ZN11hb_vector_tIN2OT9glyf_impl11SubsetGlyphELb0EE11grow_vectorIS2_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 3.15M | { | 445 | 6.30M | for (; length < size; length++) | 446 | 3.15M | new (std::addressof (arrayZ[length])) Type (); | 447 | 3.15M | } |
_ZN11hb_vector_tIN3CFF12subr_remap_tELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 3.37k | { | 445 | 14.5k | for (; length < size; length++) | 446 | 11.1k | new (std::addressof (arrayZ[length])) Type (); | 447 | 3.37k | } |
_ZN11hb_vector_tIN3CFF31cff1_private_dict_values_base_tINS0_8op_str_tEEELb0EE11grow_vectorIS3_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 4.95k | { | 445 | 33.8k | for (; length < size; length++) | 446 | 28.9k | new (std::addressof (arrayZ[length])) Type (); | 447 | 4.95k | } |
_ZN11hb_vector_tIN3CFF31cff2_private_dict_values_base_tINS0_8op_str_tEEELb0EE11grow_vectorIS3_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 2.46k | { | 445 | 35.0k | for (; length < size; length++) | 446 | 32.5k | new (std::addressof (arrayZ[length])) Type (); | 447 | 2.46k | } |
_ZN11hb_vector_tIN3CFF8number_tELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 39.9k | { | 445 | 126k | for (; length < size; length++) | 446 | 86.5k | new (std::addressof (arrayZ[length])) Type (); | 447 | 39.9k | } |
_ZN11hb_vector_tIN3CFF15parsed_cs_str_tELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 6.02k | { | 445 | 1.08M | for (; length < size; length++) | 446 | 1.07M | new (std::addressof (arrayZ[length])) Type (); | 447 | 6.02k | } |
_ZN11hb_vector_tIN3CFF19parsed_cs_str_vec_tELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 3.38k | { | 445 | 14.5k | for (; length < size; length++) | 446 | 11.1k | new (std::addressof (arrayZ[length])) Type (); | 447 | 3.38k | } |
_ZN11hb_vector_tI15hb_vector_buf_tLb0EE11grow_vectorIS0_TnPN12hb_enable_ifIXntsr3std26is_trivially_constructibleIT_EE5valueEvE4typeELPv0EEEvj11hb_priorityILj0EE Line | Count | Source | 444 | 28.8k | { | 445 | 57.7k | for (; length < size; length++) | 446 | 28.8k | new (std::addressof (arrayZ[length])) Type (); | 447 | 28.8k | } |
|
448 | | /* Specialization for hb_vector_t<hb_{vector,array}_t<U>> to speed up. */ |
449 | | template <typename T = Type, |
450 | | hb_enable_if (hb_is_same (T, hb_vector_t<typename T::item_t>) || |
451 | | hb_is_same (T, hb_array_t <typename T::item_t>))> |
452 | | void |
453 | | grow_vector (unsigned size, hb_priority<1>) |
454 | 10.7k | { |
455 | 10.7k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); |
456 | 10.7k | length = size; |
457 | 10.7k | } _ZN11hb_vector_tIS_IjLb0EELb0EE11grow_vectorIS0_TnPN12hb_enable_ifIXoosr10hb_is_sameIT_S_INS4_6item_tELb0EEEE5valuesr10hb_is_sameIS4_10hb_array_tIS5_EEE5valueEvE4typeELPv0EEEvj11hb_priorityILj1EE Line | Count | Source | 454 | 1.57k | { | 455 | 1.57k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 456 | 1.57k | length = size; | 457 | 1.57k | } |
_ZN11hb_vector_tIS_IcLb0EELb0EE11grow_vectorIS0_TnPN12hb_enable_ifIXoosr10hb_is_sameIT_S_INS4_6item_tELb0EEEE5valuesr10hb_is_sameIS4_10hb_array_tIS5_EEE5valueEvE4typeELPv0EEEvj11hb_priorityILj1EE Line | Count | Source | 454 | 106 | { | 455 | 106 | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 456 | 106 | length = size; | 457 | 106 | } |
_ZN11hb_vector_tIS_IiLb0EELb0EE11grow_vectorIS0_TnPN12hb_enable_ifIXoosr10hb_is_sameIT_S_INS4_6item_tELb0EEEE5valuesr10hb_is_sameIS4_10hb_array_tIS5_EEE5valueEvE4typeELPv0EEEvj11hb_priorityILj1EE Line | Count | Source | 454 | 688 | { | 455 | 688 | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 456 | 688 | length = size; | 457 | 688 | } |
_ZN11hb_vector_tIS_IhLb0EELb0EE11grow_vectorIS0_TnPN12hb_enable_ifIXoosr10hb_is_sameIT_S_INS4_6item_tELb0EEEE5valuesr10hb_is_sameIS4_10hb_array_tIS5_EEE5valueEvE4typeELPv0EEEvj11hb_priorityILj1EE Line | Count | Source | 454 | 5.16k | { | 455 | 5.16k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 456 | 5.16k | length = size; | 457 | 5.16k | } |
_ZN11hb_vector_tIS_IS_IhLb0EELb0EELb0EE11grow_vectorIS1_TnPN12hb_enable_ifIXoosr10hb_is_sameIT_S_INS5_6item_tELb0EEEE5valuesr10hb_is_sameIS5_10hb_array_tIS6_EEE5valueEvE4typeELPv0EEEvj11hb_priorityILj1EE Line | Count | Source | 454 | 2.40k | { | 455 | 2.40k | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 456 | 2.40k | length = size; | 457 | 2.40k | } |
_ZN11hb_vector_tIS_IN3CFF12cs_command_tELb0EELb0EE11grow_vectorIS2_TnPN12hb_enable_ifIXoosr10hb_is_sameIT_S_INS6_6item_tELb0EEEE5valuesr10hb_is_sameIS6_10hb_array_tIS7_EEE5valueEvE4typeELPv0EEEvj11hb_priorityILj1EE Line | Count | Source | 454 | 766 | { | 455 | 766 | hb_memset (arrayZ + length, 0, (size - length) * sizeof (*arrayZ)); | 456 | 766 | length = size; | 457 | 766 | } |
|
458 | | |
459 | | template <typename T = Type, |
460 | | hb_enable_if (hb_is_trivially_copyable (T))> |
461 | | void |
462 | | copy_array (hb_array_t<Type> other) |
463 | 11.1M | { |
464 | 11.1M | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); |
465 | 11.1M | length += other.length; |
466 | 11.1M | } _ZN11hb_vector_tI15contour_point_tLb0EE10copy_arrayIS0_TnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIS0_E Line | Count | Source | 463 | 10.9M | { | 464 | 10.9M | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); | 465 | 10.9M | length += other.length; | 466 | 10.9M | } |
_ZN11hb_vector_tIiLb0EE10copy_arrayIiTnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIiE Line | Count | Source | 463 | 170k | { | 464 | 170k | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); | 465 | 170k | length += other.length; | 466 | 170k | } |
|
467 | | template <typename T = Type, |
468 | | hb_enable_if (hb_is_trivially_copyable (T))> |
469 | | void |
470 | | copy_array (hb_array_t<const Type> other) |
471 | 24.0M | { |
472 | 24.0M | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); |
473 | 24.0M | length += other.length; |
474 | 24.0M | } _ZN11hb_vector_tIN12hb_bit_set_t10page_map_tELb1EE10copy_arrayIS1_TnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKS1_E Line | Count | Source | 471 | 11.4M | { | 472 | 11.4M | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); | 473 | 11.4M | length += other.length; | 474 | 11.4M | } |
_ZN11hb_vector_tI13hb_bit_page_tLb0EE10copy_arrayIS0_TnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKS0_E Line | Count | Source | 471 | 11.4M | { | 472 | 11.4M | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); | 473 | 11.4M | length += other.length; | 474 | 11.4M | } |
Unexecuted instantiation: _ZN11hb_vector_tIN20hb_aat_map_builder_t14feature_info_tELb1EE10copy_arrayIS1_TnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKS1_E _ZN11hb_vector_tI15contour_point_tLb0EE10copy_arrayIS0_TnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKS0_E Line | Count | Source | 471 | 182k | { | 472 | 182k | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); | 473 | 182k | length += other.length; | 474 | 182k | } |
Unexecuted instantiation: _ZN11hb_vector_tIN3CFF14parsed_cs_op_tELb0EE10copy_arrayIS1_TnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKS1_E _ZN11hb_vector_tIiLb0EE10copy_arrayIiTnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKiE Line | Count | Source | 471 | 161k | { | 472 | 161k | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); | 473 | 161k | length += other.length; | 474 | 161k | } |
_ZN11hb_vector_tIhLb0EE10copy_arrayIhTnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKhE Line | Count | Source | 471 | 63.1k | { | 472 | 63.1k | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); | 473 | 63.1k | length += other.length; | 474 | 63.1k | } |
_ZN11hb_vector_tIjLb0EE10copy_arrayIjTnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKjE Line | Count | Source | 471 | 28.4k | { | 472 | 28.4k | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); | 473 | 28.4k | length += other.length; | 474 | 28.4k | } |
_ZN11hb_vector_tIbLb0EE10copy_arrayIbTnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKbE Line | Count | Source | 471 | 1.28k | { | 472 | 1.28k | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); | 473 | 1.28k | length += other.length; | 474 | 1.28k | } |
_ZN11hb_vector_tIfLb0EE10copy_arrayIfTnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKfE Line | Count | Source | 471 | 2.56k | { | 472 | 2.56k | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); | 473 | 2.56k | length += other.length; | 474 | 2.56k | } |
_ZN11hb_vector_tIN2OT7HBFixedINS0_7NumTypeILb1EsLj2EEELj14EEELb0EE10copy_arrayIS4_TnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKS4_E Line | Count | Source | 471 | 2.56k | { | 472 | 2.56k | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); | 473 | 2.56k | length += other.length; | 474 | 2.56k | } |
_ZN11hb_vector_tIPKS_IiLb0EELb0EE10copy_arrayIS2_TnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKS2_E Line | Count | Source | 471 | 1.02k | { | 472 | 1.02k | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); | 473 | 1.02k | length += other.length; | 474 | 1.02k | } |
_ZN11hb_vector_tIN2OT11LayerRecordELb0EE10copy_arrayIS1_TnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKS1_E Line | Count | Source | 471 | 147k | { | 472 | 147k | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); | 473 | 147k | length += other.length; | 474 | 147k | } |
_ZN11hb_vector_tI9hb_pair_tIjjELb1EE10copy_arrayIS1_TnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKS1_E Line | Count | Source | 471 | 7.85k | { | 472 | 7.85k | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); | 473 | 7.85k | length += other.length; | 474 | 7.85k | } |
_ZN11hb_vector_tIN22hb_serialize_context_t8object_t6link_tELb0EE10copy_arrayIS2_TnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKS2_E Line | Count | Source | 471 | 449k | { | 472 | 449k | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); | 473 | 449k | length += other.length; | 474 | 449k | } |
_ZN11hb_vector_tI9hb_pair_tIjjELb0EE10copy_arrayIS1_TnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKS1_E Line | Count | Source | 471 | 2.16k | { | 472 | 2.16k | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); | 473 | 2.16k | length += other.length; | 474 | 2.16k | } |
_ZN11hb_vector_tIN3CFF8number_tELb0EE10copy_arrayIS1_TnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKS1_E Line | Count | Source | 471 | 59.5k | { | 472 | 59.5k | hb_memcpy ((void *) (arrayZ + length), (const void *) other.arrayZ, other.length * item_size); | 473 | 59.5k | length += other.length; | 474 | 59.5k | } |
Unexecuted instantiation: _ZN11hb_vector_tIcLb0EE10copy_arrayIcTnPN12hb_enable_ifIXsr3std21is_trivially_copyableIT_EE5valueEvE4typeELPv0EEEv10hb_array_tIKcE |
475 | | template <typename T = Type, |
476 | | hb_enable_if (!hb_is_trivially_copyable (T) && |
477 | | std::is_copy_constructible<T>::value)> |
478 | | void |
479 | | copy_array (hb_array_t<const Type> other) |
480 | 0 | { |
481 | 0 | for (unsigned i = 0; i < other.length; i++) |
482 | 0 | new (std::addressof (arrayZ[length + i])) Type (other.arrayZ[i]); |
483 | 0 | length += other.length; |
484 | 0 | } Unexecuted instantiation: _ZN11hb_vector_tIN3CFF15parsed_cs_str_tELb0EE10copy_arrayIS1_TnPN12hb_enable_ifIXaantsr3std21is_trivially_copyableIT_EE5valuesr3std21is_copy_constructibleIS5_EE5valueEvE4typeELPv0EEEv10hb_array_tIKS1_E Unexecuted instantiation: _ZN11hb_vector_tIN3CFF19parsed_cs_str_vec_tELb0EE10copy_arrayIS1_TnPN12hb_enable_ifIXaantsr3std21is_trivially_copyableIT_EE5valuesr3std21is_copy_constructibleIS5_EE5valueEvE4typeELPv0EEEv10hb_array_tIKS1_E |
485 | | template <typename T = Type, |
486 | | hb_enable_if (!hb_is_trivially_copyable (T) && |
487 | | !std::is_copy_constructible<T>::value && |
488 | | std::is_default_constructible<T>::value && |
489 | | std::is_copy_assignable<T>::value)> |
490 | | void |
491 | | copy_array (hb_array_t<const Type> other) |
492 | | { |
493 | | for (unsigned i = 0; i < other.length; i++) |
494 | | { |
495 | | new (std::addressof (arrayZ[length + i])) Type (); |
496 | | arrayZ[length + i] = other.arrayZ[i]; |
497 | | } |
498 | | length += other.length; |
499 | | } |
500 | | |
501 | | void |
502 | | shrink_vector (unsigned size) |
503 | 522M | { |
504 | 522M | assert (size <= length); |
505 | 522M | if (!hb_is_trivially_destructible(Type)) |
506 | 4.46M | { |
507 | 4.46M | unsigned count = length - size; |
508 | 4.46M | Type *p = arrayZ + length; |
509 | 27.2M | while (count--) |
510 | 22.7M | (--p)->~Type (); |
511 | 4.46M | } |
512 | 522M | length = size; |
513 | 522M | } Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::shrink_vector(unsigned int) Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_range_t, true>::shrink_vector(unsigned int) hb_vector_t<hb_bit_page_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 30.1M | { | 504 | 30.1M | assert (size <= length); | 505 | 30.1M | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 30.1M | length = size; | 513 | 30.1M | } |
hb_vector_t<hb_bit_set_t::page_map_t, true>::shrink_vector(unsigned int) Line | Count | Source | 503 | 30.1M | { | 504 | 30.1M | assert (size <= length); | 505 | 30.1M | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 30.1M | length = size; | 513 | 30.1M | } |
hb_vector_t<hb_vector_t<hb_aat_map_t::range_flags_t, true>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 3.81k | { | 504 | 3.81k | assert (size <= length); | 505 | 3.81k | if (!hb_is_trivially_destructible(Type)) | 506 | 3.81k | { | 507 | 3.81k | unsigned count = length - size; | 508 | 3.81k | Type *p = arrayZ + length; | 509 | 10.0k | while (count--) | 510 | 6.21k | (--p)->~Type (); | 511 | 3.81k | } | 512 | 3.81k | length = size; | 513 | 3.81k | } |
hb_vector_t<hb_aat_map_t::range_flags_t, true>::shrink_vector(unsigned int) Line | Count | Source | 503 | 6.07k | { | 504 | 6.07k | assert (size <= length); | 505 | 6.07k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 6.07k | length = size; | 513 | 6.07k | } |
hb_vector_t<hb_set_digest_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 252 | { | 504 | 252 | assert (size <= length); | 505 | 252 | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 252 | length = size; | 513 | 252 | } |
hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 2.86k | { | 504 | 2.86k | assert (size <= length); | 505 | 2.86k | if (!hb_is_trivially_destructible(Type)) | 506 | 2.86k | { | 507 | 2.86k | unsigned count = length - size; | 508 | 2.86k | Type *p = arrayZ + length; | 509 | 7.24k | while (count--) | 510 | 4.37k | (--p)->~Type (); | 511 | 2.86k | } | 512 | 2.86k | length = size; | 513 | 2.86k | } |
hb_vector_t<unsigned int, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 32.2M | { | 504 | 32.2M | assert (size <= length); | 505 | 32.2M | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 32.2M | length = size; | 513 | 32.2M | } |
hb_vector_t<hb_user_data_array_t::hb_user_data_item_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 25.6k | { | 504 | 25.6k | assert (size <= length); | 505 | 25.6k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 25.6k | length = size; | 513 | 25.6k | } |
hb_vector_t<hb_ot_map_t::feature_map_t, true>::shrink_vector(unsigned int) Line | Count | Source | 503 | 52.9k | { | 504 | 52.9k | assert (size <= length); | 505 | 52.9k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 52.9k | length = size; | 513 | 52.9k | } |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 26.7k | { | 504 | 26.7k | assert (size <= length); | 505 | 26.7k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 26.7k | length = size; | 513 | 26.7k | } |
hb_vector_t<hb_ot_map_t::stage_map_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 107k | { | 504 | 107k | assert (size <= length); | 505 | 107k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 107k | length = size; | 513 | 107k | } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 5.88M | { | 504 | 5.88M | assert (size <= length); | 505 | 5.88M | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 5.88M | length = size; | 513 | 5.88M | } |
hb_vector_t<hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 96.4k | { | 504 | 96.4k | assert (size <= length); | 505 | 96.4k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 96.4k | length = size; | 513 | 96.4k | } |
hb_vector_t<hb_serialize_context_t::object_t*, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 130k | { | 504 | 130k | assert (size <= length); | 505 | 130k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 130k | length = size; | 513 | 130k | } |
hb_vector_t<hb_transform_t<float>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 1.86M | { | 504 | 1.86M | assert (size <= length); | 505 | 1.86M | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 1.86M | length = size; | 513 | 1.86M | } |
hb_vector_t<hb_bounds_t<float>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 3.48M | { | 504 | 3.48M | assert (size <= length); | 505 | 3.48M | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 3.48M | length = size; | 513 | 3.48M | } |
Unexecuted instantiation: hb_vector_t<hb_outline_point_t, false>::shrink_vector(unsigned int) hb_vector_t<char, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 2.88M | { | 504 | 2.88M | assert (size <= length); | 505 | 2.88M | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 2.88M | length = size; | 513 | 2.88M | } |
hb_vector_t<bool, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 86.5k | { | 504 | 86.5k | assert (size <= length); | 505 | 86.5k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 86.5k | length = size; | 513 | 86.5k | } |
hb_vector_t<float, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 29.8M | { | 504 | 29.8M | assert (size <= length); | 505 | 29.8M | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 29.8M | length = size; | 513 | 29.8M | } |
hb_vector_t<int, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 369k | { | 504 | 369k | assert (size <= length); | 505 | 369k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 369k | length = size; | 513 | 369k | } |
hb_vector_t<contour_point_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 25.6M | { | 504 | 25.6M | assert (size <= length); | 505 | 25.6M | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 25.6M | length = size; | 513 | 25.6M | } |
Unexecuted instantiation: hb_vector_t<double, false>::shrink_vector(unsigned int) hb_vector_t<hb_set_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 4.31M | { | 504 | 4.31M | assert (size <= length); | 505 | 4.31M | if (!hb_is_trivially_destructible(Type)) | 506 | 4.31M | { | 507 | 4.31M | unsigned count = length - size; | 508 | 4.31M | Type *p = arrayZ + length; | 509 | 4.32M | while (count--) | 510 | 11.1k | (--p)->~Type (); | 511 | 4.31M | } | 512 | 4.31M | length = size; | 513 | 4.31M | } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_event_t, false>::shrink_vector(unsigned int) hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 3.84k | { | 504 | 3.84k | assert (size <= length); | 505 | 3.84k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 3.84k | length = size; | 513 | 3.84k | } |
hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 9.27k | { | 504 | 9.27k | assert (size <= length); | 505 | 9.27k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 9.27k | length = size; | 513 | 9.27k | } |
hb_vector_t<hb_atomic_t<OT::SVG::svg_doc_cache_t*>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 989 | { | 504 | 989 | assert (size <= length); | 505 | 989 | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 989 | length = size; | 513 | 989 | } |
Unexecuted instantiation: hb_vector_t<OT::SVG::svg_defs_entry_t, false>::shrink_vector(unsigned int) Unexecuted instantiation: hb_vector_t<OT::_hb_svg_cache_impl::id_entry_t, false>::shrink_vector(unsigned int) Unexecuted instantiation: hb_vector_t<OT::_hb_svg_cache_impl::glyph_entry_t, false>::shrink_vector(unsigned int) hb_vector_t<hb_ot_name_entry_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 1.23k | { | 504 | 1.23k | assert (size <= length); | 505 | 1.23k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 1.23k | length = size; | 513 | 1.23k | } |
hb_vector_t<OT::cff1::accelerator_t::gname_t, true>::shrink_vector(unsigned int) Line | Count | Source | 503 | 883 | { | 504 | 883 | assert (size <= length); | 505 | 883 | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 883 | length = size; | 513 | 883 | } |
hb_vector_t<CFF::cff1_top_dict_val_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 12.1k | { | 504 | 12.1k | assert (size <= length); | 505 | 12.1k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 12.1k | length = size; | 513 | 12.1k | } |
hb_vector_t<CFF::cff1_font_dict_values_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 1.41k | { | 504 | 1.41k | assert (size <= length); | 505 | 1.41k | if (!hb_is_trivially_destructible(Type)) | 506 | 1.41k | { | 507 | 1.41k | unsigned count = length - size; | 508 | 1.41k | Type *p = arrayZ + length; | 509 | 34.9k | while (count--) | 510 | 33.5k | (--p)->~Type (); | 511 | 1.41k | } | 512 | 1.41k | length = size; | 513 | 1.41k | } |
hb_vector_t<CFF::op_str_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 62.2k | { | 504 | 62.2k | assert (size <= length); | 505 | 62.2k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 62.2k | length = size; | 513 | 62.2k | } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::dict_val_t>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 4.31k | { | 504 | 4.31k | assert (size <= length); | 505 | 4.31k | if (!hb_is_trivially_destructible(Type)) | 506 | 4.31k | { | 507 | 4.31k | unsigned count = length - size; | 508 | 4.31k | Type *p = arrayZ + length; | 509 | 202k | while (count--) | 510 | 198k | (--p)->~Type (); | 511 | 4.31k | } | 512 | 4.31k | length = size; | 513 | 4.31k | } |
hb_vector_t<CFF::dict_val_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 16.5k | { | 504 | 16.5k | assert (size <= length); | 505 | 16.5k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 16.5k | length = size; | 513 | 16.5k | } |
hb_vector_t<CFF::cff2_font_dict_values_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 5.04k | { | 504 | 5.04k | assert (size <= length); | 505 | 5.04k | if (!hb_is_trivially_destructible(Type)) | 506 | 5.04k | { | 507 | 5.04k | unsigned count = length - size; | 508 | 5.04k | Type *p = arrayZ + length; | 509 | 25.5k | while (count--) | 510 | 20.5k | (--p)->~Type (); | 511 | 5.04k | } | 512 | 5.04k | length = size; | 513 | 5.04k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::dict_val_t>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 2.64k | { | 504 | 2.64k | assert (size <= length); | 505 | 2.64k | if (!hb_is_trivially_destructible(Type)) | 506 | 2.64k | { | 507 | 2.64k | unsigned count = length - size; | 508 | 2.64k | Type *p = arrayZ + length; | 509 | 1.65M | while (count--) | 510 | 1.64M | (--p)->~Type (); | 511 | 2.64k | } | 512 | 2.64k | length = size; | 513 | 2.64k | } |
Unexecuted instantiation: hb_vector_t<hb_ot_name_record_ids_t, false>::shrink_vector(unsigned int) hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 63.0k | { | 504 | 63.0k | assert (size <= length); | 505 | 63.0k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 63.0k | length = size; | 513 | 63.0k | } |
hb_vector_t<hb_ot_map_builder_t::stage_info_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 109k | { | 504 | 109k | assert (size <= length); | 505 | 109k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 109k | length = size; | 513 | 109k | } |
hb_vector_t<unsigned char, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 117k | { | 504 | 117k | assert (size <= length); | 505 | 117k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 117k | length = size; | 513 | 117k | } |
hb_vector_t<hb_vector_t<unsigned int, false>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 963 | { | 504 | 963 | assert (size <= length); | 505 | 963 | if (!hb_is_trivially_destructible(Type)) | 506 | 963 | { | 507 | 963 | unsigned count = length - size; | 508 | 963 | Type *p = arrayZ + length; | 509 | 247k | while (count--) | 510 | 246k | (--p)->~Type (); | 511 | 963 | } | 512 | 963 | length = size; | 513 | 963 | } |
hb_vector_t<short, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 128k | { | 504 | 128k | assert (size <= length); | 505 | 128k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 128k | length = size; | 513 | 128k | } |
hb_vector_t<hb_raster_edge_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 81.3k | { | 504 | 81.3k | assert (size <= length); | 505 | 81.3k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 81.3k | length = size; | 513 | 81.3k | } |
hb_vector_t<hb_color_stop_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 110k | { | 504 | 110k | assert (size <= length); | 505 | 110k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 110k | length = size; | 513 | 110k | } |
hb_vector_t<hb_raster_image_t*, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 3.76k | { | 504 | 3.76k | assert (size <= length); | 505 | 3.76k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 3.76k | length = size; | 513 | 3.76k | } |
hb_vector_t<hb_raster_clip_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 1.16k | { | 504 | 1.16k | assert (size <= length); | 505 | 1.16k | if (!hb_is_trivially_destructible(Type)) | 506 | 1.16k | { | 507 | 1.16k | unsigned count = length - size; | 508 | 1.16k | Type *p = arrayZ + length; | 509 | 1.17k | while (count--) | 510 | 6 | (--p)->~Type (); | 511 | 1.16k | } | 512 | 1.16k | length = size; | 513 | 1.16k | } |
hb_vector_t<hb_subset_serialize_object_t const*, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 3.72k | { | 504 | 3.72k | assert (size <= length); | 505 | 3.72k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 3.72k | length = size; | 513 | 3.72k | } |
hb_vector_t<graph::graph_t::vertex_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 5.81k | { | 504 | 5.81k | assert (size <= length); | 505 | 5.81k | if (!hb_is_trivially_destructible(Type)) | 506 | 5.81k | { | 507 | 5.81k | unsigned count = length - size; | 508 | 5.81k | Type *p = arrayZ + length; | 509 | 16.2M | while (count--) | 510 | 16.2M | (--p)->~Type (); | 511 | 5.81k | } | 512 | 5.81k | length = size; | 513 | 5.81k | } |
hb_vector_t<hb_pair_t<long, unsigned int>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 341M | { | 504 | 341M | assert (size <= length); | 505 | 341M | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 341M | length = size; | 513 | 341M | } |
hb_vector_t<graph::overflow_record_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 47.8k | { | 504 | 47.8k | assert (size <= length); | 505 | 47.8k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 47.8k | length = size; | 513 | 47.8k | } |
hb_vector_t<graph::MarkBasePosFormat1::class_info_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 301 | { | 504 | 301 | assert (size <= length); | 505 | 301 | if (!hb_is_trivially_destructible(Type)) | 506 | 301 | { | 507 | 301 | unsigned count = length - size; | 508 | 301 | Type *p = arrayZ + length; | 509 | 2.07M | while (count--) | 510 | 2.07M | (--p)->~Type (); | 511 | 301 | } | 512 | 301 | length = size; | 513 | 301 | } |
hb_vector_t<hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 727 | { | 504 | 727 | assert (size <= length); | 505 | 727 | if (!hb_is_trivially_destructible(Type)) | 506 | 727 | { | 507 | 727 | unsigned count = length - size; | 508 | 727 | Type *p = arrayZ + length; | 509 | 1.93k | while (count--) | 510 | 1.21k | (--p)->~Type (); | 511 | 727 | } | 512 | 727 | length = size; | 513 | 727 | } |
hb_vector_t<lookup_size_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 2.75k | { | 504 | 2.75k | assert (size <= length); | 505 | 2.75k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 2.75k | length = size; | 513 | 2.75k | } |
hb_vector_t<char*, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 2.66k | { | 504 | 2.66k | assert (size <= length); | 505 | 2.66k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 2.66k | length = size; | 513 | 2.66k | } |
hb_vector_t<hb_gpu_encode_curve_info_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 13.5k | { | 504 | 13.5k | assert (size <= length); | 505 | 13.5k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 13.5k | length = size; | 513 | 13.5k | } |
hb_vector_t<hb_gpu_curve_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 488k | { | 504 | 488k | assert (size <= length); | 505 | 488k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 488k | length = size; | 513 | 488k | } |
hb_vector_t<hb_blob_t*, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 127k | { | 504 | 127k | assert (size <= length); | 505 | 127k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 127k | length = size; | 513 | 127k | } |
hb_vector_t<unsigned int, true>::shrink_vector(unsigned int) Line | Count | Source | 503 | 54.5k | { | 504 | 54.5k | assert (size <= length); | 505 | 54.5k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 54.5k | length = size; | 513 | 54.5k | } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::shrink_vector(unsigned int) Line | Count | Source | 503 | 71.9k | { | 504 | 71.9k | assert (size <= length); | 505 | 71.9k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 71.9k | length = size; | 513 | 71.9k | } |
hb_vector_t<hb_vector_t<int, false> const*, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 11.6k | { | 504 | 11.6k | assert (size <= length); | 505 | 11.6k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 11.6k | length = size; | 513 | 11.6k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, bool, hb_vector_t<hb_vector_t<int, false> const*, false> const&)::delta_size_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 2.28k | { | 504 | 2.28k | assert (size <= length); | 505 | 2.28k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 2.28k | length = size; | 513 | 2.28k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, OT::VarData const*, hb_inc_bimap_t const&, hb_inc_bimap_t const&)::delta_size_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 21.7k | { | 504 | 21.7k | assert (size <= length); | 505 | 21.7k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 21.7k | length = size; | 513 | 21.7k | } |
hb_vector_t<hb_vector_t<char, false>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 106 | { | 504 | 106 | assert (size <= length); | 505 | 106 | if (!hb_is_trivially_destructible(Type)) | 506 | 106 | { | 507 | 106 | unsigned count = length - size; | 508 | 106 | Type *p = arrayZ + length; | 509 | 212 | while (count--) | 510 | 106 | (--p)->~Type (); | 511 | 106 | } | 512 | 106 | length = size; | 513 | 106 | } |
hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 2 | { | 504 | 2 | assert (size <= length); | 505 | 2 | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 2 | length = size; | 513 | 2 | } |
hb_vector_t<OT::tuple_delta_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 35.1k | { | 504 | 35.1k | assert (size <= length); | 505 | 35.1k | if (!hb_is_trivially_destructible(Type)) | 506 | 35.1k | { | 507 | 35.1k | unsigned count = length - size; | 508 | 35.1k | Type *p = arrayZ + length; | 509 | 84.7k | while (count--) | 510 | 49.6k | (--p)->~Type (); | 511 | 35.1k | } | 512 | 35.1k | length = size; | 513 | 35.1k | } |
Unexecuted instantiation: hb_vector_t<double, false>::shrink_vector(unsigned int) hb_vector_t<hb_pair_t<double, Triple>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 12.5k | { | 504 | 12.5k | assert (size <= length); | 505 | 12.5k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 12.5k | length = size; | 513 | 12.5k | } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 1.51k | { | 504 | 1.51k | assert (size <= length); | 505 | 1.51k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 1.51k | length = size; | 513 | 1.51k | } |
hb_vector_t<hb_vector_t<int, false>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 688 | { | 504 | 688 | assert (size <= length); | 505 | 688 | if (!hb_is_trivially_destructible(Type)) | 506 | 688 | { | 507 | 688 | unsigned count = length - size; | 508 | 688 | Type *p = arrayZ + length; | 509 | 29.3k | while (count--) | 510 | 28.6k | (--p)->~Type (); | 511 | 688 | } | 512 | 688 | length = size; | 513 | 688 | } |
hb_vector_t<OT::delta_row_encoding_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 2.05k | { | 504 | 2.05k | assert (size <= length); | 505 | 2.05k | if (!hb_is_trivially_destructible(Type)) | 506 | 2.05k | { | 507 | 2.05k | unsigned count = length - size; | 508 | 2.05k | Type *p = arrayZ + length; | 509 | 11.0k | while (count--) | 510 | 8.97k | (--p)->~Type (); | 511 | 2.05k | } | 512 | 2.05k | length = size; | 513 | 2.05k | } |
hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 8.11k | { | 504 | 8.11k | assert (size <= length); | 505 | 8.11k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 8.11k | length = size; | 513 | 8.11k | } |
hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 1.43k | { | 504 | 1.43k | assert (size <= length); | 505 | 1.43k | if (!hb_is_trivially_destructible(Type)) | 506 | 1.43k | { | 507 | 1.43k | unsigned count = length - size; | 508 | 1.43k | Type *p = arrayZ + length; | 509 | 14.1k | while (count--) | 510 | 12.7k | (--p)->~Type (); | 511 | 1.43k | } | 512 | 1.43k | length = size; | 513 | 1.43k | } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 1.07k | { | 504 | 1.07k | assert (size <= length); | 505 | 1.07k | if (!hb_is_trivially_destructible(Type)) | 506 | 1.07k | { | 507 | 1.07k | unsigned count = length - size; | 508 | 1.07k | Type *p = arrayZ + length; | 509 | 137k | while (count--) | 510 | 136k | (--p)->~Type (); | 511 | 1.07k | } | 512 | 1.07k | length = size; | 513 | 1.07k | } |
hb_vector_t<OT::LayerRecord, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 5.03k | { | 504 | 5.03k | assert (size <= length); | 505 | 5.03k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 5.03k | length = size; | 513 | 5.03k | } |
hb_vector_t<hb_set_t*, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 1.53k | { | 504 | 1.53k | assert (size <= length); | 505 | 1.53k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 1.53k | length = size; | 513 | 1.53k | } |
hb_vector_t<OT::index_map_subset_plan_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 1.58k | { | 504 | 1.58k | assert (size <= length); | 505 | 1.58k | if (!hb_is_trivially_destructible(Type)) | 506 | 1.58k | { | 507 | 1.58k | unsigned count = length - size; | 508 | 1.58k | Type *p = arrayZ + length; | 509 | 6.36k | while (count--) | 510 | 4.78k | (--p)->~Type (); | 511 | 1.58k | } | 512 | 1.58k | length = size; | 513 | 1.58k | } |
hb_vector_t<hb_inc_bimap_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 3.95k | { | 504 | 3.95k | assert (size <= length); | 505 | 3.95k | if (!hb_is_trivially_destructible(Type)) | 506 | 3.95k | { | 507 | 3.95k | unsigned count = length - size; | 508 | 3.95k | Type *p = arrayZ + length; | 509 | 52.0k | while (count--) | 510 | 48.0k | (--p)->~Type (); | 511 | 3.95k | } | 512 | 3.95k | length = size; | 513 | 3.95k | } |
hb_vector_t<OT::DeltaSetIndexMap const*, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 1.58k | { | 504 | 1.58k | assert (size <= length); | 505 | 1.58k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 1.58k | length = size; | 513 | 1.58k | } |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 8.00k | { | 504 | 8.00k | assert (size <= length); | 505 | 8.00k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 8.00k | length = size; | 513 | 8.00k | } |
hb_vector_t<hb_variation_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 1.73k | { | 504 | 1.73k | assert (size <= length); | 505 | 1.73k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 1.73k | length = size; | 513 | 1.73k | } |
hb_vector_t<CFF::number_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 11.3M | { | 504 | 11.3M | assert (size <= length); | 505 | 11.3M | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 11.3M | length = size; | 513 | 11.3M | } |
hb_vector_t<CFF::parsed_cs_op_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 22.4k | { | 504 | 22.4k | assert (size <= length); | 505 | 22.4k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 22.4k | length = size; | 513 | 22.4k | } |
hb_vector_t<CFF::parsed_cs_str_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 6.02k | { | 504 | 6.02k | assert (size <= length); | 505 | 6.02k | if (!hb_is_trivially_destructible(Type)) | 506 | 6.02k | { | 507 | 6.02k | unsigned count = length - size; | 508 | 6.02k | Type *p = arrayZ + length; | 509 | 1.08M | while (count--) | 510 | 1.07M | (--p)->~Type (); | 511 | 6.02k | } | 512 | 6.02k | length = size; | 513 | 6.02k | } |
hb_vector_t<CFF::parsed_cs_str_vec_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 3.38k | { | 504 | 3.38k | assert (size <= length); | 505 | 3.38k | if (!hb_is_trivially_destructible(Type)) | 506 | 3.38k | { | 507 | 3.38k | unsigned count = length - size; | 508 | 3.38k | Type *p = arrayZ + length; | 509 | 14.5k | while (count--) | 510 | 11.1k | (--p)->~Type (); | 511 | 3.38k | } | 512 | 3.38k | length = size; | 513 | 3.38k | } |
hb_vector_t<CFF::code_pair_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 4.53k | { | 504 | 4.53k | assert (size <= length); | 505 | 4.53k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 4.53k | length = size; | 513 | 4.53k | } |
hb_vector_t<CFF::subr_remap_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 3.37k | { | 504 | 3.37k | assert (size <= length); | 505 | 3.37k | if (!hb_is_trivially_destructible(Type)) | 506 | 3.37k | { | 507 | 3.37k | unsigned count = length - size; | 508 | 3.37k | Type *p = arrayZ + length; | 509 | 14.5k | while (count--) | 510 | 11.1k | (--p)->~Type (); | 511 | 3.37k | } | 512 | 3.37k | length = size; | 513 | 3.37k | } |
hb_vector_t<hb_array_t<unsigned char const>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 1.72k | { | 504 | 1.72k | assert (size <= length); | 505 | 1.72k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 1.72k | length = size; | 513 | 1.72k | } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::op_str_t>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 4.95k | { | 504 | 4.95k | assert (size <= length); | 505 | 4.95k | if (!hb_is_trivially_destructible(Type)) | 506 | 4.95k | { | 507 | 4.95k | unsigned count = length - size; | 508 | 4.95k | Type *p = arrayZ + length; | 509 | 33.8k | while (count--) | 510 | 28.9k | (--p)->~Type (); | 511 | 4.95k | } | 512 | 4.95k | length = size; | 513 | 4.95k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::op_str_t>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 2.46k | { | 504 | 2.46k | assert (size <= length); | 505 | 2.46k | if (!hb_is_trivially_destructible(Type)) | 506 | 2.46k | { | 507 | 2.46k | unsigned count = length - size; | 508 | 2.46k | Type *p = arrayZ + length; | 509 | 35.0k | while (count--) | 510 | 32.5k | (--p)->~Type (); | 511 | 2.46k | } | 512 | 2.46k | length = size; | 513 | 2.46k | } |
Unexecuted instantiation: hb_vector_t<hb_ot_name_record_ids_t, false>::shrink_vector(unsigned int) hb_vector_t<OT::IndexSubtableRecord, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 147 | { | 504 | 147 | assert (size <= length); | 505 | 147 | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 147 | length = size; | 513 | 147 | } |
hb_vector_t<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 90 | { | 504 | 90 | assert (size <= length); | 505 | 90 | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 90 | length = size; | 513 | 90 | } |
hb_vector_t<OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 233 | { | 504 | 233 | assert (size <= length); | 505 | 233 | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 233 | length = size; | 513 | 233 | } |
hb_vector_t<OT::AxisValueMap, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 168 | { | 504 | 168 | assert (size <= length); | 505 | 168 | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 168 | length = size; | 513 | 168 | } |
hb_vector_t<hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 2 | { | 504 | 2 | assert (size <= length); | 505 | 2 | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 2 | length = size; | 513 | 2 | } |
hb_vector_t<hb_vector_t<unsigned char, false>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 5.16k | { | 504 | 5.16k | assert (size <= length); | 505 | 5.16k | if (!hb_is_trivially_destructible(Type)) | 506 | 5.16k | { | 507 | 5.16k | unsigned count = length - size; | 508 | 5.16k | Type *p = arrayZ + length; | 509 | 47.5k | while (count--) | 510 | 42.4k | (--p)->~Type (); | 511 | 5.16k | } | 512 | 5.16k | length = size; | 513 | 5.16k | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t const*, false>::shrink_vector(unsigned int) hb_vector_t<hb_vector_t<hb_vector_t<unsigned char, false>, false>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 2.40k | { | 504 | 2.40k | assert (size <= length); | 505 | 2.40k | if (!hb_is_trivially_destructible(Type)) | 506 | 2.40k | { | 507 | 2.40k | unsigned count = length - size; | 508 | 2.40k | Type *p = arrayZ + length; | 509 | 10.6k | while (count--) | 510 | 8.20k | (--p)->~Type (); | 511 | 2.40k | } | 512 | 2.40k | length = size; | 513 | 2.40k | } |
hb_vector_t<CFF::cff1_font_dict_values_mod_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 1.85k | { | 504 | 1.85k | assert (size <= length); | 505 | 1.85k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 1.85k | length = size; | 513 | 1.85k | } |
hb_vector_t<CFF::cs_command_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 1.38k | { | 504 | 1.38k | assert (size <= length); | 505 | 1.38k | if (!hb_is_trivially_destructible(Type)) | 506 | 1.38k | { | 507 | 1.38k | unsigned count = length - size; | 508 | 1.38k | Type *p = arrayZ + length; | 509 | 45.9k | while (count--) | 510 | 44.5k | (--p)->~Type (); | 511 | 1.38k | } | 512 | 1.38k | length = size; | 513 | 1.38k | } |
hb_vector_t<hb_vector_t<CFF::cs_command_t, false>, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 766 | { | 504 | 766 | assert (size <= length); | 505 | 766 | if (!hb_is_trivially_destructible(Type)) | 506 | 766 | { | 507 | 766 | unsigned count = length - size; | 508 | 766 | Type *p = arrayZ + length; | 509 | 3.81k | while (count--) | 510 | 3.04k | (--p)->~Type (); | 511 | 766 | } | 512 | 766 | length = size; | 513 | 766 | } |
hb_vector_t<CFF::table_info_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 1.45k | { | 504 | 1.45k | assert (size <= length); | 505 | 1.45k | if (!hb_is_trivially_destructible(Type)) | 506 | 0 | { | 507 | 0 | unsigned count = length - size; | 508 | 0 | Type *p = arrayZ + length; | 509 | 0 | while (count--) | 510 | 0 | (--p)->~Type (); | 511 | 0 | } | 512 | 1.45k | length = size; | 513 | 1.45k | } |
hb_vector_t<hb_vector_buf_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 41.7k | { | 504 | 41.7k | assert (size <= length); | 505 | 41.7k | if (!hb_is_trivially_destructible(Type)) | 506 | 41.7k | { | 507 | 41.7k | unsigned count = length - size; | 508 | 41.7k | Type *p = arrayZ + length; | 509 | 70.5k | while (count--) | 510 | 28.7k | (--p)->~Type (); | 511 | 41.7k | } | 512 | 41.7k | length = size; | 513 | 41.7k | } |
hb_vector_t<hb_pdf_obj_t, false>::shrink_vector(unsigned int) Line | Count | Source | 503 | 1.04k | { | 504 | 1.04k | assert (size <= length); | 505 | 1.04k | if (!hb_is_trivially_destructible(Type)) | 506 | 1.04k | { | 507 | 1.04k | unsigned count = length - size; | 508 | 1.04k | Type *p = arrayZ + length; | 509 | 703k | while (count--) | 510 | 702k | (--p)->~Type (); | 511 | 1.04k | } | 512 | 1.04k | length = size; | 513 | 1.04k | } |
|
514 | | |
515 | | void |
516 | | shift_down_vector (unsigned i) |
517 | 14.9k | { |
518 | 430k | for (; i < length; i++) |
519 | 415k | arrayZ[i - 1] = std::move (arrayZ[i]); |
520 | 14.9k | } Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::shift_down_vector(unsigned int) hb_vector_t<CFF::cs_command_t, false>::shift_down_vector(unsigned int) Line | Count | Source | 517 | 14.9k | { | 518 | 430k | for (; i < length; i++) | 519 | 415k | arrayZ[i - 1] = std::move (arrayZ[i]); | 520 | 14.9k | } |
|
521 | | |
522 | | /* Allocate for size but don't adjust length. */ |
523 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
524 | | bool alloc (unsigned int size, bool exact=false) |
525 | 968M | { |
526 | 968M | if (unlikely (in_error ())) |
527 | 124M | return false; |
528 | | |
529 | 844M | unsigned int new_allocated; |
530 | 844M | if (exact) |
531 | 56.2M | { |
532 | | /* If exact was specified, we allow shrinking the storage. */ |
533 | 56.2M | size = hb_max (size, length); |
534 | 56.2M | if (size <= (unsigned) allocated && |
535 | 50.8M | size >= (unsigned) allocated >> 2) |
536 | 50.4M | return true; |
537 | | |
538 | 5.84M | new_allocated = size; |
539 | 5.84M | } |
540 | 788M | else |
541 | 788M | { |
542 | 788M | if (likely (size <= (unsigned) allocated)) |
543 | 755M | return true; |
544 | | |
545 | 33.2M | new_allocated = allocated; |
546 | 145M | while (size > new_allocated) |
547 | 111M | new_allocated += (new_allocated >> 1) + 8; |
548 | 33.2M | } |
549 | | |
550 | | /* Reallocate */ |
551 | | |
552 | 39.0M | bool overflows = |
553 | 39.0M | (int) in_error () || |
554 | 39.0M | (new_allocated < size) || |
555 | 39.0M | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); |
556 | | |
557 | 39.0M | if (unlikely (overflows)) |
558 | 0 | { |
559 | 0 | set_error (); |
560 | 0 | return false; |
561 | 0 | } |
562 | | |
563 | 39.0M | Type *new_array = realloc_vector (new_allocated, hb_prioritize); |
564 | | |
565 | 39.0M | if (unlikely (new_allocated && !new_array)) |
566 | 232k | { |
567 | 232k | if (new_allocated <= (unsigned) allocated) |
568 | 2.43k | return true; // shrinking failed; it's okay; happens in our fuzzer |
569 | | |
570 | 229k | set_error (); |
571 | 229k | return false; |
572 | 232k | } |
573 | | |
574 | 38.8M | arrayZ = new_array; |
575 | 38.8M | allocated = new_allocated; |
576 | | |
577 | 38.8M | return true; |
578 | 39.0M | } hb_vector_t<hb_set_digest_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.47k | { | 526 | 1.47k | if (unlikely (in_error ())) | 527 | 166 | return false; | 528 | | | 529 | 1.31k | unsigned int new_allocated; | 530 | 1.31k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 1.31k | else | 541 | 1.31k | { | 542 | 1.31k | if (likely (size <= (unsigned) allocated)) | 543 | 1.02k | return true; | 544 | | | 545 | 291 | new_allocated = allocated; | 546 | 582 | while (size > new_allocated) | 547 | 291 | new_allocated += (new_allocated >> 1) + 8; | 548 | 291 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 291 | bool overflows = | 553 | 291 | (int) in_error () || | 554 | 291 | (new_allocated < size) || | 555 | 291 | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 291 | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 291 | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 291 | if (unlikely (new_allocated && !new_array)) | 566 | 10 | { | 567 | 10 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 10 | set_error (); | 571 | 10 | return false; | 572 | 10 | } | 573 | | | 574 | 281 | arrayZ = new_array; | 575 | 281 | allocated = new_allocated; | 576 | | | 577 | 281 | return true; | 578 | 291 | } |
hb_vector_t<hb_vector_t<hb_aat_map_t::range_flags_t, true>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 3.95k | { | 526 | 3.95k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 3.95k | unsigned int new_allocated; | 530 | 3.95k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 3.95k | else | 541 | 3.95k | { | 542 | 3.95k | if (likely (size <= (unsigned) allocated)) | 543 | 47 | return true; | 544 | | | 545 | 3.90k | new_allocated = allocated; | 546 | 7.86k | while (size > new_allocated) | 547 | 3.95k | new_allocated += (new_allocated >> 1) + 8; | 548 | 3.90k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 3.90k | bool overflows = | 553 | 3.90k | (int) in_error () || | 554 | 3.90k | (new_allocated < size) || | 555 | 3.90k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 3.90k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 3.90k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 3.90k | if (unlikely (new_allocated && !new_array)) | 566 | 99 | { | 567 | 99 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 99 | set_error (); | 571 | 99 | return false; | 572 | 99 | } | 573 | | | 574 | 3.81k | arrayZ = new_array; | 575 | 3.81k | allocated = new_allocated; | 576 | | | 577 | 3.81k | return true; | 578 | 3.90k | } |
hb_vector_t<hb_aat_map_t::range_flags_t, true>::alloc(unsigned int, bool) Line | Count | Source | 525 | 6.21k | { | 526 | 6.21k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 6.21k | unsigned int new_allocated; | 530 | 6.21k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 6.21k | else | 541 | 6.21k | { | 542 | 6.21k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 6.21k | new_allocated = allocated; | 546 | 12.4k | while (size > new_allocated) | 547 | 6.21k | new_allocated += (new_allocated >> 1) + 8; | 548 | 6.21k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 6.21k | bool overflows = | 553 | 6.21k | (int) in_error () || | 554 | 6.21k | (new_allocated < size) || | 555 | 6.21k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 6.21k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 6.21k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 6.21k | if (unlikely (new_allocated && !new_array)) | 566 | 140 | { | 567 | 140 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 140 | set_error (); | 571 | 140 | return false; | 572 | 140 | } | 573 | | | 574 | 6.07k | arrayZ = new_array; | 575 | 6.07k | allocated = new_allocated; | 576 | | | 577 | 6.07k | return true; | 578 | 6.21k | } |
hb_vector_t<hb_bit_page_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 79.8M | { | 526 | 79.8M | if (unlikely (in_error ())) | 527 | 11.9k | return false; | 528 | | | 529 | 79.8M | unsigned int new_allocated; | 530 | 79.8M | if (exact) | 531 | 15.2M | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 15.2M | size = hb_max (size, length); | 534 | 15.2M | if (size <= (unsigned) allocated && | 535 | 11.4M | size >= (unsigned) allocated >> 2) | 536 | 11.4M | return true; | 537 | | | 538 | 3.75M | new_allocated = size; | 539 | 3.75M | } | 540 | 64.5M | else | 541 | 64.5M | { | 542 | 64.5M | if (likely (size <= (unsigned) allocated)) | 543 | 56.0M | return true; | 544 | | | 545 | 8.56M | new_allocated = allocated; | 546 | 50.1M | while (size > new_allocated) | 547 | 41.6M | new_allocated += (new_allocated >> 1) + 8; | 548 | 8.56M | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 12.3M | bool overflows = | 553 | 12.3M | (int) in_error () || | 554 | 12.3M | (new_allocated < size) || | 555 | 12.3M | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 12.3M | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 12.3M | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 12.3M | if (unlikely (new_allocated && !new_array)) | 566 | 11.9k | { | 567 | 11.9k | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 11.9k | set_error (); | 571 | 11.9k | return false; | 572 | 11.9k | } | 573 | | | 574 | 12.3M | arrayZ = new_array; | 575 | 12.3M | allocated = new_allocated; | 576 | | | 577 | 12.3M | return true; | 578 | 12.3M | } |
hb_vector_t<hb_bit_set_t::page_map_t, true>::alloc(unsigned int, bool) Line | Count | Source | 525 | 79.8M | { | 526 | 79.8M | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 79.8M | unsigned int new_allocated; | 530 | 79.8M | if (exact) | 531 | 11.4M | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 11.4M | size = hb_max (size, length); | 534 | 11.4M | if (size <= (unsigned) allocated && | 535 | 11.4M | size >= (unsigned) allocated >> 2) | 536 | 11.1M | return true; | 537 | | | 538 | 335k | new_allocated = size; | 539 | 335k | } | 540 | 68.3M | else | 541 | 68.3M | { | 542 | 68.3M | if (likely (size <= (unsigned) allocated)) | 543 | 56.8M | return true; | 544 | | | 545 | 11.5M | new_allocated = allocated; | 546 | 56.0M | while (size > new_allocated) | 547 | 44.5M | new_allocated += (new_allocated >> 1) + 8; | 548 | 11.5M | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 11.8M | bool overflows = | 553 | 11.8M | (int) in_error () || | 554 | 11.8M | (new_allocated < size) || | 555 | 11.8M | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 11.8M | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 11.8M | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 11.8M | if (unlikely (new_allocated && !new_array)) | 566 | 11.1k | { | 567 | 11.1k | if (new_allocated <= (unsigned) allocated) | 568 | 2.31k | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 8.85k | set_error (); | 571 | 8.85k | return false; | 572 | 11.1k | } | 573 | | | 574 | 11.8M | arrayZ = new_array; | 575 | 11.8M | allocated = new_allocated; | 576 | | | 577 | 11.8M | return true; | 578 | 11.8M | } |
hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 4.40k | { | 526 | 4.40k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 4.40k | unsigned int new_allocated; | 530 | 4.40k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 4.40k | else | 541 | 4.40k | { | 542 | 4.40k | if (likely (size <= (unsigned) allocated)) | 543 | 1.45k | return true; | 544 | | | 545 | 2.94k | new_allocated = allocated; | 546 | 5.88k | while (size > new_allocated) | 547 | 2.94k | new_allocated += (new_allocated >> 1) + 8; | 548 | 2.94k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 2.94k | bool overflows = | 553 | 2.94k | (int) in_error () || | 554 | 2.94k | (new_allocated < size) || | 555 | 2.94k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 2.94k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 2.94k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 2.94k | if (unlikely (new_allocated && !new_array)) | 566 | 26 | { | 567 | 26 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 26 | set_error (); | 571 | 26 | return false; | 572 | 26 | } | 573 | | | 574 | 2.91k | arrayZ = new_array; | 575 | 2.91k | allocated = new_allocated; | 576 | | | 577 | 2.91k | return true; | 578 | 2.94k | } |
hb_vector_t<hb_user_data_array_t::hb_user_data_item_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 26.0k | { | 526 | 26.0k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 26.0k | unsigned int new_allocated; | 530 | 26.0k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 26.0k | else | 541 | 26.0k | { | 542 | 26.0k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 26.0k | new_allocated = allocated; | 546 | 52.0k | while (size > new_allocated) | 547 | 26.0k | new_allocated += (new_allocated >> 1) + 8; | 548 | 26.0k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 26.0k | bool overflows = | 553 | 26.0k | (int) in_error () || | 554 | 26.0k | (new_allocated < size) || | 555 | 26.0k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 26.0k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 26.0k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 26.0k | if (unlikely (new_allocated && !new_array)) | 566 | 382 | { | 567 | 382 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 382 | set_error (); | 571 | 382 | return false; | 572 | 382 | } | 573 | | | 574 | 25.6k | arrayZ = new_array; | 575 | 25.6k | allocated = new_allocated; | 576 | | | 577 | 25.6k | return true; | 578 | 26.0k | } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 41.9M | { | 526 | 41.9M | if (unlikely (in_error ())) | 527 | 50.8k | return false; | 528 | | | 529 | 41.8M | unsigned int new_allocated; | 530 | 41.8M | if (exact) | 531 | 24.3M | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 24.3M | size = hb_max (size, length); | 534 | 24.3M | if (size <= (unsigned) allocated && | 535 | 23.2M | size >= (unsigned) allocated >> 2) | 536 | 23.2M | return true; | 537 | | | 538 | 1.06M | new_allocated = size; | 539 | 1.06M | } | 540 | 17.5M | else | 541 | 17.5M | { | 542 | 17.5M | if (likely (size <= (unsigned) allocated)) | 543 | 13.3M | return true; | 544 | | | 545 | 4.25M | new_allocated = allocated; | 546 | 8.51M | while (size > new_allocated) | 547 | 4.25M | new_allocated += (new_allocated >> 1) + 8; | 548 | 4.25M | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 5.32M | bool overflows = | 553 | 5.32M | (int) in_error () || | 554 | 5.32M | (new_allocated < size) || | 555 | 5.32M | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 5.32M | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 5.32M | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 5.32M | if (unlikely (new_allocated && !new_array)) | 566 | 785 | { | 567 | 785 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 785 | set_error (); | 571 | 785 | return false; | 572 | 785 | } | 573 | | | 574 | 5.31M | arrayZ = new_array; | 575 | 5.31M | allocated = new_allocated; | 576 | | | 577 | 5.31M | return true; | 578 | 5.32M | } |
hb_vector_t<hb_serialize_context_t::object_t*, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 175k | { | 526 | 175k | if (unlikely (in_error ())) | 527 | 128 | return false; | 528 | | | 529 | 174k | unsigned int new_allocated; | 530 | 174k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 174k | else | 541 | 174k | { | 542 | 174k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 174k | new_allocated = allocated; | 546 | 349k | while (size > new_allocated) | 547 | 174k | new_allocated += (new_allocated >> 1) + 8; | 548 | 174k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 174k | bool overflows = | 553 | 174k | (int) in_error () || | 554 | 174k | (new_allocated < size) || | 555 | 174k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 174k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 174k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 174k | if (unlikely (new_allocated && !new_array)) | 566 | 282 | { | 567 | 282 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 282 | set_error (); | 571 | 282 | return false; | 572 | 282 | } | 573 | | | 574 | 174k | arrayZ = new_array; | 575 | 174k | allocated = new_allocated; | 576 | | | 577 | 174k | return true; | 578 | 174k | } |
hb_vector_t<hb_transform_t<float>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.01M | { | 526 | 1.01M | if (unlikely (in_error ())) | 527 | 185k | return false; | 528 | | | 529 | 830k | unsigned int new_allocated; | 530 | 830k | if (exact) | 531 | 3.13k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 3.13k | size = hb_max (size, length); | 534 | 3.13k | if (size <= (unsigned) allocated && | 535 | 3.13k | size >= (unsigned) allocated >> 2) | 536 | 1.63k | return true; | 537 | | | 538 | 1.50k | new_allocated = size; | 539 | 1.50k | } | 540 | 827k | else | 541 | 827k | { | 542 | 827k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 827k | new_allocated = allocated; | 546 | 1.65M | while (size > new_allocated) | 547 | 827k | new_allocated += (new_allocated >> 1) + 8; | 548 | 827k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 828k | bool overflows = | 553 | 828k | (int) in_error () || | 554 | 828k | (new_allocated < size) || | 555 | 828k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 828k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 828k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 828k | if (unlikely (new_allocated && !new_array)) | 566 | 33.1k | { | 567 | 33.1k | if (new_allocated <= (unsigned) allocated) | 568 | 54 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 33.1k | set_error (); | 571 | 33.1k | return false; | 572 | 33.1k | } | 573 | | | 574 | 795k | arrayZ = new_array; | 575 | 795k | allocated = new_allocated; | 576 | | | 577 | 795k | return true; | 578 | 828k | } |
hb_vector_t<hb_bounds_t<float>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.93M | { | 526 | 1.93M | if (unlikely (in_error ())) | 527 | 286k | return false; | 528 | | | 529 | 1.64M | unsigned int new_allocated; | 530 | 1.64M | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 1.64M | else | 541 | 1.64M | { | 542 | 1.64M | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 1.64M | new_allocated = allocated; | 546 | 3.29M | while (size > new_allocated) | 547 | 1.64M | new_allocated += (new_allocated >> 1) + 8; | 548 | 1.64M | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 1.64M | bool overflows = | 553 | 1.64M | (int) in_error () || | 554 | 1.64M | (new_allocated < size) || | 555 | 1.64M | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 1.64M | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 1.64M | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 1.64M | if (unlikely (new_allocated && !new_array)) | 566 | 65.8k | { | 567 | 65.8k | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 65.8k | set_error (); | 571 | 65.8k | return false; | 572 | 65.8k | } | 573 | | | 574 | 1.58M | arrayZ = new_array; | 575 | 1.58M | allocated = new_allocated; | 576 | | | 577 | 1.58M | return true; | 578 | 1.64M | } |
hb_vector_t<unsigned int, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 11.7M | { | 526 | 11.7M | if (unlikely (in_error ())) | 527 | 177k | return false; | 528 | | | 529 | 11.5M | unsigned int new_allocated; | 530 | 11.5M | if (exact) | 531 | 4.52M | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 4.52M | size = hb_max (size, length); | 534 | 4.52M | if (size <= (unsigned) allocated && | 535 | 4.22M | size >= (unsigned) allocated >> 2) | 536 | 4.22M | return true; | 537 | | | 538 | 300k | new_allocated = size; | 539 | 300k | } | 540 | 7.05M | else | 541 | 7.05M | { | 542 | 7.05M | if (likely (size <= (unsigned) allocated)) | 543 | 6.22M | return true; | 544 | | | 545 | 823k | new_allocated = allocated; | 546 | 2.55M | while (size > new_allocated) | 547 | 1.73M | new_allocated += (new_allocated >> 1) + 8; | 548 | 823k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 1.12M | bool overflows = | 553 | 1.12M | (int) in_error () || | 554 | 1.12M | (new_allocated < size) || | 555 | 1.12M | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 1.12M | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 1.12M | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 1.12M | if (unlikely (new_allocated && !new_array)) | 566 | 8.98k | { | 567 | 8.98k | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 8.98k | set_error (); | 571 | 8.98k | return false; | 572 | 8.98k | } | 573 | | | 574 | 1.11M | arrayZ = new_array; | 575 | 1.11M | allocated = new_allocated; | 576 | | | 577 | 1.11M | return true; | 578 | 1.12M | } |
Unexecuted instantiation: hb_vector_t<unsigned int, true>::alloc(unsigned int, bool) hb_vector_t<hb_free_pool_t<hb_serialize_context_t::object_t, 32u>::chunk_t*, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.19M | { | 526 | 1.19M | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 1.19M | unsigned int new_allocated; | 530 | 1.19M | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 1.19M | else | 541 | 1.19M | { | 542 | 1.19M | if (likely (size <= (unsigned) allocated)) | 543 | 1.09M | return true; | 544 | | | 545 | 100k | new_allocated = allocated; | 546 | 201k | while (size > new_allocated) | 547 | 100k | new_allocated += (new_allocated >> 1) + 8; | 548 | 100k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 100k | bool overflows = | 553 | 100k | (int) in_error () || | 554 | 100k | (new_allocated < size) || | 555 | 100k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 100k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 100k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 100k | if (unlikely (new_allocated && !new_array)) | 566 | 149 | { | 567 | 149 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 149 | set_error (); | 571 | 149 | return false; | 572 | 149 | } | 573 | | | 574 | 100k | arrayZ = new_array; | 575 | 100k | allocated = new_allocated; | 576 | | | 577 | 100k | return true; | 578 | 100k | } |
Unexecuted instantiation: hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<unsigned char, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<hb_vector_t<int, false> const*, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<hb_hashmap_t<unsigned int, Triple, false>, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, bool, hb_vector_t<hb_vector_t<int, false> const*, false> const&)::delta_size_t, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, OT::VarData const*, hb_inc_bimap_t const&, hb_inc_bimap_t const&)::delta_size_t, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<hb_inc_bimap_t, false>::alloc(unsigned int, bool) hb_vector_t<char, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 313M | { | 526 | 313M | if (unlikely (in_error ())) | 527 | 116M | return false; | 528 | | | 529 | 196M | unsigned int new_allocated; | 530 | 196M | if (exact) | 531 | 61.3k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 61.3k | size = hb_max (size, length); | 534 | 61.3k | if (size <= (unsigned) allocated && | 535 | 53.2k | size >= (unsigned) allocated >> 2) | 536 | 11 | return true; | 537 | | | 538 | 61.2k | new_allocated = size; | 539 | 61.2k | } | 540 | 196M | else | 541 | 196M | { | 542 | 196M | if (likely (size <= (unsigned) allocated)) | 543 | 193M | return true; | 544 | | | 545 | 2.92M | new_allocated = allocated; | 546 | 13.3M | while (size > new_allocated) | 547 | 10.4M | new_allocated += (new_allocated >> 1) + 8; | 548 | 2.92M | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 2.98M | bool overflows = | 553 | 2.98M | (int) in_error () || | 554 | 2.98M | (new_allocated < size) || | 555 | 2.98M | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 2.98M | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 2.98M | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 2.98M | if (unlikely (new_allocated && !new_array)) | 566 | 68.9k | { | 567 | 68.9k | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 68.9k | set_error (); | 571 | 68.9k | return false; | 572 | 68.9k | } | 573 | | | 574 | 2.91M | arrayZ = new_array; | 575 | 2.91M | allocated = new_allocated; | 576 | | | 577 | 2.91M | return true; | 578 | 2.98M | } |
Unexecuted instantiation: hb_vector_t<hb_vector_t<char, false>, false>::alloc(unsigned int, bool) hb_vector_t<bool, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 78.6k | { | 526 | 78.6k | if (unlikely (in_error ())) | 527 | 21.6k | return false; | 528 | | | 529 | 57.0k | unsigned int new_allocated; | 530 | 57.0k | if (exact) | 531 | 1.28k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 1.28k | size = hb_max (size, length); | 534 | 1.28k | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 1.28k | new_allocated = size; | 539 | 1.28k | } | 540 | 55.7k | else | 541 | 55.7k | { | 542 | 55.7k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 55.7k | new_allocated = allocated; | 546 | 454k | while (size > new_allocated) | 547 | 398k | new_allocated += (new_allocated >> 1) + 8; | 548 | 55.7k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 57.0k | bool overflows = | 553 | 57.0k | (int) in_error () || | 554 | 57.0k | (new_allocated < size) || | 555 | 57.0k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 57.0k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 57.0k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 57.0k | if (unlikely (new_allocated && !new_array)) | 566 | 434 | { | 567 | 434 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 434 | set_error (); | 571 | 434 | return false; | 572 | 434 | } | 573 | | | 574 | 56.5k | arrayZ = new_array; | 575 | 56.5k | allocated = new_allocated; | 576 | | | 577 | 56.5k | return true; | 578 | 57.0k | } |
hb_vector_t<float, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 6.22M | { | 526 | 6.22M | if (unlikely (in_error ())) | 527 | 68.5k | return false; | 528 | | | 529 | 6.16M | unsigned int new_allocated; | 530 | 6.16M | if (exact) | 531 | 11.1k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 11.1k | size = hb_max (size, length); | 534 | 11.1k | if (size <= (unsigned) allocated && | 535 | 9.17k | size >= (unsigned) allocated >> 2) | 536 | 9.14k | return true; | 537 | | | 538 | 1.97k | new_allocated = size; | 539 | 1.97k | } | 540 | 6.15M | else | 541 | 6.15M | { | 542 | 6.15M | if (likely (size <= (unsigned) allocated)) | 543 | 6.13M | return true; | 544 | | | 545 | 19.9k | new_allocated = allocated; | 546 | 42.4k | while (size > new_allocated) | 547 | 22.5k | new_allocated += (new_allocated >> 1) + 8; | 548 | 19.9k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 21.8k | bool overflows = | 553 | 21.8k | (int) in_error () || | 554 | 21.8k | (new_allocated < size) || | 555 | 21.8k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 21.8k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 21.8k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 21.8k | if (unlikely (new_allocated && !new_array)) | 566 | 106 | { | 567 | 106 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 106 | set_error (); | 571 | 106 | return false; | 572 | 106 | } | 573 | | | 574 | 21.7k | arrayZ = new_array; | 575 | 21.7k | allocated = new_allocated; | 576 | | | 577 | 21.7k | return true; | 578 | 21.8k | } |
Unexecuted instantiation: hb_vector_t<OT::tuple_delta_t, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::alloc(unsigned int, bool) hb_vector_t<int, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.09M | { | 526 | 1.09M | if (unlikely (in_error ())) | 527 | 207k | return false; | 528 | | | 529 | 890k | unsigned int new_allocated; | 530 | 890k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 890k | else | 541 | 890k | { | 542 | 890k | if (likely (size <= (unsigned) allocated)) | 543 | 340k | return true; | 544 | | | 545 | 549k | new_allocated = allocated; | 546 | 2.69M | while (size > new_allocated) | 547 | 2.14M | new_allocated += (new_allocated >> 1) + 8; | 548 | 549k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 549k | bool overflows = | 553 | 549k | (int) in_error () || | 554 | 549k | (new_allocated < size) || | 555 | 549k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 549k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 549k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 549k | if (unlikely (new_allocated && !new_array)) | 566 | 18.4k | { | 567 | 18.4k | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 18.4k | set_error (); | 571 | 18.4k | return false; | 572 | 18.4k | } | 573 | | | 574 | 531k | arrayZ = new_array; | 575 | 531k | allocated = new_allocated; | 576 | | | 577 | 531k | return true; | 578 | 549k | } |
Unexecuted instantiation: hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<hb_vector_t<int, false>, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<OT::delta_row_encoding_t, false>::alloc(unsigned int, bool) hb_vector_t<hb_set_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 7.01M | { | 526 | 7.01M | if (unlikely (in_error ())) | 527 | 89 | return false; | 528 | | | 529 | 7.01M | unsigned int new_allocated; | 530 | 7.01M | if (exact) | 531 | 3.40k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 3.40k | size = hb_max (size, length); | 534 | 3.40k | if (size <= (unsigned) allocated && | 535 | 21 | size >= (unsigned) allocated >> 2) | 536 | 21 | return true; | 537 | | | 538 | 3.38k | new_allocated = size; | 539 | 3.38k | } | 540 | 7.01M | else | 541 | 7.01M | { | 542 | 7.01M | if (likely (size <= (unsigned) allocated)) | 543 | 7.00M | return true; | 544 | | | 545 | 3.93k | new_allocated = allocated; | 546 | 7.87k | while (size > new_allocated) | 547 | 3.93k | new_allocated += (new_allocated >> 1) + 8; | 548 | 3.93k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 7.32k | bool overflows = | 553 | 7.32k | (int) in_error () || | 554 | 7.32k | (new_allocated < size) || | 555 | 7.32k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 7.32k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 7.32k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 7.32k | if (unlikely (new_allocated && !new_array)) | 566 | 74 | { | 567 | 74 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 74 | set_error (); | 571 | 74 | return false; | 572 | 74 | } | 573 | | | 574 | 7.25k | arrayZ = new_array; | 575 | 7.25k | allocated = new_allocated; | 576 | | | 577 | 7.25k | return true; | 578 | 7.32k | } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_range_t, true>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_event_t, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<OT::LayerRecord, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<OT::index_map_subset_plan_t, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<hb_set_t*, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<OT::DeltaSetIndexMap const*, false>::alloc(unsigned int, bool) hb_vector_t<contour_point_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 51.2M | { | 526 | 51.2M | if (unlikely (in_error ())) | 527 | 422k | return false; | 528 | | | 529 | 50.7M | unsigned int new_allocated; | 530 | 50.7M | if (exact) | 531 | 182k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 182k | size = hb_max (size, length); | 534 | 182k | if (size <= (unsigned) allocated && | 535 | 776 | size >= (unsigned) allocated >> 2) | 536 | 776 | return true; | 537 | | | 538 | 181k | new_allocated = size; | 539 | 181k | } | 540 | 50.6M | else | 541 | 50.6M | { | 542 | 50.6M | if (likely (size <= (unsigned) allocated)) | 543 | 50.2M | return true; | 544 | | | 545 | 303k | new_allocated = allocated; | 546 | 659k | while (size > new_allocated) | 547 | 356k | new_allocated += (new_allocated >> 1) + 8; | 548 | 303k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 484k | bool overflows = | 553 | 484k | (int) in_error () || | 554 | 484k | (new_allocated < size) || | 555 | 484k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 484k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 484k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 484k | if (unlikely (new_allocated && !new_array)) | 566 | 1.26k | { | 567 | 1.26k | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 1.26k | set_error (); | 571 | 1.26k | return false; | 572 | 1.26k | } | 573 | | | 574 | 483k | arrayZ = new_array; | 575 | 483k | allocated = new_allocated; | 576 | | | 577 | 483k | return true; | 578 | 484k | } |
Unexecuted instantiation: hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<hb_variation_t, false>::alloc(unsigned int, bool) hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 12.2k | { | 526 | 12.2k | if (unlikely (in_error ())) | 527 | 118 | return false; | 528 | | | 529 | 12.1k | unsigned int new_allocated; | 530 | 12.1k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 12.1k | else | 541 | 12.1k | { | 542 | 12.1k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 12.1k | new_allocated = allocated; | 546 | 24.3k | while (size > new_allocated) | 547 | 12.1k | new_allocated += (new_allocated >> 1) + 8; | 548 | 12.1k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 12.1k | bool overflows = | 553 | 12.1k | (int) in_error () || | 554 | 12.1k | (new_allocated < size) || | 555 | 12.1k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 12.1k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 12.1k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 12.1k | if (unlikely (new_allocated && !new_array)) | 566 | 42 | { | 567 | 42 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 42 | set_error (); | 571 | 42 | return false; | 572 | 42 | } | 573 | | | 574 | 12.1k | arrayZ = new_array; | 575 | 12.1k | allocated = new_allocated; | 576 | | | 577 | 12.1k | return true; | 578 | 12.1k | } |
Unexecuted instantiation: hb_vector_t<OT::AxisValueMap, false>::alloc(unsigned int, bool) hb_vector_t<hb_atomic_t<OT::SVG::svg_doc_cache_t*>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 989 | { | 526 | 989 | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 989 | unsigned int new_allocated; | 530 | 989 | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 989 | else | 541 | 989 | { | 542 | 989 | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 989 | new_allocated = allocated; | 546 | 2.72k | while (size > new_allocated) | 547 | 1.73k | new_allocated += (new_allocated >> 1) + 8; | 548 | 989 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 989 | bool overflows = | 553 | 989 | (int) in_error () || | 554 | 989 | (new_allocated < size) || | 555 | 989 | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 989 | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 989 | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 989 | if (unlikely (new_allocated && !new_array)) | 566 | 18 | { | 567 | 18 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 18 | set_error (); | 571 | 18 | return false; | 572 | 18 | } | 573 | | | 574 | 971 | arrayZ = new_array; | 575 | 971 | allocated = new_allocated; | 576 | | | 577 | 971 | return true; | 578 | 989 | } |
Unexecuted instantiation: hb_vector_t<OT::IndexSubtableRecord, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<OT::SVG::svg_defs_entry_t, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<OT::_hb_svg_cache_impl::glyph_entry_t, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<OT::_hb_svg_cache_impl::id_entry_t, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_op_t, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_vec_t, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<CFF::subr_remap_t, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<CFF::code_pair_t, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<hb_array_t<unsigned char const>, false>::alloc(unsigned int, bool) hb_vector_t<CFF::cff1_top_dict_val_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 22.4k | { | 526 | 22.4k | if (unlikely (in_error ())) | 527 | 2.36k | return false; | 528 | | | 529 | 20.0k | unsigned int new_allocated; | 530 | 20.0k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 20.0k | else | 541 | 20.0k | { | 542 | 20.0k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 20.0k | new_allocated = allocated; | 546 | 40.1k | while (size > new_allocated) | 547 | 20.0k | new_allocated += (new_allocated >> 1) + 8; | 548 | 20.0k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 20.0k | bool overflows = | 553 | 20.0k | (int) in_error () || | 554 | 20.0k | (new_allocated < size) || | 555 | 20.0k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 20.0k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 20.0k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 20.0k | if (unlikely (new_allocated && !new_array)) | 566 | 182 | { | 567 | 182 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 182 | set_error (); | 571 | 182 | return false; | 572 | 182 | } | 573 | | | 574 | 19.8k | arrayZ = new_array; | 575 | 19.8k | allocated = new_allocated; | 576 | | | 577 | 19.8k | return true; | 578 | 20.0k | } |
hb_vector_t<CFF::op_str_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 229k | { | 526 | 229k | if (unlikely (in_error ())) | 527 | 150k | return false; | 528 | | | 529 | 79.1k | unsigned int new_allocated; | 530 | 79.1k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 79.1k | else | 541 | 79.1k | { | 542 | 79.1k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 79.1k | new_allocated = allocated; | 546 | 158k | while (size > new_allocated) | 547 | 79.1k | new_allocated += (new_allocated >> 1) + 8; | 548 | 79.1k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 79.1k | bool overflows = | 553 | 79.1k | (int) in_error () || | 554 | 79.1k | (new_allocated < size) || | 555 | 79.1k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 79.1k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 79.1k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 79.1k | if (unlikely (new_allocated && !new_array)) | 566 | 504 | { | 567 | 504 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 504 | set_error (); | 571 | 504 | return false; | 572 | 504 | } | 573 | | | 574 | 78.6k | arrayZ = new_array; | 575 | 78.6k | allocated = new_allocated; | 576 | | | 577 | 78.6k | return true; | 578 | 79.1k | } |
hb_vector_t<CFF::dict_val_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 29.8k | { | 526 | 29.8k | if (unlikely (in_error ())) | 527 | 5.15k | return false; | 528 | | | 529 | 24.6k | unsigned int new_allocated; | 530 | 24.6k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 24.6k | else | 541 | 24.6k | { | 542 | 24.6k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 24.6k | new_allocated = allocated; | 546 | 49.3k | while (size > new_allocated) | 547 | 24.6k | new_allocated += (new_allocated >> 1) + 8; | 548 | 24.6k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 24.6k | bool overflows = | 553 | 24.6k | (int) in_error () || | 554 | 24.6k | (new_allocated < size) || | 555 | 24.6k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 24.6k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 24.6k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 24.6k | if (unlikely (new_allocated && !new_array)) | 566 | 239 | { | 567 | 239 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 239 | set_error (); | 571 | 239 | return false; | 572 | 239 | } | 573 | | | 574 | 24.4k | arrayZ = new_array; | 575 | 24.4k | allocated = new_allocated; | 576 | | | 577 | 24.4k | return true; | 578 | 24.6k | } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::dict_val_t>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 4.34k | { | 526 | 4.34k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 4.34k | unsigned int new_allocated; | 530 | 4.34k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 4.34k | else | 541 | 4.34k | { | 542 | 4.34k | if (likely (size <= (unsigned) allocated)) | 543 | 20 | return true; | 544 | | | 545 | 4.32k | new_allocated = allocated; | 546 | 9.72k | while (size > new_allocated) | 547 | 5.40k | new_allocated += (new_allocated >> 1) + 8; | 548 | 4.32k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 4.32k | bool overflows = | 553 | 4.32k | (int) in_error () || | 554 | 4.32k | (new_allocated < size) || | 555 | 4.32k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 4.32k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 4.32k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 4.32k | if (unlikely (new_allocated && !new_array)) | 566 | 8 | { | 567 | 8 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 8 | set_error (); | 571 | 8 | return false; | 572 | 8 | } | 573 | | | 574 | 4.31k | arrayZ = new_array; | 575 | 4.31k | allocated = new_allocated; | 576 | | | 577 | 4.31k | return true; | 578 | 4.32k | } |
hb_vector_t<CFF::cff1_font_dict_values_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 33.5k | { | 526 | 33.5k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 33.5k | unsigned int new_allocated; | 530 | 33.5k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 33.5k | else | 541 | 33.5k | { | 542 | 33.5k | if (likely (size <= (unsigned) allocated)) | 543 | 31.1k | return true; | 544 | | | 545 | 2.38k | new_allocated = allocated; | 546 | 4.77k | while (size > new_allocated) | 547 | 2.38k | new_allocated += (new_allocated >> 1) + 8; | 548 | 2.38k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 2.38k | bool overflows = | 553 | 2.38k | (int) in_error () || | 554 | 2.38k | (new_allocated < size) || | 555 | 2.38k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 2.38k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 2.38k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 2.38k | if (unlikely (new_allocated && !new_array)) | 566 | 14 | { | 567 | 14 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 14 | set_error (); | 571 | 14 | return false; | 572 | 14 | } | 573 | | | 574 | 2.37k | arrayZ = new_array; | 575 | 2.37k | allocated = new_allocated; | 576 | | | 577 | 2.37k | return true; | 578 | 2.38k | } |
hb_vector_t<OT::cff1::accelerator_t::gname_t, true>::alloc(unsigned int, bool) Line | Count | Source | 525 | 3.39k | { | 526 | 3.39k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 3.39k | unsigned int new_allocated; | 530 | 3.39k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 3.39k | else | 541 | 3.39k | { | 542 | 3.39k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 3.39k | new_allocated = allocated; | 546 | 6.78k | while (size > new_allocated) | 547 | 3.39k | new_allocated += (new_allocated >> 1) + 8; | 548 | 3.39k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 3.39k | bool overflows = | 553 | 3.39k | (int) in_error () || | 554 | 3.39k | (new_allocated < size) || | 555 | 3.39k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 3.39k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 3.39k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 3.39k | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 3.39k | arrayZ = new_array; | 575 | 3.39k | allocated = new_allocated; | 576 | | | 577 | 3.39k | return true; | 578 | 3.39k | } |
Unexecuted instantiation: hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::op_str_t>, false>::alloc(unsigned int, bool) hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::dict_val_t>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 4.79k | { | 526 | 4.79k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 4.79k | unsigned int new_allocated; | 530 | 4.79k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 4.79k | else | 541 | 4.79k | { | 542 | 4.79k | if (likely (size <= (unsigned) allocated)) | 543 | 2.13k | return true; | 544 | | | 545 | 2.66k | new_allocated = allocated; | 546 | 6.43k | while (size > new_allocated) | 547 | 3.77k | new_allocated += (new_allocated >> 1) + 8; | 548 | 2.66k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 2.66k | bool overflows = | 553 | 2.66k | (int) in_error () || | 554 | 2.66k | (new_allocated < size) || | 555 | 2.66k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 2.66k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 2.66k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 2.66k | if (unlikely (new_allocated && !new_array)) | 566 | 12 | { | 567 | 12 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 12 | set_error (); | 571 | 12 | return false; | 572 | 12 | } | 573 | | | 574 | 2.64k | arrayZ = new_array; | 575 | 2.64k | allocated = new_allocated; | 576 | | | 577 | 2.64k | return true; | 578 | 2.66k | } |
hb_vector_t<CFF::cff2_font_dict_values_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 20.5k | { | 526 | 20.5k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 20.5k | unsigned int new_allocated; | 530 | 20.5k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 20.5k | else | 541 | 20.5k | { | 542 | 20.5k | if (likely (size <= (unsigned) allocated)) | 543 | 15.2k | return true; | 544 | | | 545 | 5.34k | new_allocated = allocated; | 546 | 10.6k | while (size > new_allocated) | 547 | 5.34k | new_allocated += (new_allocated >> 1) + 8; | 548 | 5.34k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 5.34k | bool overflows = | 553 | 5.34k | (int) in_error () || | 554 | 5.34k | (new_allocated < size) || | 555 | 5.34k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 5.34k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 5.34k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 5.34k | if (unlikely (new_allocated && !new_array)) | 566 | 18 | { | 567 | 18 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 18 | set_error (); | 571 | 18 | return false; | 572 | 18 | } | 573 | | | 574 | 5.32k | arrayZ = new_array; | 575 | 5.32k | allocated = new_allocated; | 576 | | | 577 | 5.32k | return true; | 578 | 5.34k | } |
Unexecuted instantiation: hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::op_str_t>, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<hb_ot_name_record_ids_t, false>::alloc(unsigned int, bool) hb_vector_t<hb_ot_name_entry_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 280k | { | 526 | 280k | if (unlikely (in_error ())) | 527 | 6.20k | return false; | 528 | | | 529 | 274k | unsigned int new_allocated; | 530 | 274k | if (exact) | 531 | 36.3k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 36.3k | size = hb_max (size, length); | 534 | 36.3k | if (size <= (unsigned) allocated && | 535 | 35.5k | size >= (unsigned) allocated >> 2) | 536 | 35.5k | return true; | 537 | | | 538 | 790 | new_allocated = size; | 539 | 790 | } | 540 | 238k | else | 541 | 238k | { | 542 | 238k | if (likely (size <= (unsigned) allocated)) | 543 | 238k | return true; | 544 | | | 545 | 0 | new_allocated = allocated; | 546 | 0 | while (size > new_allocated) | 547 | 0 | new_allocated += (new_allocated >> 1) + 8; | 548 | 0 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 790 | bool overflows = | 553 | 790 | (int) in_error () || | 554 | 790 | (new_allocated < size) || | 555 | 790 | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 790 | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 790 | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 790 | if (unlikely (new_allocated && !new_array)) | 566 | 15 | { | 567 | 15 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 15 | set_error (); | 571 | 15 | return false; | 572 | 15 | } | 573 | | | 574 | 775 | arrayZ = new_array; | 575 | 775 | allocated = new_allocated; | 576 | | | 577 | 775 | return true; | 578 | 790 | } |
Unexecuted instantiation: hb_vector_t<hb_outline_point_t, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<CFF::number_t, false>::alloc(unsigned int, bool) hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.53M | { | 526 | 1.53M | if (unlikely (in_error ())) | 527 | 25.8k | return false; | 528 | | | 529 | 1.51M | unsigned int new_allocated; | 530 | 1.51M | if (exact) | 531 | 8.52k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 8.52k | size = hb_max (size, length); | 534 | 8.52k | if (size <= (unsigned) allocated && | 535 | 8.52k | size >= (unsigned) allocated >> 2) | 536 | 8.52k | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 1.50M | else | 541 | 1.50M | { | 542 | 1.50M | if (likely (size <= (unsigned) allocated)) | 543 | 1.33M | return true; | 544 | | | 545 | 170k | new_allocated = allocated; | 546 | 341k | while (size > new_allocated) | 547 | 170k | new_allocated += (new_allocated >> 1) + 8; | 548 | 170k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 170k | bool overflows = | 553 | 170k | (int) in_error () || | 554 | 170k | (new_allocated < size) || | 555 | 170k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 170k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 170k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 170k | if (unlikely (new_allocated && !new_array)) | 566 | 1.66k | { | 567 | 1.66k | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 1.66k | set_error (); | 571 | 1.66k | return false; | 572 | 1.66k | } | 573 | | | 574 | 168k | arrayZ = new_array; | 575 | 168k | allocated = new_allocated; | 576 | | | 577 | 168k | return true; | 578 | 170k | } |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.31M | { | 526 | 1.31M | if (unlikely (in_error ())) | 527 | 80.6k | return false; | 528 | | | 529 | 1.23M | unsigned int new_allocated; | 530 | 1.23M | if (exact) | 531 | 11.8k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 11.8k | size = hb_max (size, length); | 534 | 11.8k | if (size <= (unsigned) allocated && | 535 | 11.8k | size >= (unsigned) allocated >> 2) | 536 | 4.65k | return true; | 537 | | | 538 | 7.18k | new_allocated = size; | 539 | 7.18k | } | 540 | 1.22M | else | 541 | 1.22M | { | 542 | 1.22M | if (likely (size <= (unsigned) allocated)) | 543 | 1.18M | return true; | 544 | | | 545 | 43.0k | new_allocated = allocated; | 546 | 86.0k | while (size > new_allocated) | 547 | 43.0k | new_allocated += (new_allocated >> 1) + 8; | 548 | 43.0k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 50.1k | bool overflows = | 553 | 50.1k | (int) in_error () || | 554 | 50.1k | (new_allocated < size) || | 555 | 50.1k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 50.1k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 50.1k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 50.1k | if (unlikely (new_allocated && !new_array)) | 566 | 380 | { | 567 | 380 | if (new_allocated <= (unsigned) allocated) | 568 | 57 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 323 | set_error (); | 571 | 323 | return false; | 572 | 380 | } | 573 | | | 574 | 49.8k | arrayZ = new_array; | 575 | 49.8k | allocated = new_allocated; | 576 | | | 577 | 49.8k | return true; | 578 | 50.1k | } |
hb_vector_t<hb_ot_map_builder_t::stage_info_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 252k | { | 526 | 252k | if (unlikely (in_error ())) | 527 | 1.18k | return false; | 528 | | | 529 | 250k | unsigned int new_allocated; | 530 | 250k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 250k | else | 541 | 250k | { | 542 | 250k | if (likely (size <= (unsigned) allocated)) | 543 | 133k | return true; | 544 | | | 545 | 117k | new_allocated = allocated; | 546 | 235k | while (size > new_allocated) | 547 | 117k | new_allocated += (new_allocated >> 1) + 8; | 548 | 117k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 117k | bool overflows = | 553 | 117k | (int) in_error () || | 554 | 117k | (new_allocated < size) || | 555 | 117k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 117k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 117k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 117k | if (unlikely (new_allocated && !new_array)) | 566 | 1.02k | { | 567 | 1.02k | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 1.02k | set_error (); | 571 | 1.02k | return false; | 572 | 1.02k | } | 573 | | | 574 | 116k | arrayZ = new_array; | 575 | 116k | allocated = new_allocated; | 576 | | | 577 | 116k | return true; | 578 | 117k | } |
hb_vector_t<hb_ot_map_t::feature_map_t, true>::alloc(unsigned int, bool) Line | Count | Source | 525 | 64.8k | { | 526 | 64.8k | if (unlikely (in_error ())) | 527 | 73 | return false; | 528 | | | 529 | 64.7k | unsigned int new_allocated; | 530 | 64.7k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 64.7k | else | 541 | 64.7k | { | 542 | 64.7k | if (likely (size <= (unsigned) allocated)) | 543 | 11.2k | return true; | 544 | | | 545 | 53.4k | new_allocated = allocated; | 546 | 106k | while (size > new_allocated) | 547 | 53.4k | new_allocated += (new_allocated >> 1) + 8; | 548 | 53.4k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 53.4k | bool overflows = | 553 | 53.4k | (int) in_error () || | 554 | 53.4k | (new_allocated < size) || | 555 | 53.4k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 53.4k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 53.4k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 53.4k | if (unlikely (new_allocated && !new_array)) | 566 | 481 | { | 567 | 481 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 481 | set_error (); | 571 | 481 | return false; | 572 | 481 | } | 573 | | | 574 | 52.9k | arrayZ = new_array; | 575 | 52.9k | allocated = new_allocated; | 576 | | | 577 | 52.9k | return true; | 578 | 53.4k | } |
hb_vector_t<hb_ot_map_t::stage_map_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 249k | { | 526 | 249k | if (unlikely (in_error ())) | 527 | 1.05k | return false; | 528 | | | 529 | 248k | unsigned int new_allocated; | 530 | 248k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 248k | else | 541 | 248k | { | 542 | 248k | if (likely (size <= (unsigned) allocated)) | 543 | 132k | return true; | 544 | | | 545 | 116k | new_allocated = allocated; | 546 | 233k | while (size > new_allocated) | 547 | 116k | new_allocated += (new_allocated >> 1) + 8; | 548 | 116k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 116k | bool overflows = | 553 | 116k | (int) in_error () || | 554 | 116k | (new_allocated < size) || | 555 | 116k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 116k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 116k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 116k | if (unlikely (new_allocated && !new_array)) | 566 | 1.17k | { | 567 | 1.17k | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 1.17k | set_error (); | 571 | 1.17k | return false; | 572 | 1.17k | } | 573 | | | 574 | 115k | arrayZ = new_array; | 575 | 115k | allocated = new_allocated; | 576 | | | 577 | 115k | return true; | 578 | 116k | } |
hb_vector_t<unsigned char, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 279k | { | 526 | 279k | if (unlikely (in_error ())) | 527 | 248 | return false; | 528 | | | 529 | 279k | unsigned int new_allocated; | 530 | 279k | if (exact) | 531 | 76.3k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 76.3k | size = hb_max (size, length); | 534 | 76.3k | if (size <= (unsigned) allocated && | 535 | 62.8k | size >= (unsigned) allocated >> 2) | 536 | 62.8k | return true; | 537 | | | 538 | 13.5k | new_allocated = size; | 539 | 13.5k | } | 540 | 202k | else | 541 | 202k | { | 542 | 202k | if (likely (size <= (unsigned) allocated)) | 543 | 100k | return true; | 544 | | | 545 | 102k | new_allocated = allocated; | 546 | 1.39M | while (size > new_allocated) | 547 | 1.29M | new_allocated += (new_allocated >> 1) + 8; | 548 | 102k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 115k | bool overflows = | 553 | 115k | (int) in_error () || | 554 | 115k | (new_allocated < size) || | 555 | 115k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 115k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 115k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 115k | if (unlikely (new_allocated && !new_array)) | 566 | 238 | { | 567 | 238 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 238 | set_error (); | 571 | 238 | return false; | 572 | 238 | } | 573 | | | 574 | 115k | arrayZ = new_array; | 575 | 115k | allocated = new_allocated; | 576 | | | 577 | 115k | return true; | 578 | 115k | } |
Unexecuted instantiation: hb_vector_t<char, false>::alloc(unsigned int, bool) Unexecuted instantiation: hb_vector_t<hb_ot_name_entry_t, false>::alloc(unsigned int, bool) hb_vector_t<hb_raster_edge_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 548k | { | 526 | 548k | if (unlikely (in_error ())) | 527 | 543k | return false; | 528 | | | 529 | 5.55k | unsigned int new_allocated; | 530 | 5.55k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 5.55k | else | 541 | 5.55k | { | 542 | 5.55k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 5.55k | new_allocated = allocated; | 546 | 11.1k | while (size > new_allocated) | 547 | 5.55k | new_allocated += (new_allocated >> 1) + 8; | 548 | 5.55k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 5.55k | bool overflows = | 553 | 5.55k | (int) in_error () || | 554 | 5.55k | (new_allocated < size) || | 555 | 5.55k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 5.55k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 5.55k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 5.55k | if (unlikely (new_allocated && !new_array)) | 566 | 48 | { | 567 | 48 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 48 | set_error (); | 571 | 48 | return false; | 572 | 48 | } | 573 | | | 574 | 5.51k | arrayZ = new_array; | 575 | 5.51k | allocated = new_allocated; | 576 | | | 577 | 5.51k | return true; | 578 | 5.55k | } |
hb_vector_t<short, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 107k | { | 526 | 107k | if (unlikely (in_error ())) | 527 | 314 | return false; | 528 | | | 529 | 106k | unsigned int new_allocated; | 530 | 106k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 106k | else | 541 | 106k | { | 542 | 106k | if (likely (size <= (unsigned) allocated)) | 543 | 95.1k | return true; | 544 | | | 545 | 11.6k | new_allocated = allocated; | 546 | 36.6k | while (size > new_allocated) | 547 | 24.9k | new_allocated += (new_allocated >> 1) + 8; | 548 | 11.6k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 11.6k | bool overflows = | 553 | 11.6k | (int) in_error () || | 554 | 11.6k | (new_allocated < size) || | 555 | 11.6k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 11.6k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 11.6k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 11.6k | if (unlikely (new_allocated && !new_array)) | 566 | 175 | { | 567 | 175 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 175 | set_error (); | 571 | 175 | return false; | 572 | 175 | } | 573 | | | 574 | 11.5k | arrayZ = new_array; | 575 | 11.5k | allocated = new_allocated; | 576 | | | 577 | 11.5k | return true; | 578 | 11.6k | } |
hb_vector_t<hb_vector_t<unsigned int, false>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.59k | { | 526 | 1.59k | if (unlikely (in_error ())) | 527 | 24 | return false; | 528 | | | 529 | 1.57k | unsigned int new_allocated; | 530 | 1.57k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 1.57k | else | 541 | 1.57k | { | 542 | 1.57k | if (likely (size <= (unsigned) allocated)) | 543 | 414 | return true; | 544 | | | 545 | 1.16k | new_allocated = allocated; | 546 | 5.80k | while (size > new_allocated) | 547 | 4.64k | new_allocated += (new_allocated >> 1) + 8; | 548 | 1.16k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 1.16k | bool overflows = | 553 | 1.16k | (int) in_error () || | 554 | 1.16k | (new_allocated < size) || | 555 | 1.16k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 1.16k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 1.16k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 1.16k | if (unlikely (new_allocated && !new_array)) | 566 | 3 | { | 567 | 3 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 3 | set_error (); | 571 | 3 | return false; | 572 | 3 | } | 573 | | | 574 | 1.15k | arrayZ = new_array; | 575 | 1.15k | allocated = new_allocated; | 576 | | | 577 | 1.15k | return true; | 578 | 1.16k | } |
hb_vector_t<hb_raster_image_t*, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 2.57k | { | 526 | 2.57k | if (unlikely (in_error ())) | 527 | 831 | return false; | 528 | | | 529 | 1.74k | unsigned int new_allocated; | 530 | 1.74k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 1.74k | else | 541 | 1.74k | { | 542 | 1.74k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 1.74k | new_allocated = allocated; | 546 | 3.48k | while (size > new_allocated) | 547 | 1.74k | new_allocated += (new_allocated >> 1) + 8; | 548 | 1.74k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 1.74k | bool overflows = | 553 | 1.74k | (int) in_error () || | 554 | 1.74k | (new_allocated < size) || | 555 | 1.74k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 1.74k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 1.74k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 1.74k | if (unlikely (new_allocated && !new_array)) | 566 | 9 | { | 567 | 9 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 9 | set_error (); | 571 | 9 | return false; | 572 | 9 | } | 573 | | | 574 | 1.73k | arrayZ = new_array; | 575 | 1.73k | allocated = new_allocated; | 576 | | | 577 | 1.73k | return true; | 578 | 1.74k | } |
hb_vector_t<hb_raster_clip_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 2.39k | { | 526 | 2.39k | if (unlikely (in_error ())) | 527 | 1.21k | return false; | 528 | | | 529 | 1.17k | unsigned int new_allocated; | 530 | 1.17k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 1.17k | else | 541 | 1.17k | { | 542 | 1.17k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 1.17k | new_allocated = allocated; | 546 | 2.35k | while (size > new_allocated) | 547 | 1.17k | new_allocated += (new_allocated >> 1) + 8; | 548 | 1.17k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 1.17k | bool overflows = | 553 | 1.17k | (int) in_error () || | 554 | 1.17k | (new_allocated < size) || | 555 | 1.17k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 1.17k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 1.17k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 1.17k | if (unlikely (new_allocated && !new_array)) | 566 | 10 | { | 567 | 10 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 10 | set_error (); | 571 | 10 | return false; | 572 | 10 | } | 573 | | | 574 | 1.16k | arrayZ = new_array; | 575 | 1.16k | allocated = new_allocated; | 576 | | | 577 | 1.16k | return true; | 578 | 1.17k | } |
hb_vector_t<hb_color_stop_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 197k | { | 526 | 197k | if (unlikely (in_error ())) | 527 | 3.67k | return false; | 528 | | | 529 | 193k | unsigned int new_allocated; | 530 | 193k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 193k | else | 541 | 193k | { | 542 | 193k | if (likely (size <= (unsigned) allocated)) | 543 | 136k | return true; | 544 | | | 545 | 56.6k | new_allocated = allocated; | 546 | 172k | while (size > new_allocated) | 547 | 115k | new_allocated += (new_allocated >> 1) + 8; | 548 | 56.6k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 56.6k | bool overflows = | 553 | 56.6k | (int) in_error () || | 554 | 56.6k | (new_allocated < size) || | 555 | 56.6k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 56.6k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 56.6k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 56.6k | if (unlikely (new_allocated && !new_array)) | 566 | 909 | { | 567 | 909 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 909 | set_error (); | 571 | 909 | return false; | 572 | 909 | } | 573 | | | 574 | 55.7k | arrayZ = new_array; | 575 | 55.7k | allocated = new_allocated; | 576 | | | 577 | 55.7k | return true; | 578 | 56.6k | } |
hb_vector_t<hb_subset_serialize_object_t const*, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 153k | { | 526 | 153k | if (unlikely (in_error ())) | 527 | 149k | return false; | 528 | | | 529 | 3.75k | unsigned int new_allocated; | 530 | 3.75k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 3.75k | else | 541 | 3.75k | { | 542 | 3.75k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 3.75k | new_allocated = allocated; | 546 | 26.1k | while (size > new_allocated) | 547 | 22.3k | new_allocated += (new_allocated >> 1) + 8; | 548 | 3.75k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 3.75k | bool overflows = | 553 | 3.75k | (int) in_error () || | 554 | 3.75k | (new_allocated < size) || | 555 | 3.75k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 3.75k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 3.75k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 3.75k | if (unlikely (new_allocated && !new_array)) | 566 | 27 | { | 567 | 27 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 27 | set_error (); | 571 | 27 | return false; | 572 | 27 | } | 573 | | | 574 | 3.72k | arrayZ = new_array; | 575 | 3.72k | allocated = new_allocated; | 576 | | | 577 | 3.72k | return true; | 578 | 3.75k | } |
hb_vector_t<graph::graph_t::vertex_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 16.4M | { | 526 | 16.4M | if (unlikely (in_error ())) | 527 | 149k | return false; | 528 | | | 529 | 16.2M | unsigned int new_allocated; | 530 | 16.2M | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 16.2M | else | 541 | 16.2M | { | 542 | 16.2M | if (likely (size <= (unsigned) allocated)) | 543 | 16.2M | return true; | 544 | | | 545 | 9.11k | new_allocated = allocated; | 546 | 44.3k | while (size > new_allocated) | 547 | 35.2k | new_allocated += (new_allocated >> 1) + 8; | 548 | 9.11k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 9.11k | bool overflows = | 553 | 9.11k | (int) in_error () || | 554 | 9.11k | (new_allocated < size) || | 555 | 9.11k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 9.11k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 9.11k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 9.11k | if (unlikely (new_allocated && !new_array)) | 566 | 45 | { | 567 | 45 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 45 | set_error (); | 571 | 45 | return false; | 572 | 45 | } | 573 | | | 574 | 9.07k | arrayZ = new_array; | 575 | 9.07k | allocated = new_allocated; | 576 | | | 577 | 9.07k | return true; | 578 | 9.11k | } |
hb_vector_t<hb_pair_t<long, unsigned int>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 341M | { | 526 | 341M | if (unlikely (in_error ())) | 527 | 110 | return false; | 528 | | | 529 | 341M | unsigned int new_allocated; | 530 | 341M | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 341M | else | 541 | 341M | { | 542 | 341M | if (likely (size <= (unsigned) allocated)) | 543 | 341M | return true; | 544 | | | 545 | 88.3k | new_allocated = allocated; | 546 | 903k | while (size > new_allocated) | 547 | 815k | new_allocated += (new_allocated >> 1) + 8; | 548 | 88.3k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 88.3k | bool overflows = | 553 | 88.3k | (int) in_error () || | 554 | 88.3k | (new_allocated < size) || | 555 | 88.3k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 88.3k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 88.3k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 88.3k | if (unlikely (new_allocated && !new_array)) | 566 | 132 | { | 567 | 132 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 132 | set_error (); | 571 | 132 | return false; | 572 | 132 | } | 573 | | | 574 | 88.1k | arrayZ = new_array; | 575 | 88.1k | allocated = new_allocated; | 576 | | | 577 | 88.1k | return true; | 578 | 88.3k | } |
hb_vector_t<graph::overflow_record_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 18.4k | { | 526 | 18.4k | if (unlikely (in_error ())) | 527 | 55 | return false; | 528 | | | 529 | 18.3k | unsigned int new_allocated; | 530 | 18.3k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 18.3k | else | 541 | 18.3k | { | 542 | 18.3k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 18.3k | new_allocated = allocated; | 546 | 36.7k | while (size > new_allocated) | 547 | 18.3k | new_allocated += (new_allocated >> 1) + 8; | 548 | 18.3k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 18.3k | bool overflows = | 553 | 18.3k | (int) in_error () || | 554 | 18.3k | (new_allocated < size) || | 555 | 18.3k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 18.3k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 18.3k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 18.3k | if (unlikely (new_allocated && !new_array)) | 566 | 12 | { | 567 | 12 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 12 | set_error (); | 571 | 12 | return false; | 572 | 12 | } | 573 | | | 574 | 18.3k | arrayZ = new_array; | 575 | 18.3k | allocated = new_allocated; | 576 | | | 577 | 18.3k | return true; | 578 | 18.3k | } |
hb_vector_t<hb_pair_t<unsigned int, hb_vector_t<unsigned int, false> >, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 727 | { | 526 | 727 | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 727 | unsigned int new_allocated; | 530 | 727 | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 727 | else | 541 | 727 | { | 542 | 727 | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 727 | new_allocated = allocated; | 546 | 1.45k | while (size > new_allocated) | 547 | 727 | new_allocated += (new_allocated >> 1) + 8; | 548 | 727 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 727 | bool overflows = | 553 | 727 | (int) in_error () || | 554 | 727 | (new_allocated < size) || | 555 | 727 | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 727 | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 727 | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 727 | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 727 | arrayZ = new_array; | 575 | 727 | allocated = new_allocated; | 576 | | | 577 | 727 | return true; | 578 | 727 | } |
hb_vector_t<char*, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 5.98k | { | 526 | 5.98k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 5.98k | unsigned int new_allocated; | 530 | 5.98k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 5.98k | else | 541 | 5.98k | { | 542 | 5.98k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 5.98k | new_allocated = allocated; | 546 | 11.9k | while (size > new_allocated) | 547 | 5.98k | new_allocated += (new_allocated >> 1) + 8; | 548 | 5.98k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 5.98k | bool overflows = | 553 | 5.98k | (int) in_error () || | 554 | 5.98k | (new_allocated < size) || | 555 | 5.98k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 5.98k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 5.98k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 5.98k | if (unlikely (new_allocated && !new_array)) | 566 | 12 | { | 567 | 12 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 12 | set_error (); | 571 | 12 | return false; | 572 | 12 | } | 573 | | | 574 | 5.97k | arrayZ = new_array; | 575 | 5.97k | allocated = new_allocated; | 576 | | | 577 | 5.97k | return true; | 578 | 5.98k | } |
hb_vector_t<graph::MarkBasePosFormat1::class_info_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 314 | { | 526 | 314 | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 314 | unsigned int new_allocated; | 530 | 314 | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 314 | else | 541 | 314 | { | 542 | 314 | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 314 | new_allocated = allocated; | 546 | 3.84k | while (size > new_allocated) | 547 | 3.52k | new_allocated += (new_allocated >> 1) + 8; | 548 | 314 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 314 | bool overflows = | 553 | 314 | (int) in_error () || | 554 | 314 | (new_allocated < size) || | 555 | 314 | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 314 | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 314 | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 314 | if (unlikely (new_allocated && !new_array)) | 566 | 13 | { | 567 | 13 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 13 | set_error (); | 571 | 13 | return false; | 572 | 13 | } | 573 | | | 574 | 301 | arrayZ = new_array; | 575 | 301 | allocated = new_allocated; | 576 | | | 577 | 301 | return true; | 578 | 314 | } |
hb_vector_t<lookup_size_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 2.78k | { | 526 | 2.78k | if (unlikely (in_error ())) | 527 | 16 | return false; | 528 | | | 529 | 2.77k | unsigned int new_allocated; | 530 | 2.77k | if (exact) | 531 | 2.77k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 2.77k | size = hb_max (size, length); | 534 | 2.77k | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 2.77k | new_allocated = size; | 539 | 2.77k | } | 540 | 0 | else | 541 | 0 | { | 542 | 0 | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 0 | new_allocated = allocated; | 546 | 0 | while (size > new_allocated) | 547 | 0 | new_allocated += (new_allocated >> 1) + 8; | 548 | 0 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 2.77k | bool overflows = | 553 | 2.77k | (int) in_error () || | 554 | 2.77k | (new_allocated < size) || | 555 | 2.77k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 2.77k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 2.77k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 2.77k | if (unlikely (new_allocated && !new_array)) | 566 | 14 | { | 567 | 14 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 14 | set_error (); | 571 | 14 | return false; | 572 | 14 | } | 573 | | | 574 | 2.75k | arrayZ = new_array; | 575 | 2.75k | allocated = new_allocated; | 576 | | | 577 | 2.75k | return true; | 578 | 2.77k | } |
hb_vector_t<hb_gpu_curve_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 60.0k | { | 526 | 60.0k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 60.0k | unsigned int new_allocated; | 530 | 60.0k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 60.0k | else | 541 | 60.0k | { | 542 | 60.0k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 60.0k | new_allocated = allocated; | 546 | 120k | while (size > new_allocated) | 547 | 60.0k | new_allocated += (new_allocated >> 1) + 8; | 548 | 60.0k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 60.0k | bool overflows = | 553 | 60.0k | (int) in_error () || | 554 | 60.0k | (new_allocated < size) || | 555 | 60.0k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 60.0k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 60.0k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 60.0k | if (unlikely (new_allocated && !new_array)) | 566 | 670 | { | 567 | 670 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 670 | set_error (); | 571 | 670 | return false; | 572 | 670 | } | 573 | | | 574 | 59.3k | arrayZ = new_array; | 575 | 59.3k | allocated = new_allocated; | 576 | | | 577 | 59.3k | return true; | 578 | 60.0k | } |
hb_vector_t<hb_gpu_encode_curve_info_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 24.8k | { | 526 | 24.8k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 24.8k | unsigned int new_allocated; | 530 | 24.8k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 24.8k | else | 541 | 24.8k | { | 542 | 24.8k | if (likely (size <= (unsigned) allocated)) | 543 | 15.4k | return true; | 544 | | | 545 | 9.36k | new_allocated = allocated; | 546 | 55.9k | while (size > new_allocated) | 547 | 46.5k | new_allocated += (new_allocated >> 1) + 8; | 548 | 9.36k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 9.36k | bool overflows = | 553 | 9.36k | (int) in_error () || | 554 | 9.36k | (new_allocated < size) || | 555 | 9.36k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 9.36k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 9.36k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 9.36k | if (unlikely (new_allocated && !new_array)) | 566 | 169 | { | 567 | 169 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 169 | set_error (); | 571 | 169 | return false; | 572 | 169 | } | 573 | | | 574 | 9.19k | arrayZ = new_array; | 575 | 9.19k | allocated = new_allocated; | 576 | | | 577 | 9.19k | return true; | 578 | 9.36k | } |
hb_vector_t<hb_blob_t*, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 8.57k | { | 526 | 8.57k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 8.57k | unsigned int new_allocated; | 530 | 8.57k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 8.57k | else | 541 | 8.57k | { | 542 | 8.57k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 8.57k | new_allocated = allocated; | 546 | 17.1k | while (size > new_allocated) | 547 | 8.57k | new_allocated += (new_allocated >> 1) + 8; | 548 | 8.57k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 8.57k | bool overflows = | 553 | 8.57k | (int) in_error () || | 554 | 8.57k | (new_allocated < size) || | 555 | 8.57k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 8.57k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 8.57k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 8.57k | if (unlikely (new_allocated && !new_array)) | 566 | 195 | { | 567 | 195 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 195 | set_error (); | 571 | 195 | return false; | 572 | 195 | } | 573 | | | 574 | 8.37k | arrayZ = new_array; | 575 | 8.37k | allocated = new_allocated; | 576 | | | 577 | 8.37k | return true; | 578 | 8.57k | } |
hb_vector_t<unsigned int, true>::alloc(unsigned int, bool) Line | Count | Source | 525 | 120k | { | 526 | 120k | if (unlikely (in_error ())) | 527 | 325 | return false; | 528 | | | 529 | 120k | unsigned int new_allocated; | 530 | 120k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 120k | else | 541 | 120k | { | 542 | 120k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 120k | new_allocated = allocated; | 546 | 241k | while (size > new_allocated) | 547 | 120k | new_allocated += (new_allocated >> 1) + 8; | 548 | 120k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 120k | bool overflows = | 553 | 120k | (int) in_error () || | 554 | 120k | (new_allocated < size) || | 555 | 120k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 120k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 120k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 120k | if (unlikely (new_allocated && !new_array)) | 566 | 160 | { | 567 | 160 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 160 | set_error (); | 571 | 160 | return false; | 572 | 160 | } | 573 | | | 574 | 120k | arrayZ = new_array; | 575 | 120k | allocated = new_allocated; | 576 | | | 577 | 120k | return true; | 578 | 120k | } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::alloc(unsigned int, bool) Line | Count | Source | 525 | 94.9k | { | 526 | 94.9k | if (unlikely (in_error ())) | 527 | 643 | return false; | 528 | | | 529 | 94.3k | unsigned int new_allocated; | 530 | 94.3k | if (exact) | 531 | 7.86k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 7.86k | size = hb_max (size, length); | 534 | 7.86k | if (size <= (unsigned) allocated && | 535 | 7 | size >= (unsigned) allocated >> 2) | 536 | 7 | return true; | 537 | | | 538 | 7.85k | new_allocated = size; | 539 | 7.85k | } | 540 | 86.4k | else | 541 | 86.4k | { | 542 | 86.4k | if (likely (size <= (unsigned) allocated)) | 543 | 16.4k | return true; | 544 | | | 545 | 70.0k | new_allocated = allocated; | 546 | 198k | while (size > new_allocated) | 547 | 128k | new_allocated += (new_allocated >> 1) + 8; | 548 | 70.0k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 77.8k | bool overflows = | 553 | 77.8k | (int) in_error () || | 554 | 77.8k | (new_allocated < size) || | 555 | 77.8k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 77.8k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 77.8k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 77.8k | if (unlikely (new_allocated && !new_array)) | 566 | 208 | { | 567 | 208 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 208 | set_error (); | 571 | 208 | return false; | 572 | 208 | } | 573 | | | 574 | 77.6k | arrayZ = new_array; | 575 | 77.6k | allocated = new_allocated; | 576 | | | 577 | 77.6k | return true; | 578 | 77.8k | } |
hb_vector_t<hb_vector_t<int, false> const*, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 7.82k | { | 526 | 7.82k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 7.82k | unsigned int new_allocated; | 530 | 7.82k | if (exact) | 531 | 1.02k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 1.02k | size = hb_max (size, length); | 534 | 1.02k | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 1.02k | new_allocated = size; | 539 | 1.02k | } | 540 | 6.80k | else | 541 | 6.80k | { | 542 | 6.80k | if (likely (size <= (unsigned) allocated)) | 543 | 1.00k | return true; | 544 | | | 545 | 5.79k | new_allocated = allocated; | 546 | 11.7k | while (size > new_allocated) | 547 | 5.92k | new_allocated += (new_allocated >> 1) + 8; | 548 | 5.79k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 6.82k | bool overflows = | 553 | 6.82k | (int) in_error () || | 554 | 6.82k | (new_allocated < size) || | 555 | 6.82k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 6.82k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 6.82k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 6.82k | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 6.82k | arrayZ = new_array; | 575 | 6.82k | allocated = new_allocated; | 576 | | | 577 | 6.82k | return true; | 578 | 6.82k | } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.11k | { | 526 | 1.11k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 1.11k | unsigned int new_allocated; | 530 | 1.11k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 1.11k | else | 541 | 1.11k | { | 542 | 1.11k | if (likely (size <= (unsigned) allocated)) | 543 | 33 | return true; | 544 | | | 545 | 1.07k | new_allocated = allocated; | 546 | 4.21k | while (size > new_allocated) | 547 | 3.13k | new_allocated += (new_allocated >> 1) + 8; | 548 | 1.07k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 1.07k | bool overflows = | 553 | 1.07k | (int) in_error () || | 554 | 1.07k | (new_allocated < size) || | 555 | 1.07k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 1.07k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 1.07k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 1.07k | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 1.07k | arrayZ = new_array; | 575 | 1.07k | allocated = new_allocated; | 576 | | | 577 | 1.07k | return true; | 578 | 1.07k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, bool, hb_vector_t<hb_vector_t<int, false> const*, false> const&)::delta_size_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 2.28k | { | 526 | 2.28k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 2.28k | unsigned int new_allocated; | 530 | 2.28k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 2.28k | else | 541 | 2.28k | { | 542 | 2.28k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 2.28k | new_allocated = allocated; | 546 | 6.89k | while (size > new_allocated) | 547 | 4.60k | new_allocated += (new_allocated >> 1) + 8; | 548 | 2.28k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 2.28k | bool overflows = | 553 | 2.28k | (int) in_error () || | 554 | 2.28k | (new_allocated < size) || | 555 | 2.28k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 2.28k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 2.28k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 2.28k | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 2.28k | arrayZ = new_array; | 575 | 2.28k | allocated = new_allocated; | 576 | | | 577 | 2.28k | return true; | 578 | 2.28k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, OT::VarData const*, hb_inc_bimap_t const&, hb_inc_bimap_t const&)::delta_size_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 23.2k | { | 526 | 23.2k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 23.2k | unsigned int new_allocated; | 530 | 23.2k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 23.2k | else | 541 | 23.2k | { | 542 | 23.2k | if (likely (size <= (unsigned) allocated)) | 543 | 1.53k | return true; | 544 | | | 545 | 21.7k | new_allocated = allocated; | 546 | 47.1k | while (size > new_allocated) | 547 | 25.4k | new_allocated += (new_allocated >> 1) + 8; | 548 | 21.7k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 21.7k | bool overflows = | 553 | 21.7k | (int) in_error () || | 554 | 21.7k | (new_allocated < size) || | 555 | 21.7k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 21.7k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 21.7k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 21.7k | if (unlikely (new_allocated && !new_array)) | 566 | 14 | { | 567 | 14 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 14 | set_error (); | 571 | 14 | return false; | 572 | 14 | } | 573 | | | 574 | 21.7k | arrayZ = new_array; | 575 | 21.7k | allocated = new_allocated; | 576 | | | 577 | 21.7k | return true; | 578 | 21.7k | } |
hb_vector_t<hb_vector_t<char, false>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 106 | { | 526 | 106 | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 106 | unsigned int new_allocated; | 530 | 106 | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 106 | else | 541 | 106 | { | 542 | 106 | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 106 | new_allocated = allocated; | 546 | 212 | while (size > new_allocated) | 547 | 106 | new_allocated += (new_allocated >> 1) + 8; | 548 | 106 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 106 | bool overflows = | 553 | 106 | (int) in_error () || | 554 | 106 | (new_allocated < size) || | 555 | 106 | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 106 | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 106 | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 106 | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 106 | arrayZ = new_array; | 575 | 106 | allocated = new_allocated; | 576 | | | 577 | 106 | return true; | 578 | 106 | } |
hb_vector_t<OT::tuple_delta_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 36.2k | { | 526 | 36.2k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 36.2k | unsigned int new_allocated; | 530 | 36.2k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 36.2k | else | 541 | 36.2k | { | 542 | 36.2k | if (likely (size <= (unsigned) allocated)) | 543 | 16.9k | return true; | 544 | | | 545 | 19.2k | new_allocated = allocated; | 546 | 38.6k | while (size > new_allocated) | 547 | 19.4k | new_allocated += (new_allocated >> 1) + 8; | 548 | 19.2k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 19.2k | bool overflows = | 553 | 19.2k | (int) in_error () || | 554 | 19.2k | (new_allocated < size) || | 555 | 19.2k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 19.2k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 19.2k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 19.2k | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 19.2k | arrayZ = new_array; | 575 | 19.2k | allocated = new_allocated; | 576 | | | 577 | 19.2k | return true; | 578 | 19.2k | } |
hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 2.56k | { | 526 | 2.56k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 2.56k | unsigned int new_allocated; | 530 | 2.56k | if (exact) | 531 | 2.56k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 2.56k | size = hb_max (size, length); | 534 | 2.56k | if (size <= (unsigned) allocated && | 535 | 2.56k | size >= (unsigned) allocated >> 2) | 536 | 2.56k | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 2 | else | 541 | 2 | { | 542 | 2 | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 2 | new_allocated = allocated; | 546 | 4 | while (size > new_allocated) | 547 | 2 | new_allocated += (new_allocated >> 1) + 8; | 548 | 2 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 2 | bool overflows = | 553 | 2 | (int) in_error () || | 554 | 2 | (new_allocated < size) || | 555 | 2 | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 2 | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 2 | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 2 | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 2 | arrayZ = new_array; | 575 | 2 | allocated = new_allocated; | 576 | | | 577 | 2 | return true; | 578 | 2 | } |
hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.44k | { | 526 | 1.44k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 1.44k | unsigned int new_allocated; | 530 | 1.44k | if (exact) | 531 | 342 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 342 | size = hb_max (size, length); | 534 | 342 | if (size <= (unsigned) allocated && | 535 | 2 | size >= (unsigned) allocated >> 2) | 536 | 2 | return true; | 537 | | | 538 | 340 | new_allocated = size; | 539 | 340 | } | 540 | 1.10k | else | 541 | 1.10k | { | 542 | 1.10k | if (likely (size <= (unsigned) allocated)) | 543 | 11 | return true; | 544 | | | 545 | 1.09k | new_allocated = allocated; | 546 | 3.09k | while (size > new_allocated) | 547 | 2.00k | new_allocated += (new_allocated >> 1) + 8; | 548 | 1.09k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 1.43k | bool overflows = | 553 | 1.43k | (int) in_error () || | 554 | 1.43k | (new_allocated < size) || | 555 | 1.43k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 1.43k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 1.43k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 1.43k | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 1.43k | arrayZ = new_array; | 575 | 1.43k | allocated = new_allocated; | 576 | | | 577 | 1.43k | return true; | 578 | 1.43k | } |
hb_vector_t<hb_hashmap_t<unsigned int, Triple, false> const*, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.95k | { | 526 | 1.95k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 1.95k | unsigned int new_allocated; | 530 | 1.95k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 1.95k | else | 541 | 1.95k | { | 542 | 1.95k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 1.95k | new_allocated = allocated; | 546 | 4.35k | while (size > new_allocated) | 547 | 2.39k | new_allocated += (new_allocated >> 1) + 8; | 548 | 1.95k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 1.95k | bool overflows = | 553 | 1.95k | (int) in_error () || | 554 | 1.95k | (new_allocated < size) || | 555 | 1.95k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 1.95k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 1.95k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 1.95k | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 1.95k | arrayZ = new_array; | 575 | 1.95k | allocated = new_allocated; | 576 | | | 577 | 1.95k | return true; | 578 | 1.95k | } |
hb_vector_t<hb_vector_t<int, false>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 688 | { | 526 | 688 | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 688 | unsigned int new_allocated; | 530 | 688 | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 688 | else | 541 | 688 | { | 542 | 688 | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 688 | new_allocated = allocated; | 546 | 1.94k | while (size > new_allocated) | 547 | 1.25k | new_allocated += (new_allocated >> 1) + 8; | 548 | 688 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 688 | bool overflows = | 553 | 688 | (int) in_error () || | 554 | 688 | (new_allocated < size) || | 555 | 688 | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 688 | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 688 | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 688 | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 688 | arrayZ = new_array; | 575 | 688 | allocated = new_allocated; | 576 | | | 577 | 688 | return true; | 578 | 688 | } |
hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 8.53k | { | 526 | 8.53k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 8.53k | unsigned int new_allocated; | 530 | 8.53k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 8.53k | else | 541 | 8.53k | { | 542 | 8.53k | if (likely (size <= (unsigned) allocated)) | 543 | 7.65k | return true; | 544 | | | 545 | 885 | new_allocated = allocated; | 546 | 1.77k | while (size > new_allocated) | 547 | 885 | new_allocated += (new_allocated >> 1) + 8; | 548 | 885 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 885 | bool overflows = | 553 | 885 | (int) in_error () || | 554 | 885 | (new_allocated < size) || | 555 | 885 | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 885 | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 885 | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 885 | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 885 | arrayZ = new_array; | 575 | 885 | allocated = new_allocated; | 576 | | | 577 | 885 | return true; | 578 | 885 | } |
hb_vector_t<OT::delta_row_encoding_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 2.36k | { | 526 | 2.36k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 2.36k | unsigned int new_allocated; | 530 | 2.36k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 2.36k | else | 541 | 2.36k | { | 542 | 2.36k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 2.36k | new_allocated = allocated; | 546 | 4.79k | while (size > new_allocated) | 547 | 2.43k | new_allocated += (new_allocated >> 1) + 8; | 548 | 2.36k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 2.36k | bool overflows = | 553 | 2.36k | (int) in_error () || | 554 | 2.36k | (new_allocated < size) || | 555 | 2.36k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 2.36k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 2.36k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 2.36k | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 2.36k | arrayZ = new_array; | 575 | 2.36k | allocated = new_allocated; | 576 | | | 577 | 2.36k | return true; | 578 | 2.36k | } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 4.86k | { | 526 | 4.86k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 4.86k | unsigned int new_allocated; | 530 | 4.86k | if (exact) | 531 | 2.19k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 2.19k | size = hb_max (size, length); | 534 | 2.19k | if (size <= (unsigned) allocated && | 535 | 273 | size >= (unsigned) allocated >> 2) | 536 | 273 | return true; | 537 | | | 538 | 1.91k | new_allocated = size; | 539 | 1.91k | } | 540 | 2.67k | else | 541 | 2.67k | { | 542 | 2.67k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 2.67k | new_allocated = allocated; | 546 | 5.34k | while (size > new_allocated) | 547 | 2.67k | new_allocated += (new_allocated >> 1) + 8; | 548 | 2.67k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 4.58k | bool overflows = | 553 | 4.58k | (int) in_error () || | 554 | 4.58k | (new_allocated < size) || | 555 | 4.58k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 4.58k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 4.58k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 4.58k | if (unlikely (new_allocated && !new_array)) | 566 | 26 | { | 567 | 26 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 26 | set_error (); | 571 | 26 | return false; | 572 | 26 | } | 573 | | | 574 | 4.56k | arrayZ = new_array; | 575 | 4.56k | allocated = new_allocated; | 576 | | | 577 | 4.56k | return true; | 578 | 4.58k | } |
hb_vector_t<OT::LayerRecord, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 150k | { | 526 | 150k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 150k | unsigned int new_allocated; | 530 | 150k | if (exact) | 531 | 147k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 147k | size = hb_max (size, length); | 534 | 147k | if (size <= (unsigned) allocated && | 535 | 145k | size >= (unsigned) allocated >> 2) | 536 | 145k | return true; | 537 | | | 538 | 2.68k | new_allocated = size; | 539 | 2.68k | } | 540 | 2.87k | else | 541 | 2.87k | { | 542 | 2.87k | if (likely (size <= (unsigned) allocated)) | 543 | 485 | return true; | 544 | | | 545 | 2.38k | new_allocated = allocated; | 546 | 8.46k | while (size > new_allocated) | 547 | 6.07k | new_allocated += (new_allocated >> 1) + 8; | 548 | 2.38k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 5.06k | bool overflows = | 553 | 5.06k | (int) in_error () || | 554 | 5.06k | (new_allocated < size) || | 555 | 5.06k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 5.06k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 5.06k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 5.06k | if (unlikely (new_allocated && !new_array)) | 566 | 33 | { | 567 | 33 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 33 | set_error (); | 571 | 33 | return false; | 572 | 33 | } | 573 | | | 574 | 5.03k | arrayZ = new_array; | 575 | 5.03k | allocated = new_allocated; | 576 | | | 577 | 5.03k | return true; | 578 | 5.06k | } |
hb_vector_t<OT::index_map_subset_plan_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.58k | { | 526 | 1.58k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 1.58k | unsigned int new_allocated; | 530 | 1.58k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 1.58k | else | 541 | 1.58k | { | 542 | 1.58k | if (likely (size <= (unsigned) allocated)) | 543 | 3 | return true; | 544 | | | 545 | 1.58k | new_allocated = allocated; | 546 | 3.16k | while (size > new_allocated) | 547 | 1.58k | new_allocated += (new_allocated >> 1) + 8; | 548 | 1.58k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 1.58k | bool overflows = | 553 | 1.58k | (int) in_error () || | 554 | 1.58k | (new_allocated < size) || | 555 | 1.58k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 1.58k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 1.58k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 1.58k | if (unlikely (new_allocated && !new_array)) | 566 | 2 | { | 567 | 2 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 2 | set_error (); | 571 | 2 | return false; | 572 | 2 | } | 573 | | | 574 | 1.58k | arrayZ = new_array; | 575 | 1.58k | allocated = new_allocated; | 576 | | | 577 | 1.58k | return true; | 578 | 1.58k | } |
hb_vector_t<hb_set_t*, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.58k | { | 526 | 1.58k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 1.58k | unsigned int new_allocated; | 530 | 1.58k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 1.58k | else | 541 | 1.58k | { | 542 | 1.58k | if (likely (size <= (unsigned) allocated)) | 543 | 50 | return true; | 544 | | | 545 | 1.53k | new_allocated = allocated; | 546 | 3.07k | while (size > new_allocated) | 547 | 1.53k | new_allocated += (new_allocated >> 1) + 8; | 548 | 1.53k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 1.53k | bool overflows = | 553 | 1.53k | (int) in_error () || | 554 | 1.53k | (new_allocated < size) || | 555 | 1.53k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 1.53k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 1.53k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 1.53k | if (unlikely (new_allocated && !new_array)) | 566 | 4 | { | 567 | 4 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 4 | set_error (); | 571 | 4 | return false; | 572 | 4 | } | 573 | | | 574 | 1.53k | arrayZ = new_array; | 575 | 1.53k | allocated = new_allocated; | 576 | | | 577 | 1.53k | return true; | 578 | 1.53k | } |
hb_vector_t<hb_inc_bimap_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 4.01k | { | 526 | 4.01k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 4.01k | unsigned int new_allocated; | 530 | 4.01k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 4.01k | else | 541 | 4.01k | { | 542 | 4.01k | if (likely (size <= (unsigned) allocated)) | 543 | 50 | return true; | 544 | | | 545 | 3.96k | new_allocated = allocated; | 546 | 10.7k | while (size > new_allocated) | 547 | 6.78k | new_allocated += (new_allocated >> 1) + 8; | 548 | 3.96k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 3.96k | bool overflows = | 553 | 3.96k | (int) in_error () || | 554 | 3.96k | (new_allocated < size) || | 555 | 3.96k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 3.96k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 3.96k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 3.96k | if (unlikely (new_allocated && !new_array)) | 566 | 19 | { | 567 | 19 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 19 | set_error (); | 571 | 19 | return false; | 572 | 19 | } | 573 | | | 574 | 3.95k | arrayZ = new_array; | 575 | 3.95k | allocated = new_allocated; | 576 | | | 577 | 3.95k | return true; | 578 | 3.96k | } |
hb_vector_t<OT::DeltaSetIndexMap const*, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.59k | { | 526 | 1.59k | if (unlikely (in_error ())) | 527 | 7 | return false; | 528 | | | 529 | 1.58k | unsigned int new_allocated; | 530 | 1.58k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 1.58k | else | 541 | 1.58k | { | 542 | 1.58k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 1.58k | new_allocated = allocated; | 546 | 3.17k | while (size > new_allocated) | 547 | 1.58k | new_allocated += (new_allocated >> 1) + 8; | 548 | 1.58k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 1.58k | bool overflows = | 553 | 1.58k | (int) in_error () || | 554 | 1.58k | (new_allocated < size) || | 555 | 1.58k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 1.58k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 1.58k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 1.58k | if (unlikely (new_allocated && !new_array)) | 566 | 3 | { | 567 | 3 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 3 | set_error (); | 571 | 3 | return false; | 572 | 3 | } | 573 | | | 574 | 1.58k | arrayZ = new_array; | 575 | 1.58k | allocated = new_allocated; | 576 | | | 577 | 1.58k | return true; | 578 | 1.58k | } |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 3.16M | { | 526 | 3.16M | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 3.16M | unsigned int new_allocated; | 530 | 3.16M | if (exact) | 531 | 8.01k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 8.01k | size = hb_max (size, length); | 534 | 8.01k | if (size <= (unsigned) allocated && | 535 | 8 | size >= (unsigned) allocated >> 2) | 536 | 8 | return true; | 537 | | | 538 | 8.01k | new_allocated = size; | 539 | 8.01k | } | 540 | 3.15M | else | 541 | 3.15M | { | 542 | 3.15M | if (likely (size <= (unsigned) allocated)) | 543 | 3.15M | return true; | 544 | | | 545 | 0 | new_allocated = allocated; | 546 | 0 | while (size > new_allocated) | 547 | 0 | new_allocated += (new_allocated >> 1) + 8; | 548 | 0 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 8.01k | bool overflows = | 553 | 8.01k | (int) in_error () || | 554 | 8.01k | (new_allocated < size) || | 555 | 8.01k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 8.01k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 8.01k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 8.01k | if (unlikely (new_allocated && !new_array)) | 566 | 2 | { | 567 | 2 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 2 | set_error (); | 571 | 2 | return false; | 572 | 2 | } | 573 | | | 574 | 8.00k | arrayZ = new_array; | 575 | 8.00k | allocated = new_allocated; | 576 | | | 577 | 8.00k | return true; | 578 | 8.01k | } |
hb_vector_t<hb_variation_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.73k | { | 526 | 1.73k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 1.73k | unsigned int new_allocated; | 530 | 1.73k | if (exact) | 531 | 969 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 969 | size = hb_max (size, length); | 534 | 969 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 969 | new_allocated = size; | 539 | 969 | } | 540 | 763 | else | 541 | 763 | { | 542 | 763 | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 763 | new_allocated = allocated; | 546 | 1.52k | while (size > new_allocated) | 547 | 763 | new_allocated += (new_allocated >> 1) + 8; | 548 | 763 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 1.73k | bool overflows = | 553 | 1.73k | (int) in_error () || | 554 | 1.73k | (new_allocated < size) || | 555 | 1.73k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 1.73k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 1.73k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 1.73k | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 1.73k | arrayZ = new_array; | 575 | 1.73k | allocated = new_allocated; | 576 | | | 577 | 1.73k | return true; | 578 | 1.73k | } |
hb_vector_t<CFF::parsed_cs_op_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 4.28M | { | 526 | 4.28M | if (unlikely (in_error ())) | 527 | 4.23M | return false; | 528 | | | 529 | 49.6k | unsigned int new_allocated; | 530 | 49.6k | if (exact) | 531 | 41.3k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 41.3k | size = hb_max (size, length); | 534 | 41.3k | if (size <= (unsigned) allocated && | 535 | 25.3k | size >= (unsigned) allocated >> 2) | 536 | 20.9k | return true; | 537 | | | 538 | 20.4k | new_allocated = size; | 539 | 20.4k | } | 540 | 8.30k | else | 541 | 8.30k | { | 542 | 8.30k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 8.30k | new_allocated = allocated; | 546 | 16.6k | while (size > new_allocated) | 547 | 8.30k | new_allocated += (new_allocated >> 1) + 8; | 548 | 8.30k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 28.7k | bool overflows = | 553 | 28.7k | (int) in_error () || | 554 | 28.7k | (new_allocated < size) || | 555 | 28.7k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 28.7k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 28.7k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 28.7k | if (unlikely (new_allocated && !new_array)) | 566 | 77 | { | 567 | 77 | if (new_allocated <= (unsigned) allocated) | 568 | 4 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 73 | set_error (); | 571 | 73 | return false; | 572 | 77 | } | 573 | | | 574 | 28.6k | arrayZ = new_array; | 575 | 28.6k | allocated = new_allocated; | 576 | | | 577 | 28.6k | return true; | 578 | 28.7k | } |
hb_vector_t<CFF::parsed_cs_str_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 17.9k | { | 526 | 17.9k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 17.9k | unsigned int new_allocated; | 530 | 17.9k | if (exact) | 531 | 6.81k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 6.81k | size = hb_max (size, length); | 534 | 6.81k | if (size <= (unsigned) allocated && | 535 | 2.74k | size >= (unsigned) allocated >> 2) | 536 | 2.74k | return true; | 537 | | | 538 | 4.07k | new_allocated = size; | 539 | 4.07k | } | 540 | 11.1k | else | 541 | 11.1k | { | 542 | 11.1k | if (likely (size <= (unsigned) allocated)) | 543 | 9.22k | return true; | 544 | | | 545 | 1.95k | new_allocated = allocated; | 546 | 5.85k | while (size > new_allocated) | 547 | 3.90k | new_allocated += (new_allocated >> 1) + 8; | 548 | 1.95k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 6.02k | bool overflows = | 553 | 6.02k | (int) in_error () || | 554 | 6.02k | (new_allocated < size) || | 555 | 6.02k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 6.02k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 6.02k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 6.02k | if (unlikely (new_allocated && !new_array)) | 566 | 8 | { | 567 | 8 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 8 | set_error (); | 571 | 8 | return false; | 572 | 8 | } | 573 | | | 574 | 6.02k | arrayZ = new_array; | 575 | 6.02k | allocated = new_allocated; | 576 | | | 577 | 6.02k | return true; | 578 | 6.02k | } |
hb_vector_t<CFF::parsed_cs_str_vec_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 3.40k | { | 526 | 3.40k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 3.40k | unsigned int new_allocated; | 530 | 3.40k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 3.40k | else | 541 | 3.40k | { | 542 | 3.40k | if (likely (size <= (unsigned) allocated)) | 543 | 21 | return true; | 544 | | | 545 | 3.38k | new_allocated = allocated; | 546 | 6.97k | while (size > new_allocated) | 547 | 3.59k | new_allocated += (new_allocated >> 1) + 8; | 548 | 3.38k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 3.38k | bool overflows = | 553 | 3.38k | (int) in_error () || | 554 | 3.38k | (new_allocated < size) || | 555 | 3.38k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 3.38k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 3.38k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 3.38k | if (unlikely (new_allocated && !new_array)) | 566 | 1 | { | 567 | 1 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 1 | set_error (); | 571 | 1 | return false; | 572 | 1 | } | 573 | | | 574 | 3.38k | arrayZ = new_array; | 575 | 3.38k | allocated = new_allocated; | 576 | | | 577 | 3.38k | return true; | 578 | 3.38k | } |
hb_vector_t<CFF::subr_remap_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 3.40k | { | 526 | 3.40k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 3.40k | unsigned int new_allocated; | 530 | 3.40k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 3.40k | else | 541 | 3.40k | { | 542 | 3.40k | if (likely (size <= (unsigned) allocated)) | 543 | 21 | return true; | 544 | | | 545 | 3.38k | new_allocated = allocated; | 546 | 6.97k | while (size > new_allocated) | 547 | 3.59k | new_allocated += (new_allocated >> 1) + 8; | 548 | 3.38k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 3.38k | bool overflows = | 553 | 3.38k | (int) in_error () || | 554 | 3.38k | (new_allocated < size) || | 555 | 3.38k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 3.38k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 3.38k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 3.38k | if (unlikely (new_allocated && !new_array)) | 566 | 11 | { | 567 | 11 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 11 | set_error (); | 571 | 11 | return false; | 572 | 11 | } | 573 | | | 574 | 3.37k | arrayZ = new_array; | 575 | 3.37k | allocated = new_allocated; | 576 | | | 577 | 3.37k | return true; | 578 | 3.38k | } |
hb_vector_t<CFF::code_pair_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 2.81k | { | 526 | 2.81k | if (unlikely (in_error ())) | 527 | 1 | return false; | 528 | | | 529 | 2.80k | unsigned int new_allocated; | 530 | 2.80k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 2.80k | else | 541 | 2.80k | { | 542 | 2.80k | if (likely (size <= (unsigned) allocated)) | 543 | 337 | return true; | 544 | | | 545 | 2.47k | new_allocated = allocated; | 546 | 5.35k | while (size > new_allocated) | 547 | 2.88k | new_allocated += (new_allocated >> 1) + 8; | 548 | 2.47k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 2.47k | bool overflows = | 553 | 2.47k | (int) in_error () || | 554 | 2.47k | (new_allocated < size) || | 555 | 2.47k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 2.47k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 2.47k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 2.47k | if (unlikely (new_allocated && !new_array)) | 566 | 14 | { | 567 | 14 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 14 | set_error (); | 571 | 14 | return false; | 572 | 14 | } | 573 | | | 574 | 2.45k | arrayZ = new_array; | 575 | 2.45k | allocated = new_allocated; | 576 | | | 577 | 2.45k | return true; | 578 | 2.47k | } |
hb_vector_t<hb_array_t<unsigned char const>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.72k | { | 526 | 1.72k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 1.72k | unsigned int new_allocated; | 530 | 1.72k | if (exact) | 531 | 1.43k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 1.43k | size = hb_max (size, length); | 534 | 1.43k | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 1.43k | new_allocated = size; | 539 | 1.43k | } | 540 | 293 | else | 541 | 293 | { | 542 | 293 | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 293 | new_allocated = allocated; | 546 | 586 | while (size > new_allocated) | 547 | 293 | new_allocated += (new_allocated >> 1) + 8; | 548 | 293 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 1.72k | bool overflows = | 553 | 1.72k | (int) in_error () || | 554 | 1.72k | (new_allocated < size) || | 555 | 1.72k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 1.72k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 1.72k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 1.72k | if (unlikely (new_allocated && !new_array)) | 566 | 1 | { | 567 | 1 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 1 | set_error (); | 571 | 1 | return false; | 572 | 1 | } | 573 | | | 574 | 1.72k | arrayZ = new_array; | 575 | 1.72k | allocated = new_allocated; | 576 | | | 577 | 1.72k | return true; | 578 | 1.72k | } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::op_str_t>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 4.99k | { | 526 | 4.99k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 4.99k | unsigned int new_allocated; | 530 | 4.99k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 4.99k | else | 541 | 4.99k | { | 542 | 4.99k | if (likely (size <= (unsigned) allocated)) | 543 | 21 | return true; | 544 | | | 545 | 4.97k | new_allocated = allocated; | 546 | 10.5k | while (size > new_allocated) | 547 | 5.62k | new_allocated += (new_allocated >> 1) + 8; | 548 | 4.97k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 4.97k | bool overflows = | 553 | 4.97k | (int) in_error () || | 554 | 4.97k | (new_allocated < size) || | 555 | 4.97k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 4.97k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 4.97k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 4.97k | if (unlikely (new_allocated && !new_array)) | 566 | 22 | { | 567 | 22 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 22 | set_error (); | 571 | 22 | return false; | 572 | 22 | } | 573 | | | 574 | 4.95k | arrayZ = new_array; | 575 | 4.95k | allocated = new_allocated; | 576 | | | 577 | 4.95k | return true; | 578 | 4.97k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::op_str_t>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 2.49k | { | 526 | 2.49k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 2.49k | unsigned int new_allocated; | 530 | 2.49k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 2.49k | else | 541 | 2.49k | { | 542 | 2.49k | if (likely (size <= (unsigned) allocated)) | 543 | 22 | return true; | 544 | | | 545 | 2.47k | new_allocated = allocated; | 546 | 5.15k | while (size > new_allocated) | 547 | 2.67k | new_allocated += (new_allocated >> 1) + 8; | 548 | 2.47k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 2.47k | bool overflows = | 553 | 2.47k | (int) in_error () || | 554 | 2.47k | (new_allocated < size) || | 555 | 2.47k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 2.47k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 2.47k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 2.47k | if (unlikely (new_allocated && !new_array)) | 566 | 3 | { | 567 | 3 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 3 | set_error (); | 571 | 3 | return false; | 572 | 3 | } | 573 | | | 574 | 2.46k | arrayZ = new_array; | 575 | 2.46k | allocated = new_allocated; | 576 | | | 577 | 2.46k | return true; | 578 | 2.47k | } |
Unexecuted instantiation: hb_vector_t<hb_ot_name_record_ids_t, false>::alloc(unsigned int, bool) hb_vector_t<OT::IndexSubtableRecord, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 187 | { | 526 | 187 | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 187 | unsigned int new_allocated; | 530 | 187 | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 187 | else | 541 | 187 | { | 542 | 187 | if (likely (size <= (unsigned) allocated)) | 543 | 97 | return true; | 544 | | | 545 | 90 | new_allocated = allocated; | 546 | 180 | while (size > new_allocated) | 547 | 90 | new_allocated += (new_allocated >> 1) + 8; | 548 | 90 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 90 | bool overflows = | 553 | 90 | (int) in_error () || | 554 | 90 | (new_allocated < size) || | 555 | 90 | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 90 | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 90 | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 90 | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 90 | arrayZ = new_array; | 575 | 90 | allocated = new_allocated; | 576 | | | 577 | 90 | return true; | 578 | 90 | } |
hb_vector_t<hb_pair_t<unsigned int, OT::IndexSubtableRecord const*>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 91 | { | 526 | 91 | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 91 | unsigned int new_allocated; | 530 | 91 | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 91 | else | 541 | 91 | { | 542 | 91 | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 91 | new_allocated = allocated; | 546 | 182 | while (size > new_allocated) | 547 | 91 | new_allocated += (new_allocated >> 1) + 8; | 548 | 91 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 91 | bool overflows = | 553 | 91 | (int) in_error () || | 554 | 91 | (new_allocated < size) || | 555 | 91 | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 91 | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 91 | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 91 | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 91 | arrayZ = new_array; | 575 | 91 | allocated = new_allocated; | 576 | | | 577 | 91 | return true; | 578 | 91 | } |
hb_vector_t<OT::OffsetTo<OT::SBIXStrike, OT::NumType<true, unsigned int, 4u>, void, true>*, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 241 | { | 526 | 241 | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 241 | unsigned int new_allocated; | 530 | 241 | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 241 | else | 541 | 241 | { | 542 | 241 | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 241 | new_allocated = allocated; | 546 | 482 | while (size > new_allocated) | 547 | 241 | new_allocated += (new_allocated >> 1) + 8; | 548 | 241 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 241 | bool overflows = | 553 | 241 | (int) in_error () || | 554 | 241 | (new_allocated < size) || | 555 | 241 | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 241 | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 241 | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 241 | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 241 | arrayZ = new_array; | 575 | 241 | allocated = new_allocated; | 576 | | | 577 | 241 | return true; | 578 | 241 | } |
hb_vector_t<OT::AxisValueMap, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 177 | { | 526 | 177 | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 177 | unsigned int new_allocated; | 530 | 177 | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 177 | else | 541 | 177 | { | 542 | 177 | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 177 | new_allocated = allocated; | 546 | 354 | while (size > new_allocated) | 547 | 177 | new_allocated += (new_allocated >> 1) + 8; | 548 | 177 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 177 | bool overflows = | 553 | 177 | (int) in_error () || | 554 | 177 | (new_allocated < size) || | 555 | 177 | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 177 | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 177 | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 177 | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 177 | arrayZ = new_array; | 575 | 177 | allocated = new_allocated; | 576 | | | 577 | 177 | return true; | 578 | 177 | } |
hb_vector_t<CFF::number_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 171k | { | 526 | 171k | if (unlikely (in_error ())) | 527 | 27 | return false; | 528 | | | 529 | 171k | unsigned int new_allocated; | 530 | 171k | if (exact) | 531 | 107k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 107k | size = hb_max (size, length); | 534 | 107k | if (size <= (unsigned) allocated && | 535 | 46.0k | size >= (unsigned) allocated >> 2) | 536 | 46.0k | return true; | 537 | | | 538 | 61.0k | new_allocated = size; | 539 | 61.0k | } | 540 | 64.8k | else | 541 | 64.8k | { | 542 | 64.8k | if (likely (size <= (unsigned) allocated)) | 543 | 11.4k | return true; | 544 | | | 545 | 53.3k | new_allocated = allocated; | 546 | 106k | while (size > new_allocated) | 547 | 53.3k | new_allocated += (new_allocated >> 1) + 8; | 548 | 53.3k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 114k | bool overflows = | 553 | 114k | (int) in_error () || | 554 | 114k | (new_allocated < size) || | 555 | 114k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 114k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 114k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 114k | if (unlikely (new_allocated && !new_array)) | 566 | 18 | { | 567 | 18 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 18 | set_error (); | 571 | 18 | return false; | 572 | 18 | } | 573 | | | 574 | 114k | arrayZ = new_array; | 575 | 114k | allocated = new_allocated; | 576 | | | 577 | 114k | return true; | 578 | 114k | } |
hb_vector_t<hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 2 | { | 526 | 2 | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 2 | unsigned int new_allocated; | 530 | 2 | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 2 | else | 541 | 2 | { | 542 | 2 | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 2 | new_allocated = allocated; | 546 | 4 | while (size > new_allocated) | 547 | 2 | new_allocated += (new_allocated >> 1) + 8; | 548 | 2 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 2 | bool overflows = | 553 | 2 | (int) in_error () || | 554 | 2 | (new_allocated < size) || | 555 | 2 | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 2 | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 2 | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 2 | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 2 | arrayZ = new_array; | 575 | 2 | allocated = new_allocated; | 576 | | | 577 | 2 | return true; | 578 | 2 | } |
hb_vector_t<hb_vector_t<unsigned char, false>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 10.9k | { | 526 | 10.9k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 10.9k | unsigned int new_allocated; | 530 | 10.9k | if (exact) | 531 | 10.5k | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 10.5k | size = hb_max (size, length); | 534 | 10.5k | if (size <= (unsigned) allocated && | 535 | 5.80k | size >= (unsigned) allocated >> 2) | 536 | 5.80k | return true; | 537 | | | 538 | 4.79k | new_allocated = size; | 539 | 4.79k | } | 540 | 383 | else | 541 | 383 | { | 542 | 383 | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 383 | new_allocated = allocated; | 546 | 766 | while (size > new_allocated) | 547 | 383 | new_allocated += (new_allocated >> 1) + 8; | 548 | 383 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 5.17k | bool overflows = | 553 | 5.17k | (int) in_error () || | 554 | 5.17k | (new_allocated < size) || | 555 | 5.17k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 5.17k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 5.17k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 5.17k | if (unlikely (new_allocated && !new_array)) | 566 | 6 | { | 567 | 6 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 6 | set_error (); | 571 | 6 | return false; | 572 | 6 | } | 573 | | | 574 | 5.16k | arrayZ = new_array; | 575 | 5.16k | allocated = new_allocated; | 576 | | | 577 | 5.16k | return true; | 578 | 5.17k | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t const*, false>::alloc(unsigned int, bool) hb_vector_t<hb_vector_t<hb_vector_t<unsigned char, false>, false>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 2.41k | { | 526 | 2.41k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 2.41k | unsigned int new_allocated; | 530 | 2.41k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 2.41k | else | 541 | 2.41k | { | 542 | 2.41k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 2.41k | new_allocated = allocated; | 546 | 4.99k | while (size > new_allocated) | 547 | 2.58k | new_allocated += (new_allocated >> 1) + 8; | 548 | 2.41k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 2.41k | bool overflows = | 553 | 2.41k | (int) in_error () || | 554 | 2.41k | (new_allocated < size) || | 555 | 2.41k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 2.41k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 2.41k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 2.41k | if (unlikely (new_allocated && !new_array)) | 566 | 6 | { | 567 | 6 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 6 | set_error (); | 571 | 6 | return false; | 572 | 6 | } | 573 | | | 574 | 2.40k | arrayZ = new_array; | 575 | 2.40k | allocated = new_allocated; | 576 | | | 577 | 2.40k | return true; | 578 | 2.41k | } |
hb_vector_t<CFF::cff1_font_dict_values_mod_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.86k | { | 526 | 1.86k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 1.86k | unsigned int new_allocated; | 530 | 1.86k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 1.86k | else | 541 | 1.86k | { | 542 | 1.86k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 1.86k | new_allocated = allocated; | 546 | 3.72k | while (size > new_allocated) | 547 | 1.86k | new_allocated += (new_allocated >> 1) + 8; | 548 | 1.86k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 1.86k | bool overflows = | 553 | 1.86k | (int) in_error () || | 554 | 1.86k | (new_allocated < size) || | 555 | 1.86k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 1.86k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 1.86k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 1.86k | if (unlikely (new_allocated && !new_array)) | 566 | 3 | { | 567 | 3 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 3 | set_error (); | 571 | 3 | return false; | 572 | 3 | } | 573 | | | 574 | 1.85k | arrayZ = new_array; | 575 | 1.85k | allocated = new_allocated; | 576 | | | 577 | 1.85k | return true; | 578 | 1.86k | } |
hb_vector_t<CFF::cs_command_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 2.69k | { | 526 | 2.69k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 2.69k | unsigned int new_allocated; | 530 | 2.69k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 2.69k | else | 541 | 2.69k | { | 542 | 2.69k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 2.69k | new_allocated = allocated; | 546 | 6.01k | while (size > new_allocated) | 547 | 3.32k | new_allocated += (new_allocated >> 1) + 8; | 548 | 2.69k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 2.69k | bool overflows = | 553 | 2.69k | (int) in_error () || | 554 | 2.69k | (new_allocated < size) || | 555 | 2.69k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 2.69k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 2.69k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 2.69k | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 2.69k | arrayZ = new_array; | 575 | 2.69k | allocated = new_allocated; | 576 | | | 577 | 2.69k | return true; | 578 | 2.69k | } |
hb_vector_t<hb_vector_t<CFF::cs_command_t, false>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 766 | { | 526 | 766 | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 766 | unsigned int new_allocated; | 530 | 766 | if (exact) | 531 | 766 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 766 | size = hb_max (size, length); | 534 | 766 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 766 | new_allocated = size; | 539 | 766 | } | 540 | 0 | else | 541 | 0 | { | 542 | 0 | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 0 | new_allocated = allocated; | 546 | 0 | while (size > new_allocated) | 547 | 0 | new_allocated += (new_allocated >> 1) + 8; | 548 | 0 | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 766 | bool overflows = | 553 | 766 | (int) in_error () || | 554 | 766 | (new_allocated < size) || | 555 | 766 | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 766 | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 766 | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 766 | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 766 | arrayZ = new_array; | 575 | 766 | allocated = new_allocated; | 576 | | | 577 | 766 | return true; | 578 | 766 | } |
hb_vector_t<CFF::table_info_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.46k | { | 526 | 1.46k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 1.46k | unsigned int new_allocated; | 530 | 1.46k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 1.46k | else | 541 | 1.46k | { | 542 | 1.46k | if (likely (size <= (unsigned) allocated)) | 543 | 1 | return true; | 544 | | | 545 | 1.46k | new_allocated = allocated; | 546 | 2.92k | while (size > new_allocated) | 547 | 1.46k | new_allocated += (new_allocated >> 1) + 8; | 548 | 1.46k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 1.46k | bool overflows = | 553 | 1.46k | (int) in_error () || | 554 | 1.46k | (new_allocated < size) || | 555 | 1.46k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 1.46k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 1.46k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 1.46k | if (unlikely (new_allocated && !new_array)) | 566 | 3 | { | 567 | 3 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 3 | set_error (); | 571 | 3 | return false; | 572 | 3 | } | 573 | | | 574 | 1.45k | arrayZ = new_array; | 575 | 1.45k | allocated = new_allocated; | 576 | | | 577 | 1.45k | return true; | 578 | 1.46k | } |
Unexecuted instantiation: hb_vector_t<double, false>::alloc(unsigned int, bool) hb_vector_t<hb_pair_t<double, Triple>, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 1.20k | { | 526 | 1.20k | if (unlikely (in_error ())) | 527 | 0 | return false; | 528 | | | 529 | 1.20k | unsigned int new_allocated; | 530 | 1.20k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 1.20k | else | 541 | 1.20k | { | 542 | 1.20k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 1.20k | new_allocated = allocated; | 546 | 2.40k | while (size > new_allocated) | 547 | 1.20k | new_allocated += (new_allocated >> 1) + 8; | 548 | 1.20k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 1.20k | bool overflows = | 553 | 1.20k | (int) in_error () || | 554 | 1.20k | (new_allocated < size) || | 555 | 1.20k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 1.20k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 1.20k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 1.20k | if (unlikely (new_allocated && !new_array)) | 566 | 0 | { | 567 | 0 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 0 | set_error (); | 571 | 0 | return false; | 572 | 0 | } | 573 | | | 574 | 1.20k | arrayZ = new_array; | 575 | 1.20k | allocated = new_allocated; | 576 | | | 577 | 1.20k | return true; | 578 | 1.20k | } |
hb_vector_t<hb_vector_buf_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 210k | { | 526 | 210k | if (unlikely (in_error ())) | 527 | 181k | return false; | 528 | | | 529 | 29.4k | unsigned int new_allocated; | 530 | 29.4k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 29.4k | else | 541 | 29.4k | { | 542 | 29.4k | if (likely (size <= (unsigned) allocated)) | 543 | 651 | return true; | 544 | | | 545 | 28.7k | new_allocated = allocated; | 546 | 57.5k | while (size > new_allocated) | 547 | 28.7k | new_allocated += (new_allocated >> 1) + 8; | 548 | 28.7k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 28.7k | bool overflows = | 553 | 28.7k | (int) in_error () || | 554 | 28.7k | (new_allocated < size) || | 555 | 28.7k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 28.7k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 28.7k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 28.7k | if (unlikely (new_allocated && !new_array)) | 566 | 550 | { | 567 | 550 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 550 | set_error (); | 571 | 550 | return false; | 572 | 550 | } | 573 | | | 574 | 28.2k | arrayZ = new_array; | 575 | 28.2k | allocated = new_allocated; | 576 | | | 577 | 28.2k | return true; | 578 | 28.7k | } |
hb_vector_t<hb_pdf_obj_t, false>::alloc(unsigned int, bool) Line | Count | Source | 525 | 167k | { | 526 | 167k | if (unlikely (in_error ())) | 527 | 160k | return false; | 528 | | | 529 | 6.48k | unsigned int new_allocated; | 530 | 6.48k | if (exact) | 531 | 0 | { | 532 | | /* If exact was specified, we allow shrinking the storage. */ | 533 | 0 | size = hb_max (size, length); | 534 | 0 | if (size <= (unsigned) allocated && | 535 | 0 | size >= (unsigned) allocated >> 2) | 536 | 0 | return true; | 537 | | | 538 | 0 | new_allocated = size; | 539 | 0 | } | 540 | 6.48k | else | 541 | 6.48k | { | 542 | 6.48k | if (likely (size <= (unsigned) allocated)) | 543 | 0 | return true; | 544 | | | 545 | 6.48k | new_allocated = allocated; | 546 | 12.9k | while (size > new_allocated) | 547 | 6.48k | new_allocated += (new_allocated >> 1) + 8; | 548 | 6.48k | } | 549 | | | 550 | | /* Reallocate */ | 551 | | | 552 | 6.48k | bool overflows = | 553 | 6.48k | (int) in_error () || | 554 | 6.48k | (new_allocated < size) || | 555 | 6.48k | hb_unsigned_mul_overflows (new_allocated, sizeof (Type)); | 556 | | | 557 | 6.48k | if (unlikely (overflows)) | 558 | 0 | { | 559 | 0 | set_error (); | 560 | 0 | return false; | 561 | 0 | } | 562 | | | 563 | 6.48k | Type *new_array = realloc_vector (new_allocated, hb_prioritize); | 564 | | | 565 | 6.48k | if (unlikely (new_allocated && !new_array)) | 566 | 154 | { | 567 | 154 | if (new_allocated <= (unsigned) allocated) | 568 | 0 | return true; // shrinking failed; it's okay; happens in our fuzzer | 569 | | | 570 | 154 | set_error (); | 571 | 154 | return false; | 572 | 154 | } | 573 | | | 574 | 6.33k | arrayZ = new_array; | 575 | 6.33k | allocated = new_allocated; | 576 | | | 577 | 6.33k | return true; | 578 | 6.48k | } |
|
579 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
580 | | bool alloc_exact (unsigned int size) |
581 | 47.9M | { |
582 | 47.9M | return alloc (size, true); |
583 | 47.9M | } hb_vector_t<hb_bit_set_t::page_map_t, true>::alloc_exact(unsigned int) Line | Count | Source | 581 | 11.4M | { | 582 | 11.4M | return alloc (size, true); | 583 | 11.4M | } |
hb_vector_t<hb_bit_page_t, false>::alloc_exact(unsigned int) Line | Count | Source | 581 | 11.4M | { | 582 | 11.4M | return alloc (size, true); | 583 | 11.4M | } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_event_t, false>::alloc_exact(unsigned int) Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::alloc_exact(unsigned int) hb_vector_t<contour_point_t, false>::alloc_exact(unsigned int) Line | Count | Source | 581 | 182k | { | 582 | 182k | return alloc (size, true); | 583 | 182k | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t, false>::alloc_exact(unsigned int) Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_vec_t, false>::alloc_exact(unsigned int) hb_vector_t<hb_ot_name_entry_t, false>::alloc_exact(unsigned int) Line | Count | Source | 581 | 36.3k | { | 582 | 36.3k | return alloc (size, true); | 583 | 36.3k | } |
hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::alloc_exact(unsigned int) Line | Count | Source | 581 | 8.57k | { | 582 | 8.57k | return alloc (size, true); | 583 | 8.57k | } |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::alloc_exact(unsigned int) Line | Count | Source | 581 | 12.0k | { | 582 | 12.0k | return alloc (size, true); | 583 | 12.0k | } |
hb_vector_t<unsigned char, false>::alloc_exact(unsigned int) Line | Count | Source | 581 | 73.7k | { | 582 | 73.7k | return alloc (size, true); | 583 | 73.7k | } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::alloc_exact(unsigned int) Line | Count | Source | 581 | 24.3M | { | 582 | 24.3M | return alloc (size, true); | 583 | 24.3M | } |
hb_vector_t<unsigned int, false>::alloc_exact(unsigned int) Line | Count | Source | 581 | 37.6k | { | 582 | 37.6k | return alloc (size, true); | 583 | 37.6k | } |
hb_vector_t<hb_transform_t<float>, false>::alloc_exact(unsigned int) Line | Count | Source | 581 | 3.14k | { | 582 | 3.14k | return alloc (size, true); | 583 | 3.14k | } |
hb_vector_t<hb_vector_t<int, false> const*, false>::alloc_exact(unsigned int) Line | Count | Source | 581 | 1.02k | { | 582 | 1.02k | return alloc (size, true); | 583 | 1.02k | } |
hb_vector_t<OT::LayerRecord, false>::alloc_exact(unsigned int) Line | Count | Source | 581 | 147k | { | 582 | 147k | return alloc (size, true); | 583 | 147k | } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::alloc_exact(unsigned int) Line | Count | Source | 581 | 7.86k | { | 582 | 7.86k | return alloc (size, true); | 583 | 7.86k | } |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::alloc_exact(unsigned int) Line | Count | Source | 581 | 8.01k | { | 582 | 8.01k | return alloc (size, true); | 583 | 8.01k | } |
hb_vector_t<CFF::parsed_cs_op_t, false>::alloc_exact(unsigned int) Line | Count | Source | 581 | 41.4k | { | 582 | 41.4k | return alloc (size, true); | 583 | 41.4k | } |
hb_vector_t<char, false>::alloc_exact(unsigned int) Line | Count | Source | 581 | 62.5k | { | 582 | 62.5k | return alloc (size, true); | 583 | 62.5k | } |
hb_vector_t<OT::TupleVariationData<OT::NumType<true, unsigned short, 2u> >::tuple_variations_t, false>::alloc_exact(unsigned int) Line | Count | Source | 581 | 342 | { | 582 | 342 | return alloc (size, true); | 583 | 342 | } |
hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::alloc_exact(unsigned int) Line | Count | Source | 581 | 2.19k | { | 582 | 2.19k | return alloc (size, true); | 583 | 2.19k | } |
hb_vector_t<CFF::number_t, false>::alloc_exact(unsigned int) Line | Count | Source | 581 | 59.5k | { | 582 | 59.5k | return alloc (size, true); | 583 | 59.5k | } |
|
584 | | |
585 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
586 | | void clear () |
587 | 129M | { |
588 | 129M | shrink_vector (0); |
589 | 129M | } hb_vector_t<hb_bit_page_t, false>::clear() Line | Count | Source | 587 | 19.1M | { | 588 | 19.1M | shrink_vector (0); | 589 | 19.1M | } |
hb_vector_t<hb_bit_set_t::page_map_t, true>::clear() Line | Count | Source | 587 | 19.1M | { | 588 | 19.1M | shrink_vector (0); | 589 | 19.1M | } |
hb_vector_t<hb_transform_t<float>, false>::clear() Line | Count | Source | 587 | 1.07M | { | 588 | 1.07M | shrink_vector (0); | 589 | 1.07M | } |
hb_vector_t<hb_bounds_t<float>, false>::clear() Line | Count | Source | 587 | 1.90M | { | 588 | 1.90M | shrink_vector (0); | 589 | 1.90M | } |
Unexecuted instantiation: hb_vector_t<hb_outline_point_t, false>::clear() hb_vector_t<unsigned int, false>::clear() Line | Count | Source | 587 | 30.8M | { | 588 | 30.8M | shrink_vector (0); | 589 | 30.8M | } |
hb_vector_t<bool, false>::clear() Line | Count | Source | 587 | 30.2k | { | 588 | 30.2k | shrink_vector (0); | 589 | 30.2k | } |
hb_vector_t<float, false>::clear() Line | Count | Source | 587 | 29.8M | { | 588 | 29.8M | shrink_vector (0); | 589 | 29.8M | } |
hb_vector_t<hb_set_t, false>::clear() Line | Count | Source | 587 | 4.30M | { | 588 | 4.30M | shrink_vector (0); | 589 | 4.30M | } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::clear() hb_vector_t<contour_point_t, false>::clear() Line | Count | Source | 587 | 8.49M | { | 588 | 8.49M | shrink_vector (0); | 589 | 8.49M | } |
hb_vector_t<hb_atomic_t<OT::SVG::svg_doc_cache_t*>, false>::clear() Line | Count | Source | 587 | 18 | { | 588 | 18 | shrink_vector (0); | 589 | 18 | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t, false>::clear() Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_vec_t, false>::clear() hb_vector_t<hb_raster_edge_t, false>::clear() Line | Count | Source | 587 | 80.3k | { | 588 | 80.3k | shrink_vector (0); | 589 | 80.3k | } |
hb_vector_t<hb_raster_image_t*, false>::clear() Line | Count | Source | 587 | 2.03k | { | 588 | 2.03k | shrink_vector (0); | 589 | 2.03k | } |
hb_vector_t<graph::overflow_record_t, false>::clear() Line | Count | Source | 587 | 43.5k | { | 588 | 43.5k | shrink_vector (0); | 589 | 43.5k | } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::clear() Line | Count | Source | 587 | 1.26M | { | 588 | 1.26M | shrink_vector (0); | 589 | 1.26M | } |
hb_vector_t<hb_gpu_encode_curve_info_t, false>::clear() Line | Count | Source | 587 | 115 | { | 588 | 115 | shrink_vector (0); | 589 | 115 | } |
hb_vector_t<hb_gpu_curve_t, false>::clear() Line | Count | Source | 587 | 479k | { | 588 | 479k | shrink_vector (0); | 589 | 479k | } |
hb_vector_t<short, false>::clear() Line | Count | Source | 587 | 119k | { | 588 | 119k | shrink_vector (0); | 589 | 119k | } |
hb_vector_t<hb_blob_t*, false>::clear() Line | Count | Source | 587 | 119k | { | 588 | 119k | shrink_vector (0); | 589 | 119k | } |
hb_vector_t<OT::tuple_delta_t, false>::clear() Line | Count | Source | 587 | 15.9k | { | 588 | 15.9k | shrink_vector (0); | 589 | 15.9k | } |
hb_vector_t<unsigned char, false>::clear() Line | Count | Source | 587 | 12.7k | { | 588 | 12.7k | shrink_vector (0); | 589 | 12.7k | } |
hb_vector_t<hb_vector_t<int, false> const*, false>::clear() Line | Count | Source | 587 | 5.00k | { | 588 | 5.00k | shrink_vector (0); | 589 | 5.00k | } |
hb_vector_t<unsigned int, true>::clear() Line | Count | Source | 587 | 1.98k | { | 588 | 1.98k | shrink_vector (0); | 589 | 1.98k | } |
hb_vector_t<CFF::number_t, false>::clear() Line | Count | Source | 587 | 11.2M | { | 588 | 11.2M | shrink_vector (0); | 589 | 11.2M | } |
hb_vector_t<CFF::code_pair_t, false>::clear() Line | Count | Source | 587 | 2.14k | { | 588 | 2.14k | shrink_vector (0); | 589 | 2.14k | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_op_t, false>::clear() hb_vector_t<CFF::cs_command_t, false>::clear() Line | Count | Source | 587 | 358 | { | 588 | 358 | shrink_vector (0); | 589 | 358 | } |
Unexecuted instantiation: hb_vector_t<int, false>::clear() hb_vector_t<hb_pair_t<double, Triple>, false>::clear() Line | Count | Source | 587 | 11.3k | { | 588 | 11.3k | shrink_vector (0); | 589 | 11.3k | } |
hb_vector_t<char, false>::clear() Line | Count | Source | 587 | 1.56M | { | 588 | 1.56M | shrink_vector (0); | 589 | 1.56M | } |
hb_vector_t<hb_vector_buf_t, false>::clear() Line | Count | Source | 587 | 13.5k | { | 588 | 13.5k | shrink_vector (0); | 589 | 13.5k | } |
hb_vector_t<hb_color_stop_t, false>::clear() Line | Count | Source | 587 | 13.5k | { | 588 | 13.5k | shrink_vector (0); | 589 | 13.5k | } |
|
590 | | |
591 | | template <typename allocator_t> |
592 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
593 | | bool allocate_from_pool (allocator_t *allocator, unsigned size, unsigned int initialize = true) |
594 | 9.70k | { |
595 | 9.70k | if (allocator) |
596 | 642 | { |
597 | 642 | assert (!length && !allocated); |
598 | 642 | arrayZ = (Type *) allocator->alloc (size * sizeof (Type), alignof (Type)); |
599 | 642 | if (unlikely (!arrayZ)) |
600 | 0 | { |
601 | 0 | set_error (); |
602 | 0 | return false; |
603 | 0 | } |
604 | 642 | if (initialize) |
605 | 258 | grow_vector (size, hb_prioritize); |
606 | 384 | else |
607 | 384 | length = size; |
608 | 642 | return true; |
609 | 642 | } |
610 | 9.06k | return resize_full ((int) size, initialize, true); |
611 | 9.70k | } Unexecuted instantiation: bool hb_vector_t<bool, false>::allocate_from_pool<hb_alloc_pool_t>(hb_alloc_pool_t*, unsigned int, unsigned int) Unexecuted instantiation: bool hb_vector_t<float, false>::allocate_from_pool<hb_alloc_pool_t>(hb_alloc_pool_t*, unsigned int, unsigned int) Unexecuted instantiation: bool hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::allocate_from_pool<hb_alloc_pool_t>(hb_alloc_pool_t*, unsigned int, unsigned int) Unexecuted instantiation: bool hb_vector_t<unsigned char, false>::allocate_from_pool<hb_alloc_pool_t>(hb_alloc_pool_t*, unsigned int, unsigned int) bool hb_vector_t<bool, false>::allocate_from_pool<hb_alloc_pool_t>(hb_alloc_pool_t*, unsigned int, unsigned int) Line | Count | Source | 594 | 1.39k | { | 595 | 1.39k | if (allocator) | 596 | 113 | { | 597 | 113 | assert (!length && !allocated); | 598 | 113 | arrayZ = (Type *) allocator->alloc (size * sizeof (Type), alignof (Type)); | 599 | 113 | if (unlikely (!arrayZ)) | 600 | 0 | { | 601 | 0 | set_error (); | 602 | 0 | return false; | 603 | 0 | } | 604 | 113 | if (initialize) | 605 | 113 | grow_vector (size, hb_prioritize); | 606 | 0 | else | 607 | 0 | length = size; | 608 | 113 | return true; | 609 | 113 | } | 610 | 1.28k | return resize_full ((int) size, initialize, true); | 611 | 1.39k | } |
bool hb_vector_t<float, false>::allocate_from_pool<hb_alloc_pool_t>(hb_alloc_pool_t*, unsigned int, unsigned int) Line | Count | Source | 594 | 2.79k | { | 595 | 2.79k | if (allocator) | 596 | 226 | { | 597 | 226 | assert (!length && !allocated); | 598 | 226 | arrayZ = (Type *) allocator->alloc (size * sizeof (Type), alignof (Type)); | 599 | 226 | if (unlikely (!arrayZ)) | 600 | 0 | { | 601 | 0 | set_error (); | 602 | 0 | return false; | 603 | 0 | } | 604 | 226 | if (initialize) | 605 | 0 | grow_vector (size, hb_prioritize); | 606 | 226 | else | 607 | 226 | length = size; | 608 | 226 | return true; | 609 | 226 | } | 610 | 2.56k | return resize_full ((int) size, initialize, true); | 611 | 2.79k | } |
bool hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::allocate_from_pool<hb_alloc_pool_t>(hb_alloc_pool_t*, unsigned int, unsigned int) Line | Count | Source | 594 | 2.71k | { | 595 | 2.71k | if (allocator) | 596 | 145 | { | 597 | 145 | assert (!length && !allocated); | 598 | 145 | arrayZ = (Type *) allocator->alloc (size * sizeof (Type), alignof (Type)); | 599 | 145 | if (unlikely (!arrayZ)) | 600 | 0 | { | 601 | 0 | set_error (); | 602 | 0 | return false; | 603 | 0 | } | 604 | 145 | if (initialize) | 605 | 145 | grow_vector (size, hb_prioritize); | 606 | 0 | else | 607 | 0 | length = size; | 608 | 145 | return true; | 609 | 145 | } | 610 | 2.56k | return resize_full ((int) size, initialize, true); | 611 | 2.71k | } |
bool hb_vector_t<unsigned char, false>::allocate_from_pool<hb_alloc_pool_t>(hb_alloc_pool_t*, unsigned int, unsigned int) Line | Count | Source | 594 | 2.81k | { | 595 | 2.81k | if (allocator) | 596 | 158 | { | 597 | 158 | assert (!length && !allocated); | 598 | 158 | arrayZ = (Type *) allocator->alloc (size * sizeof (Type), alignof (Type)); | 599 | 158 | if (unlikely (!arrayZ)) | 600 | 0 | { | 601 | 0 | set_error (); | 602 | 0 | return false; | 603 | 0 | } | 604 | 158 | if (initialize) | 605 | 0 | grow_vector (size, hb_prioritize); | 606 | 158 | else | 607 | 158 | length = size; | 608 | 158 | return true; | 609 | 158 | } | 610 | 2.65k | return resize_full ((int) size, initialize, true); | 611 | 2.81k | } |
|
612 | | |
613 | | template <typename allocator_t> |
614 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
615 | | bool duplicate_vector_from_pool (allocator_t *allocator, const hb_vector_t &other) |
616 | 8.98k | { |
617 | 8.98k | if (unlikely (!allocate_from_pool (allocator, other.length, false))) |
618 | 0 | return false; |
619 | 8.98k | length = 0; |
620 | 8.98k | copy_array (other.as_array ()); |
621 | 8.98k | return true; |
622 | 8.98k | } bool hb_vector_t<bool, false>::duplicate_vector_from_pool<hb_alloc_pool_t>(hb_alloc_pool_t*, hb_vector_t<bool, false> const&) Line | Count | Source | 616 | 1.28k | { | 617 | 1.28k | if (unlikely (!allocate_from_pool (allocator, other.length, false))) | 618 | 0 | return false; | 619 | 1.28k | length = 0; | 620 | 1.28k | copy_array (other.as_array ()); | 621 | 1.28k | return true; | 622 | 1.28k | } |
bool hb_vector_t<float, false>::duplicate_vector_from_pool<hb_alloc_pool_t>(hb_alloc_pool_t*, hb_vector_t<float, false> const&) Line | Count | Source | 616 | 2.56k | { | 617 | 2.56k | if (unlikely (!allocate_from_pool (allocator, other.length, false))) | 618 | 0 | return false; | 619 | 2.56k | length = 0; | 620 | 2.56k | copy_array (other.as_array ()); | 621 | 2.56k | return true; | 622 | 2.56k | } |
bool hb_vector_t<unsigned char, false>::duplicate_vector_from_pool<hb_alloc_pool_t>(hb_alloc_pool_t*, hb_vector_t<unsigned char, false> const&) Line | Count | Source | 616 | 2.56k | { | 617 | 2.56k | if (unlikely (!allocate_from_pool (allocator, other.length, false))) | 618 | 0 | return false; | 619 | 2.56k | length = 0; | 620 | 2.56k | copy_array (other.as_array ()); | 621 | 2.56k | return true; | 622 | 2.56k | } |
bool hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::duplicate_vector_from_pool<hb_alloc_pool_t>(hb_alloc_pool_t*, hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const&) Line | Count | Source | 616 | 2.56k | { | 617 | 2.56k | if (unlikely (!allocate_from_pool (allocator, other.length, false))) | 618 | 0 | return false; | 619 | 2.56k | length = 0; | 620 | 2.56k | copy_array (other.as_array ()); | 621 | 2.56k | return true; | 622 | 2.56k | } |
|
623 | | |
624 | | template <typename allocator_t> |
625 | | void shrink_back_to_pool (allocator_t *allocator, int size) |
626 | 244 | { |
627 | 244 | unsigned orig_length = length; |
628 | | |
629 | 244 | shrink (size, false); |
630 | | |
631 | 244 | if (allocator && !is_owned ()) |
632 | 158 | allocator->discard (arrayZ + length, (orig_length - length) * sizeof (Type)); |
633 | 244 | } |
634 | | |
635 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
636 | | bool resize_full (int size_, bool initialize, bool exact) |
637 | 869M | { |
638 | 869M | if (unlikely (size_ < 0)) |
639 | 2.49k | return false; |
640 | 869M | unsigned int size = (unsigned int) size_; |
641 | 869M | if (!alloc (size, exact)) |
642 | 103M | return false; |
643 | | |
644 | 766M | if (size > length) |
645 | 352M | { |
646 | 352M | if (initialize) |
647 | 142M | grow_vector (size, hb_prioritize); |
648 | 352M | } |
649 | 413M | else if (size < length) |
650 | 358M | { |
651 | 358M | if (initialize) |
652 | 358M | shrink_vector (size); |
653 | 358M | } |
654 | | |
655 | 766M | length = size; |
656 | 766M | return true; |
657 | 869M | } hb_vector_t<hb_set_digest_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 1.47k | { | 638 | 1.47k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 1.47k | unsigned int size = (unsigned int) size_; | 641 | 1.47k | if (!alloc (size, exact)) | 642 | 176 | return false; | 643 | | | 644 | 1.30k | if (size > length) | 645 | 1.30k | { | 646 | 1.30k | if (initialize) | 647 | 1.30k | grow_vector (size, hb_prioritize); | 648 | 1.30k | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 1.30k | length = size; | 656 | 1.30k | return true; | 657 | 1.47k | } |
hb_vector_t<hb_vector_t<hb_aat_map_t::range_flags_t, true>, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 3.95k | { | 638 | 3.95k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 3.95k | unsigned int size = (unsigned int) size_; | 641 | 3.95k | if (!alloc (size, exact)) | 642 | 99 | return false; | 643 | | | 644 | 3.85k | if (size > length) | 645 | 3.81k | { | 646 | 3.81k | if (initialize) | 647 | 3.81k | grow_vector (size, hb_prioritize); | 648 | 3.81k | } | 649 | 47 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 3.85k | length = size; | 656 | 3.85k | return true; | 657 | 3.95k | } |
hb_vector_t<hb_bit_page_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 68.3M | { | 638 | 68.3M | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 68.3M | unsigned int size = (unsigned int) size_; | 641 | 68.3M | if (!alloc (size, exact)) | 642 | 23.8k | return false; | 643 | | | 644 | 68.3M | if (size > length) | 645 | 45.8M | { | 646 | 45.8M | if (initialize) | 647 | 38.7M | grow_vector (size, hb_prioritize); | 648 | 45.8M | } | 649 | 22.4M | else if (size < length) | 650 | 62.3k | { | 651 | 62.3k | if (initialize) | 652 | 59.5k | shrink_vector (size); | 653 | 62.3k | } | 654 | | | 655 | 68.3M | length = size; | 656 | 68.3M | return true; | 657 | 68.3M | } |
hb_vector_t<hb_bit_set_t::page_map_t, true>::resize_full(int, bool, bool) Line | Count | Source | 637 | 68.3M | { | 638 | 68.3M | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 68.3M | unsigned int size = (unsigned int) size_; | 641 | 68.3M | if (!alloc (size, exact)) | 642 | 8.85k | return false; | 643 | | | 644 | 68.3M | if (size > length) | 645 | 45.8M | { | 646 | 45.8M | if (initialize) | 647 | 38.7M | grow_vector (size, hb_prioritize); | 648 | 45.8M | } | 649 | 22.4M | else if (size < length) | 650 | 53.5k | { | 651 | 53.5k | if (initialize) | 652 | 53.5k | shrink_vector (size); | 653 | 53.5k | } | 654 | | | 655 | 68.3M | length = size; | 656 | 68.3M | return true; | 657 | 68.3M | } |
hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 4.40k | { | 638 | 4.40k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 4.40k | unsigned int size = (unsigned int) size_; | 641 | 4.40k | if (!alloc (size, exact)) | 642 | 26 | return false; | 643 | | | 644 | 4.37k | if (size > length) | 645 | 4.37k | { | 646 | 4.37k | if (initialize) | 647 | 4.37k | grow_vector (size, hb_prioritize); | 648 | 4.37k | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 4.37k | length = size; | 656 | 4.37k | return true; | 657 | 4.40k | } |
hb_vector_t<unsigned int, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 6.43M | { | 638 | 6.43M | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 6.43M | unsigned int size = (unsigned int) size_; | 641 | 6.43M | if (!alloc (size, exact)) | 642 | 41.3k | return false; | 643 | | | 644 | 6.39M | if (size > length) | 645 | 970k | { | 646 | 970k | if (initialize) | 647 | 622k | grow_vector (size, hb_prioritize); | 648 | 970k | } | 649 | 5.41M | else if (size < length) | 650 | 353k | { | 651 | 353k | if (initialize) | 652 | 353k | shrink_vector (size); | 653 | 353k | } | 654 | | | 655 | 6.39M | length = size; | 656 | 6.39M | return true; | 657 | 6.43M | } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 16.9M | { | 638 | 16.9M | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 16.9M | unsigned int size = (unsigned int) size_; | 641 | 16.9M | if (!alloc (size, exact)) | 642 | 602 | return false; | 643 | | | 644 | 16.9M | if (size > length) | 645 | 16.9M | { | 646 | 16.9M | if (initialize) | 647 | 16.9M | grow_vector (size, hb_prioritize); | 648 | 16.9M | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 16.9M | length = size; | 656 | 16.9M | return true; | 657 | 16.9M | } |
hb_vector_t<char, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 298M | { | 638 | 298M | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 298M | unsigned int size = (unsigned int) size_; | 641 | 298M | if (!alloc (size, exact)) | 642 | 102M | return false; | 643 | | | 644 | 195M | if (size > length) | 645 | 193M | { | 646 | 193M | if (initialize) | 647 | 7.49k | grow_vector (size, hb_prioritize); | 648 | 193M | } | 649 | 2.35M | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 195M | length = size; | 656 | 195M | return true; | 657 | 298M | } |
hb_vector_t<float, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 6.22M | { | 638 | 6.22M | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 6.22M | unsigned int size = (unsigned int) size_; | 641 | 6.22M | if (!alloc (size, exact)) | 642 | 68.6k | return false; | 643 | | | 644 | 6.16M | if (size > length) | 645 | 3.95M | { | 646 | 3.95M | if (initialize) | 647 | 3.93M | grow_vector (size, hb_prioritize); | 648 | 3.95M | } | 649 | 2.21M | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 6.16M | length = size; | 656 | 6.16M | return true; | 657 | 6.22M | } |
hb_vector_t<int, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 739k | { | 638 | 739k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 739k | unsigned int size = (unsigned int) size_; | 641 | 739k | if (!alloc (size, exact)) | 642 | 200k | return false; | 643 | | | 644 | 539k | if (size > length) | 645 | 302k | { | 646 | 302k | if (initialize) | 647 | 267k | grow_vector (size, hb_prioritize); | 648 | 302k | } | 649 | 236k | else if (size < length) | 650 | 28.9k | { | 651 | 28.9k | if (initialize) | 652 | 45 | shrink_vector (size); | 653 | 28.9k | } | 654 | | | 655 | 539k | length = size; | 656 | 539k | return true; | 657 | 739k | } |
hb_vector_t<hb_set_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 7.01M | { | 638 | 7.01M | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 7.01M | unsigned int size = (unsigned int) size_; | 641 | 7.01M | if (!alloc (size, exact)) | 642 | 163 | return false; | 643 | | | 644 | 7.01M | if (size > length) | 645 | 7.01M | { | 646 | 7.01M | if (initialize) | 647 | 7.01M | grow_vector (size, hb_prioritize); | 648 | 7.01M | } | 649 | 21 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 7.01M | length = size; | 656 | 7.01M | return true; | 657 | 7.01M | } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_range_t, true>::resize_full(int, bool, bool) Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_event_t, false>::resize_full(int, bool, bool) hb_vector_t<contour_point_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 31.5M | { | 638 | 31.5M | if (unlikely (size_ < 0)) | 639 | 2.49k | return false; | 640 | 31.5M | unsigned int size = (unsigned int) size_; | 641 | 31.5M | if (!alloc (size, exact)) | 642 | 213k | return false; | 643 | | | 644 | 31.3M | if (size > length) | 645 | 14.6M | { | 646 | 14.6M | if (initialize) | 647 | 12.8M | grow_vector (size, hb_prioritize); | 648 | 14.6M | } | 649 | 16.7M | else if (size < length) | 650 | 16.7M | { | 651 | 16.7M | if (initialize) | 652 | 16.7M | shrink_vector (size); | 653 | 16.7M | } | 654 | | | 655 | 31.3M | length = size; | 656 | 31.3M | return true; | 657 | 31.5M | } |
hb_vector_t<hb_atomic_t<OT::SVG::svg_doc_cache_t*>, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 989 | { | 638 | 989 | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 989 | unsigned int size = (unsigned int) size_; | 641 | 989 | if (!alloc (size, exact)) | 642 | 18 | return false; | 643 | | | 644 | 971 | if (size > length) | 645 | 971 | { | 646 | 971 | if (initialize) | 647 | 971 | grow_vector (size, hb_prioritize); | 648 | 971 | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 971 | length = size; | 656 | 971 | return true; | 657 | 989 | } |
Unexecuted instantiation: hb_vector_t<OT::SVG::svg_defs_entry_t, false>::resize_full(int, bool, bool) Unexecuted instantiation: hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::resize_full(int, bool, bool) Unexecuted instantiation: hb_vector_t<CFF::code_pair_t, false>::resize_full(int, bool, bool) hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::dict_val_t>, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 4.34k | { | 638 | 4.34k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 4.34k | unsigned int size = (unsigned int) size_; | 641 | 4.34k | if (!alloc (size, exact)) | 642 | 8 | return false; | 643 | | | 644 | 4.33k | if (size > length) | 645 | 4.31k | { | 646 | 4.31k | if (initialize) | 647 | 4.31k | grow_vector (size, hb_prioritize); | 648 | 4.31k | } | 649 | 20 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 4.33k | length = size; | 656 | 4.33k | return true; | 657 | 4.34k | } |
hb_vector_t<CFF::cff1_font_dict_values_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 33.5k | { | 638 | 33.5k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 33.5k | unsigned int size = (unsigned int) size_; | 641 | 33.5k | if (!alloc (size, exact)) | 642 | 14 | return false; | 643 | | | 644 | 33.5k | if (size > length) | 645 | 33.5k | { | 646 | 33.5k | if (initialize) | 647 | 33.5k | grow_vector (size, hb_prioritize); | 648 | 33.5k | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 33.5k | length = size; | 656 | 33.5k | return true; | 657 | 33.5k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::dict_val_t>, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 4.79k | { | 638 | 4.79k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 4.79k | unsigned int size = (unsigned int) size_; | 641 | 4.79k | if (!alloc (size, exact)) | 642 | 12 | return false; | 643 | | | 644 | 4.78k | if (size > length) | 645 | 2.64k | { | 646 | 2.64k | if (initialize) | 647 | 2.64k | grow_vector (size, hb_prioritize); | 648 | 2.64k | } | 649 | 2.13k | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 4.78k | length = size; | 656 | 4.78k | return true; | 657 | 4.79k | } |
hb_vector_t<CFF::cff2_font_dict_values_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 20.5k | { | 638 | 20.5k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 20.5k | unsigned int size = (unsigned int) size_; | 641 | 20.5k | if (!alloc (size, exact)) | 642 | 18 | return false; | 643 | | | 644 | 20.5k | if (size > length) | 645 | 20.5k | { | 646 | 20.5k | if (initialize) | 647 | 20.5k | grow_vector (size, hb_prioritize); | 648 | 20.5k | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 20.5k | length = size; | 656 | 20.5k | return true; | 657 | 20.5k | } |
hb_vector_t<hb_ot_name_entry_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 244k | { | 638 | 244k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 244k | unsigned int size = (unsigned int) size_; | 641 | 244k | if (!alloc (size, exact)) | 642 | 6.20k | return false; | 643 | | | 644 | 238k | if (size > length) | 645 | 201k | { | 646 | 201k | if (initialize) | 647 | 201k | grow_vector (size, hb_prioritize); | 648 | 201k | } | 649 | 36.3k | else if (size < length) | 650 | 459 | { | 651 | 459 | if (initialize) | 652 | 459 | shrink_vector (size); | 653 | 459 | } | 654 | | | 655 | 238k | length = size; | 656 | 238k | return true; | 657 | 244k | } |
hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 1.52M | { | 638 | 1.52M | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 1.52M | unsigned int size = (unsigned int) size_; | 641 | 1.52M | if (!alloc (size, exact)) | 642 | 27.4k | return false; | 643 | | | 644 | 1.50M | if (size > length) | 645 | 1.50M | { | 646 | 1.50M | if (initialize) | 647 | 1.50M | grow_vector (size, hb_prioritize); | 648 | 1.50M | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 1.50M | length = size; | 656 | 1.50M | return true; | 657 | 1.52M | } |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 1.30M | { | 638 | 1.30M | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 1.30M | unsigned int size = (unsigned int) size_; | 641 | 1.30M | if (!alloc (size, exact)) | 642 | 80.7k | return false; | 643 | | | 644 | 1.22M | if (size > length) | 645 | 1.22M | { | 646 | 1.22M | if (initialize) | 647 | 1.22M | grow_vector (size, hb_prioritize); | 648 | 1.22M | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 1.22M | length = size; | 656 | 1.22M | return true; | 657 | 1.30M | } |
hb_vector_t<hb_ot_map_builder_t::stage_info_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 252k | { | 638 | 252k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 252k | unsigned int size = (unsigned int) size_; | 641 | 252k | if (!alloc (size, exact)) | 642 | 2.21k | return false; | 643 | | | 644 | 249k | if (size > length) | 645 | 249k | { | 646 | 249k | if (initialize) | 647 | 249k | grow_vector (size, hb_prioritize); | 648 | 249k | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 249k | length = size; | 656 | 249k | return true; | 657 | 252k | } |
hb_vector_t<hb_ot_map_t::feature_map_t, true>::resize_full(int, bool, bool) Line | Count | Source | 637 | 64.8k | { | 638 | 64.8k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 64.8k | unsigned int size = (unsigned int) size_; | 641 | 64.8k | if (!alloc (size, exact)) | 642 | 554 | return false; | 643 | | | 644 | 64.2k | if (size > length) | 645 | 64.2k | { | 646 | 64.2k | if (initialize) | 647 | 64.2k | grow_vector (size, hb_prioritize); | 648 | 64.2k | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 64.2k | length = size; | 656 | 64.2k | return true; | 657 | 64.8k | } |
hb_vector_t<hb_ot_map_t::stage_map_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 249k | { | 638 | 249k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 249k | unsigned int size = (unsigned int) size_; | 641 | 249k | if (!alloc (size, exact)) | 642 | 2.23k | return false; | 643 | | | 644 | 247k | if (size > length) | 645 | 247k | { | 646 | 247k | if (initialize) | 647 | 247k | grow_vector (size, hb_prioritize); | 648 | 247k | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 247k | length = size; | 656 | 247k | return true; | 657 | 249k | } |
hb_vector_t<unsigned char, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 173k | { | 638 | 173k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 173k | unsigned int size = (unsigned int) size_; | 641 | 173k | if (!alloc (size, exact)) | 642 | 214 | return false; | 643 | | | 644 | 172k | if (size > length) | 645 | 73.2k | { | 646 | 73.2k | if (initialize) | 647 | 67.0k | grow_vector (size, hb_prioritize); | 648 | 73.2k | } | 649 | 99.7k | else if (size < length) | 650 | 3.88k | { | 651 | 3.88k | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 3.88k | } | 654 | | | 655 | 172k | length = size; | 656 | 172k | return true; | 657 | 173k | } |
hb_vector_t<short, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 107k | { | 638 | 107k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 107k | unsigned int size = (unsigned int) size_; | 641 | 107k | if (!alloc (size, exact)) | 642 | 489 | return false; | 643 | | | 644 | 106k | if (size > length) | 645 | 97.5k | { | 646 | 97.5k | if (initialize) | 647 | 93.1k | grow_vector (size, hb_prioritize); | 648 | 97.5k | } | 649 | 9.10k | else if (size < length) | 650 | 3.27k | { | 651 | 3.27k | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 3.27k | } | 654 | | | 655 | 106k | length = size; | 656 | 106k | return true; | 657 | 107k | } |
hb_vector_t<hb_vector_t<unsigned int, false>, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 1.59k | { | 638 | 1.59k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 1.59k | unsigned int size = (unsigned int) size_; | 641 | 1.59k | if (!alloc (size, exact)) | 642 | 27 | return false; | 643 | | | 644 | 1.57k | if (size > length) | 645 | 1.57k | { | 646 | 1.57k | if (initialize) | 647 | 1.57k | grow_vector (size, hb_prioritize); | 648 | 1.57k | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 1.57k | length = size; | 656 | 1.57k | return true; | 657 | 1.59k | } |
hb_vector_t<hb_color_stop_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 141k | { | 638 | 141k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 141k | unsigned int size = (unsigned int) size_; | 641 | 141k | if (!alloc (size, exact)) | 642 | 3.68k | return false; | 643 | | | 644 | 137k | if (size > length) | 645 | 40.5k | { | 646 | 40.5k | if (initialize) | 647 | 40.5k | grow_vector (size, hb_prioritize); | 648 | 40.5k | } | 649 | 97.3k | else if (size < length) | 650 | 41.7k | { | 651 | 41.7k | if (initialize) | 652 | 41.7k | shrink_vector (size); | 653 | 41.7k | } | 654 | | | 655 | 137k | length = size; | 656 | 137k | return true; | 657 | 141k | } |
hb_vector_t<bool, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 54.0k | { | 638 | 54.0k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 54.0k | unsigned int size = (unsigned int) size_; | 641 | 54.0k | if (!alloc (size, exact)) | 642 | 221 | return false; | 643 | | | 644 | 53.8k | if (size > length) | 645 | 53.8k | { | 646 | 53.8k | if (initialize) | 647 | 38.0k | grow_vector (size, hb_prioritize); | 648 | 53.8k | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 53.8k | length = size; | 656 | 53.8k | return true; | 657 | 54.0k | } |
hb_vector_t<graph::graph_t::vertex_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 16.4M | { | 638 | 16.4M | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 16.4M | unsigned int size = (unsigned int) size_; | 641 | 16.4M | if (!alloc (size, exact)) | 642 | 149k | return false; | 643 | | | 644 | 16.2M | if (size > length) | 645 | 16.2M | { | 646 | 16.2M | if (initialize) | 647 | 16.2M | grow_vector (size, hb_prioritize); | 648 | 16.2M | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 16.2M | length = size; | 656 | 16.2M | return true; | 657 | 16.4M | } |
hb_vector_t<hb_pair_t<long, unsigned int>, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 341M | { | 638 | 341M | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 341M | unsigned int size = (unsigned int) size_; | 641 | 341M | if (!alloc (size, exact)) | 642 | 0 | return false; | 643 | | | 644 | 341M | if (size > length) | 645 | 0 | { | 646 | 0 | if (initialize) | 647 | 0 | grow_vector (size, hb_prioritize); | 648 | 0 | } | 649 | 341M | else if (size < length) | 650 | 341M | { | 651 | 341M | if (initialize) | 652 | 341M | shrink_vector (size); | 653 | 341M | } | 654 | | | 655 | 341M | length = size; | 656 | 341M | return true; | 657 | 341M | } |
hb_vector_t<graph::MarkBasePosFormat1::class_info_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 314 | { | 638 | 314 | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 314 | unsigned int size = (unsigned int) size_; | 641 | 314 | if (!alloc (size, exact)) | 642 | 13 | return false; | 643 | | | 644 | 301 | if (size > length) | 645 | 301 | { | 646 | 301 | if (initialize) | 647 | 301 | grow_vector (size, hb_prioritize); | 648 | 301 | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 301 | length = size; | 656 | 301 | return true; | 657 | 314 | } |
hb_vector_t<hb_gpu_encode_curve_info_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 24.8k | { | 638 | 24.8k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 24.8k | unsigned int size = (unsigned int) size_; | 641 | 24.8k | if (!alloc (size, exact)) | 642 | 169 | return false; | 643 | | | 644 | 24.6k | if (size > length) | 645 | 12.2k | { | 646 | 12.2k | if (initialize) | 647 | 12.2k | grow_vector (size, hb_prioritize); | 648 | 12.2k | } | 649 | 12.4k | else if (size < length) | 650 | 5.99k | { | 651 | 5.99k | if (initialize) | 652 | 5.99k | shrink_vector (size); | 653 | 5.99k | } | 654 | | | 655 | 24.6k | length = size; | 656 | 24.6k | return true; | 657 | 24.8k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, bool, hb_vector_t<hb_vector_t<int, false> const*, false> const&)::delta_size_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 2.28k | { | 638 | 2.28k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 2.28k | unsigned int size = (unsigned int) size_; | 641 | 2.28k | if (!alloc (size, exact)) | 642 | 0 | return false; | 643 | | | 644 | 2.28k | if (size > length) | 645 | 2.28k | { | 646 | 2.28k | if (initialize) | 647 | 2.28k | grow_vector (size, hb_prioritize); | 648 | 2.28k | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 2.28k | length = size; | 656 | 2.28k | return true; | 657 | 2.28k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, OT::VarData const*, hb_inc_bimap_t const&, hb_inc_bimap_t const&)::delta_size_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 23.2k | { | 638 | 23.2k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 23.2k | unsigned int size = (unsigned int) size_; | 641 | 23.2k | if (!alloc (size, exact)) | 642 | 14 | return false; | 643 | | | 644 | 23.2k | if (size > length) | 645 | 21.7k | { | 646 | 21.7k | if (initialize) | 647 | 21.7k | grow_vector (size, hb_prioritize); | 648 | 21.7k | } | 649 | 1.53k | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 23.2k | length = size; | 656 | 23.2k | return true; | 657 | 23.2k | } |
hb_vector_t<hb_vector_t<char, false>, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 106 | { | 638 | 106 | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 106 | unsigned int size = (unsigned int) size_; | 641 | 106 | if (!alloc (size, exact)) | 642 | 0 | return false; | 643 | | | 644 | 106 | if (size > length) | 645 | 106 | { | 646 | 106 | if (initialize) | 647 | 106 | grow_vector (size, hb_prioritize); | 648 | 106 | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 106 | length = size; | 656 | 106 | return true; | 657 | 106 | } |
hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 2.56k | { | 638 | 2.56k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 2.56k | unsigned int size = (unsigned int) size_; | 641 | 2.56k | if (!alloc (size, exact)) | 642 | 0 | return false; | 643 | | | 644 | 2.56k | if (size > length) | 645 | 0 | { | 646 | 0 | if (initialize) | 647 | 0 | grow_vector (size, hb_prioritize); | 648 | 0 | } | 649 | 2.56k | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 2.56k | length = size; | 656 | 2.56k | return true; | 657 | 2.56k | } |
hb_vector_t<OT::tuple_delta_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 8.53k | { | 638 | 8.53k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 8.53k | unsigned int size = (unsigned int) size_; | 641 | 8.53k | if (!alloc (size, exact)) | 642 | 0 | return false; | 643 | | | 644 | 8.53k | if (size > length) | 645 | 8.53k | { | 646 | 8.53k | if (initialize) | 647 | 8.53k | grow_vector (size, hb_prioritize); | 648 | 8.53k | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 8.53k | length = size; | 656 | 8.53k | return true; | 657 | 8.53k | } |
hb_vector_t<hb_vector_t<int, false>, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 688 | { | 638 | 688 | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 688 | unsigned int size = (unsigned int) size_; | 641 | 688 | if (!alloc (size, exact)) | 642 | 0 | return false; | 643 | | | 644 | 688 | if (size > length) | 645 | 688 | { | 646 | 688 | if (initialize) | 647 | 688 | grow_vector (size, hb_prioritize); | 648 | 688 | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 688 | length = size; | 656 | 688 | return true; | 657 | 688 | } |
hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 7.65k | { | 638 | 7.65k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 7.65k | unsigned int size = (unsigned int) size_; | 641 | 7.65k | if (!alloc (size, exact)) | 642 | 0 | return false; | 643 | | | 644 | 7.65k | if (size > length) | 645 | 0 | { | 646 | 0 | if (initialize) | 647 | 0 | grow_vector (size, hb_prioritize); | 648 | 0 | } | 649 | 7.65k | else if (size < length) | 650 | 7.65k | { | 651 | 7.65k | if (initialize) | 652 | 7.65k | shrink_vector (size); | 653 | 7.65k | } | 654 | | | 655 | 7.65k | length = size; | 656 | 7.65k | return true; | 657 | 7.65k | } |
hb_vector_t<OT::LayerRecord, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 2.87k | { | 638 | 2.87k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 2.87k | unsigned int size = (unsigned int) size_; | 641 | 2.87k | if (!alloc (size, exact)) | 642 | 11 | return false; | 643 | | | 644 | 2.86k | if (size > length) | 645 | 2.37k | { | 646 | 2.37k | if (initialize) | 647 | 2.37k | grow_vector (size, hb_prioritize); | 648 | 2.37k | } | 649 | 485 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 2.86k | length = size; | 656 | 2.86k | return true; | 657 | 2.87k | } |
hb_vector_t<OT::index_map_subset_plan_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 1.58k | { | 638 | 1.58k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 1.58k | unsigned int size = (unsigned int) size_; | 641 | 1.58k | if (!alloc (size, exact)) | 642 | 2 | return false; | 643 | | | 644 | 1.58k | if (size > length) | 645 | 1.58k | { | 646 | 1.58k | if (initialize) | 647 | 1.58k | grow_vector (size, hb_prioritize); | 648 | 1.58k | } | 649 | 3 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 1.58k | length = size; | 656 | 1.58k | return true; | 657 | 1.58k | } |
hb_vector_t<hb_set_t*, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 1.58k | { | 638 | 1.58k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 1.58k | unsigned int size = (unsigned int) size_; | 641 | 1.58k | if (!alloc (size, exact)) | 642 | 4 | return false; | 643 | | | 644 | 1.58k | if (size > length) | 645 | 1.53k | { | 646 | 1.53k | if (initialize) | 647 | 1.53k | grow_vector (size, hb_prioritize); | 648 | 1.53k | } | 649 | 50 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 1.58k | length = size; | 656 | 1.58k | return true; | 657 | 1.58k | } |
hb_vector_t<hb_inc_bimap_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 4.01k | { | 638 | 4.01k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 4.01k | unsigned int size = (unsigned int) size_; | 641 | 4.01k | if (!alloc (size, exact)) | 642 | 19 | return false; | 643 | | | 644 | 4.00k | if (size > length) | 645 | 3.95k | { | 646 | 3.95k | if (initialize) | 647 | 3.95k | grow_vector (size, hb_prioritize); | 648 | 3.95k | } | 649 | 50 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 4.00k | length = size; | 656 | 4.00k | return true; | 657 | 4.01k | } |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 3.15M | { | 638 | 3.15M | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 3.15M | unsigned int size = (unsigned int) size_; | 641 | 3.15M | if (!alloc (size, exact)) | 642 | 0 | return false; | 643 | | | 644 | 3.15M | if (size > length) | 645 | 3.15M | { | 646 | 3.15M | if (initialize) | 647 | 3.15M | grow_vector (size, hb_prioritize); | 648 | 3.15M | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 3.15M | length = size; | 656 | 3.15M | return true; | 657 | 3.15M | } |
hb_vector_t<CFF::subr_remap_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 3.40k | { | 638 | 3.40k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 3.40k | unsigned int size = (unsigned int) size_; | 641 | 3.40k | if (!alloc (size, exact)) | 642 | 11 | return false; | 643 | | | 644 | 3.39k | if (size > length) | 645 | 3.37k | { | 646 | 3.37k | if (initialize) | 647 | 3.37k | grow_vector (size, hb_prioritize); | 648 | 3.37k | } | 649 | 21 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 3.39k | length = size; | 656 | 3.39k | return true; | 657 | 3.40k | } |
Unexecuted instantiation: hb_vector_t<CFF::code_pair_t, false>::resize_full(int, bool, bool) hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::op_str_t>, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 4.99k | { | 638 | 4.99k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 4.99k | unsigned int size = (unsigned int) size_; | 641 | 4.99k | if (!alloc (size, exact)) | 642 | 22 | return false; | 643 | | | 644 | 4.97k | if (size > length) | 645 | 4.95k | { | 646 | 4.95k | if (initialize) | 647 | 4.95k | grow_vector (size, hb_prioritize); | 648 | 4.95k | } | 649 | 21 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 4.97k | length = size; | 656 | 4.97k | return true; | 657 | 4.99k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::op_str_t>, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 2.49k | { | 638 | 2.49k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 2.49k | unsigned int size = (unsigned int) size_; | 641 | 2.49k | if (!alloc (size, exact)) | 642 | 3 | return false; | 643 | | | 644 | 2.49k | if (size > length) | 645 | 2.46k | { | 646 | 2.46k | if (initialize) | 647 | 2.46k | grow_vector (size, hb_prioritize); | 648 | 2.46k | } | 649 | 22 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 2.49k | length = size; | 656 | 2.49k | return true; | 657 | 2.49k | } |
hb_vector_t<OT::IndexSubtableRecord, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 187 | { | 638 | 187 | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 187 | unsigned int size = (unsigned int) size_; | 641 | 187 | if (!alloc (size, exact)) | 642 | 0 | return false; | 643 | | | 644 | 187 | if (size > length) | 645 | 130 | { | 646 | 130 | if (initialize) | 647 | 130 | grow_vector (size, hb_prioritize); | 648 | 130 | } | 649 | 57 | else if (size < length) | 650 | 57 | { | 651 | 57 | if (initialize) | 652 | 57 | shrink_vector (size); | 653 | 57 | } | 654 | | | 655 | 187 | length = size; | 656 | 187 | return true; | 657 | 187 | } |
hb_vector_t<CFF::number_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 58.9k | { | 638 | 58.9k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 58.9k | unsigned int size = (unsigned int) size_; | 641 | 58.9k | if (!alloc (size, exact)) | 642 | 45 | return false; | 643 | | | 644 | 58.9k | if (size > length) | 645 | 39.9k | { | 646 | 39.9k | if (initialize) | 647 | 39.9k | grow_vector (size, hb_prioritize); | 648 | 39.9k | } | 649 | 18.9k | else if (size < length) | 650 | 11.4k | { | 651 | 11.4k | if (initialize) | 652 | 11.4k | shrink_vector (size); | 653 | 11.4k | } | 654 | | | 655 | 58.9k | length = size; | 656 | 58.9k | return true; | 657 | 58.9k | } |
hb_vector_t<hb_vector_t<unsigned char, false>, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 10.9k | { | 638 | 10.9k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 10.9k | unsigned int size = (unsigned int) size_; | 641 | 10.9k | if (!alloc (size, exact)) | 642 | 6 | return false; | 643 | | | 644 | 10.9k | if (size > length) | 645 | 5.16k | { | 646 | 5.16k | if (initialize) | 647 | 5.16k | grow_vector (size, hb_prioritize); | 648 | 5.16k | } | 649 | 5.80k | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 10.9k | length = size; | 656 | 10.9k | return true; | 657 | 10.9k | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t const*, false>::resize_full(int, bool, bool) hb_vector_t<CFF::parsed_cs_str_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 17.9k | { | 638 | 17.9k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 17.9k | unsigned int size = (unsigned int) size_; | 641 | 17.9k | if (!alloc (size, exact)) | 642 | 8 | return false; | 643 | | | 644 | 17.9k | if (size > length) | 645 | 6.02k | { | 646 | 6.02k | if (initialize) | 647 | 6.02k | grow_vector (size, hb_prioritize); | 648 | 6.02k | } | 649 | 11.9k | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 17.9k | length = size; | 656 | 17.9k | return true; | 657 | 17.9k | } |
hb_vector_t<CFF::parsed_cs_str_vec_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 3.40k | { | 638 | 3.40k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 3.40k | unsigned int size = (unsigned int) size_; | 641 | 3.40k | if (!alloc (size, exact)) | 642 | 1 | return false; | 643 | | | 644 | 3.40k | if (size > length) | 645 | 3.38k | { | 646 | 3.38k | if (initialize) | 647 | 3.38k | grow_vector (size, hb_prioritize); | 648 | 3.38k | } | 649 | 21 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 3.40k | length = size; | 656 | 3.40k | return true; | 657 | 3.40k | } |
hb_vector_t<hb_vector_t<hb_vector_t<unsigned char, false>, false>, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 2.41k | { | 638 | 2.41k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 2.41k | unsigned int size = (unsigned int) size_; | 641 | 2.41k | if (!alloc (size, exact)) | 642 | 6 | return false; | 643 | | | 644 | 2.40k | if (size > length) | 645 | 2.40k | { | 646 | 2.40k | if (initialize) | 647 | 2.40k | grow_vector (size, hb_prioritize); | 648 | 2.40k | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 2.40k | length = size; | 656 | 2.40k | return true; | 657 | 2.41k | } |
hb_vector_t<hb_vector_t<CFF::cs_command_t, false>, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 766 | { | 638 | 766 | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 766 | unsigned int size = (unsigned int) size_; | 641 | 766 | if (!alloc (size, exact)) | 642 | 0 | return false; | 643 | | | 644 | 766 | if (size > length) | 645 | 766 | { | 646 | 766 | if (initialize) | 647 | 766 | grow_vector (size, hb_prioritize); | 648 | 766 | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 766 | length = size; | 656 | 766 | return true; | 657 | 766 | } |
hb_vector_t<CFF::table_info_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 1.46k | { | 638 | 1.46k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 1.46k | unsigned int size = (unsigned int) size_; | 641 | 1.46k | if (!alloc (size, exact)) | 642 | 3 | return false; | 643 | | | 644 | 1.45k | if (size > length) | 645 | 1.45k | { | 646 | 1.45k | if (initialize) | 647 | 1.45k | grow_vector (size, hb_prioritize); | 648 | 1.45k | } | 649 | 1 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 1.45k | length = size; | 656 | 1.45k | return true; | 657 | 1.46k | } |
Unexecuted instantiation: hb_vector_t<double, false>::resize_full(int, bool, bool) hb_vector_t<hb_vector_buf_t, false>::resize_full(int, bool, bool) Line | Count | Source | 637 | 210k | { | 638 | 210k | if (unlikely (size_ < 0)) | 639 | 0 | return false; | 640 | 210k | unsigned int size = (unsigned int) size_; | 641 | 210k | if (!alloc (size, exact)) | 642 | 181k | return false; | 643 | | | 644 | 28.8k | if (size > length) | 645 | 28.8k | { | 646 | 28.8k | if (initialize) | 647 | 28.8k | grow_vector (size, hb_prioritize); | 648 | 28.8k | } | 649 | 0 | else if (size < length) | 650 | 0 | { | 651 | 0 | if (initialize) | 652 | 0 | shrink_vector (size); | 653 | 0 | } | 654 | | | 655 | 28.8k | length = size; | 656 | 28.8k | return true; | 657 | 210k | } |
|
658 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
659 | | bool resize (int size_) |
660 | 427M | { |
661 | 427M | return resize_full (size_, true, false); |
662 | 427M | } hb_vector_t<hb_set_digest_t, false>::resize(int) Line | Count | Source | 660 | 1.47k | { | 661 | 1.47k | return resize_full (size_, true, false); | 662 | 1.47k | } |
hb_vector_t<hb_vector_t<hb_aat_map_t::range_flags_t, true>, false>::resize(int) Line | Count | Source | 660 | 3.95k | { | 661 | 3.95k | return resize_full (size_, true, false); | 662 | 3.95k | } |
hb_vector_t<AAT::kern_subtable_accelerator_data_t, false>::resize(int) Line | Count | Source | 660 | 4.40k | { | 661 | 4.40k | return resize_full (size_, true, false); | 662 | 4.40k | } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::resize(int) Line | Count | Source | 660 | 16.9M | { | 661 | 16.9M | return resize_full (size_, true, false); | 662 | 16.9M | } |
hb_vector_t<char, false>::resize(int) Line | Count | Source | 660 | 12.3k | { | 661 | 12.3k | return resize_full (size_, true, false); | 662 | 12.3k | } |
Unexecuted instantiation: hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false>::resize(int) hb_vector_t<int, false>::resize(int) Line | Count | Source | 660 | 466k | { | 661 | 466k | return resize_full (size_, true, false); | 662 | 466k | } |
hb_vector_t<float, false>::resize(int) Line | Count | Source | 660 | 6.20M | { | 661 | 6.20M | return resize_full (size_, true, false); | 662 | 6.20M | } |
hb_vector_t<hb_set_t, false>::resize(int) Line | Count | Source | 660 | 7.01M | { | 661 | 7.01M | return resize_full (size_, true, false); | 662 | 7.01M | } |
Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_range_t, true>::resize(int) Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_event_t, false>::resize(int) hb_vector_t<contour_point_t, false>::resize(int) Line | Count | Source | 660 | 29.7M | { | 661 | 29.7M | return resize_full (size_, true, false); | 662 | 29.7M | } |
hb_vector_t<hb_atomic_t<OT::SVG::svg_doc_cache_t*>, false>::resize(int) Line | Count | Source | 660 | 989 | { | 661 | 989 | return resize_full (size_, true, false); | 662 | 989 | } |
Unexecuted instantiation: hb_vector_t<OT::SVG::svg_defs_entry_t, false>::resize(int) Unexecuted instantiation: hb_vector_t<hb_pair_t<unsigned int, unsigned int>, false>::resize(int) hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::dict_val_t>, false>::resize(int) Line | Count | Source | 660 | 4.34k | { | 661 | 4.34k | return resize_full (size_, true, false); | 662 | 4.34k | } |
hb_vector_t<CFF::cff1_font_dict_values_t, false>::resize(int) Line | Count | Source | 660 | 33.5k | { | 661 | 33.5k | return resize_full (size_, true, false); | 662 | 33.5k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::dict_val_t>, false>::resize(int) Line | Count | Source | 660 | 4.79k | { | 661 | 4.79k | return resize_full (size_, true, false); | 662 | 4.79k | } |
hb_vector_t<CFF::cff2_font_dict_values_t, false>::resize(int) Line | Count | Source | 660 | 20.5k | { | 661 | 20.5k | return resize_full (size_, true, false); | 662 | 20.5k | } |
hb_vector_t<hb_ot_name_entry_t, false>::resize(int) Line | Count | Source | 660 | 244k | { | 661 | 244k | return resize_full (size_, true, false); | 662 | 244k | } |
hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::resize(int) Line | Count | Source | 660 | 1.52M | { | 661 | 1.52M | return resize_full (size_, true, false); | 662 | 1.52M | } |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::resize(int) Line | Count | Source | 660 | 1.30M | { | 661 | 1.30M | return resize_full (size_, true, false); | 662 | 1.30M | } |
hb_vector_t<hb_ot_map_builder_t::stage_info_t, false>::resize(int) Line | Count | Source | 660 | 252k | { | 661 | 252k | return resize_full (size_, true, false); | 662 | 252k | } |
hb_vector_t<hb_ot_map_t::feature_map_t, true>::resize(int) Line | Count | Source | 660 | 64.8k | { | 661 | 64.8k | return resize_full (size_, true, false); | 662 | 64.8k | } |
hb_vector_t<hb_ot_map_t::stage_map_t, false>::resize(int) Line | Count | Source | 660 | 249k | { | 661 | 249k | return resize_full (size_, true, false); | 662 | 249k | } |
hb_vector_t<unsigned char, false>::resize(int) Line | Count | Source | 660 | 84.0k | { | 661 | 84.0k | return resize_full (size_, true, false); | 662 | 84.0k | } |
hb_vector_t<unsigned int, false>::resize(int) Line | Count | Source | 660 | 1.42M | { | 661 | 1.42M | return resize_full (size_, true, false); | 662 | 1.42M | } |
hb_vector_t<hb_vector_t<unsigned int, false>, false>::resize(int) Line | Count | Source | 660 | 1.59k | { | 661 | 1.59k | return resize_full (size_, true, false); | 662 | 1.59k | } |
hb_vector_t<hb_color_stop_t, false>::resize(int) Line | Count | Source | 660 | 141k | { | 661 | 141k | return resize_full (size_, true, false); | 662 | 141k | } |
hb_vector_t<graph::graph_t::vertex_t, false>::resize(int) Line | Count | Source | 660 | 16.4M | { | 661 | 16.4M | return resize_full (size_, true, false); | 662 | 16.4M | } |
hb_vector_t<bool, false>::resize(int) Line | Count | Source | 660 | 38.2k | { | 661 | 38.2k | return resize_full (size_, true, false); | 662 | 38.2k | } |
hb_vector_t<hb_pair_t<long, unsigned int>, false>::resize(int) Line | Count | Source | 660 | 341M | { | 661 | 341M | return resize_full (size_, true, false); | 662 | 341M | } |
hb_vector_t<graph::MarkBasePosFormat1::class_info_t, false>::resize(int) Line | Count | Source | 660 | 314 | { | 661 | 314 | return resize_full (size_, true, false); | 662 | 314 | } |
hb_vector_t<hb_gpu_encode_curve_info_t, false>::resize(int) Line | Count | Source | 660 | 24.8k | { | 661 | 24.8k | return resize_full (size_, true, false); | 662 | 24.8k | } |
hb_vector_t<short, false>::resize(int) Line | Count | Source | 660 | 93.6k | { | 661 | 93.6k | return resize_full (size_, true, false); | 662 | 93.6k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, bool, hb_vector_t<hb_vector_t<int, false> const*, false> const&)::delta_size_t, false>::resize(int) Line | Count | Source | 660 | 2.28k | { | 661 | 2.28k | return resize_full (size_, true, false); | 662 | 2.28k | } |
hb_vector_t<OT::VarData::serialize(hb_serialize_context_t*, OT::VarData const*, hb_inc_bimap_t const&, hb_inc_bimap_t const&)::delta_size_t, false>::resize(int) Line | Count | Source | 660 | 23.2k | { | 661 | 23.2k | return resize_full (size_, true, false); | 662 | 23.2k | } |
hb_vector_t<hb_vector_t<char, false>, false>::resize(int) Line | Count | Source | 660 | 106 | { | 661 | 106 | return resize_full (size_, true, false); | 662 | 106 | } |
hb_vector_t<OT::tuple_delta_t, false>::resize(int) Line | Count | Source | 660 | 8.53k | { | 661 | 8.53k | return resize_full (size_, true, false); | 662 | 8.53k | } |
hb_vector_t<hb_vector_t<int, false>, false>::resize(int) Line | Count | Source | 660 | 688 | { | 661 | 688 | return resize_full (size_, true, false); | 662 | 688 | } |
hb_vector_t<hb_pair_t<OT::item_variations_t::combined_gain_idx_tuple_t, unsigned int>, false>::resize(int) Line | Count | Source | 660 | 7.65k | { | 661 | 7.65k | return resize_full (size_, true, false); | 662 | 7.65k | } |
hb_vector_t<OT::LayerRecord, false>::resize(int) Line | Count | Source | 660 | 2.87k | { | 661 | 2.87k | return resize_full (size_, true, false); | 662 | 2.87k | } |
hb_vector_t<OT::index_map_subset_plan_t, false>::resize(int) Line | Count | Source | 660 | 1.58k | { | 661 | 1.58k | return resize_full (size_, true, false); | 662 | 1.58k | } |
hb_vector_t<hb_set_t*, false>::resize(int) Line | Count | Source | 660 | 1.58k | { | 661 | 1.58k | return resize_full (size_, true, false); | 662 | 1.58k | } |
hb_vector_t<hb_inc_bimap_t, false>::resize(int) Line | Count | Source | 660 | 4.01k | { | 661 | 4.01k | return resize_full (size_, true, false); | 662 | 4.01k | } |
hb_vector_t<OT::glyf_impl::SubsetGlyph, false>::resize(int) Line | Count | Source | 660 | 3.15M | { | 661 | 3.15M | return resize_full (size_, true, false); | 662 | 3.15M | } |
hb_vector_t<CFF::subr_remap_t, false>::resize(int) Line | Count | Source | 660 | 3.40k | { | 661 | 3.40k | return resize_full (size_, true, false); | 662 | 3.40k | } |
hb_vector_t<CFF::cff1_private_dict_values_base_t<CFF::op_str_t>, false>::resize(int) Line | Count | Source | 660 | 4.99k | { | 661 | 4.99k | return resize_full (size_, true, false); | 662 | 4.99k | } |
hb_vector_t<CFF::cff2_private_dict_values_base_t<CFF::op_str_t>, false>::resize(int) Line | Count | Source | 660 | 2.49k | { | 661 | 2.49k | return resize_full (size_, true, false); | 662 | 2.49k | } |
hb_vector_t<OT::IndexSubtableRecord, false>::resize(int) Line | Count | Source | 660 | 187 | { | 661 | 187 | return resize_full (size_, true, false); | 662 | 187 | } |
hb_vector_t<CFF::parsed_cs_str_vec_t, false>::resize(int) Line | Count | Source | 660 | 3.40k | { | 661 | 3.40k | return resize_full (size_, true, false); | 662 | 3.40k | } |
hb_vector_t<CFF::parsed_cs_str_t, false>::resize(int) Line | Count | Source | 660 | 11.1k | { | 661 | 11.1k | return resize_full (size_, true, false); | 662 | 11.1k | } |
hb_vector_t<hb_vector_t<hb_vector_t<unsigned char, false>, false>, false>::resize(int) Line | Count | Source | 660 | 2.41k | { | 661 | 2.41k | return resize_full (size_, true, false); | 662 | 2.41k | } |
hb_vector_t<hb_vector_t<unsigned char, false>, false>::resize(int) Line | Count | Source | 660 | 383 | { | 661 | 383 | return resize_full (size_, true, false); | 662 | 383 | } |
hb_vector_t<CFF::number_t, false>::resize(int) Line | Count | Source | 660 | 11.4k | { | 661 | 11.4k | return resize_full (size_, true, false); | 662 | 11.4k | } |
hb_vector_t<CFF::table_info_t, false>::resize(int) Line | Count | Source | 660 | 1.46k | { | 661 | 1.46k | return resize_full (size_, true, false); | 662 | 1.46k | } |
hb_vector_t<hb_vector_buf_t, false>::resize(int) Line | Count | Source | 660 | 210k | { | 661 | 210k | return resize_full (size_, true, false); | 662 | 210k | } |
|
663 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
664 | | bool resize_dirty (int size_) |
665 | 301M | { |
666 | 301M | return resize_full (size_, false, false); |
667 | 301M | } hb_vector_t<unsigned int, false>::resize_dirty(int) Line | Count | Source | 665 | 513k | { | 666 | 513k | return resize_full (size_, false, false); | 667 | 513k | } |
hb_vector_t<int, false>::resize_dirty(int) Line | Count | Source | 665 | 273k | { | 666 | 273k | return resize_full (size_, false, false); | 667 | 273k | } |
hb_vector_t<float, false>::resize_dirty(int) Line | Count | Source | 665 | 14.5k | { | 666 | 14.5k | return resize_full (size_, false, false); | 667 | 14.5k | } |
hb_vector_t<contour_point_t, false>::resize_dirty(int) Line | Count | Source | 665 | 1.78M | { | 666 | 1.78M | return resize_full (size_, false, false); | 667 | 1.78M | } |
Unexecuted instantiation: hb_vector_t<CFF::code_pair_t, false>::resize_dirty(int) hb_vector_t<unsigned char, false>::resize_dirty(int) Line | Count | Source | 665 | 86.4k | { | 666 | 86.4k | return resize_full (size_, false, false); | 667 | 86.4k | } |
hb_vector_t<short, false>::resize_dirty(int) Line | Count | Source | 665 | 13.4k | { | 666 | 13.4k | return resize_full (size_, false, false); | 667 | 13.4k | } |
hb_vector_t<bool, false>::resize_dirty(int) Line | Count | Source | 665 | 14.5k | { | 666 | 14.5k | return resize_full (size_, false, false); | 667 | 14.5k | } |
Unexecuted instantiation: hb_vector_t<double, false>::resize_dirty(int) hb_vector_t<char, false>::resize_dirty(int) Line | Count | Source | 665 | 298M | { | 666 | 298M | return resize_full (size_, false, false); | 667 | 298M | } |
|
668 | | HB_ALWAYS_INLINE_VECTOR_ALLOCS |
669 | | bool resize_exact (int size_) |
670 | 4.56M | { |
671 | 4.56M | return resize_full (size_, true, true); |
672 | 4.56M | } hb_vector_t<unsigned int, false>::resize_exact(int) Line | Count | Source | 670 | 4.48M | { | 671 | 4.48M | return resize_full (size_, true, true); | 672 | 4.48M | } |
hb_vector_t<float, false>::resize_exact(int) Line | Count | Source | 670 | 8.63k | { | 671 | 8.63k | return resize_full (size_, true, true); | 672 | 8.63k | } |
Unexecuted instantiation: hb_vector_t<unsigned char, false>::resize_exact(int) hb_vector_t<hb_set_t, false>::resize_exact(int) Line | Count | Source | 670 | 3.40k | { | 671 | 3.40k | return resize_full (size_, true, true); | 672 | 3.40k | } |
hb_vector_t<CFF::number_t, false>::resize_exact(int) Line | Count | Source | 670 | 47.5k | { | 671 | 47.5k | return resize_full (size_, true, true); | 672 | 47.5k | } |
hb_vector_t<hb_vector_t<unsigned char, false>, false>::resize_exact(int) Line | Count | Source | 670 | 10.5k | { | 671 | 10.5k | return resize_full (size_, true, true); | 672 | 10.5k | } |
Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_str_t const*, false>::resize_exact(int) hb_vector_t<CFF::parsed_cs_str_t, false>::resize_exact(int) Line | Count | Source | 670 | 6.81k | { | 671 | 6.81k | return resize_full (size_, true, true); | 672 | 6.81k | } |
hb_vector_t<hb_vector_t<CFF::cs_command_t, false>, false>::resize_exact(int) Line | Count | Source | 670 | 766 | { | 671 | 766 | return resize_full (size_, true, true); | 672 | 766 | } |
|
673 | | |
674 | | Type pop () |
675 | 16.1M | { |
676 | 16.1M | if (!length) return Null (Type); |
677 | 11.3M | Type v (std::move (arrayZ[length - 1])); |
678 | 11.3M | arrayZ[length - 1].~Type (); |
679 | 11.3M | length--; |
680 | 11.3M | return v; |
681 | 16.1M | } hb_vector_t<hb_user_data_array_t::hb_user_data_item_t, false>::pop() Line | Count | Source | 675 | 25.6k | { | 676 | 25.6k | if (!length) return Null (Type); | 677 | 25.6k | Type v (std::move (arrayZ[length - 1])); | 678 | 25.6k | arrayZ[length - 1].~Type (); | 679 | 25.6k | length--; | 680 | 25.6k | return v; | 681 | 25.6k | } |
hb_vector_t<hb_serialize_context_t::object_t*, false>::pop() Line | Count | Source | 675 | 70.1k | { | 676 | 70.1k | if (!length) return Null (Type); | 677 | 70.1k | Type v (std::move (arrayZ[length - 1])); | 678 | 70.1k | arrayZ[length - 1].~Type (); | 679 | 70.1k | length--; | 680 | 70.1k | return v; | 681 | 70.1k | } |
hb_vector_t<hb_transform_t<float>, false>::pop() Line | Count | Source | 675 | 1.78M | { | 676 | 1.78M | if (!length) return Null (Type); | 677 | 1.60M | Type v (std::move (arrayZ[length - 1])); | 678 | 1.60M | arrayZ[length - 1].~Type (); | 679 | 1.60M | length--; | 680 | 1.60M | return v; | 681 | 1.78M | } |
hb_vector_t<hb_bounds_t<float>, false>::pop() Line | Count | Source | 675 | 2.30M | { | 676 | 2.30M | if (!length) return Null (Type); | 677 | 2.02M | Type v (std::move (arrayZ[length - 1])); | 678 | 2.02M | arrayZ[length - 1].~Type (); | 679 | 2.02M | length--; | 680 | 2.02M | return v; | 681 | 2.30M | } |
hb_vector_t<hb_set_t, false>::pop() Line | Count | Source | 675 | 11.3M | { | 676 | 11.3M | if (!length) return Null (Type); | 677 | 7.01M | Type v (std::move (arrayZ[length - 1])); | 678 | 7.01M | arrayZ[length - 1].~Type (); | 679 | 7.01M | length--; | 680 | 7.01M | return v; | 681 | 11.3M | } |
hb_vector_t<bool, false>::pop() Line | Count | Source | 675 | 538k | { | 676 | 538k | if (!length) return Null (Type); | 677 | 517k | Type v (std::move (arrayZ[length - 1])); | 678 | 517k | arrayZ[length - 1].~Type (); | 679 | 517k | length--; | 680 | 517k | return v; | 681 | 538k | } |
hb_vector_t<hb_raster_image_t*, false>::pop() Line | Count | Source | 675 | 11.5k | { | 676 | 11.5k | if (!length) return Null (Type); | 677 | 11.5k | Type v (std::move (arrayZ[length - 1])); | 678 | 11.5k | arrayZ[length - 1].~Type (); | 679 | 11.5k | length--; | 680 | 11.5k | return v; | 681 | 11.5k | } |
hb_vector_t<hb_raster_clip_t, false>::pop() Line | Count | Source | 675 | 84.9k | { | 676 | 84.9k | if (!length) return Null (Type); | 677 | 84.9k | Type v (std::move (arrayZ[length - 1])); | 678 | 84.9k | arrayZ[length - 1].~Type (); | 679 | 84.9k | length--; | 680 | 84.9k | return v; | 681 | 84.9k | } |
hb_vector_t<CFF::parsed_cs_op_t, false>::pop() Line | Count | Source | 675 | 18.6k | { | 676 | 18.6k | if (!length) return Null (Type); | 677 | 18.4k | Type v (std::move (arrayZ[length - 1])); | 678 | 18.4k | arrayZ[length - 1].~Type (); | 679 | 18.4k | length--; | 680 | 18.4k | return v; | 681 | 18.6k | } |
hb_vector_t<hb_vector_buf_t, false>::pop() Line | Count | Source | 675 | 13.3k | { | 676 | 13.3k | if (!length) return Null (Type); | 677 | 13.3k | Type v (std::move (arrayZ[length - 1])); | 678 | 13.3k | arrayZ[length - 1].~Type (); | 679 | 13.3k | length--; | 680 | 13.3k | return v; | 681 | 13.3k | } |
|
682 | | |
683 | | void remove_ordered (unsigned int i) |
684 | 14.9k | { |
685 | 14.9k | if (unlikely (i >= length)) |
686 | 0 | return; |
687 | 14.9k | shift_down_vector (i + 1); |
688 | 14.9k | arrayZ[length - 1].~Type (); |
689 | 14.9k | length--; |
690 | 14.9k | } Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::remove_ordered(unsigned int) hb_vector_t<CFF::cs_command_t, false>::remove_ordered(unsigned int) Line | Count | Source | 684 | 14.9k | { | 685 | 14.9k | if (unlikely (i >= length)) | 686 | 0 | return; | 687 | 14.9k | shift_down_vector (i + 1); | 688 | 14.9k | arrayZ[length - 1].~Type (); | 689 | 14.9k | length--; | 690 | 14.9k | } |
|
691 | | |
692 | | template <bool Sorted = sorted, |
693 | | hb_enable_if (!Sorted)> |
694 | | void remove_unordered (unsigned int i) |
695 | 18.2k | { |
696 | 18.2k | if (unlikely (i >= length)) |
697 | 0 | return; |
698 | 18.2k | if (i != length - 1) |
699 | 9.25k | arrayZ[i] = std::move (arrayZ[length - 1]); |
700 | 18.2k | arrayZ[length - 1].~Type (); |
701 | 18.2k | length--; |
702 | 18.2k | } |
703 | | |
704 | | void shrink (int size_, bool shrink_memory = true) |
705 | 72.7k | { |
706 | 72.7k | unsigned int size = size_ < 0 ? 0u : (unsigned int) size_; |
707 | 72.7k | if (size >= length) |
708 | 48.9k | return; |
709 | | |
710 | 23.7k | shrink_vector (size); |
711 | | |
712 | 23.7k | if (is_owned () && shrink_memory) |
713 | 23.7k | alloc_exact (size); /* To force shrinking memory if needed. */ |
714 | 23.7k | } Unexecuted instantiation: hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::shrink(int, bool) Unexecuted instantiation: hb_vector_t<unsigned char, false>::shrink(int, bool) Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::shrink(int, bool) Unexecuted instantiation: hb_vector_t<char, false>::shrink(int, bool) Unexecuted instantiation: hb_vector_t<CFF::parsed_cs_op_t, false>::shrink(int, bool) hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::shrink(int, bool) Line | Count | Source | 705 | 54.4k | { | 706 | 54.4k | unsigned int size = size_ < 0 ? 0u : (unsigned int) size_; | 707 | 54.4k | if (size >= length) | 708 | 45.8k | return; | 709 | | | 710 | 8.57k | shrink_vector (size); | 711 | | | 712 | 8.57k | if (is_owned () && shrink_memory) | 713 | 8.57k | alloc_exact (size); /* To force shrinking memory if needed. */ | 714 | 8.57k | } |
hb_vector_t<hb_ot_map_t::lookup_map_t, false>::shrink(int, bool) Line | Count | Source | 705 | 15.1k | { | 706 | 15.1k | unsigned int size = size_ < 0 ? 0u : (unsigned int) size_; | 707 | 15.1k | if (size >= length) | 708 | 3.07k | return; | 709 | | | 710 | 12.0k | shrink_vector (size); | 711 | | | 712 | 12.0k | if (is_owned () && shrink_memory) | 713 | 12.0k | alloc_exact (size); /* To force shrinking memory if needed. */ | 714 | 12.0k | } |
hb_vector_t<hb_transform_t<float>, false>::shrink(int, bool) Line | Count | Source | 705 | 3.14k | { | 706 | 3.14k | unsigned int size = size_ < 0 ? 0u : (unsigned int) size_; | 707 | 3.14k | if (size >= length) | 708 | 0 | return; | 709 | | | 710 | 3.14k | shrink_vector (size); | 711 | | | 712 | 3.14k | if (is_owned () && shrink_memory) | 713 | 3.14k | alloc_exact (size); /* To force shrinking memory if needed. */ | 714 | 3.14k | } |
|
715 | | |
716 | | |
717 | | /* Sorting API. */ |
718 | | template <typename Compar> |
719 | | void qsort (Compar compar) |
720 | 55.1k | { as_array ().qsort (compar); }void hb_vector_t<hb_pair_t<unsigned int, face_table_info_t>, false>::qsort<int (*)(void const*, void const*)>(int (*)(void const*, void const*)) Line | Count | Source | 720 | 9.55k | { as_array ().qsort (compar); } |
hb-face-builder.cc:void hb_vector_t<unsigned int, false>::qsort<_hb_face_builder_get_table_tags(hb_face_t const*, unsigned int, unsigned int*, unsigned int*, void*)::$_0>(_hb_face_builder_get_table_tags(hb_face_t const*, unsigned int, unsigned int*, unsigned int*, void*)::$_0) Line | Count | Source | 720 | 140 | { as_array ().qsort (compar); } |
void hb_vector_t<hb_ot_name_entry_t, false>::qsort<int (*)(void const*, void const*)>(int (*)(void const*, void const*)) Line | Count | Source | 720 | 36.3k | { as_array ().qsort (compar); } |
void hb_vector_t<unsigned int, false>::qsort<int (*)(void const*, void const*)>(int (*)(void const*, void const*)) Line | Count | Source | 720 | 6.81k | { as_array ().qsort (compar); } |
void hb_vector_t<hb_vector_t<int, false> const*, false>::qsort<int (*)(void const*, void const*)>(int (*)(void const*, void const*)) Line | Count | Source | 720 | 2.28k | { as_array ().qsort (compar); } |
void hb_vector_t<hb_pair_t<hb_vector_t<OT::HBFixed<OT::NumType<true, short, 2u>, 14u>, false> const*, unsigned int>, false>::qsort<int (*)(void const*, void const*)>(int (*)(void const*, void const*)) Line | Count | Source | 720 | 2 | { as_array ().qsort (compar); } |
|
721 | | void qsort () |
722 | 60.2k | { as_array ().qsort (); }Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_event_t, false>::qsort() Unexecuted instantiation: hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::qsort() hb_vector_t<OT::cff1::accelerator_t::gname_t, true>::qsort() Line | Count | Source | 722 | 883 | { as_array ().qsort (); } |
hb_vector_t<hb_ot_map_builder_t::feature_info_t, false>::qsort() Line | Count | Source | 722 | 8.65k | { as_array ().qsort (); } |
hb_vector_t<hb_ot_map_t::feature_map_t, true>::qsort() Line | Count | Source | 722 | 46.3k | { as_array ().qsort (); } |
hb_vector_t<hb_serialize_context_t::object_t::link_t, false>::qsort() Line | Count | Source | 722 | 794 | { as_array ().qsort (); } |
hb_vector_t<lookup_size_t, false>::qsort() Line | Count | Source | 722 | 2.77k | { as_array ().qsort (); } |
hb_vector_t<OT::delta_row_encoding_t, false>::qsort() Line | Count | Source | 722 | 683 | { as_array ().qsort (); } |
hb_vector_t<OT::AxisValueMap, false>::qsort() Line | Count | Source | 722 | 168 | { as_array ().qsort (); } |
Unexecuted instantiation: hb_vector_t<hb_pair_t<unsigned int, unsigned int>, true>::qsort() |
723 | | |
724 | | /* Unsorted search API. */ |
725 | | template <typename T> |
726 | | Type *lsearch (const T &x, Type *not_found = nullptr) |
727 | 26.0k | { return as_array ().lsearch (x, not_found); }Unexecuted instantiation: hb_user_data_array_t::hb_user_data_item_t* hb_vector_t<hb_user_data_array_t::hb_user_data_item_t, false>::lsearch<hb_user_data_key_t*>(hb_user_data_key_t* const&, hb_user_data_array_t::hb_user_data_item_t*) hb_user_data_array_t::hb_user_data_item_t* hb_vector_t<hb_user_data_array_t::hb_user_data_item_t, false>::lsearch<hb_user_data_array_t::hb_user_data_item_t>(hb_user_data_array_t::hb_user_data_item_t const&, hb_user_data_array_t::hb_user_data_item_t*) Line | Count | Source | 727 | 26.0k | { return as_array ().lsearch (x, not_found); } |
Unexecuted instantiation: hb_aat_map_builder_t::feature_info_t* hb_vector_t<hb_aat_map_builder_t::feature_info_t, true>::lsearch<hb_aat_map_builder_t::feature_info_t>(hb_aat_map_builder_t::feature_info_t const&, hb_aat_map_builder_t::feature_info_t*) |
728 | | template <typename T> |
729 | | const Type *lsearch (const T &x, const Type *not_found = nullptr) const |
730 | | { return as_array ().lsearch (x, not_found); } |
731 | | template <typename T> |
732 | | bool lfind (const T &x, unsigned *pos = nullptr) const |
733 | | { return as_array ().lfind (x, pos); } |
734 | | |
735 | | /* Sorted search API. */ |
736 | | template <typename T, |
737 | | bool Sorted=sorted, hb_enable_if (Sorted)> |
738 | | Type *bsearch (const T &x, Type *not_found = nullptr) |
739 | 883 | { return as_array ().bsearch (x, not_found); } |
740 | | template <typename T, |
741 | | bool Sorted=sorted, hb_enable_if (Sorted)> |
742 | | const Type *bsearch (const T &x, const Type *not_found = nullptr) const |
743 | 730k | { return as_array ().bsearch (x, not_found); }_ZNK11hb_vector_tIN20hb_aat_map_builder_t14feature_info_tELb1EE7bsearchIS1_Lb1ETnPN12hb_enable_ifIXT0_EvE4typeELPv0EEEPKS1_RKT_SA_ Line | Count | Source | 743 | 208k | { return as_array ().bsearch (x, not_found); } |
_ZNK11hb_vector_tIN11hb_ot_map_t13feature_map_tELb1EE7bsearchIjLb1ETnPN12hb_enable_ifIXT0_EvE4typeELPv0EEEPKS1_RKT_SA_ Line | Count | Source | 743 | 521k | { return as_array ().bsearch (x, not_found); } |
|
744 | | template <typename T, |
745 | | bool Sorted=sorted, hb_enable_if (Sorted)> |
746 | | bool bfind (const T &x, unsigned int *i = nullptr, |
747 | | hb_not_found_t not_found = HB_NOT_FOUND_DONT_STORE, |
748 | | unsigned int to_store = (unsigned int) -1) const |
749 | 2.95G | { return as_array ().bfind (x, i, not_found, to_store); }_ZNK11hb_vector_tIN12hb_bit_set_t10page_map_tELb1EE5bfindIS1_Lb1ETnPN12hb_enable_ifIXT0_EvE4typeELPv0EEEbRKT_Pj14hb_not_found_tj Line | Count | Source | 749 | 2.95G | { return as_array ().bfind (x, i, not_found, to_store); } |
_ZNK11hb_vector_tIN12hb_bit_set_t10page_map_tELb1EE5bfindIjLb1ETnPN12hb_enable_ifIXT0_EvE4typeELPv0EEEbRKT_Pj14hb_not_found_tj Line | Count | Source | 749 | 5.47M | { return as_array ().bfind (x, i, not_found, to_store); } |
|
750 | | }; |
751 | | |
752 | | template <typename Type> |
753 | | using hb_sorted_vector_t = hb_vector_t<Type, true>; |
754 | | |
755 | | #endif /* HB_VECTOR_HH */ |