/src/skia/third_party/externals/harfbuzz/src/hb-object.hh
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright © 2007 Chris Wilson |
3 | | * Copyright © 2009,2010 Red Hat, Inc. |
4 | | * Copyright © 2011,2012 Google, Inc. |
5 | | * |
6 | | * This is part of HarfBuzz, a text shaping library. |
7 | | * |
8 | | * Permission is hereby granted, without written agreement and without |
9 | | * license or royalty fees, to use, copy, modify, and distribute this |
10 | | * software and its documentation for any purpose, provided that the |
11 | | * above copyright notice and the following two paragraphs appear in |
12 | | * all copies of this software. |
13 | | * |
14 | | * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR |
15 | | * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES |
16 | | * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN |
17 | | * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
18 | | * DAMAGE. |
19 | | * |
20 | | * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, |
21 | | * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND |
22 | | * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS |
23 | | * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO |
24 | | * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
25 | | * |
26 | | * Contributor(s): |
27 | | * Chris Wilson <chris@chris-wilson.co.uk> |
28 | | * Red Hat Author(s): Behdad Esfahbod |
29 | | * Google Author(s): Behdad Esfahbod |
30 | | */ |
31 | | |
32 | | #ifndef HB_OBJECT_HH |
33 | | #define HB_OBJECT_HH |
34 | | |
35 | | #include "hb.hh" |
36 | | #include "hb-atomic.hh" |
37 | | #include "hb-mutex.hh" |
38 | | #include "hb-vector.hh" |
39 | | |
40 | | |
41 | | /* |
42 | | * Lockable set |
43 | | */ |
44 | | |
45 | | template <typename item_t, typename lock_t> |
46 | | struct hb_lockable_set_t |
47 | | { |
48 | | hb_vector_t<item_t> items; |
49 | | |
50 | 0 | void init () { items.init (); } |
51 | | |
52 | | template <typename T> |
53 | | item_t *replace_or_insert (T v, lock_t &l, bool replace) |
54 | 0 | { |
55 | 0 | l.lock (); |
56 | 0 | item_t *item = items.find (v); |
57 | 0 | if (item) { |
58 | 0 | if (replace) { |
59 | 0 | item_t old = *item; |
60 | 0 | *item = v; |
61 | 0 | l.unlock (); |
62 | 0 | old.fini (); |
63 | 0 | } |
64 | 0 | else { |
65 | 0 | item = nullptr; |
66 | 0 | l.unlock (); |
67 | 0 | } |
68 | 0 | } else { |
69 | 0 | item = items.push (v); |
70 | 0 | l.unlock (); |
71 | 0 | } |
72 | 0 | return item; |
73 | 0 | } |
74 | | |
75 | | template <typename T> |
76 | | void remove (T v, lock_t &l) |
77 | 0 | { |
78 | 0 | l.lock (); |
79 | 0 | item_t *item = items.find (v); |
80 | 0 | if (item) |
81 | 0 | { |
82 | 0 | item_t old = *item; |
83 | 0 | *item = items[items.length - 1]; |
84 | 0 | items.pop (); |
85 | 0 | l.unlock (); |
86 | 0 | old.fini (); |
87 | 0 | } else { |
88 | 0 | l.unlock (); |
89 | 0 | } |
90 | 0 | } |
91 | | |
92 | | template <typename T> |
93 | | bool find (T v, item_t *i, lock_t &l) |
94 | 0 | { |
95 | 0 | l.lock (); |
96 | 0 | item_t *item = items.find (v); |
97 | 0 | if (item) |
98 | 0 | *i = *item; |
99 | 0 | l.unlock (); |
100 | 0 | return !!item; |
101 | 0 | } |
102 | | |
103 | | template <typename T> |
104 | | item_t *find_or_insert (T v, lock_t &l) |
105 | | { |
106 | | l.lock (); |
107 | | item_t *item = items.find (v); |
108 | | if (!item) { |
109 | | item = items.push (v); |
110 | | } |
111 | | l.unlock (); |
112 | | return item; |
113 | | } |
114 | | |
115 | | void fini (lock_t &l) |
116 | 0 | { |
117 | 0 | if (!items.length) |
118 | 0 | { |
119 | | /* No need to lock. */ |
120 | 0 | items.fini (); |
121 | 0 | return; |
122 | 0 | } |
123 | 0 | l.lock (); |
124 | 0 | while (items.length) |
125 | 0 | { |
126 | 0 | item_t old = items[items.length - 1]; |
127 | 0 | items.pop (); |
128 | 0 | l.unlock (); |
129 | 0 | old.fini (); |
130 | 0 | l.lock (); |
131 | 0 | } |
132 | 0 | items.fini (); |
133 | 0 | l.unlock (); |
134 | 0 | } |
135 | | |
136 | | }; |
137 | | |
138 | | |
139 | | /* |
140 | | * Reference-count. |
141 | | */ |
142 | | |
143 | | #define HB_REFERENCE_COUNT_INIT {0} |
144 | | |
145 | | struct hb_reference_count_t |
146 | | { |
147 | | mutable hb_atomic_int_t ref_count; |
148 | | |
149 | 1.00M | void init (int v = 1) { ref_count.set_relaxed (v); } |
150 | 10.0M | int get_relaxed () const { return ref_count.get_relaxed (); } |
151 | 3.32M | int inc () const { return ref_count.inc (); } |
152 | 4.33M | int dec () const { return ref_count.dec (); } |
153 | 1.00M | void fini () { ref_count.set_relaxed (-0x0000DEAD); } |
154 | | |
155 | 9.97M | bool is_inert () const { return !ref_count.get_relaxed (); } |
156 | 0 | bool is_valid () const { return ref_count.get_relaxed () > 0; } |
157 | | }; |
158 | | |
159 | | |
160 | | /* user_data */ |
161 | | |
162 | | struct hb_user_data_array_t |
163 | | { |
164 | | struct hb_user_data_item_t { |
165 | | hb_user_data_key_t *key; |
166 | | void *data; |
167 | | hb_destroy_func_t destroy; |
168 | | |
169 | 0 | bool operator == (const hb_user_data_key_t *other_key) const { return key == other_key; } |
170 | 0 | bool operator == (const hb_user_data_item_t &other) const { return key == other.key; } |
171 | | |
172 | 0 | void fini () { if (destroy) destroy (data); } |
173 | | }; |
174 | | |
175 | | hb_mutex_t lock; |
176 | | hb_lockable_set_t<hb_user_data_item_t, hb_mutex_t> items; |
177 | | |
178 | 0 | void init () { lock.init (); items.init (); } |
179 | | |
180 | | HB_INTERNAL bool set (hb_user_data_key_t *key, |
181 | | void * data, |
182 | | hb_destroy_func_t destroy, |
183 | | hb_bool_t replace); |
184 | | |
185 | | HB_INTERNAL void *get (hb_user_data_key_t *key); |
186 | | |
187 | 0 | void fini () { items.fini (lock); lock.fini (); } |
188 | | }; |
189 | | |
190 | | |
191 | | /* |
192 | | * Object header |
193 | | */ |
194 | | |
195 | | struct hb_object_header_t |
196 | | { |
197 | | hb_reference_count_t ref_count; |
198 | | mutable hb_atomic_int_t writable = 0; |
199 | | hb_atomic_ptr_t<hb_user_data_array_t> user_data; |
200 | | }; |
201 | | #define HB_OBJECT_HEADER_STATIC {} |
202 | | |
203 | | |
204 | | /* |
205 | | * Object |
206 | | */ |
207 | | |
208 | | template <typename Type> |
209 | | static inline void hb_object_trace (const Type *obj, const char *function) |
210 | 10.1M | { |
211 | 10.1M | DEBUG_MSG (OBJECT, (void *) obj, |
212 | 10.1M | "%s refcount=%d", |
213 | 10.1M | function, |
214 | 10.1M | obj ? obj->header.ref_count.get_relaxed () : 0); |
215 | 10.1M | } hb-blob.cc:void hb_object_trace<hb_blob_t>(hb_blob_t const*, char const*) Line | Count | Source | 210 | 24 | { | 211 | 24 | DEBUG_MSG (OBJECT, (void *) obj, | 212 | 24 | "%s refcount=%d", | 213 | 24 | function, | 214 | 24 | obj ? obj->header.ref_count.get_relaxed () : 0); | 215 | 24 | } |
hb-buffer.cc:void hb_object_trace<hb_buffer_t>(hb_buffer_t const*, char const*) Line | Count | Source | 210 | 154k | { | 211 | 154k | DEBUG_MSG (OBJECT, (void *) obj, | 212 | 154k | "%s refcount=%d", | 213 | 154k | function, | 214 | 154k | obj ? obj->header.ref_count.get_relaxed () : 0); | 215 | 154k | } |
hb-face.cc:void hb_object_trace<hb_face_t>(hb_face_t const*, char const*) Line | Count | Source | 210 | 1.85M | { | 211 | 1.85M | DEBUG_MSG (OBJECT, (void *) obj, | 212 | 1.85M | "%s refcount=%d", | 213 | 1.85M | function, | 214 | 1.85M | obj ? obj->header.ref_count.get_relaxed () : 0); | 215 | 1.85M | } |
hb-font.cc:void hb_object_trace<hb_font_t>(hb_font_t const*, char const*) Line | Count | Source | 210 | 3.24M | { | 211 | 3.24M | DEBUG_MSG (OBJECT, (void *) obj, | 212 | 3.24M | "%s refcount=%d", | 213 | 3.24M | function, | 214 | 3.24M | obj ? obj->header.ref_count.get_relaxed () : 0); | 215 | 3.24M | } |
hb-font.cc:void hb_object_trace<hb_font_funcs_t>(hb_font_funcs_t const*, char const*) Line | Count | Source | 210 | 3.71M | { | 211 | 3.71M | DEBUG_MSG (OBJECT, (void *) obj, | 212 | 3.71M | "%s refcount=%d", | 213 | 3.71M | function, | 214 | 3.71M | obj ? obj->header.ref_count.get_relaxed () : 0); | 215 | 3.71M | } |
Unexecuted instantiation: hb-set.cc:void hb_object_trace<hb_set_t>(hb_set_t const*, char const*) hb-shape-plan.cc:void hb_object_trace<hb_shape_plan_t>(hb_shape_plan_t const*, char const*) Line | Count | Source | 210 | 928k | { | 211 | 928k | DEBUG_MSG (OBJECT, (void *) obj, | 212 | 928k | "%s refcount=%d", | 213 | 928k | function, | 214 | 928k | obj ? obj->header.ref_count.get_relaxed () : 0); | 215 | 928k | } |
hb-unicode.cc:void hb_object_trace<hb_unicode_funcs_t>(hb_unicode_funcs_t const*, char const*) Line | Count | Source | 210 | 232k | { | 211 | 232k | DEBUG_MSG (OBJECT, (void *) obj, | 212 | 232k | "%s refcount=%d", | 213 | 232k | function, | 214 | 232k | obj ? obj->header.ref_count.get_relaxed () : 0); | 215 | 232k | } |
Unexecuted instantiation: hb-subset-input.cc:void hb_object_trace<hb_subset_input_t>(hb_subset_input_t const*, char const*) Unexecuted instantiation: hb-map.cc:void hb_object_trace<hb_map_t>(hb_map_t const*, char const*) Unexecuted instantiation: hb-subset-plan.cc:void hb_object_trace<hb_subset_plan_t>(hb_subset_plan_t const*, char const*) Unexecuted instantiation: hb-subset-plan.cc:void hb_object_trace<hb_hashmap_t<unsigned int, hb_set_t*, 4294967295u, (hb_set_t*)0> >(hb_hashmap_t<unsigned int, hb_set_t*, 4294967295u, (hb_set_t*)0> const*, char const*) |
216 | | |
217 | | template <typename Type> |
218 | | static inline Type *hb_object_create () |
219 | 1.00M | { |
220 | 1.00M | Type *obj = (Type *) hb_calloc (1, sizeof (Type)); |
221 | | |
222 | 1.00M | if (unlikely (!obj)) |
223 | 0 | return obj; |
224 | | |
225 | 1.00M | hb_object_init (obj); |
226 | 1.00M | hb_object_trace (obj, HB_FUNC); |
227 | 1.00M | return obj; |
228 | 1.00M | } Unexecuted instantiation: hb-blob.cc:hb_blob_t* hb_object_create<hb_blob_t>() hb-buffer.cc:hb_buffer_t* hb_object_create<hb_buffer_t>() Line | Count | Source | 219 | 77.4k | { | 220 | 77.4k | Type *obj = (Type *) hb_calloc (1, sizeof (Type)); | 221 | | | 222 | 77.4k | if (unlikely (!obj)) | 223 | 0 | return obj; | 224 | | | 225 | 77.4k | hb_object_init (obj); | 226 | 77.4k | hb_object_trace (obj, HB_FUNC); | 227 | 77.4k | return obj; | 228 | 77.4k | } |
hb-face.cc:hb_face_t* hb_object_create<hb_face_t>() Line | Count | Source | 219 | 1 | { | 220 | 1 | Type *obj = (Type *) hb_calloc (1, sizeof (Type)); | 221 | | | 222 | 1 | if (unlikely (!obj)) | 223 | 0 | return obj; | 224 | | | 225 | 1 | hb_object_init (obj); | 226 | 1 | hb_object_trace (obj, HB_FUNC); | 227 | 1 | return obj; | 228 | 1 | } |
hb-font.cc:hb_font_t* hb_object_create<hb_font_t>() Line | Count | Source | 219 | 928k | { | 220 | 928k | Type *obj = (Type *) hb_calloc (1, sizeof (Type)); | 221 | | | 222 | 928k | if (unlikely (!obj)) | 223 | 0 | return obj; | 224 | | | 225 | 928k | hb_object_init (obj); | 226 | 928k | hb_object_trace (obj, HB_FUNC); | 227 | 928k | return obj; | 228 | 928k | } |
hb-font.cc:hb_font_funcs_t* hb_object_create<hb_font_funcs_t>() Line | Count | Source | 219 | 2 | { | 220 | 2 | Type *obj = (Type *) hb_calloc (1, sizeof (Type)); | 221 | | | 222 | 2 | if (unlikely (!obj)) | 223 | 0 | return obj; | 224 | | | 225 | 2 | hb_object_init (obj); | 226 | 2 | hb_object_trace (obj, HB_FUNC); | 227 | 2 | return obj; | 228 | 2 | } |
Unexecuted instantiation: hb-set.cc:hb_set_t* hb_object_create<hb_set_t>() hb-shape-plan.cc:hb_shape_plan_t* hb_object_create<hb_shape_plan_t>() Line | Count | Source | 219 | 171 | { | 220 | 171 | Type *obj = (Type *) hb_calloc (1, sizeof (Type)); | 221 | | | 222 | 171 | if (unlikely (!obj)) | 223 | 0 | return obj; | 224 | | | 225 | 171 | hb_object_init (obj); | 226 | 171 | hb_object_trace (obj, HB_FUNC); | 227 | 171 | return obj; | 228 | 171 | } |
hb-unicode.cc:hb_unicode_funcs_t* hb_object_create<hb_unicode_funcs_t>() Line | Count | Source | 219 | 2 | { | 220 | 2 | Type *obj = (Type *) hb_calloc (1, sizeof (Type)); | 221 | | | 222 | 2 | if (unlikely (!obj)) | 223 | 0 | return obj; | 224 | | | 225 | 2 | hb_object_init (obj); | 226 | 2 | hb_object_trace (obj, HB_FUNC); | 227 | 2 | return obj; | 228 | 2 | } |
Unexecuted instantiation: hb-subset-input.cc:hb_subset_input_t* hb_object_create<hb_subset_input_t>() Unexecuted instantiation: hb-map.cc:hb_map_t* hb_object_create<hb_map_t>() Unexecuted instantiation: hb-subset-plan.cc:hb_subset_plan_t* hb_object_create<hb_subset_plan_t>() Unexecuted instantiation: hb-subset-plan.cc:hb_hashmap_t<unsigned int, hb_set_t*, 4294967295u, (hb_set_t*)0>* hb_object_create<hb_hashmap_t<unsigned int, hb_set_t*, 4294967295u, (hb_set_t*)0> >() |
229 | | template <typename Type> |
230 | | static inline void hb_object_init (Type *obj) |
231 | 1.00M | { |
232 | 1.00M | obj->header.ref_count.init (); |
233 | 1.00M | obj->header.writable.set_relaxed (true); |
234 | 1.00M | obj->header.user_data.init (); |
235 | 1.00M | } Unexecuted instantiation: hb-blob.cc:void hb_object_init<hb_blob_t>(hb_blob_t*) hb-buffer.cc:void hb_object_init<hb_buffer_t>(hb_buffer_t*) Line | Count | Source | 231 | 77.4k | { | 232 | 77.4k | obj->header.ref_count.init (); | 233 | 77.4k | obj->header.writable.set_relaxed (true); | 234 | 77.4k | obj->header.user_data.init (); | 235 | 77.4k | } |
Unexecuted instantiation: hb-buffer.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-buffer.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-common.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-face.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) hb-face.cc:void hb_object_init<hb_face_t>(hb_face_t*) Line | Count | Source | 231 | 1 | { | 232 | 1 | obj->header.ref_count.init (); | 233 | 1 | obj->header.writable.set_relaxed (true); | 234 | 1 | obj->header.user_data.init (); | 235 | 1 | } |
Unexecuted instantiation: hb-face.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-fallback-shape.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) hb-font.cc:void hb_object_init<hb_font_t>(hb_font_t*) Line | Count | Source | 231 | 928k | { | 232 | 928k | obj->header.ref_count.init (); | 233 | 928k | obj->header.writable.set_relaxed (true); | 234 | 928k | obj->header.user_data.init (); | 235 | 928k | } |
hb-font.cc:void hb_object_init<hb_font_funcs_t>(hb_font_funcs_t*) Line | Count | Source | 231 | 2 | { | 232 | 2 | obj->header.ref_count.init (); | 233 | 2 | obj->header.writable.set_relaxed (true); | 234 | 2 | obj->header.user_data.init (); | 235 | 2 | } |
Unexecuted instantiation: hb-font.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-font.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-number.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-face.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-face.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-face.cc:void hb_object_init<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-ot-font.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-font.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-font.cc:void hb_object_init<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-ot-metrics.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-metrics.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-metrics.cc:void hb_object_init<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-ot-shape.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-var.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-var.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-var.cc:void hb_object_init<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-set.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-set.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) hb-shape-plan.cc:void hb_object_init<hb_shape_plan_t>(hb_shape_plan_t*) Line | Count | Source | 231 | 171 | { | 232 | 171 | obj->header.ref_count.init (); | 233 | 171 | obj->header.writable.set_relaxed (true); | 234 | 171 | obj->header.user_data.init (); | 235 | 171 | } |
Unexecuted instantiation: hb-shape-plan.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-shape.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-shaper.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-static.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-static.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-static.cc:void hb_object_init<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) hb-unicode.cc:void hb_object_init<hb_unicode_funcs_t>(hb_unicode_funcs_t*) Line | Count | Source | 231 | 2 | { | 232 | 2 | obj->header.ref_count.init (); | 233 | 2 | obj->header.writable.set_relaxed (true); | 234 | 2 | obj->header.user_data.init (); | 235 | 2 | } |
Unexecuted instantiation: hb-aat-layout.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-aat-layout.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-aat-layout.cc:void hb_object_init<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-aat-map.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-aat-map.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-cff1-table.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-cff1-table.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-cff1-table.cc:void hb_object_init<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-ot-cff2-table.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-cff2-table.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-cff2-table.cc:void hb_object_init<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-ot-layout.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-layout.cc:void hb_object_init<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-ot-layout.cc:void hb_object_init<hb_hashmap_t<unsigned int, hb_set_t*, 4294967295u, (hb_set_t*)0> >(hb_hashmap_t<unsigned int, hb_set_t*, 4294967295u, (hb_set_t*)0>*) Unexecuted instantiation: hb-ot-layout.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-map.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-map.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-arabic.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-arabic.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-arabic.cc:void hb_object_init<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-ot-shape-complex-default.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-default.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-hangul.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-hangul.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-hebrew.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-hebrew.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-indic.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-indic.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-khmer.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-khmer.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-myanmar.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-myanmar.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-syllabic.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-syllabic.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-thai.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-thai.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-use.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-use.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-vowel-constraints.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-vowel-constraints.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-fallback.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-fallback.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-fallback.cc:void hb_object_init<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-ot-shape-normalize.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-normalize.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ucd.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-indic-table.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-indic-table.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-subset-input.cc:void hb_object_init<hb_subset_input_t>(hb_subset_input_t*) Unexecuted instantiation: hb-subset-input.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-subset-input.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-subset.cc:void hb_object_init<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-subset.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-subset.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-map.cc:void hb_object_init<hb_map_t>(hb_map_t*) Unexecuted instantiation: hb-subset-cff1.cc:void hb_object_init<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-subset-cff1.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-subset-cff1.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-subset-cff2.cc:void hb_object_init<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-subset-cff2.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-subset-cff2.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-subset-plan.cc:void hb_object_init<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-subset-plan.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-subset-plan.cc:void hb_object_init<hb_subset_plan_t>(hb_subset_plan_t*) Unexecuted instantiation: hb-subset-plan.cc:void hb_object_init<hb_hashmap_t<unsigned int, hb_set_t*, 4294967295u, (hb_set_t*)0> >(hb_hashmap_t<unsigned int, hb_set_t*, 4294967295u, (hb_set_t*)0>*) Unexecuted instantiation: hb-subset-plan.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-subset-cff-common.cc:void hb_object_init<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-subset-cff-common.cc:void hb_object_init<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-subset-cff-common.cc:void hb_object_init<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) |
236 | | template <typename Type> |
237 | | static inline bool hb_object_is_inert (const Type *obj) |
238 | 9.97M | { |
239 | 9.97M | return unlikely (obj->header.ref_count.is_inert ()); |
240 | 9.97M | } hb-blob.cc:bool hb_object_is_inert<hb_blob_t>(hb_blob_t const*) Line | Count | Source | 238 | 24 | { | 239 | 24 | return unlikely (obj->header.ref_count.is_inert ()); | 240 | 24 | } |
hb-buffer.cc:bool hb_object_is_inert<hb_buffer_t>(hb_buffer_t const*) Line | Count | Source | 238 | 77.4k | { | 239 | 77.4k | return unlikely (obj->header.ref_count.is_inert ()); | 240 | 77.4k | } |
hb-face.cc:bool hb_object_is_inert<hb_face_t>(hb_face_t const*) Line | Count | Source | 238 | 1.85M | { | 239 | 1.85M | return unlikely (obj->header.ref_count.is_inert ()); | 240 | 1.85M | } |
hb-font.cc:bool hb_object_is_inert<hb_font_funcs_t>(hb_font_funcs_t const*) Line | Count | Source | 238 | 3.71M | { | 239 | 3.71M | return unlikely (obj->header.ref_count.is_inert ()); | 240 | 3.71M | } |
hb-font.cc:bool hb_object_is_inert<hb_font_t>(hb_font_t const*) Line | Count | Source | 238 | 2.32M | { | 239 | 2.32M | return unlikely (obj->header.ref_count.is_inert ()); | 240 | 2.32M | } |
Unexecuted instantiation: hb-set.cc:bool hb_object_is_inert<hb_set_t>(hb_set_t const*) hb-shape-plan.cc:bool hb_object_is_inert<hb_shape_plan_t>(hb_shape_plan_t const*) Line | Count | Source | 238 | 1.39M | { | 239 | 1.39M | return unlikely (obj->header.ref_count.is_inert ()); | 240 | 1.39M | } |
hb-shape-plan.cc:bool hb_object_is_inert<hb_face_t>(hb_face_t const*) Line | Count | Source | 238 | 464k | { | 239 | 464k | return unlikely (obj->header.ref_count.is_inert ()); | 240 | 464k | } |
hb-unicode.cc:bool hb_object_is_inert<hb_unicode_funcs_t>(hb_unicode_funcs_t const*) Line | Count | Source | 238 | 154k | { | 239 | 154k | return unlikely (obj->header.ref_count.is_inert ()); | 240 | 154k | } |
Unexecuted instantiation: hb-subset-input.cc:bool hb_object_is_inert<hb_subset_input_t>(hb_subset_input_t const*) Unexecuted instantiation: hb-map.cc:bool hb_object_is_inert<hb_map_t>(hb_map_t const*) Unexecuted instantiation: hb-subset-plan.cc:bool hb_object_is_inert<hb_subset_plan_t>(hb_subset_plan_t const*) Unexecuted instantiation: hb-subset-plan.cc:bool hb_object_is_inert<hb_hashmap_t<unsigned int, hb_set_t*, 4294967295u, (hb_set_t*)0> >(hb_hashmap_t<unsigned int, hb_set_t*, 4294967295u, (hb_set_t*)0> const*) |
241 | | template <typename Type> |
242 | | static inline bool hb_object_is_valid (const Type *obj) |
243 | | { |
244 | | return likely (obj->header.ref_count.is_valid ()); |
245 | | } |
246 | | template <typename Type> |
247 | | static inline bool hb_object_is_immutable (const Type *obj) |
248 | 6.49M | { |
249 | 6.49M | return !obj->header.writable.get_relaxed (); |
250 | 6.49M | } Unexecuted instantiation: hb-blob.cc:bool hb_object_is_immutable<hb_blob_t>(hb_blob_t const*) hb-buffer.cc:bool hb_object_is_immutable<hb_buffer_t>(hb_buffer_t const*) Line | Count | Source | 248 | 3.24M | { | 249 | 3.24M | return !obj->header.writable.get_relaxed (); | 250 | 3.24M | } |
hb-face.cc:bool hb_object_is_immutable<hb_face_t>(hb_face_t const*) Line | Count | Source | 248 | 928k | { | 249 | 928k | return !obj->header.writable.get_relaxed (); | 250 | 928k | } |
hb-font.cc:bool hb_object_is_immutable<hb_font_funcs_t>(hb_font_funcs_t const*) Line | Count | Source | 248 | 19 | { | 249 | 19 | return !obj->header.writable.get_relaxed (); | 250 | 19 | } |
hb-font.cc:bool hb_object_is_immutable<hb_font_t>(hb_font_t const*) Line | Count | Source | 248 | 2.32M | { | 249 | 2.32M | return !obj->header.writable.get_relaxed (); | 250 | 2.32M | } |
Unexecuted instantiation: hb-set.cc:bool hb_object_is_immutable<hb_set_t>(hb_set_t const*) hb-unicode.cc:bool hb_object_is_immutable<hb_unicode_funcs_t>(hb_unicode_funcs_t const*) Line | Count | Source | 248 | 16 | { | 249 | 16 | return !obj->header.writable.get_relaxed (); | 250 | 16 | } |
Unexecuted instantiation: hb-map.cc:bool hb_object_is_immutable<hb_map_t>(hb_map_t const*) |
251 | | template <typename Type> |
252 | | static inline void hb_object_make_immutable (const Type *obj) |
253 | 5 | { |
254 | 5 | obj->header.writable.set_relaxed (false); |
255 | 5 | } Unexecuted instantiation: hb-blob.cc:void hb_object_make_immutable<hb_blob_t>(hb_blob_t const*) hb-face.cc:void hb_object_make_immutable<hb_face_t>(hb_face_t const*) Line | Count | Source | 253 | 1 | { | 254 | 1 | obj->header.writable.set_relaxed (false); | 255 | 1 | } |
hb-font.cc:void hb_object_make_immutable<hb_font_funcs_t>(hb_font_funcs_t const*) Line | Count | Source | 253 | 2 | { | 254 | 2 | obj->header.writable.set_relaxed (false); | 255 | 2 | } |
Unexecuted instantiation: hb-font.cc:void hb_object_make_immutable<hb_font_t>(hb_font_t const*) hb-unicode.cc:void hb_object_make_immutable<hb_unicode_funcs_t>(hb_unicode_funcs_t const*) Line | Count | Source | 253 | 2 | { | 254 | 2 | obj->header.writable.set_relaxed (false); | 255 | 2 | } |
|
256 | | template <typename Type> |
257 | | static inline Type *hb_object_reference (Type *obj) |
258 | 3.32M | { |
259 | 3.32M | hb_object_trace (obj, HB_FUNC); |
260 | 3.32M | if (unlikely (!obj || hb_object_is_inert (obj))) |
261 | 12 | return obj; |
262 | 3.32M | assert (hb_object_is_valid (obj)); |
263 | 3.32M | obj->header.ref_count.inc (); |
264 | 3.32M | return obj; |
265 | 3.32M | } hb-blob.cc:hb_blob_t* hb_object_reference<hb_blob_t>(hb_blob_t*) Line | Count | Source | 258 | 10 | { | 259 | 10 | hb_object_trace (obj, HB_FUNC); | 260 | 10 | if (unlikely (!obj || hb_object_is_inert (obj))) | 261 | 10 | return obj; | 262 | 0 | assert (hb_object_is_valid (obj)); | 263 | 0 | obj->header.ref_count.inc (); | 264 | 0 | return obj; | 265 | 0 | } |
Unexecuted instantiation: hb-buffer.cc:hb_buffer_t* hb_object_reference<hb_buffer_t>(hb_buffer_t*) hb-face.cc:hb_face_t* hb_object_reference<hb_face_t>(hb_face_t*) Line | Count | Source | 258 | 928k | { | 259 | 928k | hb_object_trace (obj, HB_FUNC); | 260 | 928k | if (unlikely (!obj || hb_object_is_inert (obj))) | 261 | 0 | return obj; | 262 | 928k | assert (hb_object_is_valid (obj)); | 263 | 928k | obj->header.ref_count.inc (); | 264 | 928k | return obj; | 265 | 928k | } |
hb-font.cc:hb_font_funcs_t* hb_object_reference<hb_font_funcs_t>(hb_font_funcs_t*) Line | Count | Source | 258 | 1.39M | { | 259 | 1.39M | hb_object_trace (obj, HB_FUNC); | 260 | 1.39M | if (unlikely (!obj || hb_object_is_inert (obj))) | 261 | 0 | return obj; | 262 | 1.39M | assert (hb_object_is_valid (obj)); | 263 | 1.39M | obj->header.ref_count.inc (); | 264 | 1.39M | return obj; | 265 | 1.39M | } |
hb-font.cc:hb_font_t* hb_object_reference<hb_font_t>(hb_font_t*) Line | Count | Source | 258 | 464k | { | 259 | 464k | hb_object_trace (obj, HB_FUNC); | 260 | 464k | if (unlikely (!obj || hb_object_is_inert (obj))) | 261 | 0 | return obj; | 262 | 464k | assert (hb_object_is_valid (obj)); | 263 | 464k | obj->header.ref_count.inc (); | 264 | 464k | return obj; | 265 | 464k | } |
Unexecuted instantiation: hb-set.cc:hb_set_t* hb_object_reference<hb_set_t>(hb_set_t*) hb-shape-plan.cc:hb_shape_plan_t* hb_object_reference<hb_shape_plan_t>(hb_shape_plan_t*) Line | Count | Source | 258 | 464k | { | 259 | 464k | hb_object_trace (obj, HB_FUNC); | 260 | 464k | if (unlikely (!obj || hb_object_is_inert (obj))) | 261 | 0 | return obj; | 262 | 464k | assert (hb_object_is_valid (obj)); | 263 | 464k | obj->header.ref_count.inc (); | 264 | 464k | return obj; | 265 | 464k | } |
hb-unicode.cc:hb_unicode_funcs_t* hb_object_reference<hb_unicode_funcs_t>(hb_unicode_funcs_t*) Line | Count | Source | 258 | 77.4k | { | 259 | 77.4k | hb_object_trace (obj, HB_FUNC); | 260 | 77.4k | if (unlikely (!obj || hb_object_is_inert (obj))) | 261 | 2 | return obj; | 262 | 77.4k | assert (hb_object_is_valid (obj)); | 263 | 77.4k | obj->header.ref_count.inc (); | 264 | 77.4k | return obj; | 265 | 77.4k | } |
Unexecuted instantiation: hb-subset-input.cc:hb_subset_input_t* hb_object_reference<hb_subset_input_t>(hb_subset_input_t*) Unexecuted instantiation: hb-map.cc:hb_map_t* hb_object_reference<hb_map_t>(hb_map_t*) |
266 | | template <typename Type> |
267 | | static inline bool hb_object_destroy (Type *obj) |
268 | 5.80M | { |
269 | 5.80M | hb_object_trace (obj, HB_FUNC); |
270 | 5.80M | if (unlikely (!obj || hb_object_is_inert (obj))) |
271 | 1.46M | return false; |
272 | 4.33M | assert (hb_object_is_valid (obj)); |
273 | 4.33M | if (obj->header.ref_count.dec () != 1) |
274 | 3.32M | return false; |
275 | | |
276 | 1.00M | hb_object_fini (obj); |
277 | 1.00M | return true; |
278 | 1.00M | } hb-blob.cc:bool hb_object_destroy<hb_blob_t>(hb_blob_t*) Line | Count | Source | 268 | 14 | { | 269 | 14 | hb_object_trace (obj, HB_FUNC); | 270 | 14 | if (unlikely (!obj || hb_object_is_inert (obj))) | 271 | 14 | return false; | 272 | 0 | assert (hb_object_is_valid (obj)); | 273 | 0 | if (obj->header.ref_count.dec () != 1) | 274 | 0 | return false; | 275 | | | 276 | 0 | hb_object_fini (obj); | 277 | 0 | return true; | 278 | 0 | } |
hb-buffer.cc:bool hb_object_destroy<hb_buffer_t>(hb_buffer_t*) Line | Count | Source | 268 | 77.4k | { | 269 | 77.4k | hb_object_trace (obj, HB_FUNC); | 270 | 77.4k | if (unlikely (!obj || hb_object_is_inert (obj))) | 271 | 0 | return false; | 272 | 77.4k | assert (hb_object_is_valid (obj)); | 273 | 77.4k | if (obj->header.ref_count.dec () != 1) | 274 | 0 | return false; | 275 | | | 276 | 77.4k | hb_object_fini (obj); | 277 | 77.4k | return true; | 278 | 77.4k | } |
hb-face.cc:bool hb_object_destroy<hb_face_t>(hb_face_t*) Line | Count | Source | 268 | 928k | { | 269 | 928k | hb_object_trace (obj, HB_FUNC); | 270 | 928k | if (unlikely (!obj || hb_object_is_inert (obj))) | 271 | 0 | return false; | 272 | 928k | assert (hb_object_is_valid (obj)); | 273 | 928k | if (obj->header.ref_count.dec () != 1) | 274 | 928k | return false; | 275 | | | 276 | 1 | hb_object_fini (obj); | 277 | 1 | return true; | 278 | 1 | } |
hb-font.cc:bool hb_object_destroy<hb_font_funcs_t>(hb_font_funcs_t*) Line | Count | Source | 268 | 2.32M | { | 269 | 2.32M | hb_object_trace (obj, HB_FUNC); | 270 | 2.32M | if (unlikely (!obj || hb_object_is_inert (obj))) | 271 | 928k | return false; | 272 | 1.39M | assert (hb_object_is_valid (obj)); | 273 | 1.39M | if (obj->header.ref_count.dec () != 1) | 274 | 1.39M | return false; | 275 | | | 276 | 0 | hb_object_fini (obj); | 277 | 0 | return true; | 278 | 0 | } |
hb-font.cc:bool hb_object_destroy<hb_font_t>(hb_font_t*) Line | Count | Source | 268 | 1.85M | { | 269 | 1.85M | hb_object_trace (obj, HB_FUNC); | 270 | 1.85M | if (unlikely (!obj || hb_object_is_inert (obj))) | 271 | 464k | return false; | 272 | 1.39M | assert (hb_object_is_valid (obj)); | 273 | 1.39M | if (obj->header.ref_count.dec () != 1) | 274 | 464k | return false; | 275 | | | 276 | 928k | hb_object_fini (obj); | 277 | 928k | return true; | 278 | 928k | } |
Unexecuted instantiation: hb-set.cc:bool hb_object_destroy<hb_set_t>(hb_set_t*) hb-shape-plan.cc:bool hb_object_destroy<hb_shape_plan_t>(hb_shape_plan_t*) Line | Count | Source | 268 | 464k | { | 269 | 464k | hb_object_trace (obj, HB_FUNC); | 270 | 464k | if (unlikely (!obj || hb_object_is_inert (obj))) | 271 | 0 | return false; | 272 | 464k | assert (hb_object_is_valid (obj)); | 273 | 464k | if (obj->header.ref_count.dec () != 1) | 274 | 464k | return false; | 275 | | | 276 | 171 | hb_object_fini (obj); | 277 | 171 | return true; | 278 | 171 | } |
hb-unicode.cc:bool hb_object_destroy<hb_unicode_funcs_t>(hb_unicode_funcs_t*) Line | Count | Source | 268 | 154k | { | 269 | 154k | hb_object_trace (obj, HB_FUNC); | 270 | 154k | if (unlikely (!obj || hb_object_is_inert (obj))) | 271 | 77.4k | return false; | 272 | 77.4k | assert (hb_object_is_valid (obj)); | 273 | 77.4k | if (obj->header.ref_count.dec () != 1) | 274 | 77.4k | return false; | 275 | | | 276 | 0 | hb_object_fini (obj); | 277 | 0 | return true; | 278 | 0 | } |
Unexecuted instantiation: hb-subset-input.cc:bool hb_object_destroy<hb_subset_input_t>(hb_subset_input_t*) Unexecuted instantiation: hb-map.cc:bool hb_object_destroy<hb_map_t>(hb_map_t*) Unexecuted instantiation: hb-subset-plan.cc:bool hb_object_destroy<hb_subset_plan_t>(hb_subset_plan_t*) Unexecuted instantiation: hb-subset-plan.cc:bool hb_object_destroy<hb_hashmap_t<unsigned int, hb_set_t*, 4294967295u, (hb_set_t*)0> >(hb_hashmap_t<unsigned int, hb_set_t*, 4294967295u, (hb_set_t*)0>*) |
279 | | template <typename Type> |
280 | | static inline void hb_object_fini (Type *obj) |
281 | 1.00M | { |
282 | 1.00M | obj->header.ref_count.fini (); /* Do this before user_data */ |
283 | 1.00M | hb_user_data_array_t *user_data = obj->header.user_data.get (); |
284 | 1.00M | if (user_data) |
285 | 0 | { |
286 | 0 | user_data->fini (); |
287 | 0 | hb_free (user_data); |
288 | 0 | user_data = nullptr; |
289 | 0 | } |
290 | 1.00M | } Unexecuted instantiation: hb-blob.cc:void hb_object_fini<hb_blob_t>(hb_blob_t*) hb-buffer.cc:void hb_object_fini<hb_buffer_t>(hb_buffer_t*) Line | Count | Source | 281 | 77.4k | { | 282 | 77.4k | obj->header.ref_count.fini (); /* Do this before user_data */ | 283 | 77.4k | hb_user_data_array_t *user_data = obj->header.user_data.get (); | 284 | 77.4k | if (user_data) | 285 | 0 | { | 286 | 0 | user_data->fini (); | 287 | 0 | hb_free (user_data); | 288 | 0 | user_data = nullptr; | 289 | 0 | } | 290 | 77.4k | } |
Unexecuted instantiation: hb-buffer.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-buffer.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-common.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-face.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) hb-face.cc:void hb_object_fini<hb_face_t>(hb_face_t*) Line | Count | Source | 281 | 1 | { | 282 | 1 | obj->header.ref_count.fini (); /* Do this before user_data */ | 283 | 1 | hb_user_data_array_t *user_data = obj->header.user_data.get (); | 284 | 1 | if (user_data) | 285 | 0 | { | 286 | 0 | user_data->fini (); | 287 | 0 | hb_free (user_data); | 288 | 0 | user_data = nullptr; | 289 | 0 | } | 290 | 1 | } |
Unexecuted instantiation: hb-face.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-fallback-shape.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-font.cc:void hb_object_fini<hb_font_funcs_t>(hb_font_funcs_t*) hb-font.cc:void hb_object_fini<hb_font_t>(hb_font_t*) Line | Count | Source | 281 | 928k | { | 282 | 928k | obj->header.ref_count.fini (); /* Do this before user_data */ | 283 | 928k | hb_user_data_array_t *user_data = obj->header.user_data.get (); | 284 | 928k | if (user_data) | 285 | 0 | { | 286 | 0 | user_data->fini (); | 287 | 0 | hb_free (user_data); | 288 | 0 | user_data = nullptr; | 289 | 0 | } | 290 | 928k | } |
Unexecuted instantiation: hb-font.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-font.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-number.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-face.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-face.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-face.cc:void hb_object_fini<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-ot-font.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-font.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-font.cc:void hb_object_fini<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-ot-metrics.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-metrics.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-metrics.cc:void hb_object_fini<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-ot-shape.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-var.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-var.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-var.cc:void hb_object_fini<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-set.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-set.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) hb-shape-plan.cc:void hb_object_fini<hb_shape_plan_t>(hb_shape_plan_t*) Line | Count | Source | 281 | 171 | { | 282 | 171 | obj->header.ref_count.fini (); /* Do this before user_data */ | 283 | 171 | hb_user_data_array_t *user_data = obj->header.user_data.get (); | 284 | 171 | if (user_data) | 285 | 0 | { | 286 | 0 | user_data->fini (); | 287 | 0 | hb_free (user_data); | 288 | 0 | user_data = nullptr; | 289 | 0 | } | 290 | 171 | } |
Unexecuted instantiation: hb-shape-plan.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-shape.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-shaper.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-static.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-static.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-static.cc:void hb_object_fini<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-unicode.cc:void hb_object_fini<hb_unicode_funcs_t>(hb_unicode_funcs_t*) Unexecuted instantiation: hb-aat-layout.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-aat-layout.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-aat-layout.cc:void hb_object_fini<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-aat-map.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-aat-map.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-cff1-table.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-cff1-table.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-cff1-table.cc:void hb_object_fini<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-ot-cff2-table.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-cff2-table.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-cff2-table.cc:void hb_object_fini<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-ot-layout.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-layout.cc:void hb_object_fini<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-ot-layout.cc:void hb_object_fini<hb_hashmap_t<unsigned int, hb_set_t*, 4294967295u, (hb_set_t*)0> >(hb_hashmap_t<unsigned int, hb_set_t*, 4294967295u, (hb_set_t*)0>*) Unexecuted instantiation: hb-ot-layout.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-map.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-map.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-arabic.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-arabic.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-arabic.cc:void hb_object_fini<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-ot-shape-complex-default.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-default.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-hangul.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-hangul.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-hebrew.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-hebrew.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-indic.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-indic.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-khmer.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-khmer.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-myanmar.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-myanmar.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-syllabic.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-syllabic.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-thai.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-thai.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-use.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-use.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-complex-vowel-constraints.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-vowel-constraints.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-fallback.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-fallback.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ot-shape-fallback.cc:void hb_object_fini<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-ot-shape-normalize.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-normalize.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-ucd.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-indic-table.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-ot-shape-complex-indic-table.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-subset-input.cc:void hb_object_fini<hb_subset_input_t>(hb_subset_input_t*) Unexecuted instantiation: hb-subset-input.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-subset-input.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-subset.cc:void hb_object_fini<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-subset.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-subset.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-map.cc:void hb_object_fini<hb_map_t>(hb_map_t*) Unexecuted instantiation: hb-subset-cff1.cc:void hb_object_fini<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-subset-cff1.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-subset-cff1.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-subset-cff2.cc:void hb_object_fini<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-subset-cff2.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-subset-cff2.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-subset-plan.cc:void hb_object_fini<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) Unexecuted instantiation: hb-subset-plan.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-subset-plan.cc:void hb_object_fini<hb_subset_plan_t>(hb_subset_plan_t*) Unexecuted instantiation: hb-subset-plan.cc:void hb_object_fini<hb_hashmap_t<unsigned int, hb_set_t*, 4294967295u, (hb_set_t*)0> >(hb_hashmap_t<unsigned int, hb_set_t*, 4294967295u, (hb_set_t*)0>*) Unexecuted instantiation: hb-subset-plan.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-subset-cff-common.cc:void hb_object_fini<hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u> >(hb_hashmap_t<hb_serialize_context_t::object_t const*, unsigned int, (hb_serialize_context_t::object_t const*)0, 0u>*) Unexecuted instantiation: hb-subset-cff-common.cc:void hb_object_fini<hb_set_t>(hb_set_t*) Unexecuted instantiation: hb-subset-cff-common.cc:void hb_object_fini<hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u> >(hb_hashmap_t<unsigned int, unsigned int, 4294967295u, 4294967295u>*) |
291 | | template <typename Type> |
292 | | static inline bool hb_object_set_user_data (Type *obj, |
293 | | hb_user_data_key_t *key, |
294 | | void * data, |
295 | | hb_destroy_func_t destroy, |
296 | | hb_bool_t replace) |
297 | 0 | { |
298 | 0 | if (unlikely (!obj || hb_object_is_inert (obj))) |
299 | 0 | return false; |
300 | 0 | assert (hb_object_is_valid (obj)); |
301 | |
|
302 | 0 | retry: |
303 | 0 | hb_user_data_array_t *user_data = obj->header.user_data.get (); |
304 | 0 | if (unlikely (!user_data)) |
305 | 0 | { |
306 | 0 | user_data = (hb_user_data_array_t *) hb_calloc (sizeof (hb_user_data_array_t), 1); |
307 | 0 | if (unlikely (!user_data)) |
308 | 0 | return false; |
309 | 0 | user_data->init (); |
310 | 0 | if (unlikely (!obj->header.user_data.cmpexch (nullptr, user_data))) |
311 | 0 | { |
312 | 0 | user_data->fini (); |
313 | 0 | hb_free (user_data); |
314 | 0 | goto retry; |
315 | 0 | } |
316 | 0 | } |
317 | | |
318 | 0 | return user_data->set (key, data, destroy, replace); |
319 | 0 | } Unexecuted instantiation: hb-blob.cc:bool hb_object_set_user_data<hb_blob_t>(hb_blob_t*, hb_user_data_key_t*, void*, void (*)(void*), int) Unexecuted instantiation: hb-buffer.cc:bool hb_object_set_user_data<hb_buffer_t>(hb_buffer_t*, hb_user_data_key_t*, void*, void (*)(void*), int) Unexecuted instantiation: hb-face.cc:bool hb_object_set_user_data<hb_face_t>(hb_face_t*, hb_user_data_key_t*, void*, void (*)(void*), int) Unexecuted instantiation: hb-font.cc:bool hb_object_set_user_data<hb_font_funcs_t>(hb_font_funcs_t*, hb_user_data_key_t*, void*, void (*)(void*), int) Unexecuted instantiation: hb-font.cc:bool hb_object_set_user_data<hb_font_t>(hb_font_t*, hb_user_data_key_t*, void*, void (*)(void*), int) Unexecuted instantiation: hb-set.cc:bool hb_object_set_user_data<hb_set_t>(hb_set_t*, hb_user_data_key_t*, void*, void (*)(void*), int) Unexecuted instantiation: hb-shape-plan.cc:bool hb_object_set_user_data<hb_shape_plan_t>(hb_shape_plan_t*, hb_user_data_key_t*, void*, void (*)(void*), int) Unexecuted instantiation: hb-unicode.cc:bool hb_object_set_user_data<hb_unicode_funcs_t>(hb_unicode_funcs_t*, hb_user_data_key_t*, void*, void (*)(void*), int) Unexecuted instantiation: hb-subset-input.cc:bool hb_object_set_user_data<hb_subset_input_t>(hb_subset_input_t*, hb_user_data_key_t*, void*, void (*)(void*), int) Unexecuted instantiation: hb-map.cc:bool hb_object_set_user_data<hb_map_t>(hb_map_t*, hb_user_data_key_t*, void*, void (*)(void*), int) |
320 | | |
321 | | template <typename Type> |
322 | | static inline void *hb_object_get_user_data (Type *obj, |
323 | | hb_user_data_key_t *key) |
324 | 0 | { |
325 | 0 | if (unlikely (!obj || hb_object_is_inert (obj))) |
326 | 0 | return nullptr; |
327 | 0 | assert (hb_object_is_valid (obj)); |
328 | 0 | hb_user_data_array_t *user_data = obj->header.user_data.get (); |
329 | 0 | if (!user_data) |
330 | 0 | return nullptr; |
331 | 0 | return user_data->get (key); |
332 | 0 | } Unexecuted instantiation: hb-blob.cc:void* hb_object_get_user_data<hb_blob_t>(hb_blob_t*, hb_user_data_key_t*) Unexecuted instantiation: hb-buffer.cc:void* hb_object_get_user_data<hb_buffer_t>(hb_buffer_t*, hb_user_data_key_t*) Unexecuted instantiation: hb-face.cc:void* hb_object_get_user_data<hb_face_t const>(hb_face_t const*, hb_user_data_key_t*) Unexecuted instantiation: hb-font.cc:void* hb_object_get_user_data<hb_font_funcs_t>(hb_font_funcs_t*, hb_user_data_key_t*) Unexecuted instantiation: hb-font.cc:void* hb_object_get_user_data<hb_font_t>(hb_font_t*, hb_user_data_key_t*) Unexecuted instantiation: hb-set.cc:void* hb_object_get_user_data<hb_set_t>(hb_set_t*, hb_user_data_key_t*) Unexecuted instantiation: hb-shape-plan.cc:void* hb_object_get_user_data<hb_shape_plan_t>(hb_shape_plan_t*, hb_user_data_key_t*) Unexecuted instantiation: hb-unicode.cc:void* hb_object_get_user_data<hb_unicode_funcs_t>(hb_unicode_funcs_t*, hb_user_data_key_t*) Unexecuted instantiation: hb-subset-input.cc:void* hb_object_get_user_data<hb_subset_input_t const>(hb_subset_input_t const*, hb_user_data_key_t*) Unexecuted instantiation: hb-map.cc:void* hb_object_get_user_data<hb_map_t>(hb_map_t*, hb_user_data_key_t*) |
333 | | |
334 | | |
335 | | #endif /* HB_OBJECT_HH */ |