/rust/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.2/src/lib.rs
Line | Count | Source (jump to first uncovered line) |
1 | | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or |
2 | | // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license |
3 | | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your |
4 | | // option. This file may not be copied, modified, or distributed |
5 | | // except according to those terms. |
6 | | |
7 | | //! Small vectors in various sizes. These store a certain number of elements inline, and fall back |
8 | | //! to the heap for larger allocations. This can be a useful optimization for improving cache |
9 | | //! locality and reducing allocator traffic for workloads that fit within the inline buffer. |
10 | | //! |
11 | | //! ## `no_std` support |
12 | | //! |
13 | | //! By default, `smallvec` does not depend on `std`. However, the optional |
14 | | //! `write` feature implements the `std::io::Write` trait for vectors of `u8`. |
15 | | //! When this feature is enabled, `smallvec` depends on `std`. |
16 | | //! |
17 | | //! ## Optional features |
18 | | //! |
19 | | //! ### `serde` |
20 | | //! |
21 | | //! When this optional dependency is enabled, `SmallVec` implements the `serde::Serialize` and |
22 | | //! `serde::Deserialize` traits. |
23 | | //! |
24 | | //! ### `write` |
25 | | //! |
26 | | //! When this feature is enabled, `SmallVec<[u8; _]>` implements the `std::io::Write` trait. |
27 | | //! This feature is not compatible with `#![no_std]` programs. |
28 | | //! |
29 | | //! ### `union` |
30 | | //! |
31 | | //! **This feature requires Rust 1.49.** |
32 | | //! |
33 | | //! When the `union` feature is enabled `smallvec` will track its state (inline or spilled) |
34 | | //! without the use of an enum tag, reducing the size of the `smallvec` by one machine word. |
35 | | //! This means that there is potentially no space overhead compared to `Vec`. |
36 | | //! Note that `smallvec` can still be larger than `Vec` if the inline buffer is larger than two |
37 | | //! machine words. |
38 | | //! |
39 | | //! To use this feature add `features = ["union"]` in the `smallvec` section of Cargo.toml. |
40 | | //! Note that this feature requires Rust 1.49. |
41 | | //! |
42 | | //! Tracking issue: [rust-lang/rust#55149](https://github.com/rust-lang/rust/issues/55149) |
43 | | //! |
44 | | //! ### `const_generics` |
45 | | //! |
46 | | //! **This feature requires Rust 1.51.** |
47 | | //! |
48 | | //! When this feature is enabled, `SmallVec` works with any arrays of any size, not just a fixed |
49 | | //! list of sizes. |
50 | | //! |
51 | | //! ### `const_new` |
52 | | //! |
53 | | //! **This feature requires Rust 1.51.** |
54 | | //! |
55 | | //! This feature exposes the functions [`SmallVec::new_const`], [`SmallVec::from_const`], and [`smallvec_inline`] which enables the `SmallVec` to be initialized from a const context. |
56 | | //! For details, see the |
57 | | //! [Rust Reference](https://doc.rust-lang.org/reference/const_eval.html#const-functions). |
58 | | //! |
59 | | //! ### `drain_filter` |
60 | | //! |
61 | | //! **This feature is unstable.** It may change to match the unstable `drain_filter` method in libstd. |
62 | | //! |
63 | | //! Enables the `drain_filter` method, which produces an iterator that calls a user-provided |
64 | | //! closure to determine which elements of the vector to remove and yield from the iterator. |
65 | | //! |
66 | | //! ### `drain_keep_rest` |
67 | | //! |
68 | | //! **This feature is unstable.** It may change to match the unstable `drain_keep_rest` method in libstd. |
69 | | //! |
70 | | //! Enables the `DrainFilter::keep_rest` method. |
71 | | //! |
72 | | //! ### `specialization` |
73 | | //! |
74 | | //! **This feature is unstable and requires a nightly build of the Rust toolchain.** |
75 | | //! |
76 | | //! When this feature is enabled, `SmallVec::from(slice)` has improved performance for slices |
77 | | //! of `Copy` types. (Without this feature, you can use `SmallVec::from_slice` to get optimal |
78 | | //! performance for `Copy` types.) |
79 | | //! |
80 | | //! Tracking issue: [rust-lang/rust#31844](https://github.com/rust-lang/rust/issues/31844) |
81 | | //! |
82 | | //! ### `may_dangle` |
83 | | //! |
84 | | //! **This feature is unstable and requires a nightly build of the Rust toolchain.** |
85 | | //! |
86 | | //! This feature makes the Rust compiler less strict about use of vectors that contain borrowed |
87 | | //! references. For details, see the |
88 | | //! [Rustonomicon](https://doc.rust-lang.org/1.42.0/nomicon/dropck.html#an-escape-hatch). |
89 | | //! |
90 | | //! Tracking issue: [rust-lang/rust#34761](https://github.com/rust-lang/rust/issues/34761) |
91 | | |
92 | | #![no_std] |
93 | | #![cfg_attr(docsrs, feature(doc_cfg))] |
94 | | #![cfg_attr(feature = "specialization", allow(incomplete_features))] |
95 | | #![cfg_attr(feature = "specialization", feature(specialization))] |
96 | | #![cfg_attr(feature = "may_dangle", feature(dropck_eyepatch))] |
97 | | #![cfg_attr( |
98 | | feature = "debugger_visualizer", |
99 | | feature(debugger_visualizer), |
100 | | debugger_visualizer(natvis_file = "../debug_metadata/smallvec.natvis") |
101 | | )] |
102 | | #![deny(missing_docs)] |
103 | | |
104 | | #[doc(hidden)] |
105 | | pub extern crate alloc; |
106 | | |
107 | | #[cfg(any(test, feature = "write"))] |
108 | | extern crate std; |
109 | | |
110 | | #[cfg(test)] |
111 | | mod tests; |
112 | | |
113 | | #[allow(deprecated)] |
114 | | use alloc::alloc::{Layout, LayoutErr}; |
115 | | use alloc::boxed::Box; |
116 | | use alloc::{vec, vec::Vec}; |
117 | | use core::borrow::{Borrow, BorrowMut}; |
118 | | use core::cmp; |
119 | | use core::fmt; |
120 | | use core::hash::{Hash, Hasher}; |
121 | | use core::hint::unreachable_unchecked; |
122 | | use core::iter::{repeat, FromIterator, FusedIterator, IntoIterator}; |
123 | | use core::mem; |
124 | | use core::mem::MaybeUninit; |
125 | | use core::ops::{self, Range, RangeBounds}; |
126 | | use core::ptr::{self, NonNull}; |
127 | | use core::slice::{self, SliceIndex}; |
128 | | |
129 | | #[cfg(feature = "serde")] |
130 | | use serde::{ |
131 | | de::{Deserialize, Deserializer, SeqAccess, Visitor}, |
132 | | ser::{Serialize, SerializeSeq, Serializer}, |
133 | | }; |
134 | | |
135 | | #[cfg(feature = "serde")] |
136 | | use core::marker::PhantomData; |
137 | | |
138 | | #[cfg(feature = "write")] |
139 | | use std::io; |
140 | | |
141 | | #[cfg(feature = "drain_keep_rest")] |
142 | | use core::mem::ManuallyDrop; |
143 | | |
144 | | /// Creates a [`SmallVec`] containing the arguments. |
145 | | /// |
146 | | /// `smallvec!` allows `SmallVec`s to be defined with the same syntax as array expressions. |
147 | | /// There are two forms of this macro: |
148 | | /// |
149 | | /// - Create a [`SmallVec`] containing a given list of elements: |
150 | | /// |
151 | | /// ``` |
152 | | /// # use smallvec::{smallvec, SmallVec}; |
153 | | /// # fn main() { |
154 | | /// let v: SmallVec<[_; 128]> = smallvec![1, 2, 3]; |
155 | | /// assert_eq!(v[0], 1); |
156 | | /// assert_eq!(v[1], 2); |
157 | | /// assert_eq!(v[2], 3); |
158 | | /// # } |
159 | | /// ``` |
160 | | /// |
161 | | /// - Create a [`SmallVec`] from a given element and size: |
162 | | /// |
163 | | /// ``` |
164 | | /// # use smallvec::{smallvec, SmallVec}; |
165 | | /// # fn main() { |
166 | | /// let v: SmallVec<[_; 0x8000]> = smallvec![1; 3]; |
167 | | /// assert_eq!(v, SmallVec::from_buf([1, 1, 1])); |
168 | | /// # } |
169 | | /// ``` |
170 | | /// |
171 | | /// Note that unlike array expressions this syntax supports all elements |
172 | | /// which implement [`Clone`] and the number of elements doesn't have to be |
173 | | /// a constant. |
174 | | /// |
175 | | /// This will use `clone` to duplicate an expression, so one should be careful |
176 | | /// using this with types having a nonstandard `Clone` implementation. For |
177 | | /// example, `smallvec![Rc::new(1); 5]` will create a vector of five references |
178 | | /// to the same boxed integer value, not five references pointing to independently |
179 | | /// boxed integers. |
180 | | |
181 | | #[macro_export] |
182 | | macro_rules! smallvec { |
183 | | // count helper: transform any expression into 1 |
184 | | (@one $x:expr) => (1usize); |
185 | | ($elem:expr; $n:expr) => ({ |
186 | | $crate::SmallVec::from_elem($elem, $n) |
187 | | }); |
188 | | ($($x:expr),*$(,)*) => ({ |
189 | | let count = 0usize $(+ $crate::smallvec!(@one $x))*; |
190 | | #[allow(unused_mut)] |
191 | | let mut vec = $crate::SmallVec::new(); |
192 | | if count <= vec.inline_size() { |
193 | | $(vec.push($x);)* |
194 | | vec |
195 | | } else { |
196 | | $crate::SmallVec::from_vec($crate::alloc::vec![$($x,)*]) |
197 | | } |
198 | | }); |
199 | | } |
200 | | |
201 | | /// Creates an inline [`SmallVec`] containing the arguments. This macro is enabled by the feature `const_new`. |
202 | | /// |
203 | | /// `smallvec_inline!` allows `SmallVec`s to be defined with the same syntax as array expressions in `const` contexts. |
204 | | /// The inline storage `A` will always be an array of the size specified by the arguments. |
205 | | /// There are two forms of this macro: |
206 | | /// |
207 | | /// - Create a [`SmallVec`] containing a given list of elements: |
208 | | /// |
209 | | /// ``` |
210 | | /// # use smallvec::{smallvec_inline, SmallVec}; |
211 | | /// # fn main() { |
212 | | /// const V: SmallVec<[i32; 3]> = smallvec_inline![1, 2, 3]; |
213 | | /// assert_eq!(V[0], 1); |
214 | | /// assert_eq!(V[1], 2); |
215 | | /// assert_eq!(V[2], 3); |
216 | | /// # } |
217 | | /// ``` |
218 | | /// |
219 | | /// - Create a [`SmallVec`] from a given element and size: |
220 | | /// |
221 | | /// ``` |
222 | | /// # use smallvec::{smallvec_inline, SmallVec}; |
223 | | /// # fn main() { |
224 | | /// const V: SmallVec<[i32; 3]> = smallvec_inline![1; 3]; |
225 | | /// assert_eq!(V, SmallVec::from_buf([1, 1, 1])); |
226 | | /// # } |
227 | | /// ``` |
228 | | /// |
229 | | /// Note that the behavior mimics that of array expressions, in contrast to [`smallvec`]. |
230 | | #[cfg(feature = "const_new")] |
231 | | #[cfg_attr(docsrs, doc(cfg(feature = "const_new")))] |
232 | | #[macro_export] |
233 | | macro_rules! smallvec_inline { |
234 | | // count helper: transform any expression into 1 |
235 | | (@one $x:expr) => (1usize); |
236 | | ($elem:expr; $n:expr) => ({ |
237 | | $crate::SmallVec::<[_; $n]>::from_const([$elem; $n]) |
238 | | }); |
239 | | ($($x:expr),+ $(,)?) => ({ |
240 | | const N: usize = 0usize $(+ $crate::smallvec_inline!(@one $x))*; |
241 | | $crate::SmallVec::<[_; N]>::from_const([$($x,)*]) |
242 | | }); |
243 | | } |
244 | | |
245 | | /// `panic!()` in debug builds, optimization hint in release. |
246 | | #[cfg(not(feature = "union"))] |
247 | | macro_rules! debug_unreachable { |
248 | | () => { |
249 | | debug_unreachable!("entered unreachable code") |
250 | | }; |
251 | | ($e:expr) => { |
252 | | if cfg!(debug_assertions) { |
253 | | panic!($e); |
254 | | } else { |
255 | | unreachable_unchecked(); |
256 | | } |
257 | | }; |
258 | | } |
259 | | |
260 | | /// Trait to be implemented by a collection that can be extended from a slice |
261 | | /// |
262 | | /// ## Example |
263 | | /// |
264 | | /// ```rust |
265 | | /// use smallvec::{ExtendFromSlice, SmallVec}; |
266 | | /// |
267 | | /// fn initialize<V: ExtendFromSlice<u8>>(v: &mut V) { |
268 | | /// v.extend_from_slice(b"Test!"); |
269 | | /// } |
270 | | /// |
271 | | /// let mut vec = Vec::new(); |
272 | | /// initialize(&mut vec); |
273 | | /// assert_eq!(&vec, b"Test!"); |
274 | | /// |
275 | | /// let mut small_vec = SmallVec::<[u8; 8]>::new(); |
276 | | /// initialize(&mut small_vec); |
277 | | /// assert_eq!(&small_vec as &[_], b"Test!"); |
278 | | /// ``` |
279 | | #[doc(hidden)] |
280 | | #[deprecated] |
281 | | pub trait ExtendFromSlice<T> { |
282 | | /// Extends a collection from a slice of its element type |
283 | | fn extend_from_slice(&mut self, other: &[T]); |
284 | | } |
285 | | |
286 | | #[allow(deprecated)] |
287 | | impl<T: Clone> ExtendFromSlice<T> for Vec<T> { |
288 | | fn extend_from_slice(&mut self, other: &[T]) { |
289 | | Vec::extend_from_slice(self, other) |
290 | | } |
291 | | } |
292 | | |
293 | | /// Error type for APIs with fallible heap allocation |
294 | | #[derive(Debug)] |
295 | | pub enum CollectionAllocErr { |
296 | | /// Overflow `usize::MAX` or other error during size computation |
297 | | CapacityOverflow, |
298 | | /// The allocator return an error |
299 | | AllocErr { |
300 | | /// The layout that was passed to the allocator |
301 | | layout: Layout, |
302 | | }, |
303 | | } |
304 | | |
305 | | impl fmt::Display for CollectionAllocErr { |
306 | | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
307 | | write!(f, "Allocation error: {:?}", self) |
308 | | } |
309 | | } |
310 | | |
311 | | #[allow(deprecated)] |
312 | | impl From<LayoutErr> for CollectionAllocErr { |
313 | | fn from(_: LayoutErr) -> Self { |
314 | | CollectionAllocErr::CapacityOverflow |
315 | | } |
316 | | } |
317 | | |
318 | 6.58M | fn infallible<T>(result: Result<T, CollectionAllocErr>) -> T { |
319 | 0 | match result { |
320 | 6.58M | Ok(x) => x, |
321 | 0 | Err(CollectionAllocErr::CapacityOverflow) => panic!("capacity overflow"), |
322 | 0 | Err(CollectionAllocErr::AllocErr { layout }) => alloc::alloc::handle_alloc_error(layout), |
323 | | } |
324 | 6.58M | } smallvec::infallible::<()> Line | Count | Source | 318 | 443k | fn infallible<T>(result: Result<T, CollectionAllocErr>) -> T { | 319 | 0 | match result { | 320 | 443k | Ok(x) => x, | 321 | 0 | Err(CollectionAllocErr::CapacityOverflow) => panic!("capacity overflow"), | 322 | 0 | Err(CollectionAllocErr::AllocErr { layout }) => alloc::alloc::handle_alloc_error(layout), | 323 | | } | 324 | 443k | } |
smallvec::infallible::<()> Line | Count | Source | 318 | 3 | fn infallible<T>(result: Result<T, CollectionAllocErr>) -> T { | 319 | 0 | match result { | 320 | 3 | Ok(x) => x, | 321 | 0 | Err(CollectionAllocErr::CapacityOverflow) => panic!("capacity overflow"), | 322 | 0 | Err(CollectionAllocErr::AllocErr { layout }) => alloc::alloc::handle_alloc_error(layout), | 323 | | } | 324 | 3 | } |
Unexecuted instantiation: smallvec::infallible::<()> Unexecuted instantiation: smallvec::infallible::<()> smallvec::infallible::<()> Line | Count | Source | 318 | 5.30M | fn infallible<T>(result: Result<T, CollectionAllocErr>) -> T { | 319 | 0 | match result { | 320 | 5.30M | Ok(x) => x, | 321 | 0 | Err(CollectionAllocErr::CapacityOverflow) => panic!("capacity overflow"), | 322 | 0 | Err(CollectionAllocErr::AllocErr { layout }) => alloc::alloc::handle_alloc_error(layout), | 323 | | } | 324 | 5.30M | } |
smallvec::infallible::<()> Line | Count | Source | 318 | 418 | fn infallible<T>(result: Result<T, CollectionAllocErr>) -> T { | 319 | 0 | match result { | 320 | 418 | Ok(x) => x, | 321 | 0 | Err(CollectionAllocErr::CapacityOverflow) => panic!("capacity overflow"), | 322 | 0 | Err(CollectionAllocErr::AllocErr { layout }) => alloc::alloc::handle_alloc_error(layout), | 323 | | } | 324 | 418 | } |
Unexecuted instantiation: smallvec::infallible::<()> Unexecuted instantiation: smallvec::infallible::<()> Unexecuted instantiation: smallvec::infallible::<()> smallvec::infallible::<()> Line | Count | Source | 318 | 653k | fn infallible<T>(result: Result<T, CollectionAllocErr>) -> T { | 319 | 0 | match result { | 320 | 653k | Ok(x) => x, | 321 | 0 | Err(CollectionAllocErr::CapacityOverflow) => panic!("capacity overflow"), | 322 | 0 | Err(CollectionAllocErr::AllocErr { layout }) => alloc::alloc::handle_alloc_error(layout), | 323 | | } | 324 | 653k | } |
Unexecuted instantiation: smallvec::infallible::<()> Unexecuted instantiation: smallvec::infallible::<()> smallvec::infallible::<()> Line | Count | Source | 318 | 185k | fn infallible<T>(result: Result<T, CollectionAllocErr>) -> T { | 319 | 0 | match result { | 320 | 185k | Ok(x) => x, | 321 | 0 | Err(CollectionAllocErr::CapacityOverflow) => panic!("capacity overflow"), | 322 | 0 | Err(CollectionAllocErr::AllocErr { layout }) => alloc::alloc::handle_alloc_error(layout), | 323 | | } | 324 | 185k | } |
|
325 | | |
326 | | /// FIXME: use `Layout::array` when we require a Rust version where it’s stable |
327 | | /// <https://github.com/rust-lang/rust/issues/55724> |
328 | 511k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { |
329 | 511k | let size = mem::size_of::<T>() |
330 | 511k | .checked_mul(n) |
331 | 511k | .ok_or(CollectionAllocErr::CapacityOverflow)?; |
332 | 511k | let align = mem::align_of::<T>(); |
333 | 511k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) Unexecuted instantiation: smallvec::layout_array::<inkwell::values::phi_value::PhiValue>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<parking_lot_core::thread_parker::imp::UnparkHandle>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>)>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::ir::entities::Value>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<(cranelift_codegen::ir::entities::Value, i32)>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::Allocation>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::PReg>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::VReg>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::SpillSlot>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_egraph::Id>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::loop_analysis::Loop>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::index::Block>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::ir::entities::Inst>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::ir::entities::Block>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::ir::entities::Value>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::egraph::elaborate::LoopStackEntry>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::blockorder::LoweredBlock>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::inst_common::InsnOutput>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::abi::ABIArgSlot>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::abi::CallArgPair>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::abi::CallRetPair>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::abi::RetPair>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::reg::Reg>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachBranch>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachCallSite>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachStackMap>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachLabelConstant>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachTrap>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachLabel>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachReloc>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::InsertedMove>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::SpillSlotIndex>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::LiveBundleIndex>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::LiveRangeListEntry>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::Use>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::VRegIndex>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::isa::x64::inst::args::InstructionSet>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::postorder::calculate::State>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>)>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<(regalloc2::PReg, regalloc2::ProgPoint)>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block)>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value)>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp)>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex)>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<(u8, u64)>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<(u32, cranelift_codegen::isa::unwind::UnwindInst)>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<u8>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<usize>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<u32>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::Allocation>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::SpillSlotIndex>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::LiveBundleIndex>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::LiveRangeListEntry>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::Use>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::VRegIndex>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<wasmparser::readers::core::operators::Operator>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<parking_lot_core::thread_parker::imp::UnparkHandle>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<parking_lot_core::thread_parker::imp::UnparkHandle>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<wasmparser::readers::core::types::ValType>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::ir::entities::Value>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<wasmparser::readers::core::operators::Operator>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>>::{closure#0} Unexecuted instantiation: smallvec::layout_array::<wasmparser::readers::core::types::ValType>::{closure#0} |
334 | 511k | } smallvec::layout_array::<inkwell::values::phi_value::PhiValue> Line | Count | Source | 328 | 116k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 116k | let size = mem::size_of::<T>() | 330 | 116k | .checked_mul(n) | 331 | 116k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 116k | let align = mem::align_of::<T>(); | 333 | 116k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 116k | } |
Unexecuted instantiation: smallvec::layout_array::<parking_lot_core::thread_parker::imp::UnparkHandle> smallvec::layout_array::<(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>)> Line | Count | Source | 328 | 3 | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 3 | let size = mem::size_of::<T>() | 330 | 3 | .checked_mul(n) | 331 | 3 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 3 | let align = mem::align_of::<T>(); | 333 | 3 | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 3 | } |
Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::ir::entities::Value> Unexecuted instantiation: smallvec::layout_array::<(cranelift_codegen::ir::entities::Value, i32)> Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>> smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>> Line | Count | Source | 328 | 1.63k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 1.63k | let size = mem::size_of::<T>() | 330 | 1.63k | .checked_mul(n) | 331 | 1.63k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 1.63k | let align = mem::align_of::<T>(); | 333 | 1.63k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 1.63k | } |
smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>> Line | Count | Source | 328 | 2.30k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 2.30k | let size = mem::size_of::<T>() | 330 | 2.30k | .checked_mul(n) | 331 | 2.30k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 2.30k | let align = mem::align_of::<T>(); | 333 | 2.30k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 2.30k | } |
smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>> Line | Count | Source | 328 | 12.7k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 12.7k | let size = mem::size_of::<T>() | 330 | 12.7k | .checked_mul(n) | 331 | 12.7k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 12.7k | let align = mem::align_of::<T>(); | 333 | 12.7k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 12.7k | } |
Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>> Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>> Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>> smallvec::layout_array::<core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>> Line | Count | Source | 328 | 596 | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 596 | let size = mem::size_of::<T>() | 330 | 596 | .checked_mul(n) | 331 | 596 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 596 | let align = mem::align_of::<T>(); | 333 | 596 | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 596 | } |
Unexecuted instantiation: smallvec::layout_array::<regalloc2::Allocation> smallvec::layout_array::<regalloc2::PReg> Line | Count | Source | 328 | 7.52k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 7.52k | let size = mem::size_of::<T>() | 330 | 7.52k | .checked_mul(n) | 331 | 7.52k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 7.52k | let align = mem::align_of::<T>(); | 333 | 7.52k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 7.52k | } |
Unexecuted instantiation: smallvec::layout_array::<regalloc2::VReg> Unexecuted instantiation: smallvec::layout_array::<regalloc2::SpillSlot> Unexecuted instantiation: smallvec::layout_array::<cranelift_egraph::Id> Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::loop_analysis::Loop> smallvec::layout_array::<regalloc2::index::Block> Line | Count | Source | 328 | 7.91k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 7.91k | let size = mem::size_of::<T>() | 330 | 7.91k | .checked_mul(n) | 331 | 7.91k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 7.91k | let align = mem::align_of::<T>(); | 333 | 7.91k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 7.91k | } |
Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::ir::entities::Inst> Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::ir::entities::Block> Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::ir::entities::Value> Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::egraph::elaborate::LoopStackEntry> smallvec::layout_array::<cranelift_codegen::machinst::blockorder::LoweredBlock> Line | Count | Source | 328 | 650 | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 650 | let size = mem::size_of::<T>() | 330 | 650 | .checked_mul(n) | 331 | 650 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 650 | let align = mem::align_of::<T>(); | 333 | 650 | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 650 | } |
Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::inst_common::InsnOutput> Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::abi::ABIArgSlot> smallvec::layout_array::<cranelift_codegen::machinst::abi::CallArgPair> Line | Count | Source | 328 | 698 | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 698 | let size = mem::size_of::<T>() | 330 | 698 | .checked_mul(n) | 331 | 698 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 698 | let align = mem::align_of::<T>(); | 333 | 698 | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 698 | } |
Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::abi::CallRetPair> Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::abi::RetPair> Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::reg::Reg> smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachBranch> Line | Count | Source | 328 | 1.80k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 1.80k | let size = mem::size_of::<T>() | 330 | 1.80k | .checked_mul(n) | 331 | 1.80k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 1.80k | let align = mem::align_of::<T>(); | 333 | 1.80k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 1.80k | } |
smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachCallSite> Line | Count | Source | 328 | 2.19k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 2.19k | let size = mem::size_of::<T>() | 330 | 2.19k | .checked_mul(n) | 331 | 2.19k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 2.19k | let align = mem::align_of::<T>(); | 333 | 2.19k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 2.19k | } |
Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachStackMap> smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachLabelConstant> Line | Count | Source | 328 | 1.44k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 1.44k | let size = mem::size_of::<T>() | 330 | 1.44k | .checked_mul(n) | 331 | 1.44k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 1.44k | let align = mem::align_of::<T>(); | 333 | 1.44k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 1.44k | } |
smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachTrap> Line | Count | Source | 328 | 6.08k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 6.08k | let size = mem::size_of::<T>() | 330 | 6.08k | .checked_mul(n) | 331 | 6.08k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 6.08k | let align = mem::align_of::<T>(); | 333 | 6.08k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 6.08k | } |
smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachLabel> Line | Count | Source | 328 | 95.9k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 95.9k | let size = mem::size_of::<T>() | 330 | 95.9k | .checked_mul(n) | 331 | 95.9k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 95.9k | let align = mem::align_of::<T>(); | 333 | 95.9k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 95.9k | } |
smallvec::layout_array::<cranelift_codegen::machinst::buffer::MachReloc> Line | Count | Source | 328 | 1.21k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 1.21k | let size = mem::size_of::<T>() | 330 | 1.21k | .checked_mul(n) | 331 | 1.21k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 1.21k | let align = mem::align_of::<T>(); | 333 | 1.21k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 1.21k | } |
Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::InsertedMove> Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::SpillSlotIndex> smallvec::layout_array::<regalloc2::ion::data_structures::LiveBundleIndex> Line | Count | Source | 328 | 5.93k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 5.93k | let size = mem::size_of::<T>() | 330 | 5.93k | .checked_mul(n) | 331 | 5.93k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 5.93k | let align = mem::align_of::<T>(); | 333 | 5.93k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 5.93k | } |
smallvec::layout_array::<regalloc2::ion::data_structures::LiveRangeListEntry> Line | Count | Source | 328 | 30.8k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 30.8k | let size = mem::size_of::<T>() | 330 | 30.8k | .checked_mul(n) | 331 | 30.8k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 30.8k | let align = mem::align_of::<T>(); | 333 | 30.8k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 30.8k | } |
smallvec::layout_array::<regalloc2::ion::data_structures::Use> Line | Count | Source | 328 | 68.4k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 68.4k | let size = mem::size_of::<T>() | 330 | 68.4k | .checked_mul(n) | 331 | 68.4k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 68.4k | let align = mem::align_of::<T>(); | 333 | 68.4k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 68.4k | } |
smallvec::layout_array::<regalloc2::ion::data_structures::VRegIndex> Line | Count | Source | 328 | 34.0k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 34.0k | let size = mem::size_of::<T>() | 330 | 34.0k | .checked_mul(n) | 331 | 34.0k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 34.0k | let align = mem::align_of::<T>(); | 333 | 34.0k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 34.0k | } |
Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::isa::x64::inst::args::InstructionSet> smallvec::layout_array::<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst> Line | Count | Source | 328 | 65.3k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 65.3k | let size = mem::size_of::<T>() | 330 | 65.3k | .checked_mul(n) | 331 | 65.3k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 65.3k | let align = mem::align_of::<T>(); | 333 | 65.3k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 65.3k | } |
Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst> Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst> smallvec::layout_array::<<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry> Line | Count | Source | 328 | 5.76k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 5.76k | let size = mem::size_of::<T>() | 330 | 5.76k | .checked_mul(n) | 331 | 5.76k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 5.76k | let align = mem::align_of::<T>(); | 333 | 5.76k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 5.76k | } |
smallvec::layout_array::<regalloc2::postorder::calculate::State> Line | Count | Source | 328 | 610 | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 610 | let size = mem::size_of::<T>() | 330 | 610 | .checked_mul(n) | 331 | 610 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 610 | let align = mem::align_of::<T>(); | 333 | 610 | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 610 | } |
Unexecuted instantiation: smallvec::layout_array::<(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>)> Unexecuted instantiation: smallvec::layout_array::<(regalloc2::PReg, regalloc2::ProgPoint)> smallvec::layout_array::<(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block)> Line | Count | Source | 328 | 200 | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 200 | let size = mem::size_of::<T>() | 330 | 200 | .checked_mul(n) | 331 | 200 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 200 | let align = mem::align_of::<T>(); | 333 | 200 | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 200 | } |
Unexecuted instantiation: smallvec::layout_array::<(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value)> Unexecuted instantiation: smallvec::layout_array::<(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp)> smallvec::layout_array::<(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex)> Line | Count | Source | 328 | 2.15k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 2.15k | let size = mem::size_of::<T>() | 330 | 2.15k | .checked_mul(n) | 331 | 2.15k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 2.15k | let align = mem::align_of::<T>(); | 333 | 2.15k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 2.15k | } |
Unexecuted instantiation: smallvec::layout_array::<(u8, u64)> Unexecuted instantiation: smallvec::layout_array::<(u32, cranelift_codegen::isa::unwind::UnwindInst)> smallvec::layout_array::<u8> Line | Count | Source | 328 | 3.79k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 3.79k | let size = mem::size_of::<T>() | 330 | 3.79k | .checked_mul(n) | 331 | 3.79k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 3.79k | let align = mem::align_of::<T>(); | 333 | 3.79k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 3.79k | } |
smallvec::layout_array::<usize> Line | Count | Source | 328 | 156 | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 156 | let size = mem::size_of::<T>() | 330 | 156 | .checked_mul(n) | 331 | 156 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 156 | let align = mem::align_of::<T>(); | 333 | 156 | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 156 | } |
smallvec::layout_array::<u32> Line | Count | Source | 328 | 33.9k | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 33.9k | let size = mem::size_of::<T>() | 330 | 33.9k | .checked_mul(n) | 331 | 33.9k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 33.9k | let align = mem::align_of::<T>(); | 333 | 33.9k | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 33.9k | } |
smallvec::layout_array::<regalloc2::Allocation> Line | Count | Source | 328 | 658 | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 658 | let size = mem::size_of::<T>() | 330 | 658 | .checked_mul(n) | 331 | 658 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 658 | let align = mem::align_of::<T>(); | 333 | 658 | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 658 | } |
Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::SpillSlotIndex> Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::LiveBundleIndex> Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::LiveRangeListEntry> Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::Use> Unexecuted instantiation: smallvec::layout_array::<regalloc2::ion::data_structures::VRegIndex> Unexecuted instantiation: smallvec::layout_array::<wasmparser::readers::core::operators::Operator> Unexecuted instantiation: smallvec::layout_array::<parking_lot_core::thread_parker::imp::UnparkHandle> Unexecuted instantiation: smallvec::layout_array::<parking_lot_core::thread_parker::imp::UnparkHandle> Unexecuted instantiation: smallvec::layout_array::<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>> smallvec::layout_array::<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>> Line | Count | Source | 328 | 58 | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 58 | let size = mem::size_of::<T>() | 330 | 58 | .checked_mul(n) | 331 | 58 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 58 | let align = mem::align_of::<T>(); | 333 | 58 | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 58 | } |
smallvec::layout_array::<wasmparser::readers::core::types::ValType> Line | Count | Source | 328 | 58 | fn layout_array<T>(n: usize) -> Result<Layout, CollectionAllocErr> { | 329 | 58 | let size = mem::size_of::<T>() | 330 | 58 | .checked_mul(n) | 331 | 58 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 332 | 58 | let align = mem::align_of::<T>(); | 333 | 58 | Layout::from_size_align(size, align).map_err(|_| CollectionAllocErr::CapacityOverflow) | 334 | 58 | } |
Unexecuted instantiation: smallvec::layout_array::<cranelift_codegen::ir::entities::Value> Unexecuted instantiation: smallvec::layout_array::<wasmparser::readers::core::operators::Operator> Unexecuted instantiation: smallvec::layout_array::<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>> Unexecuted instantiation: smallvec::layout_array::<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>> Unexecuted instantiation: smallvec::layout_array::<wasmparser::readers::core::types::ValType> |
335 | | |
336 | 15.2k | unsafe fn deallocate<T>(ptr: NonNull<T>, capacity: usize) { |
337 | 15.2k | // This unwrap should succeed since the same did when allocating. |
338 | 15.2k | let layout = layout_array::<T>(capacity).unwrap(); |
339 | 15.2k | alloc::alloc::dealloc(ptr.as_ptr() as *mut u8, layout) |
340 | 15.2k | } Unexecuted instantiation: smallvec::deallocate::<inkwell::values::phi_value::PhiValue> Unexecuted instantiation: smallvec::deallocate::<parking_lot_core::thread_parker::imp::UnparkHandle> Unexecuted instantiation: smallvec::deallocate::<(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>)> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::ir::entities::Value> Unexecuted instantiation: smallvec::deallocate::<(cranelift_codegen::ir::entities::Value, i32)> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>> Unexecuted instantiation: smallvec::deallocate::<core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>> Unexecuted instantiation: smallvec::deallocate::<regalloc2::Allocation> Unexecuted instantiation: smallvec::deallocate::<regalloc2::PReg> Unexecuted instantiation: smallvec::deallocate::<regalloc2::VReg> Unexecuted instantiation: smallvec::deallocate::<regalloc2::SpillSlot> Unexecuted instantiation: smallvec::deallocate::<cranelift_egraph::Id> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::loop_analysis::Loop> Unexecuted instantiation: smallvec::deallocate::<regalloc2::index::Block> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::ir::entities::Inst> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::ir::entities::Block> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::ir::entities::Value> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::egraph::elaborate::LoopStackEntry> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::blockorder::LoweredBlock> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::inst_common::InsnOutput> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::abi::ABIArgSlot> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::abi::CallArgPair> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::abi::CallRetPair> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::abi::RetPair> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::reg::Reg> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::buffer::MachBranch> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::buffer::MachCallSite> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::buffer::MachStackMap> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::buffer::MachLabelConstant> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::buffer::MachTrap> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::buffer::MachLabel> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::machinst::buffer::MachReloc> Unexecuted instantiation: smallvec::deallocate::<regalloc2::ion::data_structures::InsertedMove> Unexecuted instantiation: smallvec::deallocate::<regalloc2::ion::data_structures::SpillSlotIndex> Unexecuted instantiation: smallvec::deallocate::<regalloc2::ion::data_structures::LiveBundleIndex> smallvec::deallocate::<regalloc2::ion::data_structures::LiveRangeListEntry> Line | Count | Source | 336 | 992 | unsafe fn deallocate<T>(ptr: NonNull<T>, capacity: usize) { | 337 | 992 | // This unwrap should succeed since the same did when allocating. | 338 | 992 | let layout = layout_array::<T>(capacity).unwrap(); | 339 | 992 | alloc::alloc::dealloc(ptr.as_ptr() as *mut u8, layout) | 340 | 992 | } |
smallvec::deallocate::<regalloc2::ion::data_structures::Use> Line | Count | Source | 336 | 14.2k | unsafe fn deallocate<T>(ptr: NonNull<T>, capacity: usize) { | 337 | 14.2k | // This unwrap should succeed since the same did when allocating. | 338 | 14.2k | let layout = layout_array::<T>(capacity).unwrap(); | 339 | 14.2k | alloc::alloc::dealloc(ptr.as_ptr() as *mut u8, layout) | 340 | 14.2k | } |
Unexecuted instantiation: smallvec::deallocate::<regalloc2::ion::data_structures::VRegIndex> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::isa::x64::inst::args::InstructionSet> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst> Unexecuted instantiation: smallvec::deallocate::<<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry> Unexecuted instantiation: smallvec::deallocate::<regalloc2::postorder::calculate::State> Unexecuted instantiation: smallvec::deallocate::<(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>)> Unexecuted instantiation: smallvec::deallocate::<(regalloc2::PReg, regalloc2::ProgPoint)> Unexecuted instantiation: smallvec::deallocate::<(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block)> Unexecuted instantiation: smallvec::deallocate::<(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value)> Unexecuted instantiation: smallvec::deallocate::<(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp)> Unexecuted instantiation: smallvec::deallocate::<(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex)> Unexecuted instantiation: smallvec::deallocate::<(u8, u64)> Unexecuted instantiation: smallvec::deallocate::<(u32, cranelift_codegen::isa::unwind::UnwindInst)> Unexecuted instantiation: smallvec::deallocate::<u8> Unexecuted instantiation: smallvec::deallocate::<usize> Unexecuted instantiation: smallvec::deallocate::<u32> Unexecuted instantiation: smallvec::deallocate::<regalloc2::Allocation> Unexecuted instantiation: smallvec::deallocate::<regalloc2::ion::data_structures::SpillSlotIndex> Unexecuted instantiation: smallvec::deallocate::<regalloc2::ion::data_structures::LiveBundleIndex> Unexecuted instantiation: smallvec::deallocate::<regalloc2::ion::data_structures::LiveRangeListEntry> Unexecuted instantiation: smallvec::deallocate::<regalloc2::ion::data_structures::Use> Unexecuted instantiation: smallvec::deallocate::<regalloc2::ion::data_structures::VRegIndex> Unexecuted instantiation: smallvec::deallocate::<wasmparser::readers::core::operators::Operator> Unexecuted instantiation: smallvec::deallocate::<parking_lot_core::thread_parker::imp::UnparkHandle> Unexecuted instantiation: smallvec::deallocate::<parking_lot_core::thread_parker::imp::UnparkHandle> Unexecuted instantiation: smallvec::deallocate::<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>> Unexecuted instantiation: smallvec::deallocate::<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>> Unexecuted instantiation: smallvec::deallocate::<wasmparser::readers::core::types::ValType> Unexecuted instantiation: smallvec::deallocate::<cranelift_codegen::ir::entities::Value> Unexecuted instantiation: smallvec::deallocate::<wasmparser::readers::core::operators::Operator> Unexecuted instantiation: smallvec::deallocate::<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>> Unexecuted instantiation: smallvec::deallocate::<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>> Unexecuted instantiation: smallvec::deallocate::<wasmparser::readers::core::types::ValType> |
341 | | |
342 | | /// An iterator that removes the items from a `SmallVec` and yields them by value. |
343 | | /// |
344 | | /// Returned from [`SmallVec::drain`][1]. |
345 | | /// |
346 | | /// [1]: struct.SmallVec.html#method.drain |
347 | | pub struct Drain<'a, T: 'a + Array> { |
348 | | tail_start: usize, |
349 | | tail_len: usize, |
350 | | iter: slice::Iter<'a, T::Item>, |
351 | | vec: NonNull<SmallVec<T>>, |
352 | | } |
353 | | |
354 | | impl<'a, T: 'a + Array> fmt::Debug for Drain<'a, T> |
355 | | where |
356 | | T::Item: fmt::Debug, |
357 | | { |
358 | | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
359 | | f.debug_tuple("Drain").field(&self.iter.as_slice()).finish() |
360 | | } |
361 | | } |
362 | | |
363 | | unsafe impl<'a, T: Sync + Array> Sync for Drain<'a, T> {} |
364 | | unsafe impl<'a, T: Send + Array> Send for Drain<'a, T> {} |
365 | | |
366 | | impl<'a, T: 'a + Array> Iterator for Drain<'a, T> { |
367 | | type Item = T::Item; |
368 | | |
369 | | #[inline] |
370 | 116k | fn next(&mut self) -> Option<T::Item> { |
371 | 116k | self.iter |
372 | 116k | .next() |
373 | 116k | .map(|reference| unsafe { ptr::read(reference) }) <smallvec::Drain<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::iter::traits::iterator::Iterator>::next::{closure#0} Line | Count | Source | 373 | 39.1k | .map(|reference| unsafe { ptr::read(reference) }) |
Unexecuted instantiation: <smallvec::Drain<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::iterator::Iterator>::next::{closure#0} |
374 | 116k | } <smallvec::Drain<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::iter::traits::iterator::Iterator>::next Line | Count | Source | 370 | 116k | fn next(&mut self) -> Option<T::Item> { | 371 | 116k | self.iter | 372 | 116k | .next() | 373 | 116k | .map(|reference| unsafe { ptr::read(reference) }) | 374 | 116k | } |
Unexecuted instantiation: <smallvec::Drain<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::iterator::Iterator>::next |
375 | | |
376 | | #[inline] |
377 | 38.0k | fn size_hint(&self) -> (usize, Option<usize>) { |
378 | 38.0k | self.iter.size_hint() |
379 | 38.0k | } |
380 | | } |
381 | | |
382 | | impl<'a, T: 'a + Array> DoubleEndedIterator for Drain<'a, T> { |
383 | | #[inline] |
384 | | fn next_back(&mut self) -> Option<T::Item> { |
385 | | self.iter |
386 | | .next_back() |
387 | | .map(|reference| unsafe { ptr::read(reference) }) |
388 | | } |
389 | | } |
390 | | |
391 | | impl<'a, T: Array> ExactSizeIterator for Drain<'a, T> { |
392 | | #[inline] |
393 | | fn len(&self) -> usize { |
394 | | self.iter.len() |
395 | | } |
396 | | } |
397 | | |
398 | | impl<'a, T: Array> FusedIterator for Drain<'a, T> {} |
399 | | |
400 | | impl<'a, T: 'a + Array> Drop for Drain<'a, T> { |
401 | 39.0k | fn drop(&mut self) { |
402 | 39.0k | self.for_each(drop); |
403 | 39.0k | |
404 | 39.0k | if self.tail_len > 0 { |
405 | | unsafe { |
406 | 924 | let source_vec = self.vec.as_mut(); |
407 | 924 | |
408 | 924 | // memmove back untouched tail, update to new length |
409 | 924 | let start = source_vec.len(); |
410 | 924 | let tail = self.tail_start; |
411 | 924 | if tail != start { |
412 | 924 | // as_mut_ptr creates a &mut, invalidating other pointers. |
413 | 924 | // This pattern avoids calling it with a pointer already present. |
414 | 924 | let ptr = source_vec.as_mut_ptr(); |
415 | 924 | let src = ptr.add(tail); |
416 | 924 | let dst = ptr.add(start); |
417 | 924 | ptr::copy(src, dst, self.tail_len); |
418 | 924 | } |
419 | 924 | source_vec.set_len(start + self.tail_len); |
420 | | } |
421 | 38.1k | } |
422 | 39.0k | } <smallvec::Drain<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::ops::drop::Drop>::drop Line | Count | Source | 401 | 39.0k | fn drop(&mut self) { | 402 | 39.0k | self.for_each(drop); | 403 | 39.0k | | 404 | 39.0k | if self.tail_len > 0 { | 405 | | unsafe { | 406 | 924 | let source_vec = self.vec.as_mut(); | 407 | 924 | | 408 | 924 | // memmove back untouched tail, update to new length | 409 | 924 | let start = source_vec.len(); | 410 | 924 | let tail = self.tail_start; | 411 | 924 | if tail != start { | 412 | 924 | // as_mut_ptr creates a &mut, invalidating other pointers. | 413 | 924 | // This pattern avoids calling it with a pointer already present. | 414 | 924 | let ptr = source_vec.as_mut_ptr(); | 415 | 924 | let src = ptr.add(tail); | 416 | 924 | let dst = ptr.add(start); | 417 | 924 | ptr::copy(src, dst, self.tail_len); | 418 | 924 | } | 419 | 924 | source_vec.set_len(start + self.tail_len); | 420 | | } | 421 | 38.1k | } | 422 | 39.0k | } |
Unexecuted instantiation: <smallvec::Drain<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::ops::drop::Drop>::drop |
423 | | } |
424 | | |
425 | | #[cfg(feature = "drain_filter")] |
426 | | /// An iterator which uses a closure to determine if an element should be removed. |
427 | | /// |
428 | | /// Returned from [`SmallVec::drain_filter`][1]. |
429 | | /// |
430 | | /// [1]: struct.SmallVec.html#method.drain_filter |
431 | | pub struct DrainFilter<'a, T, F> |
432 | | where |
433 | | F: FnMut(&mut T::Item) -> bool, |
434 | | T: Array, |
435 | | { |
436 | | vec: &'a mut SmallVec<T>, |
437 | | /// The index of the item that will be inspected by the next call to `next`. |
438 | | idx: usize, |
439 | | /// The number of items that have been drained (removed) thus far. |
440 | | del: usize, |
441 | | /// The original length of `vec` prior to draining. |
442 | | old_len: usize, |
443 | | /// The filter test predicate. |
444 | | pred: F, |
445 | | /// A flag that indicates a panic has occurred in the filter test predicate. |
446 | | /// This is used as a hint in the drop implementation to prevent consumption |
447 | | /// of the remainder of the `DrainFilter`. Any unprocessed items will be |
448 | | /// backshifted in the `vec`, but no further items will be dropped or |
449 | | /// tested by the filter predicate. |
450 | | panic_flag: bool, |
451 | | } |
452 | | |
453 | | #[cfg(feature = "drain_filter")] |
454 | | impl <T, F> fmt::Debug for DrainFilter<'_, T, F> |
455 | | where |
456 | | F: FnMut(&mut T::Item) -> bool, |
457 | | T: Array, |
458 | | T::Item: fmt::Debug, |
459 | | { |
460 | | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
461 | | f.debug_tuple("DrainFilter").field(&self.vec.as_slice()).finish() |
462 | | } |
463 | | } |
464 | | |
465 | | #[cfg(feature = "drain_filter")] |
466 | | impl <T, F> Iterator for DrainFilter<'_, T, F> |
467 | | where |
468 | | F: FnMut(&mut T::Item) -> bool, |
469 | | T: Array, |
470 | | { |
471 | | type Item = T::Item; |
472 | | |
473 | | fn next(&mut self) -> Option<T::Item> |
474 | | { |
475 | | unsafe { |
476 | | while self.idx < self.old_len { |
477 | | let i = self.idx; |
478 | | let v = slice::from_raw_parts_mut(self.vec.as_mut_ptr(), self.old_len); |
479 | | self.panic_flag = true; |
480 | | let drained = (self.pred)(&mut v[i]); |
481 | | self.panic_flag = false; |
482 | | // Update the index *after* the predicate is called. If the index |
483 | | // is updated prior and the predicate panics, the element at this |
484 | | // index would be leaked. |
485 | | self.idx += 1; |
486 | | if drained { |
487 | | self.del += 1; |
488 | | return Some(ptr::read(&v[i])); |
489 | | } else if self.del > 0 { |
490 | | let del = self.del; |
491 | | let src: *const Self::Item = &v[i]; |
492 | | let dst: *mut Self::Item = &mut v[i - del]; |
493 | | ptr::copy_nonoverlapping(src, dst, 1); |
494 | | } |
495 | | } |
496 | | None |
497 | | } |
498 | | } |
499 | | |
500 | | fn size_hint(&self) -> (usize, Option<usize>) { |
501 | | (0, Some(self.old_len - self.idx)) |
502 | | } |
503 | | } |
504 | | |
505 | | #[cfg(feature = "drain_filter")] |
506 | | impl <T, F> Drop for DrainFilter<'_, T, F> |
507 | | where |
508 | | F: FnMut(&mut T::Item) -> bool, |
509 | | T: Array, |
510 | | { |
511 | | fn drop(&mut self) { |
512 | | struct BackshiftOnDrop<'a, 'b, T, F> |
513 | | where |
514 | | F: FnMut(&mut T::Item) -> bool, |
515 | | T: Array |
516 | | { |
517 | | drain: &'b mut DrainFilter<'a, T, F>, |
518 | | } |
519 | | |
520 | | impl<'a, 'b, T, F> Drop for BackshiftOnDrop<'a, 'b, T, F> |
521 | | where |
522 | | F: FnMut(&mut T::Item) -> bool, |
523 | | T: Array |
524 | | { |
525 | | fn drop(&mut self) { |
526 | | unsafe { |
527 | | if self.drain.idx < self.drain.old_len && self.drain.del > 0 { |
528 | | // This is a pretty messed up state, and there isn't really an |
529 | | // obviously right thing to do. We don't want to keep trying |
530 | | // to execute `pred`, so we just backshift all the unprocessed |
531 | | // elements and tell the vec that they still exist. The backshift |
532 | | // is required to prevent a double-drop of the last successfully |
533 | | // drained item prior to a panic in the predicate. |
534 | | let ptr = self.drain.vec.as_mut_ptr(); |
535 | | let src = ptr.add(self.drain.idx); |
536 | | let dst = src.sub(self.drain.del); |
537 | | let tail_len = self.drain.old_len - self.drain.idx; |
538 | | src.copy_to(dst, tail_len); |
539 | | } |
540 | | self.drain.vec.set_len(self.drain.old_len - self.drain.del); |
541 | | } |
542 | | } |
543 | | } |
544 | | |
545 | | let backshift = BackshiftOnDrop { drain: self }; |
546 | | |
547 | | // Attempt to consume any remaining elements if the filter predicate |
548 | | // has not yet panicked. We'll backshift any remaining elements |
549 | | // whether we've already panicked or if the consumption here panics. |
550 | | if !backshift.drain.panic_flag { |
551 | | backshift.drain.for_each(drop); |
552 | | } |
553 | | } |
554 | | } |
555 | | |
556 | | #[cfg(feature = "drain_keep_rest")] |
557 | | impl <T, F> DrainFilter<'_, T, F> |
558 | | where |
559 | | F: FnMut(&mut T::Item) -> bool, |
560 | | T: Array |
561 | | { |
562 | | /// Keep unyielded elements in the source `Vec`. |
563 | | /// |
564 | | /// # Examples |
565 | | /// |
566 | | /// ``` |
567 | | /// # use smallvec::{smallvec, SmallVec}; |
568 | | /// |
569 | | /// let mut vec: SmallVec<[char; 2]> = smallvec!['a', 'b', 'c']; |
570 | | /// let mut drain = vec.drain_filter(|_| true); |
571 | | /// |
572 | | /// assert_eq!(drain.next().unwrap(), 'a'); |
573 | | /// |
574 | | /// // This call keeps 'b' and 'c' in the vec. |
575 | | /// drain.keep_rest(); |
576 | | /// |
577 | | /// // If we wouldn't call `keep_rest()`, |
578 | | /// // `vec` would be empty. |
579 | | /// assert_eq!(vec, SmallVec::<[char; 2]>::from_slice(&['b', 'c'])); |
580 | | /// ``` |
581 | | pub fn keep_rest(self) |
582 | | { |
583 | | // At this moment layout looks like this: |
584 | | // |
585 | | // _____________________/-- old_len |
586 | | // / \ |
587 | | // [kept] [yielded] [tail] |
588 | | // \_______/ ^-- idx |
589 | | // \-- del |
590 | | // |
591 | | // Normally `Drop` impl would drop [tail] (via .for_each(drop), ie still calling `pred`) |
592 | | // |
593 | | // 1. Move [tail] after [kept] |
594 | | // 2. Update length of the original vec to `old_len - del` |
595 | | // a. In case of ZST, this is the only thing we want to do |
596 | | // 3. Do *not* drop self, as everything is put in a consistent state already, there is nothing to do |
597 | | let mut this = ManuallyDrop::new(self); |
598 | | |
599 | | unsafe { |
600 | | // ZSTs have no identity, so we don't need to move them around. |
601 | | let needs_move = mem::size_of::<T>() != 0; |
602 | | |
603 | | if needs_move && this.idx < this.old_len && this.del > 0 { |
604 | | let ptr = this.vec.as_mut_ptr(); |
605 | | let src = ptr.add(this.idx); |
606 | | let dst = src.sub(this.del); |
607 | | let tail_len = this.old_len - this.idx; |
608 | | src.copy_to(dst, tail_len); |
609 | | } |
610 | | |
611 | | let new_len = this.old_len - this.del; |
612 | | this.vec.set_len(new_len); |
613 | | } |
614 | | } |
615 | | } |
616 | | |
617 | | #[cfg(feature = "union")] |
618 | | union SmallVecData<A: Array> { |
619 | | inline: core::mem::ManuallyDrop<MaybeUninit<A>>, |
620 | | heap: (NonNull<A::Item>, usize), |
621 | | } |
622 | | |
623 | | #[cfg(all(feature = "union", feature = "const_new"))] |
624 | | impl<T, const N: usize> SmallVecData<[T; N]> { |
625 | | #[cfg_attr(docsrs, doc(cfg(feature = "const_new")))] |
626 | | #[inline] |
627 | | const fn from_const(inline: MaybeUninit<[T; N]>) -> Self { |
628 | | SmallVecData { |
629 | | inline: core::mem::ManuallyDrop::new(inline), |
630 | | } |
631 | | } |
632 | | } |
633 | | |
634 | | #[cfg(feature = "union")] |
635 | | impl<A: Array> SmallVecData<A> { |
636 | | #[inline] |
637 | 129M | unsafe fn inline(&self) -> ConstNonNull<A::Item> { |
638 | 129M | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() |
639 | 129M | } <smallvec::SmallVecData<[inkwell::values::phi_value::PhiValue; 1]>>::inline Line | Count | Source | 637 | 645k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 645k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 645k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::inline <smallvec::SmallVecData<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]>>::inline Line | Count | Source | 637 | 615k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 615k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 615k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::inline Line | Count | Source | 637 | 86.2k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 86.2k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 86.2k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 16]>>::inline <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::inline Line | Count | Source | 637 | 85.8k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 85.8k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 85.8k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::inline Line | Count | Source | 637 | 87.4k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 87.4k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 87.4k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::inline <smallvec::SmallVecData<[core::option::Option<usize>; 16]>>::inline Line | Count | Source | 637 | 3.08k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 3.08k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 3.08k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::inline <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::inline Line | Count | Source | 637 | 567k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 567k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 567k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::inline Line | Count | Source | 637 | 652k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 652k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 652k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::inline <smallvec::SmallVecData<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]>>::inline Line | Count | Source | 637 | 458k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 458k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 458k | } |
<smallvec::SmallVecData<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::inline Line | Count | Source | 637 | 256 | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 256 | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 256 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::Allocation; 2]>>::inline <smallvec::SmallVecData<[regalloc2::PReg; 8]>>::inline Line | Count | Source | 637 | 51.2k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 51.2k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 51.2k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::VReg; 2]>>::inline <smallvec::SmallVecData<[regalloc2::SpillSlot; 8]>>::inline Line | Count | Source | 637 | 166k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 166k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 166k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_egraph::Id; 8]>>::inline <smallvec::SmallVecData<[cranelift_codegen::loop_analysis::Loop; 8]>>::inline Line | Count | Source | 637 | 4.39k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 4.39k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 4.39k | } |
<smallvec::SmallVecData<[regalloc2::index::Block; 16]>>::inline Line | Count | Source | 637 | 688k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 688k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 688k | } |
<smallvec::SmallVecData<[cranelift_codegen::ir::entities::Inst; 2]>>::inline Line | Count | Source | 637 | 997k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 997k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 997k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Block; 16]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 4]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 8]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::inline <smallvec::SmallVecData<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]>>::inline Line | Count | Source | 637 | 145k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 145k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 145k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]>>::inline Line | Count | Source | 637 | 702k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 702k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 702k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]>>::inline <smallvec::SmallVecData<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::inline Line | Count | Source | 637 | 1.95M | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 1.95M | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 1.95M | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::inline Line | Count | Source | 637 | 104k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 104k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 104k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::inline Line | Count | Source | 637 | 104k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 104k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 104k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::abi::RetPair; 2]>>::inline Line | Count | Source | 637 | 2.71k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 2.71k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 2.71k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Reg; 16]>>::inline Line | Count | Source | 637 | 204k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 204k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 204k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Reg; 4]>>::inline <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::inline Line | Count | Source | 637 | 1.57M | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 1.57M | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 1.57M | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::inline Line | Count | Source | 637 | 872 | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 872 | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 872 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::inline <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::inline Line | Count | Source | 637 | 168k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 168k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 168k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::inline Line | Count | Source | 637 | 1.99k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 1.99k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 1.99k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::inline Line | Count | Source | 637 | 262k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 262k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 262k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 2]>>::inline Line | Count | Source | 637 | 165k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 165k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 165k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::inline Line | Count | Source | 637 | 703k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 703k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 703k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::inline Line | Count | Source | 637 | 426 | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 426 | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 426 | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::InsertedMove; 8]>>::inline Line | Count | Source | 637 | 464k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 464k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 464k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::inline Line | Count | Source | 637 | 48.4k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 48.4k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 48.4k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::inline Line | Count | Source | 637 | 4.24k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 4.24k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 4.24k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::inline Line | Count | Source | 637 | 2.64M | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 2.64M | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 2.64M | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::inline Line | Count | Source | 637 | 73.4M | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 73.4M | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 73.4M | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::Use; 4]>>::inline Line | Count | Source | 637 | 8.22M | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 8.22M | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 8.22M | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::VRegIndex; 4]>>::inline Line | Count | Source | 637 | 390k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 390k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 390k | } |
<smallvec::SmallVecData<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::inline Line | Count | Source | 637 | 3.23M | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 3.23M | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 3.23M | } |
<smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>>::inline Line | Count | Source | 637 | 580k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 580k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 580k | } |
<smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]>>::inline Line | Count | Source | 637 | 209k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 209k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 209k | } |
<smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::inline Line | Count | Source | 637 | 2.46M | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 2.46M | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 2.46M | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::inline <smallvec::SmallVecData<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]>>::inline Line | Count | Source | 637 | 462k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 462k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 462k | } |
<smallvec::SmallVecData<[regalloc2::postorder::calculate::State; 64]>>::inline Line | Count | Source | 637 | 518 | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 518 | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 518 | } |
<smallvec::SmallVecData<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::inline Line | Count | Source | 637 | 1.57M | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 1.57M | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 1.57M | } |
<smallvec::SmallVecData<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::inline Line | Count | Source | 637 | 1.23M | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 1.23M | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 1.23M | } |
<smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]>>::inline Line | Count | Source | 637 | 935k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 935k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 935k | } |
<smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]>>::inline Line | Count | Source | 637 | 7.12k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 7.12k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 7.12k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::inline <smallvec::SmallVecData<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::inline Line | Count | Source | 637 | 3.35k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 3.35k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 3.35k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(u8, u64); 4]>>::inline <smallvec::SmallVecData<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::inline Line | Count | Source | 637 | 139k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 139k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 139k | } |
<smallvec::SmallVecData<[bool; 16]>>::inline Line | Count | Source | 637 | 6.13k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 6.13k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 6.13k | } |
<smallvec::SmallVecData<[u8; 16]>>::inline Line | Count | Source | 637 | 37.2k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 37.2k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 37.2k | } |
<smallvec::SmallVecData<[u8; 1024]>>::inline Line | Count | Source | 637 | 8.29M | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 8.29M | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 8.29M | } |
<smallvec::SmallVecData<[u8; 8]>>::inline Line | Count | Source | 637 | 56.8k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 56.8k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 56.8k | } |
<smallvec::SmallVecData<[usize; 16]>>::inline Line | Count | Source | 637 | 7.69k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 7.69k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 7.69k | } |
<smallvec::SmallVecData<[usize; 4]>>::inline Line | Count | Source | 637 | 339k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 339k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 339k | } |
<smallvec::SmallVecData<[u32; 16]>>::inline Line | Count | Source | 637 | 322k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 322k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 322k | } |
<smallvec::SmallVecData<[u32; 64]>>::inline Line | Count | Source | 637 | 120k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 120k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 120k | } |
<smallvec::SmallVecData<[u32; 8]>>::inline Line | Count | Source | 637 | 6.05M | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 6.05M | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 6.05M | } |
<smallvec::SmallVecData<[regalloc2::Allocation; 4]>>::inline Line | Count | Source | 637 | 22.5k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 22.5k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 22.5k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::inline Line | Count | Source | 637 | 17.5k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 17.5k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 17.5k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::Use; 4]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::VRegIndex; 4]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::operators::Operator; 2]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::inline <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::inline Line | Count | Source | 637 | 3.42M | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 3.42M | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 3.42M | } |
<smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::inline Line | Count | Source | 637 | 613k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 613k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 613k | } |
<smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 1]>>::inline Line | Count | Source | 637 | 987k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 987k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 987k | } |
<smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 8]>>::inline Line | Count | Source | 637 | 306k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 306k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 306k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 16]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::operators::Operator; 2]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::inline Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::inline <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::inline Line | Count | Source | 637 | 816k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 816k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 816k | } |
<smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::inline Line | Count | Source | 637 | 130k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 130k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 130k | } |
<smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 1]>>::inline Line | Count | Source | 637 | 871k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 871k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 871k | } |
<smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 8]>>::inline Line | Count | Source | 637 | 65.3k | unsafe fn inline(&self) -> ConstNonNull<A::Item> { | 638 | 65.3k | ConstNonNull::new(self.inline.as_ptr() as *const A::Item).unwrap() | 639 | 65.3k | } |
|
640 | | #[inline] |
641 | 178M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { |
642 | 178M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() |
643 | 178M | } <smallvec::SmallVecData<[inkwell::values::phi_value::PhiValue; 1]>>::inline_mut Line | Count | Source | 641 | 1.14M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 1.14M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 1.14M | } |
Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::inline_mut <smallvec::SmallVecData<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]>>::inline_mut Line | Count | Source | 641 | 811k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 811k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 811k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::inline_mut Line | Count | Source | 641 | 137k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 137k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 137k | } |
<smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 16]>>::inline_mut Line | Count | Source | 641 | 156k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 156k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 156k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::inline_mut Line | Count | Source | 641 | 138k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 138k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 138k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::inline_mut Line | Count | Source | 641 | 139k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 139k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 139k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::inline_mut Line | Count | Source | 641 | 137k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 137k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 137k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::inline_mut Line | Count | Source | 641 | 139k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 139k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 139k | } |
<smallvec::SmallVecData<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::inline_mut Line | Count | Source | 641 | 139k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 139k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 139k | } |
<smallvec::SmallVecData<[u8; 1024]>>::inline_mut Line | Count | Source | 641 | 137k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 137k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 137k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::inline_mut <smallvec::SmallVecData<[core::option::Option<usize>; 16]>>::inline_mut Line | Count | Source | 641 | 4.56k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 4.56k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 4.56k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::inline_mut Line | Count | Source | 641 | 633k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 633k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 633k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::inline_mut Line | Count | Source | 641 | 278k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 278k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 278k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::inline_mut Line | Count | Source | 641 | 1.55M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 1.55M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 1.55M | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::inline_mut Line | Count | Source | 641 | 556k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 556k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 556k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::inline_mut <smallvec::SmallVecData<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]>>::inline_mut Line | Count | Source | 641 | 1.32M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 1.32M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 1.32M | } |
<smallvec::SmallVecData<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::inline_mut Line | Count | Source | 641 | 1.00M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 1.00M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 1.00M | } |
<smallvec::SmallVecData<[regalloc2::Allocation; 2]>>::inline_mut Line | Count | Source | 641 | 278k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 278k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 278k | } |
<smallvec::SmallVecData<[regalloc2::Allocation; 4]>>::inline_mut Line | Count | Source | 641 | 30.6k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 30.6k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 30.6k | } |
<smallvec::SmallVecData<[regalloc2::PReg; 8]>>::inline_mut Line | Count | Source | 641 | 1.75M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 1.75M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 1.75M | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::VReg; 2]>>::inline_mut <smallvec::SmallVecData<[regalloc2::SpillSlot; 8]>>::inline_mut Line | Count | Source | 641 | 166k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 166k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 166k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_egraph::Id; 8]>>::inline_mut <smallvec::SmallVecData<[cranelift_codegen::loop_analysis::Loop; 8]>>::inline_mut Line | Count | Source | 641 | 143k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 143k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 143k | } |
<smallvec::SmallVecData<[regalloc2::index::Block; 16]>>::inline_mut Line | Count | Source | 641 | 1.35M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 1.35M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 1.35M | } |
<smallvec::SmallVecData<[cranelift_codegen::ir::entities::Inst; 2]>>::inline_mut Line | Count | Source | 641 | 660k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 660k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 660k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Block; 16]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 4]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 8]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::inline_mut <smallvec::SmallVecData<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]>>::inline_mut Line | Count | Source | 641 | 417k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 417k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 417k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]>>::inline_mut Line | Count | Source | 641 | 2.10M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 2.10M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 2.10M | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]>>::inline_mut <smallvec::SmallVecData<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::inline_mut Line | Count | Source | 641 | 1.57M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 1.57M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 1.57M | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::inline_mut Line | Count | Source | 641 | 414k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 414k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 414k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::inline_mut Line | Count | Source | 641 | 259k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 259k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 259k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::abi::RetPair; 2]>>::inline_mut Line | Count | Source | 641 | 4.06k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 4.06k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 4.06k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Reg; 16]>>::inline_mut Line | Count | Source | 641 | 204k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 204k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 204k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Reg; 4]>>::inline_mut <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::inline_mut Line | Count | Source | 641 | 564k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 564k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 564k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::inline_mut Line | Count | Source | 641 | 81.9k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 81.9k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 81.9k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::inline_mut <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::inline_mut Line | Count | Source | 641 | 182k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 182k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 182k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::inline_mut Line | Count | Source | 641 | 107k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 107k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 107k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::inline_mut Line | Count | Source | 641 | 480k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 480k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 480k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 2]>>::inline_mut Line | Count | Source | 641 | 658k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 658k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 658k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::inline_mut Line | Count | Source | 641 | 2.24M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 2.24M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 2.24M | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::inline_mut Line | Count | Source | 641 | 12.6k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 12.6k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 12.6k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::InsertedMove; 8]>>::inline_mut Line | Count | Source | 641 | 624k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 624k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 624k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::inline_mut Line | Count | Source | 641 | 34.6k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 34.6k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 34.6k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::inline_mut Line | Count | Source | 641 | 13.8k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 13.8k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 13.8k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::inline_mut Line | Count | Source | 641 | 3.35M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 3.35M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 3.35M | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::inline_mut Line | Count | Source | 641 | 106M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 106M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 106M | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::Use; 4]>>::inline_mut Line | Count | Source | 641 | 6.24M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 6.24M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 6.24M | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::VRegIndex; 4]>>::inline_mut Line | Count | Source | 641 | 2.62M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 2.62M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 2.62M | } |
<smallvec::SmallVecData<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::inline_mut Line | Count | Source | 641 | 3.23M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 3.23M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 3.23M | } |
<smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>>::inline_mut Line | Count | Source | 641 | 819k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 819k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 819k | } |
<smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]>>::inline_mut Line | Count | Source | 641 | 314k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 314k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 314k | } |
<smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::inline_mut Line | Count | Source | 641 | 5.04M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 5.04M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 5.04M | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::inline_mut <smallvec::SmallVecData<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]>>::inline_mut Line | Count | Source | 641 | 921k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 921k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 921k | } |
<smallvec::SmallVecData<[regalloc2::postorder::calculate::State; 64]>>::inline_mut Line | Count | Source | 641 | 1.29M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 1.29M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 1.29M | } |
<smallvec::SmallVecData<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::inline_mut Line | Count | Source | 641 | 1.09M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 1.09M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 1.09M | } |
<smallvec::SmallVecData<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::inline_mut Line | Count | Source | 641 | 1.37M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 1.37M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 1.37M | } |
<smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]>>::inline_mut Line | Count | Source | 641 | 323k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 323k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 323k | } |
<smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]>>::inline_mut Line | Count | Source | 641 | 10.6k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 10.6k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 10.6k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::inline_mut <smallvec::SmallVecData<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::inline_mut Line | Count | Source | 641 | 14.8k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 14.8k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 14.8k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(u8, u64); 4]>>::inline_mut <smallvec::SmallVecData<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::inline_mut Line | Count | Source | 641 | 329k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 329k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 329k | } |
<smallvec::SmallVecData<[bool; 16]>>::inline_mut Line | Count | Source | 641 | 15.3k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 15.3k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 15.3k | } |
<smallvec::SmallVecData<[u8; 16]>>::inline_mut Line | Count | Source | 641 | 111k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 111k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 111k | } |
<smallvec::SmallVecData<[u8; 1024]>>::inline_mut Line | Count | Source | 641 | 7.77M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 7.77M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 7.77M | } |
<smallvec::SmallVecData<[u8; 8]>>::inline_mut Line | Count | Source | 641 | 247k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 247k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 247k | } |
<smallvec::SmallVecData<[usize; 16]>>::inline_mut Line | Count | Source | 641 | 10.7k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 10.7k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 10.7k | } |
<smallvec::SmallVecData<[usize; 4]>>::inline_mut Line | Count | Source | 641 | 345k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 345k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 345k | } |
<smallvec::SmallVecData<[u32; 16]>>::inline_mut Line | Count | Source | 641 | 777k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 777k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 777k | } |
<smallvec::SmallVecData<[u32; 64]>>::inline_mut Line | Count | Source | 641 | 440k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 440k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 440k | } |
<smallvec::SmallVecData<[u32; 8]>>::inline_mut Line | Count | Source | 641 | 1.02M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 1.02M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 1.02M | } |
<smallvec::SmallVecData<[regalloc2::Allocation; 4]>>::inline_mut Line | Count | Source | 641 | 302k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 302k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 302k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::Use; 4]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::VRegIndex; 4]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::operators::Operator; 2]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::inline_mut <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::inline_mut Line | Count | Source | 641 | 6.84M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 6.84M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 6.84M | } |
<smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::inline_mut Line | Count | Source | 641 | 459k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 459k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 459k | } |
<smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 1]>>::inline_mut Line | Count | Source | 641 | 1.24M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 1.24M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 1.24M | } |
<smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 8]>>::inline_mut Line | Count | Source | 641 | 459k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 459k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 459k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 16]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[u8; 1024]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::operators::Operator; 2]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::inline_mut Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::inline_mut <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::inline_mut Line | Count | Source | 641 | 1.63M | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 1.63M | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 1.63M | } |
<smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::inline_mut Line | Count | Source | 641 | 98.0k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 98.0k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 98.0k | } |
<smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 1]>>::inline_mut Line | Count | Source | 641 | 635k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 635k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 635k | } |
<smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 8]>>::inline_mut Line | Count | Source | 641 | 98.0k | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { | 642 | 98.0k | NonNull::new(self.inline.as_mut_ptr() as *mut A::Item).unwrap() | 643 | 98.0k | } |
|
644 | | #[inline] |
645 | 49.1M | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { |
646 | 49.1M | SmallVecData { |
647 | 49.1M | inline: core::mem::ManuallyDrop::new(inline), |
648 | 49.1M | } |
649 | 49.1M | } <smallvec::SmallVecData<[inkwell::values::phi_value::PhiValue; 1]>>::from_inline Line | Count | Source | 645 | 376k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 376k | SmallVecData { | 647 | 376k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 376k | } | 649 | 376k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::from_inline <smallvec::SmallVecData<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]>>::from_inline Line | Count | Source | 645 | 196k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 196k | SmallVecData { | 647 | 196k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 196k | } | 649 | 196k | } |
<smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 16]>>::from_inline Line | Count | Source | 645 | 156k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 156k | SmallVecData { | 647 | 156k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 156k | } | 649 | 156k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::from_inline <smallvec::SmallVecData<[core::option::Option<usize>; 16]>>::from_inline Line | Count | Source | 645 | 1.52k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 1.52k | SmallVecData { | 647 | 1.52k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 1.52k | } | 649 | 1.52k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::from_inline Line | Count | Source | 645 | 211k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 211k | SmallVecData { | 647 | 211k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 211k | } | 649 | 211k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::from_inline Line | Count | Source | 645 | 149k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 149k | SmallVecData { | 647 | 149k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 149k | } | 649 | 149k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::from_inline <smallvec::SmallVecData<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]>>::from_inline Line | Count | Source | 645 | 869k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 869k | SmallVecData { | 647 | 869k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 869k | } | 649 | 869k | } |
<smallvec::SmallVecData<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[regalloc2::Allocation; 2]>>::from_inline Line | Count | Source | 645 | 278k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 278k | SmallVecData { | 647 | 278k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 278k | } | 649 | 278k | } |
<smallvec::SmallVecData<[regalloc2::PReg; 8]>>::from_inline Line | Count | Source | 645 | 1.27M | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 1.27M | SmallVecData { | 647 | 1.27M | inline: core::mem::ManuallyDrop::new(inline), | 648 | 1.27M | } | 649 | 1.27M | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::VReg; 2]>>::from_inline <smallvec::SmallVecData<[regalloc2::SpillSlot; 8]>>::from_inline Line | Count | Source | 645 | 166k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 166k | SmallVecData { | 647 | 166k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 166k | } | 649 | 166k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_egraph::Id; 8]>>::from_inline <smallvec::SmallVecData<[cranelift_codegen::loop_analysis::Loop; 8]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[regalloc2::index::Block; 16]>>::from_inline Line | Count | Source | 645 | 418k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 418k | SmallVecData { | 647 | 418k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 418k | } | 649 | 418k | } |
<smallvec::SmallVecData<[cranelift_codegen::ir::entities::Inst; 2]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Block; 16]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 4]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 8]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::from_inline <smallvec::SmallVecData<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]>>::from_inline Line | Count | Source | 645 | 702k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 702k | SmallVecData { | 647 | 702k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 702k | } | 649 | 702k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]>>::from_inline <smallvec::SmallVecData<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::from_inline Line | Count | Source | 645 | 761k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 761k | SmallVecData { | 647 | 761k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 761k | } | 649 | 761k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::from_inline Line | Count | Source | 645 | 209k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 209k | SmallVecData { | 647 | 209k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 209k | } | 649 | 209k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::from_inline Line | Count | Source | 645 | 209k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 209k | SmallVecData { | 647 | 209k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 209k | } | 649 | 209k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::abi::RetPair; 2]>>::from_inline Line | Count | Source | 645 | 1.35k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 1.35k | SmallVecData { | 647 | 1.35k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 1.35k | } | 649 | 1.35k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Reg; 16]>>::from_inline Line | Count | Source | 645 | 204k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 204k | SmallVecData { | 647 | 204k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 204k | } | 649 | 204k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Reg; 4]>>::from_inline <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::from_inline Line | Count | Source | 645 | 149k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 149k | SmallVecData { | 647 | 149k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 149k | } | 649 | 149k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 2]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::from_inline Line | Count | Source | 645 | 360k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 360k | SmallVecData { | 647 | 360k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 360k | } | 649 | 360k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::InsertedMove; 8]>>::from_inline Line | Count | Source | 645 | 464k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 464k | SmallVecData { | 647 | 464k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 464k | } | 649 | 464k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::from_inline Line | Count | Source | 645 | 10.3k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 10.3k | SmallVecData { | 647 | 10.3k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 10.3k | } | 649 | 10.3k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::from_inline Line | Count | Source | 645 | 966 | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 966 | SmallVecData { | 647 | 966 | inline: core::mem::ManuallyDrop::new(inline), | 648 | 966 | } | 649 | 966 | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::from_inline Line | Count | Source | 645 | 2.44M | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 2.44M | SmallVecData { | 647 | 2.44M | inline: core::mem::ManuallyDrop::new(inline), | 648 | 2.44M | } | 649 | 2.44M | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::from_inline Line | Count | Source | 645 | 22.4M | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 22.4M | SmallVecData { | 647 | 22.4M | inline: core::mem::ManuallyDrop::new(inline), | 648 | 22.4M | } | 649 | 22.4M | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::Use; 4]>>::from_inline Line | Count | Source | 645 | 1.53M | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 1.53M | SmallVecData { | 647 | 1.53M | inline: core::mem::ManuallyDrop::new(inline), | 648 | 1.53M | } | 649 | 1.53M | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::VRegIndex; 4]>>::from_inline Line | Count | Source | 645 | 1.24M | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 1.24M | SmallVecData { | 647 | 1.24M | inline: core::mem::ManuallyDrop::new(inline), | 648 | 1.24M | } | 649 | 1.24M | } |
<smallvec::SmallVecData<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::from_inline Line | Count | Source | 645 | 2.86M | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 2.86M | SmallVecData { | 647 | 2.86M | inline: core::mem::ManuallyDrop::new(inline), | 648 | 2.86M | } | 649 | 2.86M | } |
<smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>>::from_inline Line | Count | Source | 645 | 238k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 238k | SmallVecData { | 647 | 238k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 238k | } | 649 | 238k | } |
<smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]>>::from_inline Line | Count | Source | 645 | 104k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 104k | SmallVecData { | 647 | 104k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 104k | } | 649 | 104k | } |
<smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::from_inline Line | Count | Source | 645 | 1.53M | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 1.53M | SmallVecData { | 647 | 1.53M | inline: core::mem::ManuallyDrop::new(inline), | 648 | 1.53M | } | 649 | 1.53M | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::from_inline <smallvec::SmallVecData<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[regalloc2::postorder::calculate::State; 64]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::from_inline Line | Count | Source | 645 | 466k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 466k | SmallVecData { | 647 | 466k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 466k | } | 649 | 466k | } |
<smallvec::SmallVecData<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]>>::from_inline Line | Count | Source | 645 | 3.56k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 3.56k | SmallVecData { | 647 | 3.56k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 3.56k | } | 649 | 3.56k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::from_inline <smallvec::SmallVecData<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::from_inline Line | Count | Source | 645 | 966 | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 966 | SmallVecData { | 647 | 966 | inline: core::mem::ManuallyDrop::new(inline), | 648 | 966 | } | 649 | 966 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(u8, u64); 4]>>::from_inline <smallvec::SmallVecData<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[bool; 16]>>::from_inline Line | Count | Source | 645 | 3.04k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 3.04k | SmallVecData { | 647 | 3.04k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 3.04k | } | 649 | 3.04k | } |
<smallvec::SmallVecData<[u8; 16]>>::from_inline Line | Count | Source | 645 | 37.2k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 37.2k | SmallVecData { | 647 | 37.2k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 37.2k | } | 649 | 37.2k | } |
<smallvec::SmallVecData<[u8; 1024]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[u8; 8]>>::from_inline Line | Count | Source | 645 | 82.4k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 82.4k | SmallVecData { | 647 | 82.4k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 82.4k | } | 649 | 82.4k | } |
<smallvec::SmallVecData<[usize; 16]>>::from_inline Line | Count | Source | 645 | 1.52k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 1.52k | SmallVecData { | 647 | 1.52k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 1.52k | } | 649 | 1.52k | } |
<smallvec::SmallVecData<[usize; 4]>>::from_inline Line | Count | Source | 645 | 240k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 240k | SmallVecData { | 647 | 240k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 240k | } | 649 | 240k | } |
<smallvec::SmallVecData<[u32; 16]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[u32; 64]>>::from_inline Line | Count | Source | 645 | 139k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 139k | SmallVecData { | 647 | 139k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 139k | } | 649 | 139k | } |
<smallvec::SmallVecData<[u32; 8]>>::from_inline Line | Count | Source | 645 | 278k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 278k | SmallVecData { | 647 | 278k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 278k | } | 649 | 278k | } |
<smallvec::SmallVecData<[regalloc2::Allocation; 4]>>::from_inline Line | Count | Source | 645 | 153k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 153k | SmallVecData { | 647 | 153k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 153k | } | 649 | 153k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::Use; 4]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::VRegIndex; 4]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::operators::Operator; 2]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::from_inline <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::from_inline Line | Count | Source | 645 | 3.42M | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 3.42M | SmallVecData { | 647 | 3.42M | inline: core::mem::ManuallyDrop::new(inline), | 648 | 3.42M | } | 649 | 3.42M | } |
<smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::from_inline Line | Count | Source | 645 | 153k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 153k | SmallVecData { | 647 | 153k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 153k | } | 649 | 153k | } |
<smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 1]>>::from_inline Line | Count | Source | 645 | 489k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 489k | SmallVecData { | 647 | 489k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 489k | } | 649 | 489k | } |
<smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 8]>>::from_inline Line | Count | Source | 645 | 153k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 153k | SmallVecData { | 647 | 153k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 153k | } | 649 | 153k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 16]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::operators::Operator; 2]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::from_inline Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::from_inline <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::from_inline Line | Count | Source | 645 | 816k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 816k | SmallVecData { | 647 | 816k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 816k | } | 649 | 816k | } |
<smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::from_inline Line | Count | Source | 645 | 32.6k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 32.6k | SmallVecData { | 647 | 32.6k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 32.6k | } | 649 | 32.6k | } |
<smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 1]>>::from_inline Line | Count | Source | 645 | 274k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 274k | SmallVecData { | 647 | 274k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 274k | } | 649 | 274k | } |
<smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 8]>>::from_inline Line | Count | Source | 645 | 32.6k | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { | 646 | 32.6k | SmallVecData { | 647 | 32.6k | inline: core::mem::ManuallyDrop::new(inline), | 648 | 32.6k | } | 649 | 32.6k | } |
|
650 | | #[inline] |
651 | | unsafe fn into_inline(self) -> MaybeUninit<A> { |
652 | | core::mem::ManuallyDrop::into_inner(self.inline) |
653 | | } |
654 | | #[inline] |
655 | 8.67M | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { |
656 | 8.67M | (ConstNonNull(self.heap.0), self.heap.1) |
657 | 8.67M | } <smallvec::SmallVecData<[inkwell::values::phi_value::PhiValue; 1]>>::heap Line | Count | Source | 655 | 68.5k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 68.5k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 68.5k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::heap <smallvec::SmallVecData<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]>>::heap Line | Count | Source | 655 | 33 | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 33 | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 33 | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::heap Line | Count | Source | 655 | 1.63k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 1.63k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 1.63k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 16]>>::heap <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::heap Line | Count | Source | 655 | 1.99k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 1.99k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 1.99k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::heap Line | Count | Source | 655 | 426 | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 426 | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 426 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[core::option::Option<usize>; 16]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::heap <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::heap Line | Count | Source | 655 | 182k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 182k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 182k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::heap Line | Count | Source | 655 | 391k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 391k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 391k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]>>::heap <smallvec::SmallVecData<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::heap Line | Count | Source | 655 | 170 | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 170 | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 170 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::Allocation; 2]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::PReg; 8]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::VReg; 2]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::SpillSlot; 8]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_egraph::Id; 8]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::loop_analysis::Loop; 8]>>::heap <smallvec::SmallVecData<[regalloc2::index::Block; 16]>>::heap Line | Count | Source | 655 | 286k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 286k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 286k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Inst; 2]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Block; 16]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 4]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 8]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::heap <smallvec::SmallVecData<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]>>::heap Line | Count | Source | 655 | 2.54k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 2.54k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 2.54k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::heap <smallvec::SmallVecData<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::heap Line | Count | Source | 655 | 698 | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 698 | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 698 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::abi::RetPair; 2]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Reg; 16]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Reg; 4]>>::heap <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::heap Line | Count | Source | 655 | 155k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 155k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 155k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::heap Line | Count | Source | 655 | 662 | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 662 | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 662 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::heap <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::heap Line | Count | Source | 655 | 29.3k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 29.3k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 29.3k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::heap Line | Count | Source | 655 | 2.04k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 2.04k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 2.04k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::heap Line | Count | Source | 655 | 527k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 527k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 527k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 2]>>::heap Line | Count | Source | 655 | 1.98k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 1.98k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 1.98k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::heap Line | Count | Source | 655 | 2.83M | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 2.83M | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 2.83M | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::heap Line | Count | Source | 655 | 392 | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 392 | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 392 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::InsertedMove; 8]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::heap <smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::heap Line | Count | Source | 655 | 26.0k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 26.0k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 26.0k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::heap Line | Count | Source | 655 | 2.73k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 2.73k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 2.73k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::heap Line | Count | Source | 655 | 262k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 262k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 262k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::Use; 4]>>::heap Line | Count | Source | 655 | 445k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 445k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 445k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::VRegIndex; 4]>>::heap Line | Count | Source | 655 | 337k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 337k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 337k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]>>::heap <smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::heap Line | Count | Source | 655 | 211k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 211k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 211k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::heap <smallvec::SmallVecData<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]>>::heap Line | Count | Source | 655 | 221k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 221k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 221k | } |
<smallvec::SmallVecData<[regalloc2::postorder::calculate::State; 64]>>::heap Line | Count | Source | 655 | 46 | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 46 | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 46 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::heap <smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]>>::heap Line | Count | Source | 655 | 53.0k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 53.0k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 53.0k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::heap <smallvec::SmallVecData<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::heap Line | Count | Source | 655 | 38.7k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 38.7k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 38.7k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(u8, u64); 4]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[bool; 16]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[u8; 16]>>::heap <smallvec::SmallVecData<[u8; 1024]>>::heap Line | Count | Source | 655 | 1.47M | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 1.47M | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 1.47M | } |
Unexecuted instantiation: <smallvec::SmallVecData<[u8; 8]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[usize; 16]>>::heap <smallvec::SmallVecData<[usize; 4]>>::heap Line | Count | Source | 655 | 3.69k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 3.69k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 3.69k | } |
<smallvec::SmallVecData<[u32; 16]>>::heap Line | Count | Source | 655 | 659k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 659k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 659k | } |
<smallvec::SmallVecData<[u32; 64]>>::heap Line | Count | Source | 655 | 77.6k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 77.6k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 77.6k | } |
<smallvec::SmallVecData<[u32; 8]>>::heap Line | Count | Source | 655 | 378k | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 378k | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 378k | } |
<smallvec::SmallVecData<[regalloc2::Allocation; 4]>>::heap Line | Count | Source | 655 | 242 | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 242 | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 242 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::Use; 4]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::VRegIndex; 4]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::operators::Operator; 2]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::heap <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::heap Line | Count | Source | 655 | 234 | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 234 | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 234 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 1]>>::heap <smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 8]>>::heap Line | Count | Source | 655 | 116 | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { | 656 | 116 | (ConstNonNull(self.heap.0), self.heap.1) | 657 | 116 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 16]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::operators::Operator; 2]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 1]>>::heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 8]>>::heap |
658 | | #[inline] |
659 | 6.46M | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { |
660 | 6.46M | let h = &mut self.heap; |
661 | 6.46M | (h.0, &mut h.1) |
662 | 6.46M | } <smallvec::SmallVecData<[inkwell::values::phi_value::PhiValue; 1]>>::heap_mut Line | Count | Source | 659 | 339k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 339k | let h = &mut self.heap; | 661 | 339k | (h.0, &mut h.1) | 662 | 339k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::heap_mut <smallvec::SmallVecData<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]>>::heap_mut Line | Count | Source | 659 | 12 | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 12 | let h = &mut self.heap; | 661 | 12 | (h.0, &mut h.1) | 662 | 12 | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::heap_mut Line | Count | Source | 659 | 1.63k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 1.63k | let h = &mut self.heap; | 661 | 1.63k | (h.0, &mut h.1) | 662 | 1.63k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 16]>>::heap_mut <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::heap_mut Line | Count | Source | 659 | 872 | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 872 | let h = &mut self.heap; | 661 | 872 | (h.0, &mut h.1) | 662 | 872 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::heap_mut <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::heap_mut Line | Count | Source | 659 | 1.99k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 1.99k | let h = &mut self.heap; | 661 | 1.99k | (h.0, &mut h.1) | 662 | 1.99k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::heap_mut Line | Count | Source | 659 | 426 | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 426 | let h = &mut self.heap; | 661 | 426 | (h.0, &mut h.1) | 662 | 426 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::heap_mut <smallvec::SmallVecData<[u8; 1024]>>::heap_mut Line | Count | Source | 659 | 2.05k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 2.05k | let h = &mut self.heap; | 661 | 2.05k | (h.0, &mut h.1) | 662 | 2.05k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[core::option::Option<usize>; 16]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::heap_mut <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::heap_mut Line | Count | Source | 659 | 1.63k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 1.63k | let h = &mut self.heap; | 661 | 1.63k | (h.0, &mut h.1) | 662 | 1.63k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::heap_mut Line | Count | Source | 659 | 96.4k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 96.4k | let h = &mut self.heap; | 661 | 96.4k | (h.0, &mut h.1) | 662 | 96.4k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::heap_mut Line | Count | Source | 659 | 301k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 301k | let h = &mut self.heap; | 661 | 301k | (h.0, &mut h.1) | 662 | 301k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]>>::heap_mut <smallvec::SmallVecData<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::heap_mut Line | Count | Source | 659 | 79.4k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 79.4k | let h = &mut self.heap; | 661 | 79.4k | (h.0, &mut h.1) | 662 | 79.4k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::Allocation; 2]>>::heap_mut <smallvec::SmallVecData<[regalloc2::Allocation; 4]>>::heap_mut Line | Count | Source | 659 | 154 | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 154 | let h = &mut self.heap; | 661 | 154 | (h.0, &mut h.1) | 662 | 154 | } |
<smallvec::SmallVecData<[regalloc2::PReg; 8]>>::heap_mut Line | Count | Source | 659 | 21.4k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 21.4k | let h = &mut self.heap; | 661 | 21.4k | (h.0, &mut h.1) | 662 | 21.4k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::VReg; 2]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::SpillSlot; 8]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_egraph::Id; 8]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::loop_analysis::Loop; 8]>>::heap_mut <smallvec::SmallVecData<[regalloc2::index::Block; 16]>>::heap_mut Line | Count | Source | 659 | 108k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 108k | let h = &mut self.heap; | 661 | 108k | (h.0, &mut h.1) | 662 | 108k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Inst; 2]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Block; 16]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 4]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 8]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::heap_mut <smallvec::SmallVecData<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]>>::heap_mut Line | Count | Source | 659 | 1.30k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 1.30k | let h = &mut self.heap; | 661 | 1.30k | (h.0, &mut h.1) | 662 | 1.30k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::heap_mut <smallvec::SmallVecData<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::heap_mut Line | Count | Source | 659 | 2.27k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 2.27k | let h = &mut self.heap; | 661 | 2.27k | (h.0, &mut h.1) | 662 | 2.27k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::abi::RetPair; 2]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Reg; 16]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Reg; 4]>>::heap_mut <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::heap_mut Line | Count | Source | 659 | 83.2k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 83.2k | let h = &mut self.heap; | 661 | 83.2k | (h.0, &mut h.1) | 662 | 83.2k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::heap_mut Line | Count | Source | 659 | 25.9k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 25.9k | let h = &mut self.heap; | 661 | 25.9k | (h.0, &mut h.1) | 662 | 25.9k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::heap_mut <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::heap_mut Line | Count | Source | 659 | 16.1k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 16.1k | let h = &mut self.heap; | 661 | 16.1k | (h.0, &mut h.1) | 662 | 16.1k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::heap_mut Line | Count | Source | 659 | 84.1k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 84.1k | let h = &mut self.heap; | 661 | 84.1k | (h.0, &mut h.1) | 662 | 84.1k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::heap_mut Line | Count | Source | 659 | 173k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 173k | let h = &mut self.heap; | 661 | 173k | (h.0, &mut h.1) | 662 | 173k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 2]>>::heap_mut Line | Count | Source | 659 | 5.78k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 5.78k | let h = &mut self.heap; | 661 | 5.78k | (h.0, &mut h.1) | 662 | 5.78k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::heap_mut Line | Count | Source | 659 | 536k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 536k | let h = &mut self.heap; | 661 | 536k | (h.0, &mut h.1) | 662 | 536k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::heap_mut Line | Count | Source | 659 | 15.7k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 15.7k | let h = &mut self.heap; | 661 | 15.7k | (h.0, &mut h.1) | 662 | 15.7k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::InsertedMove; 8]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::heap_mut <smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::heap_mut Line | Count | Source | 659 | 18.4k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 18.4k | let h = &mut self.heap; | 661 | 18.4k | (h.0, &mut h.1) | 662 | 18.4k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::heap_mut Line | Count | Source | 659 | 23.3k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 23.3k | let h = &mut self.heap; | 661 | 23.3k | (h.0, &mut h.1) | 662 | 23.3k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::heap_mut Line | Count | Source | 659 | 243k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 243k | let h = &mut self.heap; | 661 | 243k | (h.0, &mut h.1) | 662 | 243k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::Use; 4]>>::heap_mut Line | Count | Source | 659 | 251k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 251k | let h = &mut self.heap; | 661 | 251k | (h.0, &mut h.1) | 662 | 251k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::VRegIndex; 4]>>::heap_mut Line | Count | Source | 659 | 193k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 193k | let h = &mut self.heap; | 661 | 193k | (h.0, &mut h.1) | 662 | 193k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]>>::heap_mut <smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::heap_mut Line | Count | Source | 659 | 162k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 162k | let h = &mut self.heap; | 661 | 162k | (h.0, &mut h.1) | 662 | 162k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::heap_mut <smallvec::SmallVecData<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]>>::heap_mut Line | Count | Source | 659 | 440k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 440k | let h = &mut self.heap; | 661 | 440k | (h.0, &mut h.1) | 662 | 440k | } |
<smallvec::SmallVecData<[regalloc2::postorder::calculate::State; 64]>>::heap_mut Line | Count | Source | 659 | 198k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 198k | let h = &mut self.heap; | 661 | 198k | (h.0, &mut h.1) | 662 | 198k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::heap_mut <smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]>>::heap_mut Line | Count | Source | 659 | 11.7k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 11.7k | let h = &mut self.heap; | 661 | 11.7k | (h.0, &mut h.1) | 662 | 11.7k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::heap_mut <smallvec::SmallVecData<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::heap_mut Line | Count | Source | 659 | 29.6k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 29.6k | let h = &mut self.heap; | 661 | 29.6k | (h.0, &mut h.1) | 662 | 29.6k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(u8, u64); 4]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[bool; 16]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[u8; 16]>>::heap_mut <smallvec::SmallVecData<[u8; 1024]>>::heap_mut Line | Count | Source | 659 | 1.94M | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 1.94M | let h = &mut self.heap; | 661 | 1.94M | (h.0, &mut h.1) | 662 | 1.94M | } |
Unexecuted instantiation: <smallvec::SmallVecData<[u8; 8]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[usize; 16]>>::heap_mut <smallvec::SmallVecData<[usize; 4]>>::heap_mut Line | Count | Source | 659 | 2.47k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 2.47k | let h = &mut self.heap; | 661 | 2.47k | (h.0, &mut h.1) | 662 | 2.47k | } |
<smallvec::SmallVecData<[u32; 16]>>::heap_mut Line | Count | Source | 659 | 594k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 594k | let h = &mut self.heap; | 661 | 594k | (h.0, &mut h.1) | 662 | 594k | } |
<smallvec::SmallVecData<[u32; 64]>>::heap_mut Line | Count | Source | 659 | 37.4k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 37.4k | let h = &mut self.heap; | 661 | 37.4k | (h.0, &mut h.1) | 662 | 37.4k | } |
<smallvec::SmallVecData<[u32; 8]>>::heap_mut Line | Count | Source | 659 | 405k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 405k | let h = &mut self.heap; | 661 | 405k | (h.0, &mut h.1) | 662 | 405k | } |
<smallvec::SmallVecData<[regalloc2::Allocation; 4]>>::heap_mut Line | Count | Source | 659 | 3.98k | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 3.98k | let h = &mut self.heap; | 661 | 3.98k | (h.0, &mut h.1) | 662 | 3.98k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::Use; 4]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::VRegIndex; 4]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::operators::Operator; 2]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::heap_mut <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::heap_mut Line | Count | Source | 659 | 116 | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 116 | let h = &mut self.heap; | 661 | 116 | (h.0, &mut h.1) | 662 | 116 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 1]>>::heap_mut <smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 8]>>::heap_mut Line | Count | Source | 659 | 116 | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { | 660 | 116 | let h = &mut self.heap; | 661 | 116 | (h.0, &mut h.1) | 662 | 116 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 16]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[u8; 1024]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::operators::Operator; 2]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 1]>>::heap_mut Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 8]>>::heap_mut |
663 | | #[inline] |
664 | 373k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { |
665 | 373k | SmallVecData { heap: (ptr, len) } |
666 | 373k | } <smallvec::SmallVecData<[inkwell::values::phi_value::PhiValue; 1]>>::from_heap Line | Count | Source | 664 | 66.8k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 66.8k | SmallVecData { heap: (ptr, len) } | 666 | 66.8k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::from_heap <smallvec::SmallVecData<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]>>::from_heap Line | Count | Source | 664 | 3 | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 3 | SmallVecData { heap: (ptr, len) } | 666 | 3 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 16]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[core::option::Option<usize>; 16]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::from_heap <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::from_heap Line | Count | Source | 664 | 1.63k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 1.63k | SmallVecData { heap: (ptr, len) } | 666 | 1.63k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::from_heap Line | Count | Source | 664 | 1.97k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 1.97k | SmallVecData { heap: (ptr, len) } | 666 | 1.97k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::from_heap Line | Count | Source | 664 | 8.12k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 8.12k | SmallVecData { heap: (ptr, len) } | 666 | 8.12k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]>>::from_heap <smallvec::SmallVecData<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::from_heap Line | Count | Source | 664 | 426 | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 426 | SmallVecData { heap: (ptr, len) } | 666 | 426 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::Allocation; 2]>>::from_heap <smallvec::SmallVecData<[regalloc2::PReg; 8]>>::from_heap Line | Count | Source | 664 | 7.52k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 7.52k | SmallVecData { heap: (ptr, len) } | 666 | 7.52k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::VReg; 2]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::SpillSlot; 8]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_egraph::Id; 8]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::loop_analysis::Loop; 8]>>::from_heap <smallvec::SmallVecData<[regalloc2::index::Block; 16]>>::from_heap Line | Count | Source | 664 | 5.22k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 5.22k | SmallVecData { heap: (ptr, len) } | 666 | 5.22k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Inst; 2]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Block; 16]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 4]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 8]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::from_heap <smallvec::SmallVecData<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]>>::from_heap Line | Count | Source | 664 | 650 | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 650 | SmallVecData { heap: (ptr, len) } | 666 | 650 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::from_heap <smallvec::SmallVecData<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::from_heap Line | Count | Source | 664 | 698 | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 698 | SmallVecData { heap: (ptr, len) } | 666 | 698 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::abi::RetPair; 2]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Reg; 16]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::reg::Reg; 4]>>::from_heap <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::from_heap Line | Count | Source | 664 | 1.09k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 1.09k | SmallVecData { heap: (ptr, len) } | 666 | 1.09k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::from_heap Line | Count | Source | 664 | 1.53k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 1.53k | SmallVecData { heap: (ptr, len) } | 666 | 1.53k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::from_heap <smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::from_heap Line | Count | Source | 664 | 1.14k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 1.14k | SmallVecData { heap: (ptr, len) } | 666 | 1.14k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::from_heap Line | Count | Source | 664 | 4.03k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 4.03k | SmallVecData { heap: (ptr, len) } | 666 | 4.03k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::from_heap Line | Count | Source | 664 | 8.50k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 8.50k | SmallVecData { heap: (ptr, len) } | 666 | 8.50k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 2]>>::from_heap Line | Count | Source | 664 | 616 | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 616 | SmallVecData { heap: (ptr, len) } | 666 | 616 | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::from_heap Line | Count | Source | 664 | 78.5k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 78.5k | SmallVecData { heap: (ptr, len) } | 666 | 78.5k | } |
<smallvec::SmallVecData<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::from_heap Line | Count | Source | 664 | 818 | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 818 | SmallVecData { heap: (ptr, len) } | 666 | 818 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::InsertedMove; 8]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::from_heap <smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::from_heap Line | Count | Source | 664 | 1.03k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 1.03k | SmallVecData { heap: (ptr, len) } | 666 | 1.03k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::from_heap Line | Count | Source | 664 | 2.92k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 2.92k | SmallVecData { heap: (ptr, len) } | 666 | 2.92k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::from_heap Line | Count | Source | 664 | 22.6k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 22.6k | SmallVecData { heap: (ptr, len) } | 666 | 22.6k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::Use; 4]>>::from_heap Line | Count | Source | 664 | 41.7k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 41.7k | SmallVecData { heap: (ptr, len) } | 666 | 41.7k | } |
<smallvec::SmallVecData<[regalloc2::ion::data_structures::VRegIndex; 4]>>::from_heap Line | Count | Source | 664 | 21.2k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 21.2k | SmallVecData { heap: (ptr, len) } | 666 | 21.2k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]>>::from_heap <smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::from_heap Line | Count | Source | 664 | 63.1k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 63.1k | SmallVecData { heap: (ptr, len) } | 666 | 63.1k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::from_heap <smallvec::SmallVecData<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]>>::from_heap Line | Count | Source | 664 | 3.81k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 3.81k | SmallVecData { heap: (ptr, len) } | 666 | 3.81k | } |
<smallvec::SmallVecData<[regalloc2::postorder::calculate::State; 64]>>::from_heap Line | Count | Source | 664 | 564 | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 564 | SmallVecData { heap: (ptr, len) } | 666 | 564 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::from_heap <smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]>>::from_heap Line | Count | Source | 664 | 170 | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 170 | SmallVecData { heap: (ptr, len) } | 666 | 170 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::from_heap <smallvec::SmallVecData<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::from_heap Line | Count | Source | 664 | 1.40k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 1.40k | SmallVecData { heap: (ptr, len) } | 666 | 1.40k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[(u8, u64); 4]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[bool; 16]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[u8; 16]>>::from_heap <smallvec::SmallVecData<[u8; 1024]>>::from_heap Line | Count | Source | 664 | 2.92k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 2.92k | SmallVecData { heap: (ptr, len) } | 666 | 2.92k | } |
Unexecuted instantiation: <smallvec::SmallVecData<[u8; 8]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[usize; 16]>>::from_heap <smallvec::SmallVecData<[usize; 4]>>::from_heap Line | Count | Source | 664 | 108 | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 108 | SmallVecData { heap: (ptr, len) } | 666 | 108 | } |
<smallvec::SmallVecData<[u32; 16]>>::from_heap Line | Count | Source | 664 | 8.50k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 8.50k | SmallVecData { heap: (ptr, len) } | 666 | 8.50k | } |
<smallvec::SmallVecData<[u32; 64]>>::from_heap Line | Count | Source | 664 | 822 | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 822 | SmallVecData { heap: (ptr, len) } | 666 | 822 | } |
<smallvec::SmallVecData<[u32; 8]>>::from_heap Line | Count | Source | 664 | 12.9k | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 12.9k | SmallVecData { heap: (ptr, len) } | 666 | 12.9k | } |
<smallvec::SmallVecData<[regalloc2::Allocation; 4]>>::from_heap Line | Count | Source | 664 | 418 | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 418 | SmallVecData { heap: (ptr, len) } | 666 | 418 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::Use; 4]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[regalloc2::ion::data_structures::VRegIndex; 4]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::operators::Operator; 2]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::from_heap <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::from_heap Line | Count | Source | 664 | 58 | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 58 | SmallVecData { heap: (ptr, len) } | 666 | 58 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 1]>>::from_heap <smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 8]>>::from_heap Line | Count | Source | 664 | 58 | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { | 665 | 58 | SmallVecData { heap: (ptr, len) } | 666 | 58 | } |
Unexecuted instantiation: <smallvec::SmallVecData<[cranelift_codegen::ir::entities::Value; 16]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::operators::Operator; 2]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 1]>>::from_heap Unexecuted instantiation: <smallvec::SmallVecData<[wasmparser::readers::core::types::ValType; 8]>>::from_heap |
667 | | } |
668 | | |
669 | | #[cfg(not(feature = "union"))] |
670 | | enum SmallVecData<A: Array> { |
671 | | Inline(MaybeUninit<A>), |
672 | | // Using NonNull and NonZero here allows to reduce size of `SmallVec`. |
673 | | Heap { |
674 | | // Since we never allocate on heap |
675 | | // unless our capacity is bigger than inline capacity |
676 | | // heap capacity cannot be less than 1. |
677 | | // Therefore, pointer cannot be null too. |
678 | | ptr: NonNull<A::Item>, |
679 | | len: usize, |
680 | | }, |
681 | | } |
682 | | |
683 | | #[cfg(all(not(feature = "union"), feature = "const_new"))] |
684 | | impl<T, const N: usize> SmallVecData<[T; N]> { |
685 | | #[cfg_attr(docsrs, doc(cfg(feature = "const_new")))] |
686 | | #[inline] |
687 | | const fn from_const(inline: MaybeUninit<[T; N]>) -> Self { |
688 | | SmallVecData::Inline(inline) |
689 | | } |
690 | | } |
691 | | |
692 | | #[cfg(not(feature = "union"))] |
693 | | impl<A: Array> SmallVecData<A> { |
694 | | #[inline] |
695 | | unsafe fn inline(&self) -> ConstNonNull<A::Item> { |
696 | | match self { |
697 | | SmallVecData::Inline(a) => ConstNonNull::new(a.as_ptr() as *const A::Item).unwrap(), |
698 | | _ => debug_unreachable!(), |
699 | | } |
700 | | } |
701 | | #[inline] |
702 | | unsafe fn inline_mut(&mut self) -> NonNull<A::Item> { |
703 | | match self { |
704 | | SmallVecData::Inline(a) => NonNull::new(a.as_mut_ptr() as *mut A::Item).unwrap(), |
705 | | _ => debug_unreachable!(), |
706 | | } |
707 | | } |
708 | | #[inline] |
709 | | fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A> { |
710 | | SmallVecData::Inline(inline) |
711 | | } |
712 | | #[inline] |
713 | | unsafe fn into_inline(self) -> MaybeUninit<A> { |
714 | | match self { |
715 | | SmallVecData::Inline(a) => a, |
716 | | _ => debug_unreachable!(), |
717 | | } |
718 | | } |
719 | | #[inline] |
720 | | unsafe fn heap(&self) -> (ConstNonNull<A::Item>, usize) { |
721 | | match self { |
722 | | SmallVecData::Heap { ptr, len } => (ConstNonNull(*ptr), *len), |
723 | | _ => debug_unreachable!(), |
724 | | } |
725 | | } |
726 | | #[inline] |
727 | | unsafe fn heap_mut(&mut self) -> (NonNull<A::Item>, &mut usize) { |
728 | | match self { |
729 | | SmallVecData::Heap { ptr, len } => (*ptr, len), |
730 | | _ => debug_unreachable!(), |
731 | | } |
732 | | } |
733 | | #[inline] |
734 | | fn from_heap(ptr: NonNull<A::Item>, len: usize) -> SmallVecData<A> { |
735 | | SmallVecData::Heap { ptr, len } |
736 | | } |
737 | | } |
738 | | |
739 | | unsafe impl<A: Array + Send> Send for SmallVecData<A> {} |
740 | | unsafe impl<A: Array + Sync> Sync for SmallVecData<A> {} |
741 | | |
742 | | /// A `Vec`-like container that can store a small number of elements inline. |
743 | | /// |
744 | | /// `SmallVec` acts like a vector, but can store a limited amount of data inline within the |
745 | | /// `SmallVec` struct rather than in a separate allocation. If the data exceeds this limit, the |
746 | | /// `SmallVec` will "spill" its data onto the heap, allocating a new buffer to hold it. |
747 | | /// |
748 | | /// The amount of data that a `SmallVec` can store inline depends on its backing store. The backing |
749 | | /// store can be any type that implements the `Array` trait; usually it is a small fixed-sized |
750 | | /// array. For example a `SmallVec<[u64; 8]>` can hold up to eight 64-bit integers inline. |
751 | | /// |
752 | | /// ## Example |
753 | | /// |
754 | | /// ```rust |
755 | | /// use smallvec::SmallVec; |
756 | | /// let mut v = SmallVec::<[u8; 4]>::new(); // initialize an empty vector |
757 | | /// |
758 | | /// // The vector can hold up to 4 items without spilling onto the heap. |
759 | | /// v.extend(0..4); |
760 | | /// assert_eq!(v.len(), 4); |
761 | | /// assert!(!v.spilled()); |
762 | | /// |
763 | | /// // Pushing another element will force the buffer to spill: |
764 | | /// v.push(4); |
765 | | /// assert_eq!(v.len(), 5); |
766 | | /// assert!(v.spilled()); |
767 | | /// ``` |
768 | | pub struct SmallVec<A: Array> { |
769 | | // The capacity field is used to determine which of the storage variants is active: |
770 | | // If capacity <= Self::inline_capacity() then the inline variant is used and capacity holds the current length of the vector (number of elements actually in use). |
771 | | // If capacity > Self::inline_capacity() then the heap variant is used and capacity holds the size of the memory allocation. |
772 | | capacity: usize, |
773 | | data: SmallVecData<A>, |
774 | | } |
775 | | |
776 | | impl<A: Array> SmallVec<A> { |
777 | | /// Construct an empty vector |
778 | | #[inline] |
779 | 49.1M | pub fn new() -> SmallVec<A> { |
780 | 49.1M | // Try to detect invalid custom implementations of `Array`. Hopefully, |
781 | 49.1M | // this check should be optimized away entirely for valid ones. |
782 | 49.1M | assert!( |
783 | 49.1M | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() |
784 | 49.1M | && mem::align_of::<A>() >= mem::align_of::<A::Item>() |
785 | | ); |
786 | 49.1M | SmallVec { |
787 | 49.1M | capacity: 0, |
788 | 49.1M | data: SmallVecData::from_inline(MaybeUninit::uninit()), |
789 | 49.1M | } |
790 | 49.1M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]>>::new Line | Count | Source | 779 | 376k | pub fn new() -> SmallVec<A> { | 780 | 376k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 376k | // this check should be optimized away entirely for valid ones. | 782 | 376k | assert!( | 783 | 376k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 376k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 376k | SmallVec { | 787 | 376k | capacity: 0, | 788 | 376k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 376k | } | 790 | 376k | } |
Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::new <smallvec::SmallVec<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]>>::new Line | Count | Source | 779 | 196k | pub fn new() -> SmallVec<A> { | 780 | 196k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 196k | // this check should be optimized away entirely for valid ones. | 782 | 196k | assert!( | 783 | 196k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 196k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 196k | SmallVec { | 787 | 196k | capacity: 0, | 788 | 196k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 196k | } | 790 | 196k | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::new Line | Count | Source | 779 | 156k | pub fn new() -> SmallVec<A> { | 780 | 156k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 156k | // this check should be optimized away entirely for valid ones. | 782 | 156k | assert!( | 783 | 156k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 156k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 156k | SmallVec { | 787 | 156k | capacity: 0, | 788 | 156k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 156k | } | 790 | 156k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::new <smallvec::SmallVec<[core::option::Option<usize>; 16]>>::new Line | Count | Source | 779 | 1.52k | pub fn new() -> SmallVec<A> { | 780 | 1.52k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 1.52k | // this check should be optimized away entirely for valid ones. | 782 | 1.52k | assert!( | 783 | 1.52k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 1.52k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 1.52k | SmallVec { | 787 | 1.52k | capacity: 0, | 788 | 1.52k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 1.52k | } | 790 | 1.52k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::new Line | Count | Source | 779 | 211k | pub fn new() -> SmallVec<A> { | 780 | 211k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 211k | // this check should be optimized away entirely for valid ones. | 782 | 211k | assert!( | 783 | 211k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 211k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 211k | SmallVec { | 787 | 211k | capacity: 0, | 788 | 211k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 211k | } | 790 | 211k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::new Line | Count | Source | 779 | 149k | pub fn new() -> SmallVec<A> { | 780 | 149k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 149k | // this check should be optimized away entirely for valid ones. | 782 | 149k | assert!( | 783 | 149k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 149k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 149k | SmallVec { | 787 | 149k | capacity: 0, | 788 | 149k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 149k | } | 790 | 149k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::new Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::new <smallvec::SmallVec<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]>>::new Line | Count | Source | 779 | 869k | pub fn new() -> SmallVec<A> { | 780 | 869k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 869k | // this check should be optimized away entirely for valid ones. | 782 | 869k | assert!( | 783 | 869k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 869k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 869k | SmallVec { | 787 | 869k | capacity: 0, | 788 | 869k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 869k | } | 790 | 869k | } |
<smallvec::SmallVec<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 2]>>::new Line | Count | Source | 779 | 278k | pub fn new() -> SmallVec<A> { | 780 | 278k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 278k | // this check should be optimized away entirely for valid ones. | 782 | 278k | assert!( | 783 | 278k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 278k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 278k | SmallVec { | 787 | 278k | capacity: 0, | 788 | 278k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 278k | } | 790 | 278k | } |
<smallvec::SmallVec<[regalloc2::PReg; 8]>>::new Line | Count | Source | 779 | 1.27M | pub fn new() -> SmallVec<A> { | 780 | 1.27M | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 1.27M | // this check should be optimized away entirely for valid ones. | 782 | 1.27M | assert!( | 783 | 1.27M | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 1.27M | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 1.27M | SmallVec { | 787 | 1.27M | capacity: 0, | 788 | 1.27M | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 1.27M | } | 790 | 1.27M | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]>>::new <smallvec::SmallVec<[regalloc2::SpillSlot; 8]>>::new Line | Count | Source | 779 | 166k | pub fn new() -> SmallVec<A> { | 780 | 166k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 166k | // this check should be optimized away entirely for valid ones. | 782 | 166k | assert!( | 783 | 166k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 166k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 166k | SmallVec { | 787 | 166k | capacity: 0, | 788 | 166k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 166k | } | 790 | 166k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]>>::new <smallvec::SmallVec<[cranelift_codegen::loop_analysis::Loop; 8]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[regalloc2::index::Block; 16]>>::new Line | Count | Source | 779 | 418k | pub fn new() -> SmallVec<A> { | 780 | 418k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 418k | // this check should be optimized away entirely for valid ones. | 782 | 418k | assert!( | 783 | 418k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 418k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 418k | SmallVec { | 787 | 418k | capacity: 0, | 788 | 418k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 418k | } | 790 | 418k | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Inst; 2]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Block; 16]>>::new Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 4]>>::new Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]>>::new Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::new <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]>>::new Line | Count | Source | 779 | 702k | pub fn new() -> SmallVec<A> { | 780 | 702k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 702k | // this check should be optimized away entirely for valid ones. | 782 | 702k | assert!( | 783 | 702k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 702k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 702k | SmallVec { | 787 | 702k | capacity: 0, | 788 | 702k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 702k | } | 790 | 702k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]>>::new <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::new Line | Count | Source | 779 | 761k | pub fn new() -> SmallVec<A> { | 780 | 761k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 761k | // this check should be optimized away entirely for valid ones. | 782 | 761k | assert!( | 783 | 761k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 761k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 761k | SmallVec { | 787 | 761k | capacity: 0, | 788 | 761k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 761k | } | 790 | 761k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::new Line | Count | Source | 779 | 209k | pub fn new() -> SmallVec<A> { | 780 | 209k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 209k | // this check should be optimized away entirely for valid ones. | 782 | 209k | assert!( | 783 | 209k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 209k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 209k | SmallVec { | 787 | 209k | capacity: 0, | 788 | 209k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 209k | } | 790 | 209k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::new Line | Count | Source | 779 | 209k | pub fn new() -> SmallVec<A> { | 780 | 209k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 209k | // this check should be optimized away entirely for valid ones. | 782 | 209k | assert!( | 783 | 209k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 209k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 209k | SmallVec { | 787 | 209k | capacity: 0, | 788 | 209k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 209k | } | 790 | 209k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::RetPair; 2]>>::new Line | Count | Source | 779 | 1.35k | pub fn new() -> SmallVec<A> { | 780 | 1.35k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 1.35k | // this check should be optimized away entirely for valid ones. | 782 | 1.35k | assert!( | 783 | 1.35k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 1.35k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 1.35k | SmallVec { | 787 | 1.35k | capacity: 0, | 788 | 1.35k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 1.35k | } | 790 | 1.35k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 16]>>::new Line | Count | Source | 779 | 204k | pub fn new() -> SmallVec<A> { | 780 | 204k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 204k | // this check should be optimized away entirely for valid ones. | 782 | 204k | assert!( | 783 | 204k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 204k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 204k | SmallVec { | 787 | 204k | capacity: 0, | 788 | 204k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 204k | } | 790 | 204k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 4]>>::new <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::new Line | Count | Source | 779 | 149k | pub fn new() -> SmallVec<A> { | 780 | 149k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 149k | // this check should be optimized away entirely for valid ones. | 782 | 149k | assert!( | 783 | 149k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 149k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 149k | SmallVec { | 787 | 149k | capacity: 0, | 788 | 149k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 149k | } | 790 | 149k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 2]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::new Line | Count | Source | 779 | 360k | pub fn new() -> SmallVec<A> { | 780 | 360k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 360k | // this check should be optimized away entirely for valid ones. | 782 | 360k | assert!( | 783 | 360k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 360k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 360k | SmallVec { | 787 | 360k | capacity: 0, | 788 | 360k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 360k | } | 790 | 360k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::InsertedMove; 8]>>::new Line | Count | Source | 779 | 464k | pub fn new() -> SmallVec<A> { | 780 | 464k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 464k | // this check should be optimized away entirely for valid ones. | 782 | 464k | assert!( | 783 | 464k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 464k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 464k | SmallVec { | 787 | 464k | capacity: 0, | 788 | 464k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 464k | } | 790 | 464k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::new Line | Count | Source | 779 | 10.3k | pub fn new() -> SmallVec<A> { | 780 | 10.3k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 10.3k | // this check should be optimized away entirely for valid ones. | 782 | 10.3k | assert!( | 783 | 10.3k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 10.3k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 10.3k | SmallVec { | 787 | 10.3k | capacity: 0, | 788 | 10.3k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 10.3k | } | 790 | 10.3k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::new Line | Count | Source | 779 | 966 | pub fn new() -> SmallVec<A> { | 780 | 966 | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 966 | // this check should be optimized away entirely for valid ones. | 782 | 966 | assert!( | 783 | 966 | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 966 | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 966 | SmallVec { | 787 | 966 | capacity: 0, | 788 | 966 | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 966 | } | 790 | 966 | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::new Line | Count | Source | 779 | 2.44M | pub fn new() -> SmallVec<A> { | 780 | 2.44M | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 2.44M | // this check should be optimized away entirely for valid ones. | 782 | 2.44M | assert!( | 783 | 2.44M | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 2.44M | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 2.44M | SmallVec { | 787 | 2.44M | capacity: 0, | 788 | 2.44M | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 2.44M | } | 790 | 2.44M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::new Line | Count | Source | 779 | 22.4M | pub fn new() -> SmallVec<A> { | 780 | 22.4M | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 22.4M | // this check should be optimized away entirely for valid ones. | 782 | 22.4M | assert!( | 783 | 22.4M | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 22.4M | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 22.4M | SmallVec { | 787 | 22.4M | capacity: 0, | 788 | 22.4M | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 22.4M | } | 790 | 22.4M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::new Line | Count | Source | 779 | 1.51M | pub fn new() -> SmallVec<A> { | 780 | 1.51M | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 1.51M | // this check should be optimized away entirely for valid ones. | 782 | 1.51M | assert!( | 783 | 1.51M | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 1.51M | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 1.51M | SmallVec { | 787 | 1.51M | capacity: 0, | 788 | 1.51M | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 1.51M | } | 790 | 1.51M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::new Line | Count | Source | 779 | 1.24M | pub fn new() -> SmallVec<A> { | 780 | 1.24M | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 1.24M | // this check should be optimized away entirely for valid ones. | 782 | 1.24M | assert!( | 783 | 1.24M | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 1.24M | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 1.24M | SmallVec { | 787 | 1.24M | capacity: 0, | 788 | 1.24M | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 1.24M | } | 790 | 1.24M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::new Line | Count | Source | 779 | 2.86M | pub fn new() -> SmallVec<A> { | 780 | 2.86M | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 2.86M | // this check should be optimized away entirely for valid ones. | 782 | 2.86M | assert!( | 783 | 2.86M | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 2.86M | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 2.86M | SmallVec { | 787 | 2.86M | capacity: 0, | 788 | 2.86M | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 2.86M | } | 790 | 2.86M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>>::new Line | Count | Source | 779 | 238k | pub fn new() -> SmallVec<A> { | 780 | 238k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 238k | // this check should be optimized away entirely for valid ones. | 782 | 238k | assert!( | 783 | 238k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 238k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 238k | SmallVec { | 787 | 238k | capacity: 0, | 788 | 238k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 238k | } | 790 | 238k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]>>::new Line | Count | Source | 779 | 104k | pub fn new() -> SmallVec<A> { | 780 | 104k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 104k | // this check should be optimized away entirely for valid ones. | 782 | 104k | assert!( | 783 | 104k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 104k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 104k | SmallVec { | 787 | 104k | capacity: 0, | 788 | 104k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 104k | } | 790 | 104k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::new Line | Count | Source | 779 | 1.53M | pub fn new() -> SmallVec<A> { | 780 | 1.53M | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 1.53M | // this check should be optimized away entirely for valid ones. | 782 | 1.53M | assert!( | 783 | 1.53M | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 1.53M | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 1.53M | SmallVec { | 787 | 1.53M | capacity: 0, | 788 | 1.53M | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 1.53M | } | 790 | 1.53M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::new Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::new Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]>>::new Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::new Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::new Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::new Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>>::new Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]>>::new Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::new Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::new <smallvec::SmallVec<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[regalloc2::postorder::calculate::State; 64]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::new Line | Count | Source | 779 | 466k | pub fn new() -> SmallVec<A> { | 780 | 466k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 466k | // this check should be optimized away entirely for valid ones. | 782 | 466k | assert!( | 783 | 466k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 466k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 466k | SmallVec { | 787 | 466k | capacity: 0, | 788 | 466k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 466k | } | 790 | 466k | } |
<smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]>>::new Line | Count | Source | 779 | 3.56k | pub fn new() -> SmallVec<A> { | 780 | 3.56k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 3.56k | // this check should be optimized away entirely for valid ones. | 782 | 3.56k | assert!( | 783 | 3.56k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 3.56k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 3.56k | SmallVec { | 787 | 3.56k | capacity: 0, | 788 | 3.56k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 3.56k | } | 790 | 3.56k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::new <smallvec::SmallVec<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::new Line | Count | Source | 779 | 966 | pub fn new() -> SmallVec<A> { | 780 | 966 | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 966 | // this check should be optimized away entirely for valid ones. | 782 | 966 | assert!( | 783 | 966 | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 966 | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 966 | SmallVec { | 787 | 966 | capacity: 0, | 788 | 966 | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 966 | } | 790 | 966 | } |
Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]>>::new <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[bool; 16]>>::new Line | Count | Source | 779 | 3.04k | pub fn new() -> SmallVec<A> { | 780 | 3.04k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 3.04k | // this check should be optimized away entirely for valid ones. | 782 | 3.04k | assert!( | 783 | 3.04k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 3.04k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 3.04k | SmallVec { | 787 | 3.04k | capacity: 0, | 788 | 3.04k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 3.04k | } | 790 | 3.04k | } |
<smallvec::SmallVec<[u8; 16]>>::new Line | Count | Source | 779 | 37.2k | pub fn new() -> SmallVec<A> { | 780 | 37.2k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 37.2k | // this check should be optimized away entirely for valid ones. | 782 | 37.2k | assert!( | 783 | 37.2k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 37.2k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 37.2k | SmallVec { | 787 | 37.2k | capacity: 0, | 788 | 37.2k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 37.2k | } | 790 | 37.2k | } |
<smallvec::SmallVec<[u8; 1024]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[u8; 8]>>::new Line | Count | Source | 779 | 82.4k | pub fn new() -> SmallVec<A> { | 780 | 82.4k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 82.4k | // this check should be optimized away entirely for valid ones. | 782 | 82.4k | assert!( | 783 | 82.4k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 82.4k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 82.4k | SmallVec { | 787 | 82.4k | capacity: 0, | 788 | 82.4k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 82.4k | } | 790 | 82.4k | } |
<smallvec::SmallVec<[usize; 16]>>::new Line | Count | Source | 779 | 1.52k | pub fn new() -> SmallVec<A> { | 780 | 1.52k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 1.52k | // this check should be optimized away entirely for valid ones. | 782 | 1.52k | assert!( | 783 | 1.52k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 1.52k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 1.52k | SmallVec { | 787 | 1.52k | capacity: 0, | 788 | 1.52k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 1.52k | } | 790 | 1.52k | } |
<smallvec::SmallVec<[usize; 4]>>::new Line | Count | Source | 779 | 240k | pub fn new() -> SmallVec<A> { | 780 | 240k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 240k | // this check should be optimized away entirely for valid ones. | 782 | 240k | assert!( | 783 | 240k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 240k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 240k | SmallVec { | 787 | 240k | capacity: 0, | 788 | 240k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 240k | } | 790 | 240k | } |
<smallvec::SmallVec<[u32; 16]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[u32; 64]>>::new Line | Count | Source | 779 | 139k | pub fn new() -> SmallVec<A> { | 780 | 139k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 139k | // this check should be optimized away entirely for valid ones. | 782 | 139k | assert!( | 783 | 139k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 139k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 139k | SmallVec { | 787 | 139k | capacity: 0, | 788 | 139k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 139k | } | 790 | 139k | } |
<smallvec::SmallVec<[u32; 8]>>::new Line | Count | Source | 779 | 278k | pub fn new() -> SmallVec<A> { | 780 | 278k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 278k | // this check should be optimized away entirely for valid ones. | 782 | 278k | assert!( | 783 | 278k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 278k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 278k | SmallVec { | 787 | 278k | capacity: 0, | 788 | 278k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 278k | } | 790 | 278k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]>>::new Line | Count | Source | 779 | 153k | pub fn new() -> SmallVec<A> { | 780 | 153k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 153k | // this check should be optimized away entirely for valid ones. | 782 | 153k | assert!( | 783 | 153k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 153k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 153k | SmallVec { | 787 | 153k | capacity: 0, | 788 | 153k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 153k | } | 790 | 153k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::new Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::new Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::new Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::new Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::new Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::new Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::new Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::new Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::new Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::new <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::new Line | Count | Source | 779 | 3.42M | pub fn new() -> SmallVec<A> { | 780 | 3.42M | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 3.42M | // this check should be optimized away entirely for valid ones. | 782 | 3.42M | assert!( | 783 | 3.42M | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 3.42M | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 3.42M | SmallVec { | 787 | 3.42M | capacity: 0, | 788 | 3.42M | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 3.42M | } | 790 | 3.42M | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::new Line | Count | Source | 779 | 153k | pub fn new() -> SmallVec<A> { | 780 | 153k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 153k | // this check should be optimized away entirely for valid ones. | 782 | 153k | assert!( | 783 | 153k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 153k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 153k | SmallVec { | 787 | 153k | capacity: 0, | 788 | 153k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 153k | } | 790 | 153k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::new Line | Count | Source | 779 | 489k | pub fn new() -> SmallVec<A> { | 780 | 489k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 489k | // this check should be optimized away entirely for valid ones. | 782 | 489k | assert!( | 783 | 489k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 489k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 489k | SmallVec { | 787 | 489k | capacity: 0, | 788 | 489k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 489k | } | 790 | 489k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::new Line | Count | Source | 779 | 153k | pub fn new() -> SmallVec<A> { | 780 | 153k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 153k | // this check should be optimized away entirely for valid ones. | 782 | 153k | assert!( | 783 | 153k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 153k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 153k | SmallVec { | 787 | 153k | capacity: 0, | 788 | 153k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 153k | } | 790 | 153k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::new Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::new Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::new Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::new <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::new Line | Count | Source | 779 | 816k | pub fn new() -> SmallVec<A> { | 780 | 816k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 816k | // this check should be optimized away entirely for valid ones. | 782 | 816k | assert!( | 783 | 816k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 816k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 816k | SmallVec { | 787 | 816k | capacity: 0, | 788 | 816k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 816k | } | 790 | 816k | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::new Line | Count | Source | 779 | 32.6k | pub fn new() -> SmallVec<A> { | 780 | 32.6k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 32.6k | // this check should be optimized away entirely for valid ones. | 782 | 32.6k | assert!( | 783 | 32.6k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 32.6k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 32.6k | SmallVec { | 787 | 32.6k | capacity: 0, | 788 | 32.6k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 32.6k | } | 790 | 32.6k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::new Line | Count | Source | 779 | 274k | pub fn new() -> SmallVec<A> { | 780 | 274k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 274k | // this check should be optimized away entirely for valid ones. | 782 | 274k | assert!( | 783 | 274k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 274k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 274k | SmallVec { | 787 | 274k | capacity: 0, | 788 | 274k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 274k | } | 790 | 274k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::new Line | Count | Source | 779 | 32.6k | pub fn new() -> SmallVec<A> { | 780 | 32.6k | // Try to detect invalid custom implementations of `Array`. Hopefully, | 781 | 32.6k | // this check should be optimized away entirely for valid ones. | 782 | 32.6k | assert!( | 783 | 32.6k | mem::size_of::<A>() == A::size() * mem::size_of::<A::Item>() | 784 | 32.6k | && mem::align_of::<A>() >= mem::align_of::<A::Item>() | 785 | | ); | 786 | 32.6k | SmallVec { | 787 | 32.6k | capacity: 0, | 788 | 32.6k | data: SmallVecData::from_inline(MaybeUninit::uninit()), | 789 | 32.6k | } | 790 | 32.6k | } |
|
791 | | |
792 | | /// Construct an empty vector with enough capacity pre-allocated to store at least `n` |
793 | | /// elements. |
794 | | /// |
795 | | /// Will create a heap allocation only if `n` is larger than the inline capacity. |
796 | | /// |
797 | | /// ``` |
798 | | /// # use smallvec::SmallVec; |
799 | | /// |
800 | | /// let v: SmallVec<[u8; 3]> = SmallVec::with_capacity(100); |
801 | | /// |
802 | | /// assert!(v.is_empty()); |
803 | | /// assert!(v.capacity() >= 100); |
804 | | /// ``` |
805 | | #[inline] |
806 | | pub fn with_capacity(n: usize) -> Self { |
807 | | let mut v = SmallVec::new(); |
808 | | v.reserve_exact(n); |
809 | | v |
810 | | } |
811 | | |
812 | | /// Construct a new `SmallVec` from a `Vec<A::Item>`. |
813 | | /// |
814 | | /// Elements will be copied to the inline buffer if `vec.capacity() <= Self::inline_capacity()`. |
815 | | /// |
816 | | /// ```rust |
817 | | /// use smallvec::SmallVec; |
818 | | /// |
819 | | /// let vec = vec![1, 2, 3, 4, 5]; |
820 | | /// let small_vec: SmallVec<[_; 3]> = SmallVec::from_vec(vec); |
821 | | /// |
822 | | /// assert_eq!(&*small_vec, &[1, 2, 3, 4, 5]); |
823 | | /// ``` |
824 | | #[inline] |
825 | 0 | pub fn from_vec(mut vec: Vec<A::Item>) -> SmallVec<A> { |
826 | 0 | if vec.capacity() <= Self::inline_capacity() { |
827 | | // Cannot use Vec with smaller capacity |
828 | | // because we use value of `Self::capacity` field as indicator. |
829 | | unsafe { |
830 | 0 | let mut data = SmallVecData::<A>::from_inline(MaybeUninit::uninit()); |
831 | 0 | let len = vec.len(); |
832 | 0 | vec.set_len(0); |
833 | 0 | ptr::copy_nonoverlapping(vec.as_ptr(), data.inline_mut().as_ptr(), len); |
834 | 0 |
|
835 | 0 | SmallVec { |
836 | 0 | capacity: len, |
837 | 0 | data, |
838 | 0 | } |
839 | | } |
840 | | } else { |
841 | 0 | let (ptr, cap, len) = (vec.as_mut_ptr(), vec.capacity(), vec.len()); |
842 | 0 | mem::forget(vec); |
843 | 0 | let ptr = NonNull::new(ptr) |
844 | 0 | // See docs: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.as_mut_ptr |
845 | 0 | .expect("Cannot be null by `Vec` invariant"); |
846 | 0 |
|
847 | 0 | SmallVec { |
848 | 0 | capacity: cap, |
849 | 0 | data: SmallVecData::from_heap(ptr, len), |
850 | 0 | } |
851 | | } |
852 | 0 | } Unexecuted instantiation: <smallvec::SmallVec<[core::option::Option<usize>; 16]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::Allocation; 2]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::PReg; 8]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::SpillSlot; 8]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::loop_analysis::Loop; 8]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::index::Block; 16]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Block; 16]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 4]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::RetPair; 2]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 16]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::InsertedMove; 8]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::postorder::calculate::State; 64]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[bool; 16]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[usize; 16]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[usize; 4]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[u32; 64]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[u32; 8]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::Allocation; 4]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::from_vec Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::from_vec |
853 | | |
854 | | /// Constructs a new `SmallVec` on the stack from an `A` without |
855 | | /// copying elements. |
856 | | /// |
857 | | /// ```rust |
858 | | /// use smallvec::SmallVec; |
859 | | /// |
860 | | /// let buf = [1, 2, 3, 4, 5]; |
861 | | /// let small_vec: SmallVec<_> = SmallVec::from_buf(buf); |
862 | | /// |
863 | | /// assert_eq!(&*small_vec, &[1, 2, 3, 4, 5]); |
864 | | /// ``` |
865 | | #[inline] |
866 | | pub fn from_buf(buf: A) -> SmallVec<A> { |
867 | | SmallVec { |
868 | | capacity: A::size(), |
869 | | data: SmallVecData::from_inline(MaybeUninit::new(buf)), |
870 | | } |
871 | | } |
872 | | |
873 | | /// Constructs a new `SmallVec` on the stack from an `A` without |
874 | | /// copying elements. Also sets the length, which must be less or |
875 | | /// equal to the size of `buf`. |
876 | | /// |
877 | | /// ```rust |
878 | | /// use smallvec::SmallVec; |
879 | | /// |
880 | | /// let buf = [1, 2, 3, 4, 5, 0, 0, 0]; |
881 | | /// let small_vec: SmallVec<_> = SmallVec::from_buf_and_len(buf, 5); |
882 | | /// |
883 | | /// assert_eq!(&*small_vec, &[1, 2, 3, 4, 5]); |
884 | | /// ``` |
885 | | #[inline] |
886 | | pub fn from_buf_and_len(buf: A, len: usize) -> SmallVec<A> { |
887 | | assert!(len <= A::size()); |
888 | | unsafe { SmallVec::from_buf_and_len_unchecked(MaybeUninit::new(buf), len) } |
889 | | } |
890 | | |
891 | | /// Constructs a new `SmallVec` on the stack from an `A` without |
892 | | /// copying elements. Also sets the length. The user is responsible |
893 | | /// for ensuring that `len <= A::size()`. |
894 | | /// |
895 | | /// ```rust |
896 | | /// use smallvec::SmallVec; |
897 | | /// use std::mem::MaybeUninit; |
898 | | /// |
899 | | /// let buf = [1, 2, 3, 4, 5, 0, 0, 0]; |
900 | | /// let small_vec: SmallVec<_> = unsafe { |
901 | | /// SmallVec::from_buf_and_len_unchecked(MaybeUninit::new(buf), 5) |
902 | | /// }; |
903 | | /// |
904 | | /// assert_eq!(&*small_vec, &[1, 2, 3, 4, 5]); |
905 | | /// ``` |
906 | | #[inline] |
907 | | pub unsafe fn from_buf_and_len_unchecked(buf: MaybeUninit<A>, len: usize) -> SmallVec<A> { |
908 | | SmallVec { |
909 | | capacity: len, |
910 | | data: SmallVecData::from_inline(buf), |
911 | | } |
912 | | } |
913 | | |
914 | | /// Sets the length of a vector. |
915 | | /// |
916 | | /// This will explicitly set the size of the vector, without actually |
917 | | /// modifying its buffers, so it is up to the caller to ensure that the |
918 | | /// vector is actually the specified size. |
919 | 3.80M | pub unsafe fn set_len(&mut self, new_len: usize) { |
920 | 3.80M | let (_, len_ptr, _) = self.triple_mut(); |
921 | 3.80M | *len_ptr = new_len; |
922 | 3.80M | } Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::set_len <smallvec::SmallVec<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]>>::set_len Line | Count | Source | 919 | 196k | pub unsafe fn set_len(&mut self, new_len: usize) { | 920 | 196k | let (_, len_ptr, _) = self.triple_mut(); | 921 | 196k | *len_ptr = new_len; | 922 | 196k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::set_len <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::set_len Line | Count | Source | 919 | 128k | pub unsafe fn set_len(&mut self, new_len: usize) { | 920 | 128k | let (_, len_ptr, _) = self.triple_mut(); | 921 | 128k | *len_ptr = new_len; | 922 | 128k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::set_len <smallvec::SmallVec<[u8; 1024]>>::set_len Line | Count | Source | 919 | 707k | pub unsafe fn set_len(&mut self, new_len: usize) { | 920 | 707k | let (_, len_ptr, _) = self.triple_mut(); | 921 | 707k | *len_ptr = new_len; | 922 | 707k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::set_len Line | Count | Source | 919 | 139k | pub unsafe fn set_len(&mut self, new_len: usize) { | 920 | 139k | let (_, len_ptr, _) = self.triple_mut(); | 921 | 139k | *len_ptr = new_len; | 922 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::set_len Line | Count | Source | 919 | 9.83k | pub unsafe fn set_len(&mut self, new_len: usize) { | 920 | 9.83k | let (_, len_ptr, _) = self.triple_mut(); | 921 | 9.83k | *len_ptr = new_len; | 922 | 9.83k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::set_len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::set_len Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]>>::set_len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]>>::set_len <smallvec::SmallVec<[regalloc2::index::Block; 16]>>::set_len Line | Count | Source | 919 | 139k | pub unsafe fn set_len(&mut self, new_len: usize) { | 920 | 139k | let (_, len_ptr, _) = self.triple_mut(); | 921 | 139k | *len_ptr = new_len; | 922 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::RetPair; 2]>>::set_len Line | Count | Source | 919 | 1.35k | pub unsafe fn set_len(&mut self, new_len: usize) { | 920 | 1.35k | let (_, len_ptr, _) = self.triple_mut(); | 921 | 1.35k | *len_ptr = new_len; | 922 | 1.35k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 4]>>::set_len <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::set_len Line | Count | Source | 919 | 9.83k | pub unsafe fn set_len(&mut self, new_len: usize) { | 920 | 9.83k | let (_, len_ptr, _) = self.triple_mut(); | 921 | 9.83k | *len_ptr = new_len; | 922 | 9.83k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::set_len Line | Count | Source | 919 | 174k | pub unsafe fn set_len(&mut self, new_len: usize) { | 920 | 174k | let (_, len_ptr, _) = self.triple_mut(); | 921 | 174k | *len_ptr = new_len; | 922 | 174k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::set_len Line | Count | Source | 919 | 966 | pub unsafe fn set_len(&mut self, new_len: usize) { | 920 | 966 | let (_, len_ptr, _) = self.triple_mut(); | 921 | 966 | *len_ptr = new_len; | 922 | 966 | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::set_len Line | Count | Source | 919 | 88.5k | pub unsafe fn set_len(&mut self, new_len: usize) { | 920 | 88.5k | let (_, len_ptr, _) = self.triple_mut(); | 921 | 88.5k | *len_ptr = new_len; | 922 | 88.5k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>>::set_len Line | Count | Source | 919 | 238k | pub unsafe fn set_len(&mut self, new_len: usize) { | 920 | 238k | let (_, len_ptr, _) = self.triple_mut(); | 921 | 238k | *len_ptr = new_len; | 922 | 238k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]>>::set_len Line | Count | Source | 919 | 104k | pub unsafe fn set_len(&mut self, new_len: usize) { | 920 | 104k | let (_, len_ptr, _) = self.triple_mut(); | 921 | 104k | *len_ptr = new_len; | 922 | 104k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::set_len Line | Count | Source | 919 | 1.40M | pub unsafe fn set_len(&mut self, new_len: usize) { | 920 | 1.40M | let (_, len_ptr, _) = self.triple_mut(); | 921 | 1.40M | *len_ptr = new_len; | 922 | 1.40M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::set_len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::set_len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]>>::set_len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::set_len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::set_len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::set_len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>>::set_len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]>>::set_len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::set_len <smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::set_len Line | Count | Source | 919 | 464k | pub unsafe fn set_len(&mut self, new_len: usize) { | 920 | 464k | let (_, len_ptr, _) = self.triple_mut(); | 921 | 464k | *len_ptr = new_len; | 922 | 464k | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]>>::set_len Line | Count | Source | 919 | 3.56k | pub unsafe fn set_len(&mut self, new_len: usize) { | 920 | 3.56k | let (_, len_ptr, _) = self.triple_mut(); | 921 | 3.56k | *len_ptr = new_len; | 922 | 3.56k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::set_len <smallvec::SmallVec<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::set_len Line | Count | Source | 919 | 966 | pub unsafe fn set_len(&mut self, new_len: usize) { | 920 | 966 | let (_, len_ptr, _) = self.triple_mut(); | 921 | 966 | *len_ptr = new_len; | 922 | 966 | } |
Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]>>::set_len Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::set_len Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::set_len Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::set_len Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::set_len |
923 | | |
924 | | /// The maximum number of elements this vector can hold inline |
925 | | #[inline] |
926 | 721M | fn inline_capacity() -> usize { |
927 | 721M | if mem::size_of::<A::Item>() > 0 { |
928 | 721M | A::size() |
929 | | } else { |
930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. |
931 | | // Therefore all items are at the same address, |
932 | | // and any array size has capacity for infinitely many items. |
933 | | // The capacity is limited by the bit width of the length field. |
934 | | // |
935 | | // `Vec` also does this: |
936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 |
937 | | // |
938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, |
939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. |
940 | 0 | core::usize::MAX |
941 | | } |
942 | 721M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]>>::inline_capacity Line | Count | Source | 926 | 4.41M | fn inline_capacity() -> usize { | 927 | 4.41M | if mem::size_of::<A::Item>() > 0 { | 928 | 4.41M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 4.41M | } |
Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::inline_capacity <smallvec::SmallVec<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]>>::inline_capacity Line | Count | Source | 926 | 3.05M | fn inline_capacity() -> usize { | 927 | 3.05M | if mem::size_of::<A::Item>() > 0 { | 928 | 3.05M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 3.05M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::inline_capacity Line | Count | Source | 926 | 589k | fn inline_capacity() -> usize { | 927 | 589k | if mem::size_of::<A::Item>() > 0 { | 928 | 589k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 589k | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::inline_capacity Line | Count | Source | 926 | 469k | fn inline_capacity() -> usize { | 927 | 469k | if mem::size_of::<A::Item>() > 0 { | 928 | 469k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 469k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::inline_capacity Line | Count | Source | 926 | 416k | fn inline_capacity() -> usize { | 927 | 416k | if mem::size_of::<A::Item>() > 0 { | 928 | 416k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 416k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::inline_capacity Line | Count | Source | 926 | 418k | fn inline_capacity() -> usize { | 927 | 418k | if mem::size_of::<A::Item>() > 0 { | 928 | 418k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 418k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::inline_capacity Line | Count | Source | 926 | 588k | fn inline_capacity() -> usize { | 927 | 588k | if mem::size_of::<A::Item>() > 0 { | 928 | 588k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 588k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::inline_capacity Line | Count | Source | 926 | 592k | fn inline_capacity() -> usize { | 927 | 592k | if mem::size_of::<A::Item>() > 0 { | 928 | 592k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 592k | } |
<smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::inline_capacity Line | Count | Source | 926 | 418k | fn inline_capacity() -> usize { | 927 | 418k | if mem::size_of::<A::Item>() > 0 { | 928 | 418k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 418k | } |
<smallvec::SmallVec<[u8; 1024]>>::inline_capacity Line | Count | Source | 926 | 414k | fn inline_capacity() -> usize { | 927 | 414k | if mem::size_of::<A::Item>() > 0 { | 928 | 414k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 414k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::inline_capacity <smallvec::SmallVec<[usize; 4]>>::inline_capacity Line | Count | Source | 926 | 1.85M | fn inline_capacity() -> usize { | 927 | 1.85M | if mem::size_of::<A::Item>() > 0 { | 928 | 1.85M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 1.85M | } |
<smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::inline_capacity Line | Count | Source | 926 | 6.27M | fn inline_capacity() -> usize { | 927 | 6.27M | if mem::size_of::<A::Item>() > 0 { | 928 | 6.27M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 6.27M | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]>>::inline_capacity <smallvec::SmallVec<[regalloc2::postorder::calculate::State; 64]>>::inline_capacity Line | Count | Source | 926 | 3.07M | fn inline_capacity() -> usize { | 927 | 3.07M | if mem::size_of::<A::Item>() > 0 { | 928 | 3.07M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 3.07M | } |
<smallvec::SmallVec<[regalloc2::Allocation; 2]>>::inline_capacity Line | Count | Source | 926 | 1.11M | fn inline_capacity() -> usize { | 927 | 1.11M | if mem::size_of::<A::Item>() > 0 { | 928 | 1.11M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 1.11M | } |
<smallvec::SmallVec<[usize; 16]>>::inline_capacity Line | Count | Source | 926 | 40.0k | fn inline_capacity() -> usize { | 927 | 40.0k | if mem::size_of::<A::Item>() > 0 { | 928 | 40.0k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 40.0k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::inline_capacity Line | Count | Source | 926 | 403M | fn inline_capacity() -> usize { | 927 | 403M | if mem::size_of::<A::Item>() > 0 { | 928 | 403M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 403M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::inline_capacity Line | Count | Source | 926 | 9.06M | fn inline_capacity() -> usize { | 927 | 9.06M | if mem::size_of::<A::Item>() > 0 { | 928 | 9.06M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 9.06M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::InsertedMove; 8]>>::inline_capacity Line | Count | Source | 926 | 3.10M | fn inline_capacity() -> usize { | 927 | 3.10M | if mem::size_of::<A::Item>() > 0 { | 928 | 3.10M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 3.10M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::inline_capacity Line | Count | Source | 926 | 180k | fn inline_capacity() -> usize { | 927 | 180k | if mem::size_of::<A::Item>() > 0 { | 928 | 180k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 180k | } |
<smallvec::SmallVec<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::inline_capacity Line | Count | Source | 926 | 107k | fn inline_capacity() -> usize { | 927 | 107k | if mem::size_of::<A::Item>() > 0 { | 928 | 107k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 107k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::inline_capacity Line | Count | Source | 926 | 83.1k | fn inline_capacity() -> usize { | 927 | 83.1k | if mem::size_of::<A::Item>() > 0 { | 928 | 83.1k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 83.1k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::inline_capacity Line | Count | Source | 926 | 16.9M | fn inline_capacity() -> usize { | 927 | 16.9M | if mem::size_of::<A::Item>() > 0 { | 928 | 16.9M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 16.9M | } |
<smallvec::SmallVec<[regalloc2::PReg; 8]>>::inline_capacity Line | Count | Source | 926 | 6.18M | fn inline_capacity() -> usize { | 927 | 6.18M | if mem::size_of::<A::Item>() > 0 { | 928 | 6.18M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 6.18M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::inline_capacity Line | Count | Source | 926 | 32.6M | fn inline_capacity() -> usize { | 927 | 32.6M | if mem::size_of::<A::Item>() > 0 { | 928 | 32.6M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 32.6M | } |
<smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::inline_capacity Line | Count | Source | 926 | 5.49M | fn inline_capacity() -> usize { | 927 | 5.49M | if mem::size_of::<A::Item>() > 0 { | 928 | 5.49M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 5.49M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]>>::inline_capacity <smallvec::SmallVec<[core::option::Option<usize>; 16]>>::inline_capacity Line | Count | Source | 926 | 18.3k | fn inline_capacity() -> usize { | 927 | 18.3k | if mem::size_of::<A::Item>() > 0 { | 928 | 18.3k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 18.3k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::inline_capacity Line | Count | Source | 926 | 1.47M | fn inline_capacity() -> usize { | 927 | 1.47M | if mem::size_of::<A::Item>() > 0 { | 928 | 1.47M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 1.47M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::inline_capacity Line | Count | Source | 926 | 562k | fn inline_capacity() -> usize { | 927 | 562k | if mem::size_of::<A::Item>() > 0 { | 928 | 562k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 562k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::inline_capacity Line | Count | Source | 926 | 4.66M | fn inline_capacity() -> usize { | 927 | 4.66M | if mem::size_of::<A::Item>() > 0 { | 928 | 4.66M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 4.66M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::inline_capacity Line | Count | Source | 926 | 3.26M | fn inline_capacity() -> usize { | 927 | 3.26M | if mem::size_of::<A::Item>() > 0 { | 928 | 3.26M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 3.26M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::inline_capacity <smallvec::SmallVec<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]>>::inline_capacity Line | Count | Source | 926 | 5.20M | fn inline_capacity() -> usize { | 927 | 5.20M | if mem::size_of::<A::Item>() > 0 { | 928 | 5.20M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 5.20M | } |
<smallvec::SmallVec<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::inline_capacity Line | Count | Source | 926 | 2.37M | fn inline_capacity() -> usize { | 927 | 2.37M | if mem::size_of::<A::Item>() > 0 { | 928 | 2.37M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 2.37M | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]>>::inline_capacity Line | Count | Source | 926 | 92.1k | fn inline_capacity() -> usize { | 927 | 92.1k | if mem::size_of::<A::Item>() > 0 { | 928 | 92.1k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 92.1k | } |
<smallvec::SmallVec<[regalloc2::SpillSlot; 8]>>::inline_capacity Line | Count | Source | 926 | 1.00M | fn inline_capacity() -> usize { | 927 | 1.00M | if mem::size_of::<A::Item>() > 0 { | 928 | 1.00M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 1.00M | } |
<smallvec::SmallVec<[cranelift_codegen::loop_analysis::Loop; 8]>>::inline_capacity Line | Count | Source | 926 | 575k | fn inline_capacity() -> usize { | 927 | 575k | if mem::size_of::<A::Item>() > 0 { | 928 | 575k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 575k | } |
<smallvec::SmallVec<[regalloc2::index::Block; 16]>>::inline_capacity Line | Count | Source | 926 | 5.18M | fn inline_capacity() -> usize { | 927 | 5.18M | if mem::size_of::<A::Item>() > 0 { | 928 | 5.18M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 5.18M | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Inst; 2]>>::inline_capacity Line | Count | Source | 926 | 3.45M | fn inline_capacity() -> usize { | 927 | 3.45M | if mem::size_of::<A::Item>() > 0 { | 928 | 3.45M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 3.45M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Block; 16]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 4]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::inline_capacity <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]>>::inline_capacity Line | Count | Source | 926 | 1.27M | fn inline_capacity() -> usize { | 927 | 1.27M | if mem::size_of::<A::Item>() > 0 { | 928 | 1.27M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 1.27M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]>>::inline_capacity Line | Count | Source | 926 | 6.31M | fn inline_capacity() -> usize { | 927 | 6.31M | if mem::size_of::<A::Item>() > 0 { | 928 | 6.31M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 6.31M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]>>::inline_capacity <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::inline_capacity Line | Count | Source | 926 | 7.81M | fn inline_capacity() -> usize { | 927 | 7.81M | if mem::size_of::<A::Item>() > 0 { | 928 | 7.81M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 7.81M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::inline_capacity Line | Count | Source | 926 | 1.35M | fn inline_capacity() -> usize { | 927 | 1.35M | if mem::size_of::<A::Item>() > 0 { | 928 | 1.35M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 1.35M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::inline_capacity Line | Count | Source | 926 | 1.04M | fn inline_capacity() -> usize { | 927 | 1.04M | if mem::size_of::<A::Item>() > 0 { | 928 | 1.04M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 1.04M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::RetPair; 2]>>::inline_capacity Line | Count | Source | 926 | 16.2k | fn inline_capacity() -> usize { | 927 | 16.2k | if mem::size_of::<A::Item>() > 0 { | 928 | 16.2k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 16.2k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 16]>>::inline_capacity Line | Count | Source | 926 | 1.22M | fn inline_capacity() -> usize { | 927 | 1.22M | if mem::size_of::<A::Item>() > 0 { | 928 | 1.22M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 1.22M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 4]>>::inline_capacity <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::inline_capacity Line | Count | Source | 926 | 4.66M | fn inline_capacity() -> usize { | 927 | 4.66M | if mem::size_of::<A::Item>() > 0 { | 928 | 4.66M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 4.66M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::inline_capacity Line | Count | Source | 926 | 193k | fn inline_capacity() -> usize { | 927 | 193k | if mem::size_of::<A::Item>() > 0 { | 928 | 193k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 193k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::inline_capacity <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::inline_capacity Line | Count | Source | 926 | 896k | fn inline_capacity() -> usize { | 927 | 896k | if mem::size_of::<A::Item>() > 0 { | 928 | 896k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 896k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::inline_capacity Line | Count | Source | 926 | 309k | fn inline_capacity() -> usize { | 927 | 309k | if mem::size_of::<A::Item>() > 0 { | 928 | 309k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 309k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::inline_capacity Line | Count | Source | 926 | 2.32M | fn inline_capacity() -> usize { | 927 | 2.32M | if mem::size_of::<A::Item>() > 0 { | 928 | 2.32M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 2.32M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 2]>>::inline_capacity Line | Count | Source | 926 | 1.79M | fn inline_capacity() -> usize { | 927 | 1.79M | if mem::size_of::<A::Item>() > 0 { | 928 | 1.79M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 1.79M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::inline_capacity Line | Count | Source | 926 | 9.70M | fn inline_capacity() -> usize { | 927 | 9.70M | if mem::size_of::<A::Item>() > 0 { | 928 | 9.70M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 9.70M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::inline_capacity Line | Count | Source | 926 | 43.1k | fn inline_capacity() -> usize { | 927 | 43.1k | if mem::size_of::<A::Item>() > 0 { | 928 | 43.1k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 43.1k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::inline_capacity Line | Count | Source | 926 | 18.6M | fn inline_capacity() -> usize { | 927 | 18.6M | if mem::size_of::<A::Item>() > 0 { | 928 | 18.6M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 18.6M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>>::inline_capacity Line | Count | Source | 926 | 3.03M | fn inline_capacity() -> usize { | 927 | 3.03M | if mem::size_of::<A::Item>() > 0 { | 928 | 3.03M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 3.03M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]>>::inline_capacity Line | Count | Source | 926 | 1.15M | fn inline_capacity() -> usize { | 927 | 1.15M | if mem::size_of::<A::Item>() > 0 { | 928 | 1.15M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 1.15M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::inline_capacity Line | Count | Source | 926 | 18.2M | fn inline_capacity() -> usize { | 927 | 18.2M | if mem::size_of::<A::Item>() > 0 { | 928 | 18.2M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 18.2M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::inline_capacity <smallvec::SmallVec<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]>>::inline_capacity Line | Count | Source | 926 | 3.57M | fn inline_capacity() -> usize { | 927 | 3.57M | if mem::size_of::<A::Item>() > 0 { | 928 | 3.57M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 3.57M | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]>>::inline_capacity Line | Count | Source | 926 | 2.72M | fn inline_capacity() -> usize { | 927 | 2.72M | if mem::size_of::<A::Item>() > 0 { | 928 | 2.72M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 2.72M | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]>>::inline_capacity Line | Count | Source | 926 | 39.1k | fn inline_capacity() -> usize { | 927 | 39.1k | if mem::size_of::<A::Item>() > 0 { | 928 | 39.1k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 39.1k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]>>::inline_capacity <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::inline_capacity Line | Count | Source | 926 | 938k | fn inline_capacity() -> usize { | 927 | 938k | if mem::size_of::<A::Item>() > 0 { | 928 | 938k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 938k | } |
<smallvec::SmallVec<[bool; 16]>>::inline_capacity Line | Count | Source | 926 | 49.0k | fn inline_capacity() -> usize { | 927 | 49.0k | if mem::size_of::<A::Item>() > 0 { | 928 | 49.0k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 49.0k | } |
<smallvec::SmallVec<[u8; 16]>>::inline_capacity Line | Count | Source | 926 | 335k | fn inline_capacity() -> usize { | 927 | 335k | if mem::size_of::<A::Item>() > 0 { | 928 | 335k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 335k | } |
<smallvec::SmallVec<[u8; 1024]>>::inline_capacity Line | Count | Source | 926 | 35.5M | fn inline_capacity() -> usize { | 927 | 35.5M | if mem::size_of::<A::Item>() > 0 { | 928 | 35.5M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 35.5M | } |
<smallvec::SmallVec<[u8; 8]>>::inline_capacity Line | Count | Source | 926 | 690k | fn inline_capacity() -> usize { | 927 | 690k | if mem::size_of::<A::Item>() > 0 { | 928 | 690k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 690k | } |
<smallvec::SmallVec<[u32; 16]>>::inline_capacity Line | Count | Source | 926 | 3.59M | fn inline_capacity() -> usize { | 927 | 3.59M | if mem::size_of::<A::Item>() > 0 { | 928 | 3.59M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 3.59M | } |
<smallvec::SmallVec<[u32; 64]>>::inline_capacity Line | Count | Source | 926 | 1.51M | fn inline_capacity() -> usize { | 927 | 1.51M | if mem::size_of::<A::Item>() > 0 { | 928 | 1.51M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 1.51M | } |
<smallvec::SmallVec<[u32; 8]>>::inline_capacity Line | Count | Source | 926 | 15.4M | fn inline_capacity() -> usize { | 927 | 15.4M | if mem::size_of::<A::Item>() > 0 { | 928 | 15.4M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 15.4M | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]>>::inline_capacity Line | Count | Source | 926 | 930k | fn inline_capacity() -> usize { | 927 | 930k | if mem::size_of::<A::Item>() > 0 { | 928 | 930k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 930k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::inline_capacity Line | Count | Source | 926 | 35.1k | fn inline_capacity() -> usize { | 927 | 35.1k | if mem::size_of::<A::Item>() > 0 { | 928 | 35.1k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 35.1k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::inline_capacity <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::inline_capacity Line | Count | Source | 926 | 27.3M | fn inline_capacity() -> usize { | 927 | 27.3M | if mem::size_of::<A::Item>() > 0 { | 928 | 27.3M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 27.3M | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::inline_capacity Line | Count | Source | 926 | 2.30M | fn inline_capacity() -> usize { | 927 | 2.30M | if mem::size_of::<A::Item>() > 0 { | 928 | 2.30M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 2.30M | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::inline_capacity Line | Count | Source | 926 | 5.09M | fn inline_capacity() -> usize { | 927 | 5.09M | if mem::size_of::<A::Item>() > 0 { | 928 | 5.09M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 5.09M | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::inline_capacity Line | Count | Source | 926 | 1.68M | fn inline_capacity() -> usize { | 927 | 1.68M | if mem::size_of::<A::Item>() > 0 { | 928 | 1.68M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 1.68M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[u8; 1024]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::inline_capacity Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::inline_capacity <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::inline_capacity Line | Count | Source | 926 | 6.53M | fn inline_capacity() -> usize { | 927 | 6.53M | if mem::size_of::<A::Item>() > 0 { | 928 | 6.53M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 6.53M | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::inline_capacity Line | Count | Source | 926 | 490k | fn inline_capacity() -> usize { | 927 | 490k | if mem::size_of::<A::Item>() > 0 { | 928 | 490k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 490k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::inline_capacity Line | Count | Source | 926 | 3.44M | fn inline_capacity() -> usize { | 927 | 3.44M | if mem::size_of::<A::Item>() > 0 { | 928 | 3.44M | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 3.44M | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::inline_capacity Line | Count | Source | 926 | 359k | fn inline_capacity() -> usize { | 927 | 359k | if mem::size_of::<A::Item>() > 0 { | 928 | 359k | A::size() | 929 | | } else { | 930 | | // For zero-size items code like `ptr.add(offset)` always returns the same pointer. | 931 | | // Therefore all items are at the same address, | 932 | | // and any array size has capacity for infinitely many items. | 933 | | // The capacity is limited by the bit width of the length field. | 934 | | // | 935 | | // `Vec` also does this: | 936 | | // https://github.com/rust-lang/rust/blob/1.44.0/src/liballoc/raw_vec.rs#L186 | 937 | | // | 938 | | // In our case, this also ensures that a smallvec of zero-size items never spills, | 939 | | // and we never try to allocate zero bytes which `std::alloc::alloc` disallows. | 940 | 0 | core::usize::MAX | 941 | | } | 942 | 359k | } |
|
943 | | |
944 | | /// The maximum number of elements this vector can hold inline |
945 | | #[inline] |
946 | 40.4M | pub fn inline_size(&self) -> usize { |
947 | 40.4M | Self::inline_capacity() |
948 | 40.4M | } <smallvec::SmallVec<[usize; 4]>>::inline_size Line | Count | Source | 946 | 240k | pub fn inline_size(&self) -> usize { | 947 | 240k | Self::inline_capacity() | 948 | 240k | } |
<smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::inline_size Line | Count | Source | 946 | 466k | pub fn inline_size(&self) -> usize { | 947 | 466k | Self::inline_capacity() | 948 | 466k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]>>::inline_size <smallvec::SmallVec<[regalloc2::postorder::calculate::State; 64]>>::inline_size Line | Count | Source | 946 | 139k | pub fn inline_size(&self) -> usize { | 947 | 139k | Self::inline_capacity() | 948 | 139k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 2]>>::inline_size Line | Count | Source | 946 | 278k | pub fn inline_size(&self) -> usize { | 947 | 278k | Self::inline_capacity() | 948 | 278k | } |
<smallvec::SmallVec<[usize; 16]>>::inline_size Line | Count | Source | 946 | 1.52k | pub fn inline_size(&self) -> usize { | 947 | 1.52k | Self::inline_capacity() | 948 | 1.52k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::inline_size Line | Count | Source | 946 | 21.1M | pub fn inline_size(&self) -> usize { | 947 | 21.1M | Self::inline_capacity() | 948 | 21.1M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::inline_size Line | Count | Source | 946 | 1.24M | pub fn inline_size(&self) -> usize { | 947 | 1.24M | Self::inline_capacity() | 948 | 1.24M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::InsertedMove; 8]>>::inline_size Line | Count | Source | 946 | 464k | pub fn inline_size(&self) -> usize { | 947 | 464k | Self::inline_capacity() | 948 | 464k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::inline_size Line | Count | Source | 946 | 4.25k | pub fn inline_size(&self) -> usize { | 947 | 4.25k | Self::inline_capacity() | 948 | 4.25k | } |
<smallvec::SmallVec<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::inline_size Line | Count | Source | 946 | 966 | pub fn inline_size(&self) -> usize { | 947 | 966 | Self::inline_capacity() | 948 | 966 | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::inline_size Line | Count | Source | 946 | 966 | pub fn inline_size(&self) -> usize { | 947 | 966 | Self::inline_capacity() | 948 | 966 | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::inline_size Line | Count | Source | 946 | 2.44M | pub fn inline_size(&self) -> usize { | 947 | 2.44M | Self::inline_capacity() | 948 | 2.44M | } |
<smallvec::SmallVec<[regalloc2::PReg; 8]>>::inline_size Line | Count | Source | 946 | 1.27M | pub fn inline_size(&self) -> usize { | 947 | 1.27M | Self::inline_capacity() | 948 | 1.27M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::inline_size Line | Count | Source | 946 | 1.45M | pub fn inline_size(&self) -> usize { | 947 | 1.45M | Self::inline_capacity() | 948 | 1.45M | } |
<smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::inline_size Line | Count | Source | 946 | 139k | pub fn inline_size(&self) -> usize { | 947 | 139k | Self::inline_capacity() | 948 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]>>::inline_size <smallvec::SmallVec<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::inline_size Line | Count | Source | 946 | 139k | pub fn inline_size(&self) -> usize { | 947 | 139k | Self::inline_capacity() | 948 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 16]>>::inline_size Line | Count | Source | 946 | 204k | pub fn inline_size(&self) -> usize { | 947 | 204k | Self::inline_capacity() | 948 | 204k | } |
<smallvec::SmallVec<[regalloc2::index::Block; 16]>>::inline_size Line | Count | Source | 946 | 278k | pub fn inline_size(&self) -> usize { | 947 | 278k | Self::inline_capacity() | 948 | 278k | } |
<smallvec::SmallVec<[u32; 64]>>::inline_size Line | Count | Source | 946 | 139k | pub fn inline_size(&self) -> usize { | 947 | 139k | Self::inline_capacity() | 948 | 139k | } |
<smallvec::SmallVec<[regalloc2::SpillSlot; 8]>>::inline_size Line | Count | Source | 946 | 166k | pub fn inline_size(&self) -> usize { | 947 | 166k | Self::inline_capacity() | 948 | 166k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::inline_size <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::inline_size Line | Count | Source | 946 | 1.26M | pub fn inline_size(&self) -> usize { | 947 | 1.26M | Self::inline_capacity() | 948 | 1.26M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::inline_size Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::inline_size <smallvec::SmallVec<[cranelift_codegen::machinst::abi::RetPair; 2]>>::inline_size Line | Count | Source | 946 | 1.35k | pub fn inline_size(&self) -> usize { | 947 | 1.35k | Self::inline_capacity() | 948 | 1.35k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::inline_size Line | Count | Source | 946 | 104k | pub fn inline_size(&self) -> usize { | 947 | 104k | Self::inline_capacity() | 948 | 104k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::inline_size Line | Count | Source | 946 | 104k | pub fn inline_size(&self) -> usize { | 947 | 104k | Self::inline_capacity() | 948 | 104k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::inline_size Line | Count | Source | 946 | 2.86M | pub fn inline_size(&self) -> usize { | 947 | 2.86M | Self::inline_capacity() | 948 | 2.86M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::inline_size Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 4]>>::inline_size <smallvec::SmallVec<[cranelift_codegen::loop_analysis::Loop; 8]>>::inline_size Line | Count | Source | 946 | 139k | pub fn inline_size(&self) -> usize { | 947 | 139k | Self::inline_capacity() | 948 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::inline_size Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Block; 16]>>::inline_size <smallvec::SmallVec<[u32; 8]>>::inline_size Line | Count | Source | 946 | 278k | pub fn inline_size(&self) -> usize { | 947 | 278k | Self::inline_capacity() | 948 | 278k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]>>::inline_size Line | Count | Source | 946 | 764k | pub fn inline_size(&self) -> usize { | 947 | 764k | Self::inline_capacity() | 948 | 764k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]>>::inline_size Line | Count | Source | 946 | 153k | pub fn inline_size(&self) -> usize { | 947 | 153k | Self::inline_capacity() | 948 | 153k | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::inline_size Line | Count | Source | 946 | 3.42M | pub fn inline_size(&self) -> usize { | 947 | 3.42M | Self::inline_capacity() | 948 | 3.42M | } |
Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::inline_size <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::inline_size Line | Count | Source | 946 | 142k | pub fn inline_size(&self) -> usize { | 947 | 142k | Self::inline_capacity() | 948 | 142k | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::inline_size Line | Count | Source | 946 | 816k | pub fn inline_size(&self) -> usize { | 947 | 816k | Self::inline_capacity() | 948 | 816k | } |
Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::inline_size <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::inline_size Line | Count | Source | 946 | 154k | pub fn inline_size(&self) -> usize { | 947 | 154k | Self::inline_capacity() | 948 | 154k | } |
|
949 | | |
950 | | /// The number of elements stored in the vector |
951 | | #[inline] |
952 | 74.7M | pub fn len(&self) -> usize { |
953 | 74.7M | self.triple().1 |
954 | 74.7M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]>>::len Line | Count | Source | 952 | 66.5k | pub fn len(&self) -> usize { | 953 | 66.5k | self.triple().1 | 954 | 66.5k | } |
<smallvec::SmallVec<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]>>::len Line | Count | Source | 952 | 392k | pub fn len(&self) -> usize { | 953 | 392k | self.triple().1 | 954 | 392k | } |
Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::len Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::len <smallvec::SmallVec<[usize; 4]>>::len Line | Count | Source | 952 | 339k | pub fn len(&self) -> usize { | 953 | 339k | self.triple().1 | 954 | 339k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::len Line | Count | Source | 952 | 45.8M | pub fn len(&self) -> usize { | 953 | 45.8M | self.triple().1 | 954 | 45.8M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::len <smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::len Line | Count | Source | 952 | 934k | pub fn len(&self) -> usize { | 953 | 934k | self.triple().1 | 954 | 934k | } |
<smallvec::SmallVec<[usize; 16]>>::len Line | Count | Source | 952 | 4.61k | pub fn len(&self) -> usize { | 953 | 4.61k | self.triple().1 | 954 | 4.61k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::Allocation; 2]>>::len <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::len Line | Count | Source | 952 | 1.72M | pub fn len(&self) -> usize { | 953 | 1.72M | self.triple().1 | 954 | 1.72M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::len Line | Count | Source | 952 | 24.5k | pub fn len(&self) -> usize { | 953 | 24.5k | self.triple().1 | 954 | 24.5k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::len Line | Count | Source | 952 | 2.02M | pub fn len(&self) -> usize { | 953 | 2.02M | self.triple().1 | 954 | 2.02M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::len <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::len Line | Count | Source | 952 | 141k | pub fn len(&self) -> usize { | 953 | 141k | self.triple().1 | 954 | 141k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::len Line | Count | Source | 952 | 738k | pub fn len(&self) -> usize { | 953 | 738k | self.triple().1 | 954 | 738k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]>>::len <smallvec::SmallVec<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::len Line | Count | Source | 952 | 426 | pub fn len(&self) -> usize { | 953 | 426 | self.triple().1 | 954 | 426 | } |
<smallvec::SmallVec<[regalloc2::PReg; 8]>>::len Line | Count | Source | 952 | 7.52k | pub fn len(&self) -> usize { | 953 | 7.52k | self.triple().1 | 954 | 7.52k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]>>::len <smallvec::SmallVec<[regalloc2::SpillSlot; 8]>>::len Line | Count | Source | 952 | 166k | pub fn len(&self) -> usize { | 953 | 166k | self.triple().1 | 954 | 166k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::loop_analysis::Loop; 8]>>::len <smallvec::SmallVec<[regalloc2::index::Block; 16]>>::len Line | Count | Source | 952 | 481k | pub fn len(&self) -> usize { | 953 | 481k | self.triple().1 | 954 | 481k | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Inst; 2]>>::len Line | Count | Source | 952 | 328k | pub fn len(&self) -> usize { | 953 | 328k | self.triple().1 | 954 | 328k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Block; 16]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 4]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]>>::len <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::len Line | Count | Source | 952 | 821k | pub fn len(&self) -> usize { | 953 | 821k | self.triple().1 | 954 | 821k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::len Line | Count | Source | 952 | 698 | pub fn len(&self) -> usize { | 953 | 698 | self.triple().1 | 954 | 698 | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::len <smallvec::SmallVec<[cranelift_codegen::machinst::abi::RetPair; 2]>>::len Line | Count | Source | 952 | 1.35k | pub fn len(&self) -> usize { | 953 | 1.35k | self.triple().1 | 954 | 1.35k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 16]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 4]>>::len <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::len Line | Count | Source | 952 | 88.9k | pub fn len(&self) -> usize { | 953 | 88.9k | self.triple().1 | 954 | 88.9k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::len Line | Count | Source | 952 | 1.53k | pub fn len(&self) -> usize { | 953 | 1.53k | self.triple().1 | 954 | 1.53k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::len <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::len Line | Count | Source | 952 | 160k | pub fn len(&self) -> usize { | 953 | 160k | self.triple().1 | 954 | 160k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::len Line | Count | Source | 952 | 4.03k | pub fn len(&self) -> usize { | 953 | 4.03k | self.triple().1 | 954 | 4.03k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::len Line | Count | Source | 952 | 145k | pub fn len(&self) -> usize { | 953 | 145k | self.triple().1 | 954 | 145k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 2]>>::len Line | Count | Source | 952 | 616 | pub fn len(&self) -> usize { | 953 | 616 | self.triple().1 | 954 | 616 | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::len Line | Count | Source | 952 | 467k | pub fn len(&self) -> usize { | 953 | 467k | self.triple().1 | 954 | 467k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::len Line | Count | Source | 952 | 818 | pub fn len(&self) -> usize { | 953 | 818 | self.triple().1 | 954 | 818 | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::InsertedMove; 8]>>::len <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::len Line | Count | Source | 952 | 1.99k | pub fn len(&self) -> usize { | 953 | 1.99k | self.triple().1 | 954 | 1.99k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::len Line | Count | Source | 952 | 109k | pub fn len(&self) -> usize { | 953 | 109k | self.triple().1 | 954 | 109k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::len Line | Count | Source | 952 | 2.86M | pub fn len(&self) -> usize { | 953 | 2.86M | self.triple().1 | 954 | 2.86M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>>::len Line | Count | Source | 952 | 238k | pub fn len(&self) -> usize { | 953 | 238k | self.triple().1 | 954 | 238k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]>>::len Line | Count | Source | 952 | 104k | pub fn len(&self) -> usize { | 953 | 104k | self.triple().1 | 954 | 104k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::len Line | Count | Source | 952 | 1.42M | pub fn len(&self) -> usize { | 953 | 1.42M | self.triple().1 | 954 | 1.42M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]>>::len Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::len <smallvec::SmallVec<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]>>::len Line | Count | Source | 952 | 684k | pub fn len(&self) -> usize { | 953 | 684k | self.triple().1 | 954 | 684k | } |
<smallvec::SmallVec<[regalloc2::postorder::calculate::State; 64]>>::len Line | Count | Source | 952 | 564 | pub fn len(&self) -> usize { | 953 | 564 | self.triple().1 | 954 | 564 | } |
Unexecuted instantiation: <smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::len <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]>>::len Line | Count | Source | 952 | 656k | pub fn len(&self) -> usize { | 953 | 656k | self.triple().1 | 954 | 656k | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]>>::len Line | Count | Source | 952 | 3.56k | pub fn len(&self) -> usize { | 953 | 3.56k | self.triple().1 | 954 | 3.56k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::len <smallvec::SmallVec<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::len Line | Count | Source | 952 | 2.37k | pub fn len(&self) -> usize { | 953 | 2.37k | self.triple().1 | 954 | 2.37k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]>>::len Unexecuted instantiation: <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::len Unexecuted instantiation: <smallvec::SmallVec<[u8; 16]>>::len <smallvec::SmallVec<[u8; 1024]>>::len Line | Count | Source | 952 | 9.45M | pub fn len(&self) -> usize { | 953 | 9.45M | self.triple().1 | 954 | 9.45M | } |
Unexecuted instantiation: <smallvec::SmallVec<[u8; 8]>>::len <smallvec::SmallVec<[u32; 16]>>::len Line | Count | Source | 952 | 357k | pub fn len(&self) -> usize { | 953 | 357k | self.triple().1 | 954 | 357k | } |
<smallvec::SmallVec<[u32; 64]>>::len Line | Count | Source | 952 | 822 | pub fn len(&self) -> usize { | 953 | 822 | self.triple().1 | 954 | 822 | } |
<smallvec::SmallVec<[u32; 8]>>::len Line | Count | Source | 952 | 2.62M | pub fn len(&self) -> usize { | 953 | 2.62M | self.triple().1 | 954 | 2.62M | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]>>::len Line | Count | Source | 952 | 418 | pub fn len(&self) -> usize { | 953 | 418 | self.triple().1 | 954 | 418 | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::len Line | Count | Source | 952 | 17.5k | pub fn len(&self) -> usize { | 953 | 17.5k | self.triple().1 | 954 | 17.5k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::len Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::len Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::len Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::len Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::len Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::len Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::len Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::len Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::len Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::len <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::len Line | Count | Source | 952 | 153k | pub fn len(&self) -> usize { | 953 | 153k | self.triple().1 | 954 | 153k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::len Line | Count | Source | 952 | 533k | pub fn len(&self) -> usize { | 953 | 533k | self.triple().1 | 954 | 533k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::len Line | Count | Source | 952 | 153k | pub fn len(&self) -> usize { | 953 | 153k | self.triple().1 | 954 | 153k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::len Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::len Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::len Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::len Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::len <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::len Line | Count | Source | 952 | 32.6k | pub fn len(&self) -> usize { | 953 | 32.6k | self.triple().1 | 954 | 32.6k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::len Line | Count | Source | 952 | 464k | pub fn len(&self) -> usize { | 953 | 464k | self.triple().1 | 954 | 464k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::len Line | Count | Source | 952 | 32.6k | pub fn len(&self) -> usize { | 953 | 32.6k | self.triple().1 | 954 | 32.6k | } |
|
955 | | |
956 | | /// Returns `true` if the vector is empty |
957 | | #[inline] |
958 | 29.6M | pub fn is_empty(&self) -> bool { |
959 | 29.6M | self.len() == 0 |
960 | 29.6M | } <smallvec::SmallVec<[usize; 16]>>::is_empty Line | Count | Source | 958 | 4.61k | pub fn is_empty(&self) -> bool { | 959 | 4.61k | self.len() == 0 | 960 | 4.61k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::is_empty Line | Count | Source | 958 | 24.4M | pub fn is_empty(&self) -> bool { | 959 | 24.4M | self.len() == 0 | 960 | 24.4M | } |
<smallvec::SmallVec<[regalloc2::SpillSlot; 8]>>::is_empty Line | Count | Source | 958 | 166k | pub fn is_empty(&self) -> bool { | 959 | 166k | self.len() == 0 | 960 | 166k | } |
<smallvec::SmallVec<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]>>::is_empty Line | Count | Source | 958 | 680k | pub fn is_empty(&self) -> bool { | 959 | 680k | self.len() == 0 | 960 | 680k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::is_empty Line | Count | Source | 958 | 502k | pub fn is_empty(&self) -> bool { | 959 | 502k | self.len() == 0 | 960 | 502k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::is_empty Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::is_empty <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::is_empty Line | Count | Source | 958 | 1.36k | pub fn is_empty(&self) -> bool { | 959 | 1.36k | self.len() == 0 | 960 | 1.36k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::is_empty Line | Count | Source | 958 | 149k | pub fn is_empty(&self) -> bool { | 959 | 149k | self.len() == 0 | 960 | 149k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::is_empty Line | Count | Source | 958 | 2.86M | pub fn is_empty(&self) -> bool { | 959 | 2.86M | self.len() == 0 | 960 | 2.86M | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::is_empty Line | Count | Source | 958 | 453k | pub fn is_empty(&self) -> bool { | 959 | 453k | self.len() == 0 | 960 | 453k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::is_empty Line | Count | Source | 958 | 343k | pub fn is_empty(&self) -> bool { | 959 | 343k | self.len() == 0 | 960 | 343k | } |
|
961 | | |
962 | | /// The number of items the vector can hold without reallocating |
963 | | #[inline] |
964 | 2.58k | pub fn capacity(&self) -> usize { |
965 | 2.58k | self.triple().2 |
966 | 2.58k | } <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::capacity Line | Count | Source | 964 | 12 | pub fn capacity(&self) -> usize { | 965 | 12 | self.triple().2 | 966 | 12 | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::capacity Line | Count | Source | 964 | 2.57k | pub fn capacity(&self) -> usize { | 965 | 2.57k | self.triple().2 | 966 | 2.57k | } |
|
967 | | |
968 | | /// Returns a tuple with (data ptr, len, capacity) |
969 | | /// Useful to get all `SmallVec` properties with a single check of the current storage variant. |
970 | | #[inline] |
971 | 138M | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { |
972 | 138M | unsafe { |
973 | 138M | if self.spilled() { |
974 | 8.66M | let (ptr, len) = self.data.heap(); |
975 | 8.66M | (ptr, len, self.capacity) |
976 | | } else { |
977 | 129M | (self.data.inline(), self.capacity, Self::inline_capacity()) |
978 | | } |
979 | | } |
980 | 138M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]>>::triple Line | Count | Source | 971 | 713k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 713k | unsafe { | 973 | 713k | if self.spilled() { | 974 | 68.5k | let (ptr, len) = self.data.heap(); | 975 | 68.5k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 645k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 713k | } |
Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::triple <smallvec::SmallVec<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]>>::triple Line | Count | Source | 971 | 615k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 615k | unsafe { | 973 | 615k | if self.spilled() { | 974 | 33 | let (ptr, len) = self.data.heap(); | 975 | 33 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 615k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 615k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::triple Line | Count | Source | 971 | 87.8k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 87.8k | unsafe { | 973 | 87.8k | if self.spilled() { | 974 | 1.63k | let (ptr, len) = self.data.heap(); | 975 | 1.63k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 86.2k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 87.8k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::triple <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::triple Line | Count | Source | 971 | 87.8k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 87.8k | unsafe { | 973 | 87.8k | if self.spilled() { | 974 | 1.99k | let (ptr, len) = self.data.heap(); | 975 | 1.99k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 85.8k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 87.8k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::triple Line | Count | Source | 971 | 87.8k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 87.8k | unsafe { | 973 | 87.8k | if self.spilled() { | 974 | 426 | let (ptr, len) = self.data.heap(); | 975 | 426 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 87.4k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 87.8k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::triple <smallvec::SmallVec<[core::option::Option<usize>; 16]>>::triple Line | Count | Source | 971 | 3.08k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 3.08k | unsafe { | 973 | 3.08k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 3.08k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 3.08k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::triple <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::triple Line | Count | Source | 971 | 750k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 750k | unsafe { | 973 | 750k | if self.spilled() { | 974 | 182k | let (ptr, len) = self.data.heap(); | 975 | 182k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 567k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 750k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::triple Line | Count | Source | 971 | 1.04M | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 1.04M | unsafe { | 973 | 1.04M | if self.spilled() { | 974 | 391k | let (ptr, len) = self.data.heap(); | 975 | 391k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 652k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 1.04M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::triple <smallvec::SmallVec<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]>>::triple Line | Count | Source | 971 | 458k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 458k | unsafe { | 973 | 458k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 458k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 458k | } |
<smallvec::SmallVec<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::triple Line | Count | Source | 971 | 426 | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 426 | unsafe { | 973 | 426 | if self.spilled() { | 974 | 170 | let (ptr, len) = self.data.heap(); | 975 | 170 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 256 | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 426 | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::Allocation; 2]>>::triple <smallvec::SmallVec<[regalloc2::PReg; 8]>>::triple Line | Count | Source | 971 | 51.2k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 51.2k | unsafe { | 973 | 51.2k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 51.2k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 51.2k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]>>::triple <smallvec::SmallVec<[regalloc2::SpillSlot; 8]>>::triple Line | Count | Source | 971 | 166k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 166k | unsafe { | 973 | 166k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 166k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 166k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]>>::triple <smallvec::SmallVec<[cranelift_codegen::loop_analysis::Loop; 8]>>::triple Line | Count | Source | 971 | 4.39k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 4.39k | unsafe { | 973 | 4.39k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 4.39k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 4.39k | } |
<smallvec::SmallVec<[regalloc2::index::Block; 16]>>::triple Line | Count | Source | 971 | 975k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 975k | unsafe { | 973 | 975k | if self.spilled() { | 974 | 286k | let (ptr, len) = self.data.heap(); | 975 | 286k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 688k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 975k | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Inst; 2]>>::triple Line | Count | Source | 971 | 997k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 997k | unsafe { | 973 | 997k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 997k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 997k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Block; 16]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 4]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::triple <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]>>::triple Line | Count | Source | 971 | 148k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 148k | unsafe { | 973 | 148k | if self.spilled() { | 974 | 2.54k | let (ptr, len) = self.data.heap(); | 975 | 2.54k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 145k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 148k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]>>::triple Line | Count | Source | 971 | 702k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 702k | unsafe { | 973 | 702k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 702k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 702k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]>>::triple <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::triple Line | Count | Source | 971 | 1.95M | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 1.95M | unsafe { | 973 | 1.95M | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 1.95M | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 1.95M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::triple Line | Count | Source | 971 | 105k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 105k | unsafe { | 973 | 105k | if self.spilled() { | 974 | 698 | let (ptr, len) = self.data.heap(); | 975 | 698 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 104k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 105k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::triple Line | Count | Source | 971 | 104k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 104k | unsafe { | 973 | 104k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 104k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 104k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::RetPair; 2]>>::triple Line | Count | Source | 971 | 2.71k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 2.71k | unsafe { | 973 | 2.71k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 2.71k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 2.71k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 16]>>::triple Line | Count | Source | 971 | 204k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 204k | unsafe { | 973 | 204k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 204k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 204k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 4]>>::triple <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::triple Line | Count | Source | 971 | 1.73M | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 1.73M | unsafe { | 973 | 1.73M | if self.spilled() { | 974 | 155k | let (ptr, len) = self.data.heap(); | 975 | 155k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 1.57M | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 1.73M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::triple Line | Count | Source | 971 | 1.53k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 1.53k | unsafe { | 973 | 1.53k | if self.spilled() { | 974 | 662 | let (ptr, len) = self.data.heap(); | 975 | 662 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 872 | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 1.53k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::triple <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::triple Line | Count | Source | 971 | 197k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 197k | unsafe { | 973 | 197k | if self.spilled() { | 974 | 29.3k | let (ptr, len) = self.data.heap(); | 975 | 29.3k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 168k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 197k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::triple Line | Count | Source | 971 | 4.03k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 4.03k | unsafe { | 973 | 4.03k | if self.spilled() { | 974 | 2.04k | let (ptr, len) = self.data.heap(); | 975 | 2.04k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 1.99k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 4.03k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::triple Line | Count | Source | 971 | 789k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 789k | unsafe { | 973 | 789k | if self.spilled() { | 974 | 527k | let (ptr, len) = self.data.heap(); | 975 | 527k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 262k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 789k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 2]>>::triple Line | Count | Source | 971 | 167k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 167k | unsafe { | 973 | 167k | if self.spilled() { | 974 | 1.98k | let (ptr, len) = self.data.heap(); | 975 | 1.98k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 165k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 167k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::triple Line | Count | Source | 971 | 3.53M | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 3.53M | unsafe { | 973 | 3.53M | if self.spilled() { | 974 | 2.83M | let (ptr, len) = self.data.heap(); | 975 | 2.83M | (ptr, len, self.capacity) | 976 | | } else { | 977 | 703k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 3.53M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::triple Line | Count | Source | 971 | 818 | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 818 | unsafe { | 973 | 818 | if self.spilled() { | 974 | 392 | let (ptr, len) = self.data.heap(); | 975 | 392 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 426 | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 818 | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::InsertedMove; 8]>>::triple Line | Count | Source | 971 | 464k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 464k | unsafe { | 973 | 464k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 464k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 464k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::triple Line | Count | Source | 971 | 48.4k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 48.4k | unsafe { | 973 | 48.4k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 48.4k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 48.4k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::triple Line | Count | Source | 971 | 30.3k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 30.3k | unsafe { | 973 | 30.3k | if self.spilled() { | 974 | 26.0k | let (ptr, len) = self.data.heap(); | 975 | 26.0k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 4.24k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 30.3k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::triple Line | Count | Source | 971 | 2.64M | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 2.64M | unsafe { | 973 | 2.64M | if self.spilled() { | 974 | 2.73k | let (ptr, len) = self.data.heap(); | 975 | 2.73k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 2.64M | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 2.64M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::triple Line | Count | Source | 971 | 73.7M | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 73.7M | unsafe { | 973 | 73.7M | if self.spilled() { | 974 | 261k | let (ptr, len) = self.data.heap(); | 975 | 261k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 73.4M | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 73.7M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::triple Line | Count | Source | 971 | 8.65M | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 8.65M | unsafe { | 973 | 8.65M | if self.spilled() { | 974 | 430k | let (ptr, len) = self.data.heap(); | 975 | 430k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 8.22M | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 8.65M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::triple Line | Count | Source | 971 | 728k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 728k | unsafe { | 973 | 728k | if self.spilled() { | 974 | 337k | let (ptr, len) = self.data.heap(); | 975 | 337k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 390k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 728k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::triple Line | Count | Source | 971 | 3.23M | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 3.23M | unsafe { | 973 | 3.23M | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 3.23M | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 3.23M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>>::triple Line | Count | Source | 971 | 580k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 580k | unsafe { | 973 | 580k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 580k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 580k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]>>::triple Line | Count | Source | 971 | 209k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 209k | unsafe { | 973 | 209k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 209k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 209k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::triple Line | Count | Source | 971 | 2.67M | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 2.67M | unsafe { | 973 | 2.67M | if self.spilled() { | 974 | 211k | let (ptr, len) = self.data.heap(); | 975 | 211k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 2.46M | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 2.67M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::triple <smallvec::SmallVec<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]>>::triple Line | Count | Source | 971 | 684k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 684k | unsafe { | 973 | 684k | if self.spilled() { | 974 | 221k | let (ptr, len) = self.data.heap(); | 975 | 221k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 462k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 684k | } |
<smallvec::SmallVec<[regalloc2::postorder::calculate::State; 64]>>::triple Line | Count | Source | 971 | 564 | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 564 | unsafe { | 973 | 564 | if self.spilled() { | 974 | 46 | let (ptr, len) = self.data.heap(); | 975 | 46 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 518 | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 564 | } |
<smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::triple Line | Count | Source | 971 | 1.57M | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 1.57M | unsafe { | 973 | 1.57M | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 1.57M | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 1.57M | } |
<smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::triple Line | Count | Source | 971 | 1.23M | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 1.23M | unsafe { | 973 | 1.23M | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 1.23M | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 1.23M | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]>>::triple Line | Count | Source | 971 | 988k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 988k | unsafe { | 973 | 988k | if self.spilled() { | 974 | 53.0k | let (ptr, len) = self.data.heap(); | 975 | 53.0k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 935k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 988k | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]>>::triple Line | Count | Source | 971 | 7.12k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 7.12k | unsafe { | 973 | 7.12k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 7.12k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 7.12k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::triple <smallvec::SmallVec<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::triple Line | Count | Source | 971 | 42.1k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 42.1k | unsafe { | 973 | 42.1k | if self.spilled() { | 974 | 38.7k | let (ptr, len) = self.data.heap(); | 975 | 38.7k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 3.35k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 42.1k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]>>::triple <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::triple Line | Count | Source | 971 | 139k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 139k | unsafe { | 973 | 139k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 139k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 139k | } |
<smallvec::SmallVec<[bool; 16]>>::triple Line | Count | Source | 971 | 6.13k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 6.13k | unsafe { | 973 | 6.13k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 6.13k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 6.13k | } |
<smallvec::SmallVec<[u8; 16]>>::triple Line | Count | Source | 971 | 37.2k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 37.2k | unsafe { | 973 | 37.2k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 37.2k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 37.2k | } |
<smallvec::SmallVec<[u8; 1024]>>::triple Line | Count | Source | 971 | 9.76M | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 9.76M | unsafe { | 973 | 9.76M | if self.spilled() { | 974 | 1.47M | let (ptr, len) = self.data.heap(); | 975 | 1.47M | (ptr, len, self.capacity) | 976 | | } else { | 977 | 8.29M | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 9.76M | } |
<smallvec::SmallVec<[u8; 8]>>::triple Line | Count | Source | 971 | 56.8k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 56.8k | unsafe { | 973 | 56.8k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 56.8k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 56.8k | } |
<smallvec::SmallVec<[usize; 16]>>::triple Line | Count | Source | 971 | 7.69k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 7.69k | unsafe { | 973 | 7.69k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 7.69k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 7.69k | } |
<smallvec::SmallVec<[usize; 4]>>::triple Line | Count | Source | 971 | 342k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 342k | unsafe { | 973 | 342k | if self.spilled() { | 974 | 3.69k | let (ptr, len) = self.data.heap(); | 975 | 3.69k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 339k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 342k | } |
<smallvec::SmallVec<[u32; 16]>>::triple Line | Count | Source | 971 | 982k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 982k | unsafe { | 973 | 982k | if self.spilled() { | 974 | 659k | let (ptr, len) = self.data.heap(); | 975 | 659k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 322k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 982k | } |
<smallvec::SmallVec<[u32; 64]>>::triple Line | Count | Source | 971 | 198k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 198k | unsafe { | 973 | 198k | if self.spilled() { | 974 | 77.6k | let (ptr, len) = self.data.heap(); | 975 | 77.6k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 120k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 198k | } |
<smallvec::SmallVec<[u32; 8]>>::triple Line | Count | Source | 971 | 6.43M | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 6.43M | unsafe { | 973 | 6.43M | if self.spilled() { | 974 | 378k | let (ptr, len) = self.data.heap(); | 975 | 378k | (ptr, len, self.capacity) | 976 | | } else { | 977 | 6.05M | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 6.43M | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]>>::triple Line | Count | Source | 971 | 22.8k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 22.8k | unsafe { | 973 | 22.8k | if self.spilled() { | 974 | 242 | let (ptr, len) = self.data.heap(); | 975 | 242 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 22.5k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 22.8k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::triple Line | Count | Source | 971 | 17.5k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 17.5k | unsafe { | 973 | 17.5k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 17.5k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 17.5k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::triple <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::triple Line | Count | Source | 971 | 3.42M | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 3.42M | unsafe { | 973 | 3.42M | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 3.42M | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 3.42M | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::triple Line | Count | Source | 971 | 614k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 614k | unsafe { | 973 | 614k | if self.spilled() { | 974 | 234 | let (ptr, len) = self.data.heap(); | 975 | 234 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 613k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 614k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::triple Line | Count | Source | 971 | 987k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 987k | unsafe { | 973 | 987k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 987k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 987k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::triple Line | Count | Source | 971 | 306k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 306k | unsafe { | 973 | 306k | if self.spilled() { | 974 | 116 | let (ptr, len) = self.data.heap(); | 975 | 116 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 306k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 306k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::triple Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::triple <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::triple Line | Count | Source | 971 | 816k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 816k | unsafe { | 973 | 816k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 816k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 816k | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::triple Line | Count | Source | 971 | 130k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 130k | unsafe { | 973 | 130k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 130k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 130k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::triple Line | Count | Source | 971 | 871k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 871k | unsafe { | 973 | 871k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 871k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 871k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::triple Line | Count | Source | 971 | 65.3k | fn triple(&self) -> (ConstNonNull<A::Item>, usize, usize) { | 972 | 65.3k | unsafe { | 973 | 65.3k | if self.spilled() { | 974 | 0 | let (ptr, len) = self.data.heap(); | 975 | 0 | (ptr, len, self.capacity) | 976 | | } else { | 977 | 65.3k | (self.data.inline(), self.capacity, Self::inline_capacity()) | 978 | | } | 979 | | } | 980 | 65.3k | } |
|
981 | | |
982 | | /// Returns a tuple with (data ptr, len ptr, capacity) |
983 | | #[inline] |
984 | 184M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { |
985 | 184M | unsafe { |
986 | 184M | if self.spilled() { |
987 | 6.00M | let (ptr, len_ptr) = self.data.heap_mut(); |
988 | 6.00M | (ptr, len_ptr, self.capacity) |
989 | | } else { |
990 | 178M | ( |
991 | 178M | self.data.inline_mut(), |
992 | 178M | &mut self.capacity, |
993 | 178M | Self::inline_capacity(), |
994 | 178M | ) |
995 | | } |
996 | | } |
997 | 184M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]>>::triple_mut Line | Count | Source | 984 | 1.40M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 1.40M | unsafe { | 986 | 1.40M | if self.spilled() { | 987 | 256k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 256k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 1.14M | ( | 991 | 1.14M | self.data.inline_mut(), | 992 | 1.14M | &mut self.capacity, | 993 | 1.14M | Self::inline_capacity(), | 994 | 1.14M | ) | 995 | | } | 996 | | } | 997 | 1.40M | } |
Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::triple_mut <smallvec::SmallVec<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]>>::triple_mut Line | Count | Source | 984 | 811k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 811k | unsafe { | 986 | 811k | if self.spilled() { | 987 | 6 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 6 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 811k | ( | 991 | 811k | self.data.inline_mut(), | 992 | 811k | &mut self.capacity, | 993 | 811k | Self::inline_capacity(), | 994 | 811k | ) | 995 | | } | 996 | | } | 997 | 811k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::triple_mut Line | Count | Source | 984 | 137k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 137k | unsafe { | 986 | 137k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 137k | ( | 991 | 137k | self.data.inline_mut(), | 992 | 137k | &mut self.capacity, | 993 | 137k | Self::inline_capacity(), | 994 | 137k | ) | 995 | | } | 996 | | } | 997 | 137k | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::triple_mut Line | Count | Source | 984 | 156k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 156k | unsafe { | 986 | 156k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 156k | ( | 991 | 156k | self.data.inline_mut(), | 992 | 156k | &mut self.capacity, | 993 | 156k | Self::inline_capacity(), | 994 | 156k | ) | 995 | | } | 996 | | } | 997 | 156k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::triple_mut Line | Count | Source | 984 | 138k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 138k | unsafe { | 986 | 138k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 138k | ( | 991 | 138k | self.data.inline_mut(), | 992 | 138k | &mut self.capacity, | 993 | 138k | Self::inline_capacity(), | 994 | 138k | ) | 995 | | } | 996 | | } | 997 | 138k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::triple_mut Line | Count | Source | 984 | 139k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 139k | unsafe { | 986 | 139k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 139k | ( | 991 | 139k | self.data.inline_mut(), | 992 | 139k | &mut self.capacity, | 993 | 139k | Self::inline_capacity(), | 994 | 139k | ) | 995 | | } | 996 | | } | 997 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::triple_mut Line | Count | Source | 984 | 137k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 137k | unsafe { | 986 | 137k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 137k | ( | 991 | 137k | self.data.inline_mut(), | 992 | 137k | &mut self.capacity, | 993 | 137k | Self::inline_capacity(), | 994 | 137k | ) | 995 | | } | 996 | | } | 997 | 137k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::triple_mut Line | Count | Source | 984 | 139k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 139k | unsafe { | 986 | 139k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 139k | ( | 991 | 139k | self.data.inline_mut(), | 992 | 139k | &mut self.capacity, | 993 | 139k | Self::inline_capacity(), | 994 | 139k | ) | 995 | | } | 996 | | } | 997 | 139k | } |
<smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::triple_mut Line | Count | Source | 984 | 139k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 139k | unsafe { | 986 | 139k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 139k | ( | 991 | 139k | self.data.inline_mut(), | 992 | 139k | &mut self.capacity, | 993 | 139k | Self::inline_capacity(), | 994 | 139k | ) | 995 | | } | 996 | | } | 997 | 139k | } |
<smallvec::SmallVec<[u8; 1024]>>::triple_mut Line | Count | Source | 984 | 137k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 137k | unsafe { | 986 | 137k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 137k | ( | 991 | 137k | self.data.inline_mut(), | 992 | 137k | &mut self.capacity, | 993 | 137k | Self::inline_capacity(), | 994 | 137k | ) | 995 | | } | 996 | | } | 997 | 137k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::triple_mut <smallvec::SmallVec<[core::option::Option<usize>; 16]>>::triple_mut Line | Count | Source | 984 | 4.56k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 4.56k | unsafe { | 986 | 4.56k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 4.56k | ( | 991 | 4.56k | self.data.inline_mut(), | 992 | 4.56k | &mut self.capacity, | 993 | 4.56k | Self::inline_capacity(), | 994 | 4.56k | ) | 995 | | } | 996 | | } | 997 | 4.56k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::triple_mut Line | Count | Source | 984 | 633k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 633k | unsafe { | 986 | 633k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 633k | ( | 991 | 633k | self.data.inline_mut(), | 992 | 633k | &mut self.capacity, | 993 | 633k | Self::inline_capacity(), | 994 | 633k | ) | 995 | | } | 996 | | } | 997 | 633k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::triple_mut Line | Count | Source | 984 | 280k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 280k | unsafe { | 986 | 280k | if self.spilled() { | 987 | 1.63k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 1.63k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 278k | ( | 991 | 278k | self.data.inline_mut(), | 992 | 278k | &mut self.capacity, | 993 | 278k | Self::inline_capacity(), | 994 | 278k | ) | 995 | | } | 996 | | } | 997 | 280k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::triple_mut Line | Count | Source | 984 | 1.64M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 1.64M | unsafe { | 986 | 1.64M | if self.spilled() { | 987 | 92.8k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 92.8k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 1.55M | ( | 991 | 1.55M | self.data.inline_mut(), | 992 | 1.55M | &mut self.capacity, | 993 | 1.55M | Self::inline_capacity(), | 994 | 1.55M | ) | 995 | | } | 996 | | } | 997 | 1.64M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::triple_mut Line | Count | Source | 984 | 846k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 846k | unsafe { | 986 | 846k | if self.spilled() { | 987 | 289k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 289k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 556k | ( | 991 | 556k | self.data.inline_mut(), | 992 | 556k | &mut self.capacity, | 993 | 556k | Self::inline_capacity(), | 994 | 556k | ) | 995 | | } | 996 | | } | 997 | 846k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::triple_mut <smallvec::SmallVec<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]>>::triple_mut Line | Count | Source | 984 | 1.32M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 1.32M | unsafe { | 986 | 1.32M | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 1.32M | ( | 991 | 1.32M | self.data.inline_mut(), | 992 | 1.32M | &mut self.capacity, | 993 | 1.32M | Self::inline_capacity(), | 994 | 1.32M | ) | 995 | | } | 996 | | } | 997 | 1.32M | } |
<smallvec::SmallVec<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::triple_mut Line | Count | Source | 984 | 1.08M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 1.08M | unsafe { | 986 | 1.08M | if self.spilled() { | 987 | 78.7k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 78.7k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 1.00M | ( | 991 | 1.00M | self.data.inline_mut(), | 992 | 1.00M | &mut self.capacity, | 993 | 1.00M | Self::inline_capacity(), | 994 | 1.00M | ) | 995 | | } | 996 | | } | 997 | 1.08M | } |
<smallvec::SmallVec<[regalloc2::Allocation; 2]>>::triple_mut Line | Count | Source | 984 | 278k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 278k | unsafe { | 986 | 278k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 278k | ( | 991 | 278k | self.data.inline_mut(), | 992 | 278k | &mut self.capacity, | 993 | 278k | Self::inline_capacity(), | 994 | 278k | ) | 995 | | } | 996 | | } | 997 | 278k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]>>::triple_mut Line | Count | Source | 984 | 30.6k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 30.6k | unsafe { | 986 | 30.6k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 30.6k | ( | 991 | 30.6k | self.data.inline_mut(), | 992 | 30.6k | &mut self.capacity, | 993 | 30.6k | Self::inline_capacity(), | 994 | 30.6k | ) | 995 | | } | 996 | | } | 997 | 30.6k | } |
<smallvec::SmallVec<[regalloc2::PReg; 8]>>::triple_mut Line | Count | Source | 984 | 1.76M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 1.76M | unsafe { | 986 | 1.76M | if self.spilled() { | 987 | 6.38k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 6.38k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 1.75M | ( | 991 | 1.75M | self.data.inline_mut(), | 992 | 1.75M | &mut self.capacity, | 993 | 1.75M | Self::inline_capacity(), | 994 | 1.75M | ) | 995 | | } | 996 | | } | 997 | 1.76M | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]>>::triple_mut <smallvec::SmallVec<[regalloc2::SpillSlot; 8]>>::triple_mut Line | Count | Source | 984 | 166k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 166k | unsafe { | 986 | 166k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 166k | ( | 991 | 166k | self.data.inline_mut(), | 992 | 166k | &mut self.capacity, | 993 | 166k | Self::inline_capacity(), | 994 | 166k | ) | 995 | | } | 996 | | } | 997 | 166k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]>>::triple_mut <smallvec::SmallVec<[cranelift_codegen::loop_analysis::Loop; 8]>>::triple_mut Line | Count | Source | 984 | 143k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 143k | unsafe { | 986 | 143k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 143k | ( | 991 | 143k | self.data.inline_mut(), | 992 | 143k | &mut self.capacity, | 993 | 143k | Self::inline_capacity(), | 994 | 143k | ) | 995 | | } | 996 | | } | 997 | 143k | } |
<smallvec::SmallVec<[regalloc2::index::Block; 16]>>::triple_mut Line | Count | Source | 984 | 1.45M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 1.45M | unsafe { | 986 | 1.45M | if self.spilled() { | 987 | 101k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 101k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 1.35M | ( | 991 | 1.35M | self.data.inline_mut(), | 992 | 1.35M | &mut self.capacity, | 993 | 1.35M | Self::inline_capacity(), | 994 | 1.35M | ) | 995 | | } | 996 | | } | 997 | 1.45M | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Inst; 2]>>::triple_mut Line | Count | Source | 984 | 660k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 660k | unsafe { | 986 | 660k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 660k | ( | 991 | 660k | self.data.inline_mut(), | 992 | 660k | &mut self.capacity, | 993 | 660k | Self::inline_capacity(), | 994 | 660k | ) | 995 | | } | 996 | | } | 997 | 660k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Block; 16]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 4]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::triple_mut <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]>>::triple_mut Line | Count | Source | 984 | 418k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 418k | unsafe { | 986 | 418k | if self.spilled() { | 987 | 650 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 650 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 417k | ( | 991 | 417k | self.data.inline_mut(), | 992 | 417k | &mut self.capacity, | 993 | 417k | Self::inline_capacity(), | 994 | 417k | ) | 995 | | } | 996 | | } | 997 | 418k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]>>::triple_mut Line | Count | Source | 984 | 2.10M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 2.10M | unsafe { | 986 | 2.10M | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 2.10M | ( | 991 | 2.10M | self.data.inline_mut(), | 992 | 2.10M | &mut self.capacity, | 993 | 2.10M | Self::inline_capacity(), | 994 | 2.10M | ) | 995 | | } | 996 | | } | 997 | 2.10M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]>>::triple_mut <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::triple_mut Line | Count | Source | 984 | 1.57M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 1.57M | unsafe { | 986 | 1.57M | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 1.57M | ( | 991 | 1.57M | self.data.inline_mut(), | 992 | 1.57M | &mut self.capacity, | 993 | 1.57M | Self::inline_capacity(), | 994 | 1.57M | ) | 995 | | } | 996 | | } | 997 | 1.57M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::triple_mut Line | Count | Source | 984 | 415k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 415k | unsafe { | 986 | 415k | if self.spilled() { | 987 | 882 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 882 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 414k | ( | 991 | 414k | self.data.inline_mut(), | 992 | 414k | &mut self.capacity, | 993 | 414k | Self::inline_capacity(), | 994 | 414k | ) | 995 | | } | 996 | | } | 997 | 415k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::triple_mut Line | Count | Source | 984 | 259k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 259k | unsafe { | 986 | 259k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 259k | ( | 991 | 259k | self.data.inline_mut(), | 992 | 259k | &mut self.capacity, | 993 | 259k | Self::inline_capacity(), | 994 | 259k | ) | 995 | | } | 996 | | } | 997 | 259k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::RetPair; 2]>>::triple_mut Line | Count | Source | 984 | 4.06k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 4.06k | unsafe { | 986 | 4.06k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 4.06k | ( | 991 | 4.06k | self.data.inline_mut(), | 992 | 4.06k | &mut self.capacity, | 993 | 4.06k | Self::inline_capacity(), | 994 | 4.06k | ) | 995 | | } | 996 | | } | 997 | 4.06k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 16]>>::triple_mut Line | Count | Source | 984 | 204k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 204k | unsafe { | 986 | 204k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 204k | ( | 991 | 204k | self.data.inline_mut(), | 992 | 204k | &mut self.capacity, | 993 | 204k | Self::inline_capacity(), | 994 | 204k | ) | 995 | | } | 996 | | } | 997 | 204k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 4]>>::triple_mut <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::triple_mut Line | Count | Source | 984 | 646k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 646k | unsafe { | 986 | 646k | if self.spilled() { | 987 | 81.8k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 81.8k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 564k | ( | 991 | 564k | self.data.inline_mut(), | 992 | 564k | &mut self.capacity, | 993 | 564k | Self::inline_capacity(), | 994 | 564k | ) | 995 | | } | 996 | | } | 997 | 646k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::triple_mut Line | Count | Source | 984 | 106k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 106k | unsafe { | 986 | 106k | if self.spilled() { | 987 | 24.3k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 24.3k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 81.9k | ( | 991 | 81.9k | self.data.inline_mut(), | 992 | 81.9k | &mut self.capacity, | 993 | 81.9k | Self::inline_capacity(), | 994 | 81.9k | ) | 995 | | } | 996 | | } | 997 | 106k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::triple_mut <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::triple_mut Line | Count | Source | 984 | 196k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 196k | unsafe { | 986 | 196k | if self.spilled() { | 987 | 14.1k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 14.1k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 182k | ( | 991 | 182k | self.data.inline_mut(), | 992 | 182k | &mut self.capacity, | 993 | 182k | Self::inline_capacity(), | 994 | 182k | ) | 995 | | } | 996 | | } | 997 | 196k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::triple_mut Line | Count | Source | 984 | 187k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 187k | unsafe { | 986 | 187k | if self.spilled() { | 987 | 80.1k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 80.1k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 107k | ( | 991 | 107k | self.data.inline_mut(), | 992 | 107k | &mut self.capacity, | 993 | 107k | Self::inline_capacity(), | 994 | 107k | ) | 995 | | } | 996 | | } | 997 | 187k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::triple_mut Line | Count | Source | 984 | 641k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 641k | unsafe { | 986 | 641k | if self.spilled() { | 987 | 161k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 161k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 480k | ( | 991 | 480k | self.data.inline_mut(), | 992 | 480k | &mut self.capacity, | 993 | 480k | Self::inline_capacity(), | 994 | 480k | ) | 995 | | } | 996 | | } | 997 | 641k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 2]>>::triple_mut Line | Count | Source | 984 | 663k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 663k | unsafe { | 986 | 663k | if self.spilled() { | 987 | 4.83k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 4.83k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 658k | ( | 991 | 658k | self.data.inline_mut(), | 992 | 658k | &mut self.capacity, | 993 | 658k | Self::inline_capacity(), | 994 | 658k | ) | 995 | | } | 996 | | } | 997 | 663k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::triple_mut Line | Count | Source | 984 | 2.70M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 2.70M | unsafe { | 986 | 2.70M | if self.spilled() { | 987 | 462k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 462k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 2.24M | ( | 991 | 2.24M | self.data.inline_mut(), | 992 | 2.24M | &mut self.capacity, | 993 | 2.24M | Self::inline_capacity(), | 994 | 2.24M | ) | 995 | | } | 996 | | } | 997 | 2.70M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::triple_mut Line | Count | Source | 984 | 27.5k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 27.5k | unsafe { | 986 | 27.5k | if self.spilled() { | 987 | 14.9k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 14.9k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 12.6k | ( | 991 | 12.6k | self.data.inline_mut(), | 992 | 12.6k | &mut self.capacity, | 993 | 12.6k | Self::inline_capacity(), | 994 | 12.6k | ) | 995 | | } | 996 | | } | 997 | 27.5k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::InsertedMove; 8]>>::triple_mut Line | Count | Source | 984 | 624k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 624k | unsafe { | 986 | 624k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 624k | ( | 991 | 624k | self.data.inline_mut(), | 992 | 624k | &mut self.capacity, | 993 | 624k | Self::inline_capacity(), | 994 | 624k | ) | 995 | | } | 996 | | } | 997 | 624k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::triple_mut Line | Count | Source | 984 | 34.6k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 34.6k | unsafe { | 986 | 34.6k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 34.6k | ( | 991 | 34.6k | self.data.inline_mut(), | 992 | 34.6k | &mut self.capacity, | 993 | 34.6k | Self::inline_capacity(), | 994 | 34.6k | ) | 995 | | } | 996 | | } | 997 | 34.6k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::triple_mut Line | Count | Source | 984 | 30.7k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 30.7k | unsafe { | 986 | 30.7k | if self.spilled() { | 987 | 16.9k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 16.9k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 13.8k | ( | 991 | 13.8k | self.data.inline_mut(), | 992 | 13.8k | &mut self.capacity, | 993 | 13.8k | Self::inline_capacity(), | 994 | 13.8k | ) | 995 | | } | 996 | | } | 997 | 30.7k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::triple_mut Line | Count | Source | 984 | 3.37M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 3.37M | unsafe { | 986 | 3.37M | if self.spilled() { | 987 | 18.9k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 18.9k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 3.35M | ( | 991 | 3.35M | self.data.inline_mut(), | 992 | 3.35M | &mut self.capacity, | 993 | 3.35M | Self::inline_capacity(), | 994 | 3.35M | ) | 995 | | } | 996 | | } | 997 | 3.37M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::triple_mut Line | Count | Source | 984 | 106M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 106M | unsafe { | 986 | 106M | if self.spilled() { | 987 | 219k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 219k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 106M | ( | 991 | 106M | self.data.inline_mut(), | 992 | 106M | &mut self.capacity, | 993 | 106M | Self::inline_capacity(), | 994 | 106M | ) | 995 | | } | 996 | | } | 997 | 106M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::triple_mut Line | Count | Source | 984 | 6.44M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 6.44M | unsafe { | 986 | 6.44M | if self.spilled() { | 987 | 207k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 207k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 6.23M | ( | 991 | 6.23M | self.data.inline_mut(), | 992 | 6.23M | &mut self.capacity, | 993 | 6.23M | Self::inline_capacity(), | 994 | 6.23M | ) | 995 | | } | 996 | | } | 997 | 6.44M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::triple_mut Line | Count | Source | 984 | 2.79M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 2.79M | unsafe { | 986 | 2.79M | if self.spilled() { | 987 | 163k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 163k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 2.62M | ( | 991 | 2.62M | self.data.inline_mut(), | 992 | 2.62M | &mut self.capacity, | 993 | 2.62M | Self::inline_capacity(), | 994 | 2.62M | ) | 995 | | } | 996 | | } | 997 | 2.79M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::triple_mut Line | Count | Source | 984 | 3.23M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 3.23M | unsafe { | 986 | 3.23M | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 3.23M | ( | 991 | 3.23M | self.data.inline_mut(), | 992 | 3.23M | &mut self.capacity, | 993 | 3.23M | Self::inline_capacity(), | 994 | 3.23M | ) | 995 | | } | 996 | | } | 997 | 3.23M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>>::triple_mut Line | Count | Source | 984 | 819k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 819k | unsafe { | 986 | 819k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 819k | ( | 991 | 819k | self.data.inline_mut(), | 992 | 819k | &mut self.capacity, | 993 | 819k | Self::inline_capacity(), | 994 | 819k | ) | 995 | | } | 996 | | } | 997 | 819k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]>>::triple_mut Line | Count | Source | 984 | 314k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 314k | unsafe { | 986 | 314k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 314k | ( | 991 | 314k | self.data.inline_mut(), | 992 | 314k | &mut self.capacity, | 993 | 314k | Self::inline_capacity(), | 994 | 314k | ) | 995 | | } | 996 | | } | 997 | 314k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::triple_mut Line | Count | Source | 984 | 5.12M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 5.12M | unsafe { | 986 | 5.12M | if self.spilled() { | 987 | 75.7k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 75.7k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 5.04M | ( | 991 | 5.04M | self.data.inline_mut(), | 992 | 5.04M | &mut self.capacity, | 993 | 5.04M | Self::inline_capacity(), | 994 | 5.04M | ) | 995 | | } | 996 | | } | 997 | 5.12M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::triple_mut <smallvec::SmallVec<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]>>::triple_mut Line | Count | Source | 984 | 1.35M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 1.35M | unsafe { | 986 | 1.35M | if self.spilled() { | 987 | 435k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 435k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 921k | ( | 991 | 921k | self.data.inline_mut(), | 992 | 921k | &mut self.capacity, | 993 | 921k | Self::inline_capacity(), | 994 | 921k | ) | 995 | | } | 996 | | } | 997 | 1.35M | } |
<smallvec::SmallVec<[regalloc2::postorder::calculate::State; 64]>>::triple_mut Line | Count | Source | 984 | 1.49M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 1.49M | unsafe { | 986 | 1.49M | if self.spilled() { | 987 | 196k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 196k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 1.29M | ( | 991 | 1.29M | self.data.inline_mut(), | 992 | 1.29M | &mut self.capacity, | 993 | 1.29M | Self::inline_capacity(), | 994 | 1.29M | ) | 995 | | } | 996 | | } | 997 | 1.49M | } |
<smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::triple_mut Line | Count | Source | 984 | 1.09M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 1.09M | unsafe { | 986 | 1.09M | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 1.09M | ( | 991 | 1.09M | self.data.inline_mut(), | 992 | 1.09M | &mut self.capacity, | 993 | 1.09M | Self::inline_capacity(), | 994 | 1.09M | ) | 995 | | } | 996 | | } | 997 | 1.09M | } |
<smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::triple_mut Line | Count | Source | 984 | 1.37M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 1.37M | unsafe { | 986 | 1.37M | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 1.37M | ( | 991 | 1.37M | self.data.inline_mut(), | 992 | 1.37M | &mut self.capacity, | 993 | 1.37M | Self::inline_capacity(), | 994 | 1.37M | ) | 995 | | } | 996 | | } | 997 | 1.37M | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]>>::triple_mut Line | Count | Source | 984 | 334k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 334k | unsafe { | 986 | 334k | if self.spilled() { | 987 | 11.4k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 11.4k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 323k | ( | 991 | 323k | self.data.inline_mut(), | 992 | 323k | &mut self.capacity, | 993 | 323k | Self::inline_capacity(), | 994 | 323k | ) | 995 | | } | 996 | | } | 997 | 334k | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]>>::triple_mut Line | Count | Source | 984 | 10.6k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 10.6k | unsafe { | 986 | 10.6k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 10.6k | ( | 991 | 10.6k | self.data.inline_mut(), | 992 | 10.6k | &mut self.capacity, | 993 | 10.6k | Self::inline_capacity(), | 994 | 10.6k | ) | 995 | | } | 996 | | } | 997 | 10.6k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::triple_mut <smallvec::SmallVec<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::triple_mut Line | Count | Source | 984 | 42.4k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 42.4k | unsafe { | 986 | 42.4k | if self.spilled() { | 987 | 27.5k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 27.5k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 14.8k | ( | 991 | 14.8k | self.data.inline_mut(), | 992 | 14.8k | &mut self.capacity, | 993 | 14.8k | Self::inline_capacity(), | 994 | 14.8k | ) | 995 | | } | 996 | | } | 997 | 42.4k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]>>::triple_mut <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::triple_mut Line | Count | Source | 984 | 329k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 329k | unsafe { | 986 | 329k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 329k | ( | 991 | 329k | self.data.inline_mut(), | 992 | 329k | &mut self.capacity, | 993 | 329k | Self::inline_capacity(), | 994 | 329k | ) | 995 | | } | 996 | | } | 997 | 329k | } |
<smallvec::SmallVec<[bool; 16]>>::triple_mut Line | Count | Source | 984 | 15.3k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 15.3k | unsafe { | 986 | 15.3k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 15.3k | ( | 991 | 15.3k | self.data.inline_mut(), | 992 | 15.3k | &mut self.capacity, | 993 | 15.3k | Self::inline_capacity(), | 994 | 15.3k | ) | 995 | | } | 996 | | } | 997 | 15.3k | } |
<smallvec::SmallVec<[u8; 16]>>::triple_mut Line | Count | Source | 984 | 111k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 111k | unsafe { | 986 | 111k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 111k | ( | 991 | 111k | self.data.inline_mut(), | 992 | 111k | &mut self.capacity, | 993 | 111k | Self::inline_capacity(), | 994 | 111k | ) | 995 | | } | 996 | | } | 997 | 111k | } |
<smallvec::SmallVec<[u8; 1024]>>::triple_mut Line | Count | Source | 984 | 9.71M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 9.71M | unsafe { | 986 | 9.71M | if self.spilled() { | 987 | 1.94M | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 1.94M | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 7.77M | ( | 991 | 7.77M | self.data.inline_mut(), | 992 | 7.77M | &mut self.capacity, | 993 | 7.77M | Self::inline_capacity(), | 994 | 7.77M | ) | 995 | | } | 996 | | } | 997 | 9.71M | } |
<smallvec::SmallVec<[u8; 8]>>::triple_mut Line | Count | Source | 984 | 247k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 247k | unsafe { | 986 | 247k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 247k | ( | 991 | 247k | self.data.inline_mut(), | 992 | 247k | &mut self.capacity, | 993 | 247k | Self::inline_capacity(), | 994 | 247k | ) | 995 | | } | 996 | | } | 997 | 247k | } |
<smallvec::SmallVec<[usize; 16]>>::triple_mut Line | Count | Source | 984 | 10.7k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 10.7k | unsafe { | 986 | 10.7k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 10.7k | ( | 991 | 10.7k | self.data.inline_mut(), | 992 | 10.7k | &mut self.capacity, | 993 | 10.7k | Self::inline_capacity(), | 994 | 10.7k | ) | 995 | | } | 996 | | } | 997 | 10.7k | } |
<smallvec::SmallVec<[usize; 4]>>::triple_mut Line | Count | Source | 984 | 348k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 348k | unsafe { | 986 | 348k | if self.spilled() { | 987 | 2.30k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 2.30k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 345k | ( | 991 | 345k | self.data.inline_mut(), | 992 | 345k | &mut self.capacity, | 993 | 345k | Self::inline_capacity(), | 994 | 345k | ) | 995 | | } | 996 | | } | 997 | 348k | } |
<smallvec::SmallVec<[u32; 16]>>::triple_mut Line | Count | Source | 984 | 1.35M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 1.35M | unsafe { | 986 | 1.35M | if self.spilled() { | 987 | 582k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 582k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 777k | ( | 991 | 777k | self.data.inline_mut(), | 992 | 777k | &mut self.capacity, | 993 | 777k | Self::inline_capacity(), | 994 | 777k | ) | 995 | | } | 996 | | } | 997 | 1.35M | } |
<smallvec::SmallVec<[u32; 64]>>::triple_mut Line | Count | Source | 984 | 476k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 476k | unsafe { | 986 | 476k | if self.spilled() { | 987 | 36.0k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 36.0k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 440k | ( | 991 | 440k | self.data.inline_mut(), | 992 | 440k | &mut self.capacity, | 993 | 440k | Self::inline_capacity(), | 994 | 440k | ) | 995 | | } | 996 | | } | 997 | 476k | } |
<smallvec::SmallVec<[u32; 8]>>::triple_mut Line | Count | Source | 984 | 1.40M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 1.40M | unsafe { | 986 | 1.40M | if self.spilled() { | 987 | 387k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 387k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 1.02M | ( | 991 | 1.02M | self.data.inline_mut(), | 992 | 1.02M | &mut self.capacity, | 993 | 1.02M | Self::inline_capacity(), | 994 | 1.02M | ) | 995 | | } | 996 | | } | 997 | 1.40M | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]>>::triple_mut Line | Count | Source | 984 | 305k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 305k | unsafe { | 986 | 305k | if self.spilled() { | 987 | 3.54k | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 3.54k | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 302k | ( | 991 | 302k | self.data.inline_mut(), | 992 | 302k | &mut self.capacity, | 993 | 302k | Self::inline_capacity(), | 994 | 302k | ) | 995 | | } | 996 | | } | 997 | 305k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::triple_mut <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::triple_mut Line | Count | Source | 984 | 6.84M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 6.84M | unsafe { | 986 | 6.84M | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 6.84M | ( | 991 | 6.84M | self.data.inline_mut(), | 992 | 6.84M | &mut self.capacity, | 993 | 6.84M | Self::inline_capacity(), | 994 | 6.84M | ) | 995 | | } | 996 | | } | 997 | 6.84M | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::triple_mut Line | Count | Source | 984 | 459k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 459k | unsafe { | 986 | 459k | if self.spilled() { | 987 | 58 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 58 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 459k | ( | 991 | 459k | self.data.inline_mut(), | 992 | 459k | &mut self.capacity, | 993 | 459k | Self::inline_capacity(), | 994 | 459k | ) | 995 | | } | 996 | | } | 997 | 459k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::triple_mut Line | Count | Source | 984 | 1.24M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 1.24M | unsafe { | 986 | 1.24M | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 1.24M | ( | 991 | 1.24M | self.data.inline_mut(), | 992 | 1.24M | &mut self.capacity, | 993 | 1.24M | Self::inline_capacity(), | 994 | 1.24M | ) | 995 | | } | 996 | | } | 997 | 1.24M | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::triple_mut Line | Count | Source | 984 | 459k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 459k | unsafe { | 986 | 459k | if self.spilled() { | 987 | 58 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 58 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 459k | ( | 991 | 459k | self.data.inline_mut(), | 992 | 459k | &mut self.capacity, | 993 | 459k | Self::inline_capacity(), | 994 | 459k | ) | 995 | | } | 996 | | } | 997 | 459k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[u8; 1024]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::triple_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::triple_mut <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::triple_mut Line | Count | Source | 984 | 1.63M | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 1.63M | unsafe { | 986 | 1.63M | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 1.63M | ( | 991 | 1.63M | self.data.inline_mut(), | 992 | 1.63M | &mut self.capacity, | 993 | 1.63M | Self::inline_capacity(), | 994 | 1.63M | ) | 995 | | } | 996 | | } | 997 | 1.63M | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::triple_mut Line | Count | Source | 984 | 98.0k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 98.0k | unsafe { | 986 | 98.0k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 98.0k | ( | 991 | 98.0k | self.data.inline_mut(), | 992 | 98.0k | &mut self.capacity, | 993 | 98.0k | Self::inline_capacity(), | 994 | 98.0k | ) | 995 | | } | 996 | | } | 997 | 98.0k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::triple_mut Line | Count | Source | 984 | 635k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 635k | unsafe { | 986 | 635k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 635k | ( | 991 | 635k | self.data.inline_mut(), | 992 | 635k | &mut self.capacity, | 993 | 635k | Self::inline_capacity(), | 994 | 635k | ) | 995 | | } | 996 | | } | 997 | 635k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::triple_mut Line | Count | Source | 984 | 98.0k | fn triple_mut(&mut self) -> (NonNull<A::Item>, &mut usize, usize) { | 985 | 98.0k | unsafe { | 986 | 98.0k | if self.spilled() { | 987 | 0 | let (ptr, len_ptr) = self.data.heap_mut(); | 988 | 0 | (ptr, len_ptr, self.capacity) | 989 | | } else { | 990 | 98.0k | ( | 991 | 98.0k | self.data.inline_mut(), | 992 | 98.0k | &mut self.capacity, | 993 | 98.0k | Self::inline_capacity(), | 994 | 98.0k | ) | 995 | | } | 996 | | } | 997 | 98.0k | } |
|
998 | | |
999 | | /// Returns `true` if the data has spilled into a separate heap-allocated buffer. |
1000 | | #[inline] |
1001 | 372M | pub fn spilled(&self) -> bool { |
1002 | 372M | self.capacity > Self::inline_capacity() |
1003 | 372M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]>>::spilled Line | Count | Source | 1001 | 2.55M | pub fn spilled(&self) -> bool { | 1002 | 2.55M | self.capacity > Self::inline_capacity() | 1003 | 2.55M | } |
Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::spilled <smallvec::SmallVec<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]>>::spilled Line | Count | Source | 1001 | 1.62M | pub fn spilled(&self) -> bool { | 1002 | 1.62M | self.capacity > Self::inline_capacity() | 1003 | 1.62M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::spilled Line | Count | Source | 1001 | 365k | pub fn spilled(&self) -> bool { | 1002 | 365k | self.capacity > Self::inline_capacity() | 1003 | 365k | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::spilled Line | Count | Source | 1001 | 313k | pub fn spilled(&self) -> bool { | 1002 | 313k | self.capacity > Self::inline_capacity() | 1003 | 313k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::spilled Line | Count | Source | 1001 | 278k | pub fn spilled(&self) -> bool { | 1002 | 278k | self.capacity > Self::inline_capacity() | 1003 | 278k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::spilled Line | Count | Source | 1001 | 278k | pub fn spilled(&self) -> bool { | 1002 | 278k | self.capacity > Self::inline_capacity() | 1003 | 278k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::spilled Line | Count | Source | 1001 | 364k | pub fn spilled(&self) -> bool { | 1002 | 364k | self.capacity > Self::inline_capacity() | 1003 | 364k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::spilled Line | Count | Source | 1001 | 366k | pub fn spilled(&self) -> bool { | 1002 | 366k | self.capacity > Self::inline_capacity() | 1003 | 366k | } |
<smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::spilled Line | Count | Source | 1001 | 278k | pub fn spilled(&self) -> bool { | 1002 | 278k | self.capacity > Self::inline_capacity() | 1003 | 278k | } |
<smallvec::SmallVec<[u8; 1024]>>::spilled Line | Count | Source | 1001 | 276k | pub fn spilled(&self) -> bool { | 1002 | 276k | self.capacity > Self::inline_capacity() | 1003 | 276k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::spilled <smallvec::SmallVec<[core::option::Option<usize>; 16]>>::spilled Line | Count | Source | 1001 | 9.17k | pub fn spilled(&self) -> bool { | 1002 | 9.17k | self.capacity > Self::inline_capacity() | 1003 | 9.17k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::spilled Line | Count | Source | 1001 | 845k | pub fn spilled(&self) -> bool { | 1002 | 845k | self.capacity > Self::inline_capacity() | 1003 | 845k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::spilled Line | Count | Source | 1001 | 282k | pub fn spilled(&self) -> bool { | 1002 | 282k | self.capacity > Self::inline_capacity() | 1003 | 282k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::spilled Line | Count | Source | 1001 | 2.53M | pub fn spilled(&self) -> bool { | 1002 | 2.53M | self.capacity > Self::inline_capacity() | 1003 | 2.53M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::spilled Line | Count | Source | 1001 | 2.04M | pub fn spilled(&self) -> bool { | 1002 | 2.04M | self.capacity > Self::inline_capacity() | 1003 | 2.04M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::spilled <smallvec::SmallVec<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]>>::spilled Line | Count | Source | 1001 | 2.65M | pub fn spilled(&self) -> bool { | 1002 | 2.65M | self.capacity > Self::inline_capacity() | 1003 | 2.65M | } |
<smallvec::SmallVec<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::spilled Line | Count | Source | 1001 | 1.22M | pub fn spilled(&self) -> bool { | 1002 | 1.22M | self.capacity > Self::inline_capacity() | 1003 | 1.22M | } |
<smallvec::SmallVec<[regalloc2::Allocation; 2]>>::spilled Line | Count | Source | 1001 | 557k | pub fn spilled(&self) -> bool { | 1002 | 557k | self.capacity > Self::inline_capacity() | 1003 | 557k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]>>::spilled Line | Count | Source | 1001 | 61.4k | pub fn spilled(&self) -> bool { | 1002 | 61.4k | self.capacity > Self::inline_capacity() | 1003 | 61.4k | } |
<smallvec::SmallVec<[regalloc2::PReg; 8]>>::spilled Line | Count | Source | 1001 | 3.09M | pub fn spilled(&self) -> bool { | 1002 | 3.09M | self.capacity > Self::inline_capacity() | 1003 | 3.09M | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]>>::spilled <smallvec::SmallVec<[regalloc2::SpillSlot; 8]>>::spilled Line | Count | Source | 1001 | 500k | pub fn spilled(&self) -> bool { | 1002 | 500k | self.capacity > Self::inline_capacity() | 1003 | 500k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]>>::spilled <smallvec::SmallVec<[cranelift_codegen::loop_analysis::Loop; 8]>>::spilled Line | Count | Source | 1001 | 287k | pub fn spilled(&self) -> bool { | 1002 | 287k | self.capacity > Self::inline_capacity() | 1003 | 287k | } |
<smallvec::SmallVec<[regalloc2::index::Block; 16]>>::spilled Line | Count | Source | 1001 | 2.85M | pub fn spilled(&self) -> bool { | 1002 | 2.85M | self.capacity > Self::inline_capacity() | 1003 | 2.85M | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Inst; 2]>>::spilled Line | Count | Source | 1001 | 1.79M | pub fn spilled(&self) -> bool { | 1002 | 1.79M | self.capacity > Self::inline_capacity() | 1003 | 1.79M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Block; 16]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 4]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::spilled <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]>>::spilled Line | Count | Source | 1001 | 706k | pub fn spilled(&self) -> bool { | 1002 | 706k | self.capacity > Self::inline_capacity() | 1003 | 706k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]>>::spilled Line | Count | Source | 1001 | 3.51M | pub fn spilled(&self) -> bool { | 1002 | 3.51M | self.capacity > Self::inline_capacity() | 1003 | 3.51M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]>>::spilled <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::spilled Line | Count | Source | 1001 | 4.28M | pub fn spilled(&self) -> bool { | 1002 | 4.28M | self.capacity > Self::inline_capacity() | 1003 | 4.28M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::spilled Line | Count | Source | 1001 | 731k | pub fn spilled(&self) -> bool { | 1002 | 731k | self.capacity > Self::inline_capacity() | 1003 | 731k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::spilled Line | Count | Source | 1001 | 573k | pub fn spilled(&self) -> bool { | 1002 | 573k | self.capacity > Self::inline_capacity() | 1003 | 573k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::RetPair; 2]>>::spilled Line | Count | Source | 1001 | 8.13k | pub fn spilled(&self) -> bool { | 1002 | 8.13k | self.capacity > Self::inline_capacity() | 1003 | 8.13k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 16]>>::spilled Line | Count | Source | 1001 | 612k | pub fn spilled(&self) -> bool { | 1002 | 612k | self.capacity > Self::inline_capacity() | 1003 | 612k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 4]>>::spilled <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::spilled Line | Count | Source | 1001 | 2.52M | pub fn spilled(&self) -> bool { | 1002 | 2.52M | self.capacity > Self::inline_capacity() | 1003 | 2.52M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::spilled Line | Count | Source | 1001 | 109k | pub fn spilled(&self) -> bool { | 1002 | 109k | self.capacity > Self::inline_capacity() | 1003 | 109k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::spilled <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::spilled Line | Count | Source | 1001 | 544k | pub fn spilled(&self) -> bool { | 1002 | 544k | self.capacity > Self::inline_capacity() | 1003 | 544k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::spilled Line | Count | Source | 1001 | 196k | pub fn spilled(&self) -> bool { | 1002 | 196k | self.capacity > Self::inline_capacity() | 1003 | 196k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::spilled Line | Count | Source | 1001 | 1.57M | pub fn spilled(&self) -> bool { | 1002 | 1.57M | self.capacity > Self::inline_capacity() | 1003 | 1.57M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 2]>>::spilled Line | Count | Source | 1001 | 971k | pub fn spilled(&self) -> bool { | 1002 | 971k | self.capacity > Self::inline_capacity() | 1003 | 971k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::spilled Line | Count | Source | 1001 | 6.68M | pub fn spilled(&self) -> bool { | 1002 | 6.68M | self.capacity > Self::inline_capacity() | 1003 | 6.68M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::spilled Line | Count | Source | 1001 | 29.2k | pub fn spilled(&self) -> bool { | 1002 | 29.2k | self.capacity > Self::inline_capacity() | 1003 | 29.2k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::InsertedMove; 8]>>::spilled Line | Count | Source | 1001 | 1.55M | pub fn spilled(&self) -> bool { | 1002 | 1.55M | self.capacity > Self::inline_capacity() | 1003 | 1.55M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::spilled Line | Count | Source | 1001 | 93.3k | pub fn spilled(&self) -> bool { | 1002 | 93.3k | self.capacity > Self::inline_capacity() | 1003 | 93.3k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::spilled Line | Count | Source | 1001 | 63.0k | pub fn spilled(&self) -> bool { | 1002 | 63.0k | self.capacity > Self::inline_capacity() | 1003 | 63.0k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::spilled Line | Count | Source | 1001 | 8.47M | pub fn spilled(&self) -> bool { | 1002 | 8.47M | self.capacity > Self::inline_capacity() | 1003 | 8.47M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::spilled Line | Count | Source | 1001 | 202M | pub fn spilled(&self) -> bool { | 1002 | 202M | self.capacity > Self::inline_capacity() | 1003 | 202M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::spilled Line | Count | Source | 1001 | 16.7M | pub fn spilled(&self) -> bool { | 1002 | 16.7M | self.capacity > Self::inline_capacity() | 1003 | 16.7M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::spilled Line | Count | Source | 1001 | 4.78M | pub fn spilled(&self) -> bool { | 1002 | 4.78M | self.capacity > Self::inline_capacity() | 1003 | 4.78M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::spilled Line | Count | Source | 1001 | 9.32M | pub fn spilled(&self) -> bool { | 1002 | 9.32M | self.capacity > Self::inline_capacity() | 1003 | 9.32M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>>::spilled Line | Count | Source | 1001 | 1.63M | pub fn spilled(&self) -> bool { | 1002 | 1.63M | self.capacity > Self::inline_capacity() | 1003 | 1.63M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]>>::spilled Line | Count | Source | 1001 | 628k | pub fn spilled(&self) -> bool { | 1002 | 628k | self.capacity > Self::inline_capacity() | 1003 | 628k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::spilled Line | Count | Source | 1001 | 9.40M | pub fn spilled(&self) -> bool { | 1002 | 9.40M | self.capacity > Self::inline_capacity() | 1003 | 9.40M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::spilled <smallvec::SmallVec<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]>>::spilled Line | Count | Source | 1001 | 2.18M | pub fn spilled(&self) -> bool { | 1002 | 2.18M | self.capacity > Self::inline_capacity() | 1003 | 2.18M | } |
<smallvec::SmallVec<[regalloc2::postorder::calculate::State; 64]>>::spilled Line | Count | Source | 1001 | 1.63M | pub fn spilled(&self) -> bool { | 1002 | 1.63M | self.capacity > Self::inline_capacity() | 1003 | 1.63M | } |
<smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::spilled Line | Count | Source | 1001 | 3.13M | pub fn spilled(&self) -> bool { | 1002 | 3.13M | self.capacity > Self::inline_capacity() | 1003 | 3.13M | } |
<smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::spilled Line | Count | Source | 1001 | 2.74M | pub fn spilled(&self) -> bool { | 1002 | 2.74M | self.capacity > Self::inline_capacity() | 1003 | 2.74M | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]>>::spilled Line | Count | Source | 1001 | 1.46M | pub fn spilled(&self) -> bool { | 1002 | 1.46M | self.capacity > Self::inline_capacity() | 1003 | 1.46M | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]>>::spilled Line | Count | Source | 1001 | 21.3k | pub fn spilled(&self) -> bool { | 1002 | 21.3k | self.capacity > Self::inline_capacity() | 1003 | 21.3k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::spilled <smallvec::SmallVec<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::spilled Line | Count | Source | 1001 | 86.9k | pub fn spilled(&self) -> bool { | 1002 | 86.9k | self.capacity > Self::inline_capacity() | 1003 | 86.9k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]>>::spilled <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::spilled Line | Count | Source | 1001 | 469k | pub fn spilled(&self) -> bool { | 1002 | 469k | self.capacity > Self::inline_capacity() | 1003 | 469k | } |
<smallvec::SmallVec<[bool; 16]>>::spilled Line | Count | Source | 1001 | 24.5k | pub fn spilled(&self) -> bool { | 1002 | 24.5k | self.capacity > Self::inline_capacity() | 1003 | 24.5k | } |
<smallvec::SmallVec<[u8; 16]>>::spilled Line | Count | Source | 1001 | 186k | pub fn spilled(&self) -> bool { | 1002 | 186k | self.capacity > Self::inline_capacity() | 1003 | 186k | } |
<smallvec::SmallVec<[u8; 1024]>>::spilled Line | Count | Source | 1001 | 19.4M | pub fn spilled(&self) -> bool { | 1002 | 19.4M | self.capacity > Self::inline_capacity() | 1003 | 19.4M | } |
<smallvec::SmallVec<[u8; 8]>>::spilled Line | Count | Source | 1001 | 386k | pub fn spilled(&self) -> bool { | 1002 | 386k | self.capacity > Self::inline_capacity() | 1003 | 386k | } |
<smallvec::SmallVec<[usize; 16]>>::spilled Line | Count | Source | 1001 | 20.0k | pub fn spilled(&self) -> bool { | 1002 | 20.0k | self.capacity > Self::inline_capacity() | 1003 | 20.0k | } |
<smallvec::SmallVec<[usize; 4]>>::spilled Line | Count | Source | 1001 | 931k | pub fn spilled(&self) -> bool { | 1002 | 931k | self.capacity > Self::inline_capacity() | 1003 | 931k | } |
<smallvec::SmallVec<[u32; 16]>>::spilled Line | Count | Source | 1001 | 2.49M | pub fn spilled(&self) -> bool { | 1002 | 2.49M | self.capacity > Self::inline_capacity() | 1003 | 2.49M | } |
<smallvec::SmallVec<[u32; 64]>>::spilled Line | Count | Source | 1001 | 815k | pub fn spilled(&self) -> bool { | 1002 | 815k | self.capacity > Self::inline_capacity() | 1003 | 815k | } |
<smallvec::SmallVec<[u32; 8]>>::spilled Line | Count | Source | 1001 | 8.13M | pub fn spilled(&self) -> bool { | 1002 | 8.13M | self.capacity > Self::inline_capacity() | 1003 | 8.13M | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]>>::spilled Line | Count | Source | 1001 | 451k | pub fn spilled(&self) -> bool { | 1002 | 451k | self.capacity > Self::inline_capacity() | 1003 | 451k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::spilled Line | Count | Source | 1001 | 17.5k | pub fn spilled(&self) -> bool { | 1002 | 17.5k | self.capacity > Self::inline_capacity() | 1003 | 17.5k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::spilled <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::spilled Line | Count | Source | 1001 | 13.6M | pub fn spilled(&self) -> bool { | 1002 | 13.6M | self.capacity > Self::inline_capacity() | 1003 | 13.6M | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::spilled Line | Count | Source | 1001 | 1.22M | pub fn spilled(&self) -> bool { | 1002 | 1.22M | self.capacity > Self::inline_capacity() | 1003 | 1.22M | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::spilled Line | Count | Source | 1001 | 2.72M | pub fn spilled(&self) -> bool { | 1002 | 2.72M | self.capacity > Self::inline_capacity() | 1003 | 2.72M | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::spilled Line | Count | Source | 1001 | 918k | pub fn spilled(&self) -> bool { | 1002 | 918k | self.capacity > Self::inline_capacity() | 1003 | 918k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[u8; 1024]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::spilled Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::spilled <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::spilled Line | Count | Source | 1001 | 3.26M | pub fn spilled(&self) -> bool { | 1002 | 3.26M | self.capacity > Self::inline_capacity() | 1003 | 3.26M | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::spilled Line | Count | Source | 1001 | 261k | pub fn spilled(&self) -> bool { | 1002 | 261k | self.capacity > Self::inline_capacity() | 1003 | 261k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::spilled Line | Count | Source | 1001 | 1.78M | pub fn spilled(&self) -> bool { | 1002 | 1.78M | self.capacity > Self::inline_capacity() | 1003 | 1.78M | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::spilled Line | Count | Source | 1001 | 196k | pub fn spilled(&self) -> bool { | 1002 | 196k | self.capacity > Self::inline_capacity() | 1003 | 196k | } |
|
1004 | | |
1005 | | /// Creates a draining iterator that removes the specified range in the vector |
1006 | | /// and yields the removed items. |
1007 | | /// |
1008 | | /// Note 1: The element range is removed even if the iterator is only |
1009 | | /// partially consumed or not consumed at all. |
1010 | | /// |
1011 | | /// Note 2: It is unspecified how many elements are removed from the vector |
1012 | | /// if the `Drain` value is leaked. |
1013 | | /// |
1014 | | /// # Panics |
1015 | | /// |
1016 | | /// Panics if the starting point is greater than the end point or if |
1017 | | /// the end point is greater than the length of the vector. |
1018 | 39.0k | pub fn drain<R>(&mut self, range: R) -> Drain<'_, A> |
1019 | 39.0k | where |
1020 | 39.0k | R: RangeBounds<usize>, |
1021 | 39.0k | { |
1022 | 39.0k | use core::ops::Bound::*; |
1023 | 39.0k | |
1024 | 39.0k | let len = self.len(); |
1025 | 39.0k | let start = match range.start_bound() { |
1026 | 0 | Included(&n) => n, |
1027 | 0 | Excluded(&n) => n.checked_add(1).expect("Range start out of bounds"), |
1028 | 39.0k | Unbounded => 0, |
1029 | | }; |
1030 | 39.0k | let end = match range.end_bound() { |
1031 | 0 | Included(&n) => n.checked_add(1).expect("Range end out of bounds"), |
1032 | 978 | Excluded(&n) => n, |
1033 | 38.0k | Unbounded => len, |
1034 | | }; |
1035 | | |
1036 | 39.0k | assert!(start <= end); |
1037 | 39.0k | assert!(end <= len); |
1038 | | |
1039 | | unsafe { |
1040 | 39.0k | self.set_len(start); |
1041 | 39.0k | |
1042 | 39.0k | let range_slice = slice::from_raw_parts(self.as_ptr().add(start), end - start); |
1043 | 39.0k | |
1044 | 39.0k | Drain { |
1045 | 39.0k | tail_start: end, |
1046 | 39.0k | tail_len: len - end, |
1047 | 39.0k | iter: range_slice.iter(), |
1048 | 39.0k | // Since self is a &mut, passing it to a function would invalidate the slice iterator. |
1049 | 39.0k | vec: NonNull::new_unchecked(self as *mut _), |
1050 | 39.0k | } |
1051 | 39.0k | } |
1052 | 39.0k | } <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::drain::<core::ops::range::RangeTo<usize>> Line | Count | Source | 1018 | 978 | pub fn drain<R>(&mut self, range: R) -> Drain<'_, A> | 1019 | 978 | where | 1020 | 978 | R: RangeBounds<usize>, | 1021 | 978 | { | 1022 | 978 | use core::ops::Bound::*; | 1023 | 978 | | 1024 | 978 | let len = self.len(); | 1025 | 978 | let start = match range.start_bound() { | 1026 | 0 | Included(&n) => n, | 1027 | 0 | Excluded(&n) => n.checked_add(1).expect("Range start out of bounds"), | 1028 | 978 | Unbounded => 0, | 1029 | | }; | 1030 | 978 | let end = match range.end_bound() { | 1031 | 0 | Included(&n) => n.checked_add(1).expect("Range end out of bounds"), | 1032 | 978 | Excluded(&n) => n, | 1033 | 0 | Unbounded => len, | 1034 | | }; | 1035 | | | 1036 | 978 | assert!(start <= end); | 1037 | 978 | assert!(end <= len); | 1038 | | | 1039 | | unsafe { | 1040 | 978 | self.set_len(start); | 1041 | 978 | | 1042 | 978 | let range_slice = slice::from_raw_parts(self.as_ptr().add(start), end - start); | 1043 | 978 | | 1044 | 978 | Drain { | 1045 | 978 | tail_start: end, | 1046 | 978 | tail_len: len - end, | 1047 | 978 | iter: range_slice.iter(), | 1048 | 978 | // Since self is a &mut, passing it to a function would invalidate the slice iterator. | 1049 | 978 | vec: NonNull::new_unchecked(self as *mut _), | 1050 | 978 | } | 1051 | 978 | } | 1052 | 978 | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::drain::<core::ops::range::RangeFull> Line | Count | Source | 1018 | 38.0k | pub fn drain<R>(&mut self, range: R) -> Drain<'_, A> | 1019 | 38.0k | where | 1020 | 38.0k | R: RangeBounds<usize>, | 1021 | 38.0k | { | 1022 | 38.0k | use core::ops::Bound::*; | 1023 | 38.0k | | 1024 | 38.0k | let len = self.len(); | 1025 | 38.0k | let start = match range.start_bound() { | 1026 | 0 | Included(&n) => n, | 1027 | 0 | Excluded(&n) => n.checked_add(1).expect("Range start out of bounds"), | 1028 | 38.0k | Unbounded => 0, | 1029 | | }; | 1030 | 38.0k | let end = match range.end_bound() { | 1031 | 0 | Included(&n) => n.checked_add(1).expect("Range end out of bounds"), | 1032 | 0 | Excluded(&n) => n, | 1033 | 38.0k | Unbounded => len, | 1034 | | }; | 1035 | | | 1036 | 38.0k | assert!(start <= end); | 1037 | 38.0k | assert!(end <= len); | 1038 | | | 1039 | | unsafe { | 1040 | 38.0k | self.set_len(start); | 1041 | 38.0k | | 1042 | 38.0k | let range_slice = slice::from_raw_parts(self.as_ptr().add(start), end - start); | 1043 | 38.0k | | 1044 | 38.0k | Drain { | 1045 | 38.0k | tail_start: end, | 1046 | 38.0k | tail_len: len - end, | 1047 | 38.0k | iter: range_slice.iter(), | 1048 | 38.0k | // Since self is a &mut, passing it to a function would invalidate the slice iterator. | 1049 | 38.0k | vec: NonNull::new_unchecked(self as *mut _), | 1050 | 38.0k | } | 1051 | 38.0k | } | 1052 | 38.0k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::drain::<core::ops::range::RangeFull> |
1053 | | |
1054 | | #[cfg(feature = "drain_filter")] |
1055 | | /// Creates an iterator which uses a closure to determine if an element should be removed. |
1056 | | /// |
1057 | | /// If the closure returns true, the element is removed and yielded. If the closure returns |
1058 | | /// false, the element will remain in the vector and will not be yielded by the iterator. |
1059 | | /// |
1060 | | /// Using this method is equivalent to the following code: |
1061 | | /// ``` |
1062 | | /// # use smallvec::SmallVec; |
1063 | | /// # let some_predicate = |x: &mut i32| { *x == 2 || *x == 3 || *x == 6 }; |
1064 | | /// # let mut vec: SmallVec<[i32; 8]> = SmallVec::from_slice(&[1i32, 2, 3, 4, 5, 6]); |
1065 | | /// let mut i = 0; |
1066 | | /// while i < vec.len() { |
1067 | | /// if some_predicate(&mut vec[i]) { |
1068 | | /// let val = vec.remove(i); |
1069 | | /// // your code here |
1070 | | /// } else { |
1071 | | /// i += 1; |
1072 | | /// } |
1073 | | /// } |
1074 | | /// |
1075 | | /// # assert_eq!(vec, SmallVec::<[i32; 8]>::from_slice(&[1i32, 4, 5])); |
1076 | | /// ``` |
1077 | | /// /// |
1078 | | /// But `drain_filter` is easier to use. `drain_filter` is also more efficient, |
1079 | | /// because it can backshift the elements of the array in bulk. |
1080 | | /// |
1081 | | /// Note that `drain_filter` also lets you mutate every element in the filter closure, |
1082 | | /// regardless of whether you choose to keep or remove it. |
1083 | | /// |
1084 | | /// # Examples |
1085 | | /// |
1086 | | /// Splitting an array into evens and odds, reusing the original allocation: |
1087 | | /// |
1088 | | /// ``` |
1089 | | /// # use smallvec::SmallVec; |
1090 | | /// let mut numbers: SmallVec<[i32; 16]> = SmallVec::from_slice(&[1i32, 2, 3, 4, 5, 6, 8, 9, 11, 13, 14, 15]); |
1091 | | /// |
1092 | | /// let evens = numbers.drain_filter(|x| *x % 2 == 0).collect::<SmallVec<[i32; 16]>>(); |
1093 | | /// let odds = numbers; |
1094 | | /// |
1095 | | /// assert_eq!(evens, SmallVec::<[i32; 16]>::from_slice(&[2i32, 4, 6, 8, 14])); |
1096 | | /// assert_eq!(odds, SmallVec::<[i32; 16]>::from_slice(&[1i32, 3, 5, 9, 11, 13, 15])); |
1097 | | /// ``` |
1098 | | pub fn drain_filter<F>(&mut self, filter: F) -> DrainFilter<'_, A, F,> |
1099 | | where |
1100 | | F: FnMut(&mut A::Item) -> bool, |
1101 | | { |
1102 | | let old_len = self.len(); |
1103 | | |
1104 | | // Guard against us getting leaked (leak amplification) |
1105 | | unsafe { |
1106 | | self.set_len(0); |
1107 | | } |
1108 | | |
1109 | | DrainFilter { vec: self, idx: 0, del: 0, old_len, pred: filter, panic_flag: false } |
1110 | | } |
1111 | | |
1112 | | /// Append an item to the vector. |
1113 | | #[inline] |
1114 | 28.5M | pub fn push(&mut self, value: A::Item) { |
1115 | 28.5M | unsafe { |
1116 | 28.5M | let (mut ptr, mut len, cap) = self.triple_mut(); |
1117 | 28.5M | if *len == cap { |
1118 | 223k | self.reserve_one_unchecked(); |
1119 | 223k | let (heap_ptr, heap_len) = self.data.heap_mut(); |
1120 | 223k | ptr = heap_ptr; |
1121 | 223k | len = heap_len; |
1122 | 28.3M | } |
1123 | 28.5M | ptr::write(ptr.as_ptr().add(*len), value); |
1124 | 28.5M | *len += 1; |
1125 | 28.5M | } |
1126 | 28.5M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]>>::push Line | Count | Source | 1114 | 222k | pub fn push(&mut self, value: A::Item) { | 1115 | 222k | unsafe { | 1116 | 222k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 222k | if *len == cap { | 1118 | 66.5k | self.reserve_one_unchecked(); | 1119 | 66.5k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 66.5k | ptr = heap_ptr; | 1121 | 66.5k | len = heap_len; | 1122 | 156k | } | 1123 | 222k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 222k | *len += 1; | 1125 | 222k | } | 1126 | 222k | } |
Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::push <smallvec::SmallVec<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]>>::push Line | Count | Source | 1114 | 223k | pub fn push(&mut self, value: A::Item) { | 1115 | 223k | unsafe { | 1116 | 223k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 223k | if *len == cap { | 1118 | 3 | self.reserve_one_unchecked(); | 1119 | 3 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 3 | ptr = heap_ptr; | 1121 | 3 | len = heap_len; | 1122 | 223k | } | 1123 | 223k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 223k | *len += 1; | 1125 | 223k | } | 1126 | 223k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::push Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::push <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::push Line | Count | Source | 1114 | 756k | pub fn push(&mut self, value: A::Item) { | 1115 | 756k | unsafe { | 1116 | 756k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 756k | if *len == cap { | 1118 | 1.97k | self.reserve_one_unchecked(); | 1119 | 1.97k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 1.97k | ptr = heap_ptr; | 1121 | 1.97k | len = heap_len; | 1122 | 754k | } | 1123 | 756k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 756k | *len += 1; | 1125 | 756k | } | 1126 | 756k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::push Line | Count | Source | 1114 | 479k | pub fn push(&mut self, value: A::Item) { | 1115 | 479k | unsafe { | 1116 | 479k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 479k | if *len == cap { | 1118 | 8.12k | self.reserve_one_unchecked(); | 1119 | 8.12k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 8.12k | ptr = heap_ptr; | 1121 | 8.12k | len = heap_len; | 1122 | 471k | } | 1123 | 479k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 479k | *len += 1; | 1125 | 479k | } | 1126 | 479k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::push <smallvec::SmallVec<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]>>::push Line | Count | Source | 1114 | 458k | pub fn push(&mut self, value: A::Item) { | 1115 | 458k | unsafe { | 1116 | 458k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 458k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 458k | } | 1123 | 458k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 458k | *len += 1; | 1125 | 458k | } | 1126 | 458k | } |
<smallvec::SmallVec<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::push Line | Count | Source | 1114 | 184k | pub fn push(&mut self, value: A::Item) { | 1115 | 184k | unsafe { | 1116 | 184k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 184k | if *len == cap { | 1118 | 426 | self.reserve_one_unchecked(); | 1119 | 426 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 426 | ptr = heap_ptr; | 1121 | 426 | len = heap_len; | 1122 | 184k | } | 1123 | 184k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 184k | *len += 1; | 1125 | 184k | } | 1126 | 184k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::Allocation; 2]>>::push <smallvec::SmallVec<[regalloc2::PReg; 8]>>::push Line | Count | Source | 1114 | 494k | pub fn push(&mut self, value: A::Item) { | 1115 | 494k | unsafe { | 1116 | 494k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 494k | if *len == cap { | 1118 | 7.52k | self.reserve_one_unchecked(); | 1119 | 7.52k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 7.52k | ptr = heap_ptr; | 1121 | 7.52k | len = heap_len; | 1122 | 486k | } | 1123 | 494k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 494k | *len += 1; | 1125 | 494k | } | 1126 | 494k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]>>::push Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::SpillSlot; 8]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]>>::push <smallvec::SmallVec<[cranelift_codegen::loop_analysis::Loop; 8]>>::push Line | Count | Source | 1114 | 2.19k | pub fn push(&mut self, value: A::Item) { | 1115 | 2.19k | unsafe { | 1116 | 2.19k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 2.19k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 2.19k | } | 1123 | 2.19k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 2.19k | *len += 1; | 1125 | 2.19k | } | 1126 | 2.19k | } |
<smallvec::SmallVec<[regalloc2::index::Block; 16]>>::push Line | Count | Source | 1114 | 336k | pub fn push(&mut self, value: A::Item) { | 1115 | 336k | unsafe { | 1116 | 336k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 336k | if *len == cap { | 1118 | 4.76k | self.reserve_one_unchecked(); | 1119 | 4.76k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 4.76k | ptr = heap_ptr; | 1121 | 4.76k | len = heap_len; | 1122 | 332k | } | 1123 | 336k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 336k | *len += 1; | 1125 | 336k | } | 1126 | 336k | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Inst; 2]>>::push Line | Count | Source | 1114 | 192k | pub fn push(&mut self, value: A::Item) { | 1115 | 192k | unsafe { | 1116 | 192k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 192k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 192k | } | 1123 | 192k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 192k | *len += 1; | 1125 | 192k | } | 1126 | 192k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Block; 16]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 4]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]>>::push <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::push Line | Count | Source | 1114 | 711k | pub fn push(&mut self, value: A::Item) { | 1115 | 711k | unsafe { | 1116 | 711k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 711k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 711k | } | 1123 | 711k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 711k | *len += 1; | 1125 | 711k | } | 1126 | 711k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::push Line | Count | Source | 1114 | 205k | pub fn push(&mut self, value: A::Item) { | 1115 | 205k | unsafe { | 1116 | 205k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 205k | if *len == cap { | 1118 | 698 | self.reserve_one_unchecked(); | 1119 | 698 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 698 | ptr = heap_ptr; | 1121 | 698 | len = heap_len; | 1122 | 205k | } | 1123 | 205k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 205k | *len += 1; | 1125 | 205k | } | 1126 | 205k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::push Line | Count | Source | 1114 | 49.6k | pub fn push(&mut self, value: A::Item) { | 1115 | 49.6k | unsafe { | 1116 | 49.6k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 49.6k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 49.6k | } | 1123 | 49.6k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 49.6k | *len += 1; | 1125 | 49.6k | } | 1126 | 49.6k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::RetPair; 2]>>::push Line | Count | Source | 1114 | 1.35k | pub fn push(&mut self, value: A::Item) { | 1115 | 1.35k | unsafe { | 1116 | 1.35k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 1.35k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 1.35k | } | 1123 | 1.35k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 1.35k | *len += 1; | 1125 | 1.35k | } | 1126 | 1.35k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 16]>>::push Line | Count | Source | 1114 | 330 | pub fn push(&mut self, value: A::Item) { | 1115 | 330 | unsafe { | 1116 | 330 | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 330 | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 330 | } | 1123 | 330 | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 330 | *len += 1; | 1125 | 330 | } | 1126 | 330 | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 4]>>::push <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::push Line | Count | Source | 1114 | 218k | pub fn push(&mut self, value: A::Item) { | 1115 | 218k | unsafe { | 1116 | 218k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 218k | if *len == cap { | 1118 | 1.09k | self.reserve_one_unchecked(); | 1119 | 1.09k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 1.09k | ptr = heap_ptr; | 1121 | 1.09k | len = heap_len; | 1122 | 216k | } | 1123 | 218k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 218k | *len += 1; | 1125 | 218k | } | 1126 | 218k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::push Line | Count | Source | 1114 | 104k | pub fn push(&mut self, value: A::Item) { | 1115 | 104k | unsafe { | 1116 | 104k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 104k | if *len == cap { | 1118 | 1.53k | self.reserve_one_unchecked(); | 1119 | 1.53k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 1.53k | ptr = heap_ptr; | 1121 | 1.53k | len = heap_len; | 1122 | 103k | } | 1123 | 104k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 104k | *len += 1; | 1125 | 104k | } | 1126 | 104k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::push <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::push Line | Count | Source | 1114 | 37.2k | pub fn push(&mut self, value: A::Item) { | 1115 | 37.2k | unsafe { | 1116 | 37.2k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 37.2k | if *len == cap { | 1118 | 1.14k | self.reserve_one_unchecked(); | 1119 | 1.14k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 1.14k | ptr = heap_ptr; | 1121 | 1.14k | len = heap_len; | 1122 | 36.0k | } | 1123 | 37.2k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 37.2k | *len += 1; | 1125 | 37.2k | } | 1126 | 37.2k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::push Line | Count | Source | 1114 | 183k | pub fn push(&mut self, value: A::Item) { | 1115 | 183k | unsafe { | 1116 | 183k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 183k | if *len == cap { | 1118 | 4.03k | self.reserve_one_unchecked(); | 1119 | 4.03k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 4.03k | ptr = heap_ptr; | 1121 | 4.03k | len = heap_len; | 1122 | 179k | } | 1123 | 183k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 183k | *len += 1; | 1125 | 183k | } | 1126 | 183k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::push Line | Count | Source | 1114 | 211k | pub fn push(&mut self, value: A::Item) { | 1115 | 211k | unsafe { | 1116 | 211k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 211k | if *len == cap { | 1118 | 6.36k | self.reserve_one_unchecked(); | 1119 | 6.36k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 6.36k | ptr = heap_ptr; | 1121 | 6.36k | len = heap_len; | 1122 | 205k | } | 1123 | 211k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 211k | *len += 1; | 1125 | 211k | } | 1126 | 211k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 2]>>::push Line | Count | Source | 1114 | 195k | pub fn push(&mut self, value: A::Item) { | 1115 | 195k | unsafe { | 1116 | 195k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 195k | if *len == cap { | 1118 | 616 | self.reserve_one_unchecked(); | 1119 | 616 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 616 | ptr = heap_ptr; | 1121 | 616 | len = heap_len; | 1122 | 194k | } | 1123 | 195k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 195k | *len += 1; | 1125 | 195k | } | 1126 | 195k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::push Line | Count | Source | 1114 | 548k | pub fn push(&mut self, value: A::Item) { | 1115 | 548k | unsafe { | 1116 | 548k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 548k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 548k | } | 1123 | 548k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 548k | *len += 1; | 1125 | 548k | } | 1126 | 548k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::push Line | Count | Source | 1114 | 26.7k | pub fn push(&mut self, value: A::Item) { | 1115 | 26.7k | unsafe { | 1116 | 26.7k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 26.7k | if *len == cap { | 1118 | 818 | self.reserve_one_unchecked(); | 1119 | 818 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 818 | ptr = heap_ptr; | 1121 | 818 | len = heap_len; | 1122 | 25.9k | } | 1123 | 26.7k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 26.7k | *len += 1; | 1125 | 26.7k | } | 1126 | 26.7k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::InsertedMove; 8]>>::push Line | Count | Source | 1114 | 159k | pub fn push(&mut self, value: A::Item) { | 1115 | 159k | unsafe { | 1116 | 159k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 159k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 159k | } | 1123 | 159k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 159k | *len += 1; | 1125 | 159k | } | 1126 | 159k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::push Line | Count | Source | 1114 | 12.1k | pub fn push(&mut self, value: A::Item) { | 1115 | 12.1k | unsafe { | 1116 | 12.1k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 12.1k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 12.1k | } | 1123 | 12.1k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 12.1k | *len += 1; | 1125 | 12.1k | } | 1126 | 12.1k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::push Line | Count | Source | 1114 | 28.3k | pub fn push(&mut self, value: A::Item) { | 1115 | 28.3k | unsafe { | 1116 | 28.3k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 28.3k | if *len == cap { | 1118 | 1.03k | self.reserve_one_unchecked(); | 1119 | 1.03k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 1.03k | ptr = heap_ptr; | 1121 | 1.03k | len = heap_len; | 1122 | 27.2k | } | 1123 | 28.3k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 28.3k | *len += 1; | 1125 | 28.3k | } | 1126 | 28.3k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::push Line | Count | Source | 1114 | 921k | pub fn push(&mut self, value: A::Item) { | 1115 | 921k | unsafe { | 1116 | 921k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 921k | if *len == cap { | 1118 | 2.92k | self.reserve_one_unchecked(); | 1119 | 2.92k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 2.92k | ptr = heap_ptr; | 1121 | 2.92k | len = heap_len; | 1122 | 918k | } | 1123 | 921k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 921k | *len += 1; | 1125 | 921k | } | 1126 | 921k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::push Line | Count | Source | 1114 | 1.57M | pub fn push(&mut self, value: A::Item) { | 1115 | 1.57M | unsafe { | 1116 | 1.57M | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 1.57M | if *len == cap { | 1118 | 10.1k | self.reserve_one_unchecked(); | 1119 | 10.1k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 10.1k | ptr = heap_ptr; | 1121 | 10.1k | len = heap_len; | 1122 | 1.56M | } | 1123 | 1.57M | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 1.57M | *len += 1; | 1125 | 1.57M | } | 1126 | 1.57M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::push Line | Count | Source | 1114 | 2.18M | pub fn push(&mut self, value: A::Item) { | 1115 | 2.18M | unsafe { | 1116 | 2.18M | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 2.18M | if *len == cap { | 1118 | 28.5k | self.reserve_one_unchecked(); | 1119 | 28.5k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 28.5k | ptr = heap_ptr; | 1121 | 28.5k | len = heap_len; | 1122 | 2.15M | } | 1123 | 2.18M | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 2.18M | *len += 1; | 1125 | 2.18M | } | 1126 | 2.18M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::push Line | Count | Source | 1114 | 1.44M | pub fn push(&mut self, value: A::Item) { | 1115 | 1.44M | unsafe { | 1116 | 1.44M | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 1.44M | if *len == cap { | 1118 | 21.2k | self.reserve_one_unchecked(); | 1119 | 21.2k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 21.2k | ptr = heap_ptr; | 1121 | 21.2k | len = heap_len; | 1122 | 1.42M | } | 1123 | 1.44M | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 1.44M | *len += 1; | 1125 | 1.44M | } | 1126 | 1.44M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::push Line | Count | Source | 1114 | 368k | pub fn push(&mut self, value: A::Item) { | 1115 | 368k | unsafe { | 1116 | 368k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 368k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 368k | } | 1123 | 368k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 368k | *len += 1; | 1125 | 368k | } | 1126 | 368k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>>::push Line | Count | Source | 1114 | 341k | pub fn push(&mut self, value: A::Item) { | 1115 | 341k | unsafe { | 1116 | 341k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 341k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 341k | } | 1123 | 341k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 341k | *len += 1; | 1125 | 341k | } | 1126 | 341k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]>>::push Line | Count | Source | 1114 | 104k | pub fn push(&mut self, value: A::Item) { | 1115 | 104k | unsafe { | 1116 | 104k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 104k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 104k | } | 1123 | 104k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 104k | *len += 1; | 1125 | 104k | } | 1126 | 104k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::push Line | Count | Source | 1114 | 846k | pub fn push(&mut self, value: A::Item) { | 1115 | 846k | unsafe { | 1116 | 846k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 846k | if *len == cap { | 1118 | 26.0k | self.reserve_one_unchecked(); | 1119 | 26.0k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 26.0k | ptr = heap_ptr; | 1121 | 26.0k | len = heap_len; | 1122 | 820k | } | 1123 | 846k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 846k | *len += 1; | 1125 | 846k | } | 1126 | 846k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::push <smallvec::SmallVec<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]>>::push Line | Count | Source | 1114 | 336k | pub fn push(&mut self, value: A::Item) { | 1115 | 336k | unsafe { | 1116 | 336k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 336k | if *len == cap { | 1118 | 3.81k | self.reserve_one_unchecked(); | 1119 | 3.81k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 3.81k | ptr = heap_ptr; | 1121 | 3.81k | len = heap_len; | 1122 | 333k | } | 1123 | 336k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 336k | *len += 1; | 1125 | 336k | } | 1126 | 336k | } |
<smallvec::SmallVec<[regalloc2::postorder::calculate::State; 64]>>::push Line | Count | Source | 1114 | 336k | pub fn push(&mut self, value: A::Item) { | 1115 | 336k | unsafe { | 1116 | 336k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 336k | if *len == cap { | 1118 | 564 | self.reserve_one_unchecked(); | 1119 | 564 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 564 | ptr = heap_ptr; | 1121 | 564 | len = heap_len; | 1122 | 336k | } | 1123 | 336k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 336k | *len += 1; | 1125 | 336k | } | 1126 | 336k | } |
<smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::push Line | Count | Source | 1114 | 163k | pub fn push(&mut self, value: A::Item) { | 1115 | 163k | unsafe { | 1116 | 163k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 163k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 163k | } | 1123 | 163k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 163k | *len += 1; | 1125 | 163k | } | 1126 | 163k | } |
<smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::push Line | Count | Source | 1114 | 2 | pub fn push(&mut self, value: A::Item) { | 1115 | 2 | unsafe { | 1116 | 2 | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 2 | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 2 | } | 1123 | 2 | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 2 | *len += 1; | 1125 | 2 | } | 1126 | 2 | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]>>::push Line | Count | Source | 1114 | 195k | pub fn push(&mut self, value: A::Item) { | 1115 | 195k | unsafe { | 1116 | 195k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 195k | if *len == cap { | 1118 | 170 | self.reserve_one_unchecked(); | 1119 | 170 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 170 | ptr = heap_ptr; | 1121 | 170 | len = heap_len; | 1122 | 195k | } | 1123 | 195k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 195k | *len += 1; | 1125 | 195k | } | 1126 | 195k | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]>>::push Line | Count | Source | 1114 | 3.56k | pub fn push(&mut self, value: A::Item) { | 1115 | 3.56k | unsafe { | 1116 | 3.56k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 3.56k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 3.56k | } | 1123 | 3.56k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 3.56k | *len += 1; | 1125 | 3.56k | } | 1126 | 3.56k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::push <smallvec::SmallVec<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::push Line | Count | Source | 1114 | 39.7k | pub fn push(&mut self, value: A::Item) { | 1115 | 39.7k | unsafe { | 1116 | 39.7k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 39.7k | if *len == cap { | 1118 | 1.40k | self.reserve_one_unchecked(); | 1119 | 1.40k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 1.40k | ptr = heap_ptr; | 1121 | 1.40k | len = heap_len; | 1122 | 38.3k | } | 1123 | 39.7k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 39.7k | *len += 1; | 1125 | 39.7k | } | 1126 | 39.7k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]>>::push <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::push Line | Count | Source | 1114 | 329k | pub fn push(&mut self, value: A::Item) { | 1115 | 329k | unsafe { | 1116 | 329k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 329k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 329k | } | 1123 | 329k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 329k | *len += 1; | 1125 | 329k | } | 1126 | 329k | } |
Unexecuted instantiation: <smallvec::SmallVec<[u8; 16]>>::push <smallvec::SmallVec<[u8; 1024]>>::push Line | Count | Source | 1114 | 7.08M | pub fn push(&mut self, value: A::Item) { | 1115 | 7.08M | unsafe { | 1116 | 7.08M | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 7.08M | if *len == cap { | 1118 | 1.49k | self.reserve_one_unchecked(); | 1119 | 1.49k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 1.49k | ptr = heap_ptr; | 1121 | 1.49k | len = heap_len; | 1122 | 7.08M | } | 1123 | 7.08M | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 7.08M | *len += 1; | 1125 | 7.08M | } | 1126 | 7.08M | } |
Unexecuted instantiation: <smallvec::SmallVec<[u8; 8]>>::push <smallvec::SmallVec<[usize; 16]>>::push Line | Count | Source | 1114 | 3.08k | pub fn push(&mut self, value: A::Item) { | 1115 | 3.08k | unsafe { | 1116 | 3.08k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 3.08k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 3.08k | } | 1123 | 3.08k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 3.08k | *len += 1; | 1125 | 3.08k | } | 1126 | 3.08k | } |
<smallvec::SmallVec<[usize; 4]>>::push Line | Count | Source | 1114 | 102k | pub fn push(&mut self, value: A::Item) { | 1115 | 102k | unsafe { | 1116 | 102k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 102k | if *len == cap { | 1118 | 108 | self.reserve_one_unchecked(); | 1119 | 108 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 108 | ptr = heap_ptr; | 1121 | 108 | len = heap_len; | 1122 | 102k | } | 1123 | 102k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 102k | *len += 1; | 1125 | 102k | } | 1126 | 102k | } |
<smallvec::SmallVec<[u32; 16]>>::push Line | Count | Source | 1114 | 211k | pub fn push(&mut self, value: A::Item) { | 1115 | 211k | unsafe { | 1116 | 211k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 211k | if *len == cap { | 1118 | 6.36k | self.reserve_one_unchecked(); | 1119 | 6.36k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 6.36k | ptr = heap_ptr; | 1121 | 6.36k | len = heap_len; | 1122 | 205k | } | 1123 | 211k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 211k | *len += 1; | 1125 | 211k | } | 1126 | 211k | } |
<smallvec::SmallVec<[u32; 64]>>::push Line | Count | Source | 1114 | 336k | pub fn push(&mut self, value: A::Item) { | 1115 | 336k | unsafe { | 1116 | 336k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 336k | if *len == cap { | 1118 | 822 | self.reserve_one_unchecked(); | 1119 | 822 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 822 | ptr = heap_ptr; | 1121 | 822 | len = heap_len; | 1122 | 336k | } | 1123 | 336k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 336k | *len += 1; | 1125 | 336k | } | 1126 | 336k | } |
<smallvec::SmallVec<[u32; 8]>>::push Line | Count | Source | 1114 | 986k | pub fn push(&mut self, value: A::Item) { | 1115 | 986k | unsafe { | 1116 | 986k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 986k | if *len == cap { | 1118 | 12.9k | self.reserve_one_unchecked(); | 1119 | 12.9k | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 12.9k | ptr = heap_ptr; | 1121 | 12.9k | len = heap_len; | 1122 | 973k | } | 1123 | 986k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 986k | *len += 1; | 1125 | 986k | } | 1126 | 986k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]>>::push Line | Count | Source | 1114 | 159k | pub fn push(&mut self, value: A::Item) { | 1115 | 159k | unsafe { | 1116 | 159k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 159k | if *len == cap { | 1118 | 418 | self.reserve_one_unchecked(); | 1119 | 418 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 418 | ptr = heap_ptr; | 1121 | 418 | len = heap_len; | 1122 | 159k | } | 1123 | 159k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 159k | *len += 1; | 1125 | 159k | } | 1126 | 159k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::push Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::push Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::push Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::push Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::push Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::push Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::push Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::push Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::push Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::push <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::push Line | Count | Source | 1114 | 3.42M | pub fn push(&mut self, value: A::Item) { | 1115 | 3.42M | unsafe { | 1116 | 3.42M | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 3.42M | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 3.42M | } | 1123 | 3.42M | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 3.42M | *len += 1; | 1125 | 3.42M | } | 1126 | 3.42M | } |
Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::push <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::push Line | Count | Source | 1114 | 61.3k | pub fn push(&mut self, value: A::Item) { | 1115 | 61.3k | unsafe { | 1116 | 61.3k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 61.3k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 61.3k | } | 1123 | 61.3k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 61.3k | *len += 1; | 1125 | 61.3k | } | 1126 | 61.3k | } |
Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::push Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::push Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::push Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::push Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::push <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::push Line | Count | Source | 1114 | 816k | pub fn push(&mut self, value: A::Item) { | 1115 | 816k | unsafe { | 1116 | 816k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 816k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 816k | } | 1123 | 816k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 816k | *len += 1; | 1125 | 816k | } | 1126 | 816k | } |
Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::push <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::push Line | Count | Source | 1114 | 119k | pub fn push(&mut self, value: A::Item) { | 1115 | 119k | unsafe { | 1116 | 119k | let (mut ptr, mut len, cap) = self.triple_mut(); | 1117 | 119k | if *len == cap { | 1118 | 0 | self.reserve_one_unchecked(); | 1119 | 0 | let (heap_ptr, heap_len) = self.data.heap_mut(); | 1120 | 0 | ptr = heap_ptr; | 1121 | 0 | len = heap_len; | 1122 | 119k | } | 1123 | 119k | ptr::write(ptr.as_ptr().add(*len), value); | 1124 | 119k | *len += 1; | 1125 | 119k | } | 1126 | 119k | } |
Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::push |
1127 | | |
1128 | | /// Remove an item from the end of the vector and return it, or None if empty. |
1129 | | #[inline] |
1130 | 1.33M | pub fn pop(&mut self) -> Option<A::Item> { |
1131 | 1.33M | unsafe { |
1132 | 1.33M | let (ptr, len_ptr, _) = self.triple_mut(); |
1133 | 1.33M | let ptr: *const _ = ptr.as_ptr(); |
1134 | 1.33M | if *len_ptr == 0 { |
1135 | 3.08k | return None; |
1136 | 1.33M | } |
1137 | 1.33M | let last_index = *len_ptr - 1; |
1138 | 1.33M | *len_ptr = last_index; |
1139 | 1.33M | Some(ptr::read(ptr.add(last_index))) |
1140 | | } |
1141 | 1.33M | } Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::pop <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::pop Line | Count | Source | 1130 | 148k | pub fn pop(&mut self) -> Option<A::Item> { | 1131 | 148k | unsafe { | 1132 | 148k | let (ptr, len_ptr, _) = self.triple_mut(); | 1133 | 148k | let ptr: *const _ = ptr.as_ptr(); | 1134 | 148k | if *len_ptr == 0 { | 1135 | 0 | return None; | 1136 | 148k | } | 1137 | 148k | let last_index = *len_ptr - 1; | 1138 | 148k | *len_ptr = last_index; | 1139 | 148k | Some(ptr::read(ptr.add(last_index))) | 1140 | | } | 1141 | 148k | } |
<smallvec::SmallVec<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::pop Line | Count | Source | 1130 | 184k | pub fn pop(&mut self) -> Option<A::Item> { | 1131 | 184k | unsafe { | 1132 | 184k | let (ptr, len_ptr, _) = self.triple_mut(); | 1133 | 184k | let ptr: *const _ = ptr.as_ptr(); | 1134 | 184k | if *len_ptr == 0 { | 1135 | 0 | return None; | 1136 | 184k | } | 1137 | 184k | let last_index = *len_ptr - 1; | 1138 | 184k | *len_ptr = last_index; | 1139 | 184k | Some(ptr::read(ptr.add(last_index))) | 1140 | | } | 1141 | 184k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]>>::pop <smallvec::SmallVec<[cranelift_codegen::loop_analysis::Loop; 8]>>::pop Line | Count | Source | 1130 | 2.19k | pub fn pop(&mut self) -> Option<A::Item> { | 1131 | 2.19k | unsafe { | 1132 | 2.19k | let (ptr, len_ptr, _) = self.triple_mut(); | 1133 | 2.19k | let ptr: *const _ = ptr.as_ptr(); | 1134 | 2.19k | if *len_ptr == 0 { | 1135 | 0 | return None; | 1136 | 2.19k | } | 1137 | 2.19k | let last_index = *len_ptr - 1; | 1138 | 2.19k | *len_ptr = last_index; | 1139 | 2.19k | Some(ptr::read(ptr.add(last_index))) | 1140 | | } | 1141 | 2.19k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Block; 16]>>::pop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 4]>>::pop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::pop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 4]>>::pop <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::pop Line | Count | Source | 1130 | 174k | pub fn pop(&mut self) -> Option<A::Item> { | 1131 | 174k | unsafe { | 1132 | 174k | let (ptr, len_ptr, _) = self.triple_mut(); | 1133 | 174k | let ptr: *const _ = ptr.as_ptr(); | 1134 | 174k | if *len_ptr == 0 { | 1135 | 0 | return None; | 1136 | 174k | } | 1137 | 174k | let last_index = *len_ptr - 1; | 1138 | 174k | *len_ptr = last_index; | 1139 | 174k | Some(ptr::read(ptr.add(last_index))) | 1140 | | } | 1141 | 174k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::pop Line | Count | Source | 1130 | 11.3k | pub fn pop(&mut self) -> Option<A::Item> { | 1131 | 11.3k | unsafe { | 1132 | 11.3k | let (ptr, len_ptr, _) = self.triple_mut(); | 1133 | 11.3k | let ptr: *const _ = ptr.as_ptr(); | 1134 | 11.3k | if *len_ptr == 0 { | 1135 | 0 | return None; | 1136 | 11.3k | } | 1137 | 11.3k | let last_index = *len_ptr - 1; | 1138 | 11.3k | *len_ptr = last_index; | 1139 | 11.3k | Some(ptr::read(ptr.add(last_index))) | 1140 | | } | 1141 | 11.3k | } |
<smallvec::SmallVec<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]>>::pop Line | Count | Source | 1130 | 336k | pub fn pop(&mut self) -> Option<A::Item> { | 1131 | 336k | unsafe { | 1132 | 336k | let (ptr, len_ptr, _) = self.triple_mut(); | 1133 | 336k | let ptr: *const _ = ptr.as_ptr(); | 1134 | 336k | if *len_ptr == 0 { | 1135 | 0 | return None; | 1136 | 336k | } | 1137 | 336k | let last_index = *len_ptr - 1; | 1138 | 336k | *len_ptr = last_index; | 1139 | 336k | Some(ptr::read(ptr.add(last_index))) | 1140 | | } | 1141 | 336k | } |
<smallvec::SmallVec<[regalloc2::postorder::calculate::State; 64]>>::pop Line | Count | Source | 1130 | 336k | pub fn pop(&mut self) -> Option<A::Item> { | 1131 | 336k | unsafe { | 1132 | 336k | let (ptr, len_ptr, _) = self.triple_mut(); | 1133 | 336k | let ptr: *const _ = ptr.as_ptr(); | 1134 | 336k | if *len_ptr == 0 { | 1135 | 0 | return None; | 1136 | 336k | } | 1137 | 336k | let last_index = *len_ptr - 1; | 1138 | 336k | *len_ptr = last_index; | 1139 | 336k | Some(ptr::read(ptr.add(last_index))) | 1140 | | } | 1141 | 336k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::pop <smallvec::SmallVec<[usize; 16]>>::pop Line | Count | Source | 1130 | 6.17k | pub fn pop(&mut self) -> Option<A::Item> { | 1131 | 6.17k | unsafe { | 1132 | 6.17k | let (ptr, len_ptr, _) = self.triple_mut(); | 1133 | 6.17k | let ptr: *const _ = ptr.as_ptr(); | 1134 | 6.17k | if *len_ptr == 0 { | 1135 | 3.08k | return None; | 1136 | 3.08k | } | 1137 | 3.08k | let last_index = *len_ptr - 1; | 1138 | 3.08k | *len_ptr = last_index; | 1139 | 3.08k | Some(ptr::read(ptr.add(last_index))) | 1140 | | } | 1141 | 6.17k | } |
<smallvec::SmallVec<[usize; 4]>>::pop Line | Count | Source | 1130 | 2.19k | pub fn pop(&mut self) -> Option<A::Item> { | 1131 | 2.19k | unsafe { | 1132 | 2.19k | let (ptr, len_ptr, _) = self.triple_mut(); | 1133 | 2.19k | let ptr: *const _ = ptr.as_ptr(); | 1134 | 2.19k | if *len_ptr == 0 { | 1135 | 0 | return None; | 1136 | 2.19k | } | 1137 | 2.19k | let last_index = *len_ptr - 1; | 1138 | 2.19k | *len_ptr = last_index; | 1139 | 2.19k | Some(ptr::read(ptr.add(last_index))) | 1140 | | } | 1141 | 2.19k | } |
<smallvec::SmallVec<[u32; 8]>>::pop Line | Count | Source | 1130 | 136k | pub fn pop(&mut self) -> Option<A::Item> { | 1131 | 136k | unsafe { | 1132 | 136k | let (ptr, len_ptr, _) = self.triple_mut(); | 1133 | 136k | let ptr: *const _ = ptr.as_ptr(); | 1134 | 136k | if *len_ptr == 0 { | 1135 | 0 | return None; | 1136 | 136k | } | 1137 | 136k | let last_index = *len_ptr - 1; | 1138 | 136k | *len_ptr = last_index; | 1139 | 136k | Some(ptr::read(ptr.add(last_index))) | 1140 | | } | 1141 | 136k | } |
|
1142 | | |
1143 | | /// Moves all the elements of `other` into `self`, leaving `other` empty. |
1144 | | /// |
1145 | | /// # Example |
1146 | | /// |
1147 | | /// ``` |
1148 | | /// # use smallvec::{SmallVec, smallvec}; |
1149 | | /// let mut v0: SmallVec<[u8; 16]> = smallvec![1, 2, 3]; |
1150 | | /// let mut v1: SmallVec<[u8; 32]> = smallvec![4, 5, 6]; |
1151 | | /// v0.append(&mut v1); |
1152 | | /// assert_eq!(*v0, [1, 2, 3, 4, 5, 6]); |
1153 | | /// assert_eq!(*v1, []); |
1154 | | /// ``` |
1155 | | pub fn append<B>(&mut self, other: &mut SmallVec<B>) |
1156 | | where |
1157 | | B: Array<Item = A::Item>, |
1158 | | { |
1159 | | self.extend(other.drain(..)) |
1160 | | } |
1161 | | |
1162 | | /// Re-allocate to set the capacity to `max(new_cap, inline_size())`. |
1163 | | /// |
1164 | | /// Panics if `new_cap` is less than the vector's length |
1165 | | /// or if the capacity computation overflows `usize`. |
1166 | 2.58k | pub fn grow(&mut self, new_cap: usize) { |
1167 | 2.58k | infallible(self.try_grow(new_cap)) |
1168 | 2.58k | } <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::grow Line | Count | Source | 1166 | 12 | pub fn grow(&mut self, new_cap: usize) { | 1167 | 12 | infallible(self.try_grow(new_cap)) | 1168 | 12 | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::grow Line | Count | Source | 1166 | 2.57k | pub fn grow(&mut self, new_cap: usize) { | 1167 | 2.57k | infallible(self.try_grow(new_cap)) | 1168 | 2.57k | } |
|
1169 | | |
1170 | | /// Re-allocate to set the capacity to `max(new_cap, inline_size())`. |
1171 | | /// |
1172 | | /// Panics if `new_cap` is less than the vector's length |
1173 | 373k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { |
1174 | 373k | unsafe { |
1175 | 373k | let unspilled = !self.spilled(); |
1176 | 373k | let (ptr, &mut len, cap) = self.triple_mut(); |
1177 | 373k | assert!(new_cap >= len); |
1178 | 373k | if new_cap <= Self::inline_capacity() { |
1179 | 0 | if unspilled { |
1180 | 0 | return Ok(()); |
1181 | 0 | } |
1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); |
1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); |
1184 | 0 | self.capacity = len; |
1185 | 0 | deallocate(ptr, cap); |
1186 | 373k | } else if new_cap != cap { |
1187 | 373k | let layout = layout_array::<A::Item>(new_cap)?; |
1188 | 373k | debug_assert!(layout.size() > 0); |
1189 | | let new_alloc; |
1190 | 373k | if unspilled { |
1191 | 251k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) |
1192 | 251k | .ok_or(CollectionAllocErr::AllocErr { layout })? |
1193 | 251k | .cast(); |
1194 | 251k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); |
1195 | | } else { |
1196 | | // This should never fail since the same succeeded |
1197 | | // when previously allocating `ptr`. |
1198 | 122k | let old_layout = layout_array::<A::Item>(cap)?; |
1199 | | |
1200 | 122k | let new_ptr = |
1201 | 122k | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); |
1202 | 122k | new_alloc = NonNull::new(new_ptr) |
1203 | 122k | .ok_or(CollectionAllocErr::AllocErr { layout })? |
1204 | 122k | .cast(); |
1205 | | } |
1206 | 373k | self.data = SmallVecData::from_heap(new_alloc, len); |
1207 | 373k | self.capacity = new_cap; |
1208 | 0 | } |
1209 | 373k | Ok(()) |
1210 | | } |
1211 | 373k | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]>>::try_grow Line | Count | Source | 1173 | 66.8k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 66.8k | unsafe { | 1175 | 66.8k | let unspilled = !self.spilled(); | 1176 | 66.8k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 66.8k | assert!(new_cap >= len); | 1178 | 66.8k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 66.8k | } else if new_cap != cap { | 1187 | 66.8k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 66.8k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 66.8k | if unspilled { | 1191 | 16.7k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 16.7k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 16.7k | .cast(); | 1194 | 16.7k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 50.0k | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 50.0k | let new_ptr = | 1201 | 50.0k | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 50.0k | new_alloc = NonNull::new(new_ptr) | 1203 | 50.0k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 50.0k | .cast(); | 1205 | | } | 1206 | 66.8k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 66.8k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 66.8k | Ok(()) | 1210 | | } | 1211 | 66.8k | } |
Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::try_grow <smallvec::SmallVec<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]>>::try_grow Line | Count | Source | 1173 | 3 | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 3 | unsafe { | 1175 | 3 | let unspilled = !self.spilled(); | 1176 | 3 | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 3 | assert!(new_cap >= len); | 1178 | 3 | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 3 | } else if new_cap != cap { | 1187 | 3 | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 3 | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 3 | if unspilled { | 1191 | 3 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 3 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 3 | .cast(); | 1194 | 3 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 0 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 0 | let new_ptr = | 1201 | 0 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 0 | new_alloc = NonNull::new(new_ptr) | 1203 | 0 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 0 | .cast(); | 1205 | | } | 1206 | 3 | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 3 | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 3 | Ok(()) | 1210 | | } | 1211 | 3 | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::try_grow <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::try_grow Line | Count | Source | 1173 | 1.63k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 1.63k | unsafe { | 1175 | 1.63k | let unspilled = !self.spilled(); | 1176 | 1.63k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 1.63k | assert!(new_cap >= len); | 1178 | 1.63k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 1.63k | } else if new_cap != cap { | 1187 | 1.63k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 1.63k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 1.63k | if unspilled { | 1191 | 1.63k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 1.63k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 1.63k | .cast(); | 1194 | 1.63k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 0 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 0 | let new_ptr = | 1201 | 0 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 0 | new_alloc = NonNull::new(new_ptr) | 1203 | 0 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 0 | .cast(); | 1205 | | } | 1206 | 1.63k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 1.63k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 1.63k | Ok(()) | 1210 | | } | 1211 | 1.63k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::try_grow Line | Count | Source | 1173 | 1.97k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 1.97k | unsafe { | 1175 | 1.97k | let unspilled = !self.spilled(); | 1176 | 1.97k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 1.97k | assert!(new_cap >= len); | 1178 | 1.97k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 1.97k | } else if new_cap != cap { | 1187 | 1.97k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 1.97k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 1.97k | if unspilled { | 1191 | 1.63k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 1.63k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 1.63k | .cast(); | 1194 | 1.63k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 334 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 334 | let new_ptr = | 1201 | 334 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 334 | new_alloc = NonNull::new(new_ptr) | 1203 | 334 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 334 | .cast(); | 1205 | | } | 1206 | 1.97k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 1.97k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 1.97k | Ok(()) | 1210 | | } | 1211 | 1.97k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::try_grow Line | Count | Source | 1173 | 8.12k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 8.12k | unsafe { | 1175 | 8.12k | let unspilled = !self.spilled(); | 1176 | 8.12k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 8.12k | assert!(new_cap >= len); | 1178 | 8.12k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 8.12k | } else if new_cap != cap { | 1187 | 8.12k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 8.12k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 8.12k | if unspilled { | 1191 | 3.48k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 3.48k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 3.48k | .cast(); | 1194 | 3.48k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 4.63k | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 4.63k | let new_ptr = | 1201 | 4.63k | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 4.63k | new_alloc = NonNull::new(new_ptr) | 1203 | 4.63k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 4.63k | .cast(); | 1205 | | } | 1206 | 8.12k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 8.12k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 8.12k | Ok(()) | 1210 | | } | 1211 | 8.12k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]>>::try_grow <smallvec::SmallVec<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::try_grow Line | Count | Source | 1173 | 426 | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 426 | unsafe { | 1175 | 426 | let unspilled = !self.spilled(); | 1176 | 426 | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 426 | assert!(new_cap >= len); | 1178 | 426 | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 426 | } else if new_cap != cap { | 1187 | 426 | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 426 | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 426 | if unspilled { | 1191 | 256 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 256 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 256 | .cast(); | 1194 | 256 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 170 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 170 | let new_ptr = | 1201 | 170 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 170 | new_alloc = NonNull::new(new_ptr) | 1203 | 170 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 170 | .cast(); | 1205 | | } | 1206 | 426 | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 426 | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 426 | Ok(()) | 1210 | | } | 1211 | 426 | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::Allocation; 2]>>::try_grow <smallvec::SmallVec<[regalloc2::PReg; 8]>>::try_grow Line | Count | Source | 1173 | 7.52k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 7.52k | unsafe { | 1175 | 7.52k | let unspilled = !self.spilled(); | 1176 | 7.52k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 7.52k | assert!(new_cap >= len); | 1178 | 7.52k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 7.52k | } else if new_cap != cap { | 1187 | 7.52k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 7.52k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 7.52k | if unspilled { | 1191 | 7.52k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 7.52k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 7.52k | .cast(); | 1194 | 7.52k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 0 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 0 | let new_ptr = | 1201 | 0 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 0 | new_alloc = NonNull::new(new_ptr) | 1203 | 0 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 0 | .cast(); | 1205 | | } | 1206 | 7.52k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 7.52k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 7.52k | Ok(()) | 1210 | | } | 1211 | 7.52k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::SpillSlot; 8]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::loop_analysis::Loop; 8]>>::try_grow <smallvec::SmallVec<[regalloc2::index::Block; 16]>>::try_grow Line | Count | Source | 1173 | 5.22k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 5.22k | unsafe { | 1175 | 5.22k | let unspilled = !self.spilled(); | 1176 | 5.22k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 5.22k | assert!(new_cap >= len); | 1178 | 5.22k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 5.22k | } else if new_cap != cap { | 1187 | 5.22k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 5.22k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 5.22k | if unspilled { | 1191 | 2.52k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 2.52k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 2.52k | .cast(); | 1194 | 2.52k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 2.69k | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 2.69k | let new_ptr = | 1201 | 2.69k | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 2.69k | new_alloc = NonNull::new(new_ptr) | 1203 | 2.69k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 2.69k | .cast(); | 1205 | | } | 1206 | 5.22k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 5.22k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 5.22k | Ok(()) | 1210 | | } | 1211 | 5.22k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Inst; 2]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Block; 16]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 4]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::try_grow <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]>>::try_grow Line | Count | Source | 1173 | 650 | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 650 | unsafe { | 1175 | 650 | let unspilled = !self.spilled(); | 1176 | 650 | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 650 | assert!(new_cap >= len); | 1178 | 650 | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 650 | } else if new_cap != cap { | 1187 | 650 | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 650 | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 650 | if unspilled { | 1191 | 650 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 650 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 650 | .cast(); | 1194 | 650 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 0 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 0 | let new_ptr = | 1201 | 0 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 0 | new_alloc = NonNull::new(new_ptr) | 1203 | 0 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 0 | .cast(); | 1205 | | } | 1206 | 650 | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 650 | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 650 | Ok(()) | 1210 | | } | 1211 | 650 | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::try_grow <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::try_grow Line | Count | Source | 1173 | 698 | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 698 | unsafe { | 1175 | 698 | let unspilled = !self.spilled(); | 1176 | 698 | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 698 | assert!(new_cap >= len); | 1178 | 698 | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 698 | } else if new_cap != cap { | 1187 | 698 | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 698 | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 698 | if unspilled { | 1191 | 698 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 698 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 698 | .cast(); | 1194 | 698 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 0 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 0 | let new_ptr = | 1201 | 0 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 0 | new_alloc = NonNull::new(new_ptr) | 1203 | 0 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 0 | .cast(); | 1205 | | } | 1206 | 698 | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 698 | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 698 | Ok(()) | 1210 | | } | 1211 | 698 | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::RetPair; 2]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 16]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 4]>>::try_grow <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::try_grow Line | Count | Source | 1173 | 1.09k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 1.09k | unsafe { | 1175 | 1.09k | let unspilled = !self.spilled(); | 1176 | 1.09k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 1.09k | assert!(new_cap >= len); | 1178 | 1.09k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 1.09k | } else if new_cap != cap { | 1187 | 1.09k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 1.09k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 1.09k | if unspilled { | 1191 | 388 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 388 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 388 | .cast(); | 1194 | 388 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 706 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 706 | let new_ptr = | 1201 | 706 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 706 | new_alloc = NonNull::new(new_ptr) | 1203 | 706 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 706 | .cast(); | 1205 | | } | 1206 | 1.09k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 1.09k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 1.09k | Ok(()) | 1210 | | } | 1211 | 1.09k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::try_grow Line | Count | Source | 1173 | 1.53k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 1.53k | unsafe { | 1175 | 1.53k | let unspilled = !self.spilled(); | 1176 | 1.53k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 1.53k | assert!(new_cap >= len); | 1178 | 1.53k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 1.53k | } else if new_cap != cap { | 1187 | 1.53k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 1.53k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 1.53k | if unspilled { | 1191 | 872 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 872 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 872 | .cast(); | 1194 | 872 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 662 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 662 | let new_ptr = | 1201 | 662 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 662 | new_alloc = NonNull::new(new_ptr) | 1203 | 662 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 662 | .cast(); | 1205 | | } | 1206 | 1.53k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 1.53k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 1.53k | Ok(()) | 1210 | | } | 1211 | 1.53k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::try_grow <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::try_grow Line | Count | Source | 1173 | 1.14k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 1.14k | unsafe { | 1175 | 1.14k | let unspilled = !self.spilled(); | 1176 | 1.14k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 1.14k | assert!(new_cap >= len); | 1178 | 1.14k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 1.14k | } else if new_cap != cap { | 1187 | 1.14k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 1.14k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 1.14k | if unspilled { | 1191 | 846 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 846 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 846 | .cast(); | 1194 | 846 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 298 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 298 | let new_ptr = | 1201 | 298 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 298 | new_alloc = NonNull::new(new_ptr) | 1203 | 298 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 298 | .cast(); | 1205 | | } | 1206 | 1.14k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 1.14k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 1.14k | Ok(()) | 1210 | | } | 1211 | 1.14k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::try_grow Line | Count | Source | 1173 | 4.03k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 4.03k | unsafe { | 1175 | 4.03k | let unspilled = !self.spilled(); | 1176 | 4.03k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 4.03k | assert!(new_cap >= len); | 1178 | 4.03k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 4.03k | } else if new_cap != cap { | 1187 | 4.03k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 4.03k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 4.03k | if unspilled { | 1191 | 1.99k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 1.99k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 1.99k | .cast(); | 1194 | 1.99k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 2.04k | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 2.04k | let new_ptr = | 1201 | 2.04k | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 2.04k | new_alloc = NonNull::new(new_ptr) | 1203 | 2.04k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 2.04k | .cast(); | 1205 | | } | 1206 | 4.03k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 4.03k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 4.03k | Ok(()) | 1210 | | } | 1211 | 4.03k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::try_grow Line | Count | Source | 1173 | 8.50k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 8.50k | unsafe { | 1175 | 8.50k | let unspilled = !self.spilled(); | 1176 | 8.50k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 8.50k | assert!(new_cap >= len); | 1178 | 8.50k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 8.50k | } else if new_cap != cap { | 1187 | 8.50k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 8.50k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 8.50k | if unspilled { | 1191 | 4.93k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 4.93k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 4.93k | .cast(); | 1194 | 4.93k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 3.57k | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 3.57k | let new_ptr = | 1201 | 3.57k | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 3.57k | new_alloc = NonNull::new(new_ptr) | 1203 | 3.57k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 3.57k | .cast(); | 1205 | | } | 1206 | 8.50k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 8.50k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 8.50k | Ok(()) | 1210 | | } | 1211 | 8.50k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 2]>>::try_grow Line | Count | Source | 1173 | 616 | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 616 | unsafe { | 1175 | 616 | let unspilled = !self.spilled(); | 1176 | 616 | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 616 | assert!(new_cap >= len); | 1178 | 616 | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 616 | } else if new_cap != cap { | 1187 | 616 | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 616 | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 616 | if unspilled { | 1191 | 330 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 330 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 330 | .cast(); | 1194 | 330 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 286 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 286 | let new_ptr = | 1201 | 286 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 286 | new_alloc = NonNull::new(new_ptr) | 1203 | 286 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 286 | .cast(); | 1205 | | } | 1206 | 616 | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 616 | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 616 | Ok(()) | 1210 | | } | 1211 | 616 | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::try_grow Line | Count | Source | 1173 | 78.5k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 78.5k | unsafe { | 1175 | 78.5k | let unspilled = !self.spilled(); | 1176 | 78.5k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 78.5k | assert!(new_cap >= len); | 1178 | 78.5k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 78.5k | } else if new_cap != cap { | 1187 | 78.5k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 78.5k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 78.5k | if unspilled { | 1191 | 74.1k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 74.1k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 74.1k | .cast(); | 1194 | 74.1k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 4.37k | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 4.37k | let new_ptr = | 1201 | 4.37k | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 4.37k | new_alloc = NonNull::new(new_ptr) | 1203 | 4.37k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 4.37k | .cast(); | 1205 | | } | 1206 | 78.5k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 78.5k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 78.5k | Ok(()) | 1210 | | } | 1211 | 78.5k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::try_grow Line | Count | Source | 1173 | 818 | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 818 | unsafe { | 1175 | 818 | let unspilled = !self.spilled(); | 1176 | 818 | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 818 | assert!(new_cap >= len); | 1178 | 818 | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 818 | } else if new_cap != cap { | 1187 | 818 | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 818 | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 818 | if unspilled { | 1191 | 426 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 426 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 426 | .cast(); | 1194 | 426 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 392 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 392 | let new_ptr = | 1201 | 392 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 392 | new_alloc = NonNull::new(new_ptr) | 1203 | 392 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 392 | .cast(); | 1205 | | } | 1206 | 818 | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 818 | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 818 | Ok(()) | 1210 | | } | 1211 | 818 | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::InsertedMove; 8]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::try_grow <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::try_grow Line | Count | Source | 1173 | 1.03k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 1.03k | unsafe { | 1175 | 1.03k | let unspilled = !self.spilled(); | 1176 | 1.03k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 1.03k | assert!(new_cap >= len); | 1178 | 1.03k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 1.03k | } else if new_cap != cap { | 1187 | 1.03k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 1.03k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 1.03k | if unspilled { | 1191 | 540 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 540 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 540 | .cast(); | 1194 | 540 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 490 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 490 | let new_ptr = | 1201 | 490 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 490 | new_alloc = NonNull::new(new_ptr) | 1203 | 490 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 490 | .cast(); | 1205 | | } | 1206 | 1.03k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 1.03k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 1.03k | Ok(()) | 1210 | | } | 1211 | 1.03k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::try_grow Line | Count | Source | 1173 | 2.92k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 2.92k | unsafe { | 1175 | 2.92k | let unspilled = !self.spilled(); | 1176 | 2.92k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 2.92k | assert!(new_cap >= len); | 1178 | 2.92k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 2.92k | } else if new_cap != cap { | 1187 | 2.92k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 2.92k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 2.92k | if unspilled { | 1191 | 1.43k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 1.43k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 1.43k | .cast(); | 1194 | 1.43k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 1.49k | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 1.49k | let new_ptr = | 1201 | 1.49k | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 1.49k | new_alloc = NonNull::new(new_ptr) | 1203 | 1.49k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 1.49k | .cast(); | 1205 | | } | 1206 | 2.92k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 2.92k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 2.92k | Ok(()) | 1210 | | } | 1211 | 2.92k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::try_grow Line | Count | Source | 1173 | 22.6k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 22.6k | unsafe { | 1175 | 22.6k | let unspilled = !self.spilled(); | 1176 | 22.6k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 22.6k | assert!(new_cap >= len); | 1178 | 22.6k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 22.6k | } else if new_cap != cap { | 1187 | 22.6k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 22.6k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 22.6k | if unspilled { | 1191 | 15.3k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 15.3k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 15.3k | .cast(); | 1194 | 15.3k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 7.26k | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 7.26k | let new_ptr = | 1201 | 7.26k | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 7.26k | new_alloc = NonNull::new(new_ptr) | 1203 | 7.26k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 7.26k | .cast(); | 1205 | | } | 1206 | 22.6k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 22.6k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 22.6k | Ok(()) | 1210 | | } | 1211 | 22.6k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::try_grow Line | Count | Source | 1173 | 41.7k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 41.7k | unsafe { | 1175 | 41.7k | let unspilled = !self.spilled(); | 1176 | 41.7k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 41.7k | assert!(new_cap >= len); | 1178 | 41.7k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 41.7k | } else if new_cap != cap { | 1187 | 41.7k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 41.7k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 41.7k | if unspilled { | 1191 | 29.2k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 29.2k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 29.2k | .cast(); | 1194 | 29.2k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 12.5k | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 12.5k | let new_ptr = | 1201 | 12.5k | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 12.5k | new_alloc = NonNull::new(new_ptr) | 1203 | 12.5k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 12.5k | .cast(); | 1205 | | } | 1206 | 41.7k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 41.7k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 41.7k | Ok(()) | 1210 | | } | 1211 | 41.7k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::try_grow Line | Count | Source | 1173 | 21.2k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 21.2k | unsafe { | 1175 | 21.2k | let unspilled = !self.spilled(); | 1176 | 21.2k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 21.2k | assert!(new_cap >= len); | 1178 | 21.2k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 21.2k | } else if new_cap != cap { | 1187 | 21.2k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 21.2k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 21.2k | if unspilled { | 1191 | 8.47k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 8.47k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 8.47k | .cast(); | 1194 | 8.47k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 12.7k | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 12.7k | let new_ptr = | 1201 | 12.7k | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 12.7k | new_alloc = NonNull::new(new_ptr) | 1203 | 12.7k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 12.7k | .cast(); | 1205 | | } | 1206 | 21.2k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 21.2k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 21.2k | Ok(()) | 1210 | | } | 1211 | 21.2k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]>>::try_grow <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::try_grow Line | Count | Source | 1173 | 63.1k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 63.1k | unsafe { | 1175 | 63.1k | let unspilled = !self.spilled(); | 1176 | 63.1k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 63.1k | assert!(new_cap >= len); | 1178 | 63.1k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 63.1k | } else if new_cap != cap { | 1187 | 63.1k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 63.1k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 63.1k | if unspilled { | 1191 | 60.9k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 60.9k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 60.9k | .cast(); | 1194 | 60.9k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 2.20k | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 2.20k | let new_ptr = | 1201 | 2.20k | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 2.20k | new_alloc = NonNull::new(new_ptr) | 1203 | 2.20k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 2.20k | .cast(); | 1205 | | } | 1206 | 63.1k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 63.1k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 63.1k | Ok(()) | 1210 | | } | 1211 | 63.1k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::try_grow <smallvec::SmallVec<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]>>::try_grow Line | Count | Source | 1173 | 3.81k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 3.81k | unsafe { | 1175 | 3.81k | let unspilled = !self.spilled(); | 1176 | 3.81k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 3.81k | assert!(new_cap >= len); | 1178 | 3.81k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 3.81k | } else if new_cap != cap { | 1187 | 3.81k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 3.81k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 3.81k | if unspilled { | 1191 | 1.86k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 1.86k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 1.86k | .cast(); | 1194 | 1.86k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 1.94k | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 1.94k | let new_ptr = | 1201 | 1.94k | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 1.94k | new_alloc = NonNull::new(new_ptr) | 1203 | 1.94k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 1.94k | .cast(); | 1205 | | } | 1206 | 3.81k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 3.81k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 3.81k | Ok(()) | 1210 | | } | 1211 | 3.81k | } |
<smallvec::SmallVec<[regalloc2::postorder::calculate::State; 64]>>::try_grow Line | Count | Source | 1173 | 564 | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 564 | unsafe { | 1175 | 564 | let unspilled = !self.spilled(); | 1176 | 564 | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 564 | assert!(new_cap >= len); | 1178 | 564 | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 564 | } else if new_cap != cap { | 1187 | 564 | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 564 | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 564 | if unspilled { | 1191 | 518 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 518 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 518 | .cast(); | 1194 | 518 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 46 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 46 | let new_ptr = | 1201 | 46 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 46 | new_alloc = NonNull::new(new_ptr) | 1203 | 46 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 46 | .cast(); | 1205 | | } | 1206 | 564 | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 564 | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 564 | Ok(()) | 1210 | | } | 1211 | 564 | } |
Unexecuted instantiation: <smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::try_grow <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]>>::try_grow Line | Count | Source | 1173 | 170 | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 170 | unsafe { | 1175 | 170 | let unspilled = !self.spilled(); | 1176 | 170 | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 170 | assert!(new_cap >= len); | 1178 | 170 | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 170 | } else if new_cap != cap { | 1187 | 170 | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 170 | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 170 | if unspilled { | 1191 | 140 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 140 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 140 | .cast(); | 1194 | 140 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 30 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 30 | let new_ptr = | 1201 | 30 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 30 | new_alloc = NonNull::new(new_ptr) | 1203 | 30 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 30 | .cast(); | 1205 | | } | 1206 | 170 | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 170 | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 170 | Ok(()) | 1210 | | } | 1211 | 170 | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::try_grow <smallvec::SmallVec<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::try_grow Line | Count | Source | 1173 | 1.40k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 1.40k | unsafe { | 1175 | 1.40k | let unspilled = !self.spilled(); | 1176 | 1.40k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 1.40k | assert!(new_cap >= len); | 1178 | 1.40k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 1.40k | } else if new_cap != cap { | 1187 | 1.40k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 1.40k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 1.40k | if unspilled { | 1191 | 660 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 660 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 660 | .cast(); | 1194 | 660 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 748 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 748 | let new_ptr = | 1201 | 748 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 748 | new_alloc = NonNull::new(new_ptr) | 1203 | 748 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 748 | .cast(); | 1205 | | } | 1206 | 1.40k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 1.40k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 1.40k | Ok(()) | 1210 | | } | 1211 | 1.40k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[u8; 16]>>::try_grow <smallvec::SmallVec<[u8; 1024]>>::try_grow Line | Count | Source | 1173 | 2.92k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 2.92k | unsafe { | 1175 | 2.92k | let unspilled = !self.spilled(); | 1176 | 2.92k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 2.92k | assert!(new_cap >= len); | 1178 | 2.92k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 2.92k | } else if new_cap != cap { | 1187 | 2.92k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 2.92k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 2.92k | if unspilled { | 1191 | 2.05k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 2.05k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 2.05k | .cast(); | 1194 | 2.05k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 866 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 866 | let new_ptr = | 1201 | 866 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 866 | new_alloc = NonNull::new(new_ptr) | 1203 | 866 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 866 | .cast(); | 1205 | | } | 1206 | 2.92k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 2.92k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 2.92k | Ok(()) | 1210 | | } | 1211 | 2.92k | } |
Unexecuted instantiation: <smallvec::SmallVec<[u8; 8]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[usize; 16]>>::try_grow <smallvec::SmallVec<[usize; 4]>>::try_grow Line | Count | Source | 1173 | 108 | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 108 | unsafe { | 1175 | 108 | let unspilled = !self.spilled(); | 1176 | 108 | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 108 | assert!(new_cap >= len); | 1178 | 108 | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 108 | } else if new_cap != cap { | 1187 | 108 | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 108 | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 108 | if unspilled { | 1191 | 60 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 60 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 60 | .cast(); | 1194 | 60 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 48 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 48 | let new_ptr = | 1201 | 48 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 48 | new_alloc = NonNull::new(new_ptr) | 1203 | 48 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 48 | .cast(); | 1205 | | } | 1206 | 108 | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 108 | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 108 | Ok(()) | 1210 | | } | 1211 | 108 | } |
<smallvec::SmallVec<[u32; 16]>>::try_grow Line | Count | Source | 1173 | 8.50k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 8.50k | unsafe { | 1175 | 8.50k | let unspilled = !self.spilled(); | 1176 | 8.50k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 8.50k | assert!(new_cap >= len); | 1178 | 8.50k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 8.50k | } else if new_cap != cap { | 1187 | 8.50k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 8.50k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 8.50k | if unspilled { | 1191 | 4.93k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 4.93k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 4.93k | .cast(); | 1194 | 4.93k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 3.57k | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 3.57k | let new_ptr = | 1201 | 3.57k | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 3.57k | new_alloc = NonNull::new(new_ptr) | 1203 | 3.57k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 3.57k | .cast(); | 1205 | | } | 1206 | 8.50k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 8.50k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 8.50k | Ok(()) | 1210 | | } | 1211 | 8.50k | } |
<smallvec::SmallVec<[u32; 64]>>::try_grow Line | Count | Source | 1173 | 822 | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 822 | unsafe { | 1175 | 822 | let unspilled = !self.spilled(); | 1176 | 822 | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 822 | assert!(new_cap >= len); | 1178 | 822 | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 822 | } else if new_cap != cap { | 1187 | 822 | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 822 | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 822 | if unspilled { | 1191 | 650 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 650 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 650 | .cast(); | 1194 | 650 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 172 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 172 | let new_ptr = | 1201 | 172 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 172 | new_alloc = NonNull::new(new_ptr) | 1203 | 172 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 172 | .cast(); | 1205 | | } | 1206 | 822 | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 822 | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 822 | Ok(()) | 1210 | | } | 1211 | 822 | } |
<smallvec::SmallVec<[u32; 8]>>::try_grow Line | Count | Source | 1173 | 12.9k | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 12.9k | unsafe { | 1175 | 12.9k | let unspilled = !self.spilled(); | 1176 | 12.9k | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 12.9k | assert!(new_cap >= len); | 1178 | 12.9k | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 12.9k | } else if new_cap != cap { | 1187 | 12.9k | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 12.9k | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 12.9k | if unspilled { | 1191 | 5.14k | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 5.14k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 5.14k | .cast(); | 1194 | 5.14k | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 7.84k | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 7.84k | let new_ptr = | 1201 | 7.84k | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 7.84k | new_alloc = NonNull::new(new_ptr) | 1203 | 7.84k | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 7.84k | .cast(); | 1205 | | } | 1206 | 12.9k | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 12.9k | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 12.9k | Ok(()) | 1210 | | } | 1211 | 12.9k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]>>::try_grow Line | Count | Source | 1173 | 418 | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 418 | unsafe { | 1175 | 418 | let unspilled = !self.spilled(); | 1176 | 418 | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 418 | assert!(new_cap >= len); | 1178 | 418 | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 418 | } else if new_cap != cap { | 1187 | 418 | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 418 | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 418 | if unspilled { | 1191 | 178 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 178 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 178 | .cast(); | 1194 | 178 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 240 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 240 | let new_ptr = | 1201 | 240 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 240 | new_alloc = NonNull::new(new_ptr) | 1203 | 240 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 240 | .cast(); | 1205 | | } | 1206 | 418 | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 418 | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 418 | Ok(()) | 1210 | | } | 1211 | 418 | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::try_grow <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::try_grow Line | Count | Source | 1173 | 58 | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 58 | unsafe { | 1175 | 58 | let unspilled = !self.spilled(); | 1176 | 58 | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 58 | assert!(new_cap >= len); | 1178 | 58 | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 58 | } else if new_cap != cap { | 1187 | 58 | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 58 | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 58 | if unspilled { | 1191 | 58 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 58 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 58 | .cast(); | 1194 | 58 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 0 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 0 | let new_ptr = | 1201 | 0 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 0 | new_alloc = NonNull::new(new_ptr) | 1203 | 0 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 0 | .cast(); | 1205 | | } | 1206 | 58 | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 58 | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 58 | Ok(()) | 1210 | | } | 1211 | 58 | } |
Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::try_grow <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::try_grow Line | Count | Source | 1173 | 58 | pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { | 1174 | 58 | unsafe { | 1175 | 58 | let unspilled = !self.spilled(); | 1176 | 58 | let (ptr, &mut len, cap) = self.triple_mut(); | 1177 | 58 | assert!(new_cap >= len); | 1178 | 58 | if new_cap <= Self::inline_capacity() { | 1179 | 0 | if unspilled { | 1180 | 0 | return Ok(()); | 1181 | 0 | } | 1182 | 0 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1183 | 0 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1184 | 0 | self.capacity = len; | 1185 | 0 | deallocate(ptr, cap); | 1186 | 58 | } else if new_cap != cap { | 1187 | 58 | let layout = layout_array::<A::Item>(new_cap)?; | 1188 | 58 | debug_assert!(layout.size() > 0); | 1189 | | let new_alloc; | 1190 | 58 | if unspilled { | 1191 | 58 | new_alloc = NonNull::new(alloc::alloc::alloc(layout)) | 1192 | 58 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1193 | 58 | .cast(); | 1194 | 58 | ptr::copy_nonoverlapping(ptr.as_ptr(), new_alloc.as_ptr(), len); | 1195 | | } else { | 1196 | | // This should never fail since the same succeeded | 1197 | | // when previously allocating `ptr`. | 1198 | 0 | let old_layout = layout_array::<A::Item>(cap)?; | 1199 | | | 1200 | 0 | let new_ptr = | 1201 | 0 | alloc::alloc::realloc(ptr.as_ptr() as *mut u8, old_layout, layout.size()); | 1202 | 0 | new_alloc = NonNull::new(new_ptr) | 1203 | 0 | .ok_or(CollectionAllocErr::AllocErr { layout })? | 1204 | 0 | .cast(); | 1205 | | } | 1206 | 58 | self.data = SmallVecData::from_heap(new_alloc, len); | 1207 | 58 | self.capacity = new_cap; | 1208 | 0 | } | 1209 | 58 | Ok(()) | 1210 | | } | 1211 | 58 | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::try_grow Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::try_grow |
1212 | | |
1213 | | /// Reserve capacity for `additional` more elements to be inserted. |
1214 | | /// |
1215 | | /// May reserve more space to avoid frequent reallocations. |
1216 | | /// |
1217 | | /// Panics if the capacity computation overflows `usize`. |
1218 | | #[inline] |
1219 | 6.36M | pub fn reserve(&mut self, additional: usize) { |
1220 | 6.36M | infallible(self.try_reserve(additional)) |
1221 | 6.36M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]>>::reserve Line | Count | Source | 1219 | 376k | pub fn reserve(&mut self, additional: usize) { | 1220 | 376k | infallible(self.try_reserve(additional)) | 1221 | 376k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::reserve <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::reserve Line | Count | Source | 1219 | 211k | pub fn reserve(&mut self, additional: usize) { | 1220 | 211k | infallible(self.try_reserve(additional)) | 1221 | 211k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::reserve Line | Count | Source | 1219 | 139k | pub fn reserve(&mut self, additional: usize) { | 1220 | 139k | infallible(self.try_reserve(additional)) | 1221 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]>>::reserve <smallvec::SmallVec<[regalloc2::index::Block; 16]>>::reserve Line | Count | Source | 1219 | 278k | pub fn reserve(&mut self, additional: usize) { | 1220 | 278k | infallible(self.try_reserve(additional)) | 1221 | 278k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]>>::reserve <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]>>::reserve Line | Count | Source | 1219 | 139k | pub fn reserve(&mut self, additional: usize) { | 1220 | 139k | infallible(self.try_reserve(additional)) | 1221 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]>>::reserve Line | Count | Source | 1219 | 702k | pub fn reserve(&mut self, additional: usize) { | 1220 | 702k | infallible(self.try_reserve(additional)) | 1221 | 702k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]>>::reserve <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::reserve Line | Count | Source | 1219 | 49.6k | pub fn reserve(&mut self, additional: usize) { | 1220 | 49.6k | infallible(self.try_reserve(additional)) | 1221 | 49.6k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::reserve Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::reserve <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::reserve Line | Count | Source | 1219 | 139k | pub fn reserve(&mut self, additional: usize) { | 1220 | 139k | infallible(self.try_reserve(additional)) | 1221 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::reserve Line | Count | Source | 1219 | 395k | pub fn reserve(&mut self, additional: usize) { | 1220 | 395k | infallible(self.try_reserve(additional)) | 1221 | 395k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::reserve Line | Count | Source | 1219 | 6.05k | pub fn reserve(&mut self, additional: usize) { | 1220 | 6.05k | infallible(self.try_reserve(additional)) | 1221 | 6.05k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::reserve Line | Count | Source | 1219 | 1.37M | pub fn reserve(&mut self, additional: usize) { | 1220 | 1.37M | infallible(self.try_reserve(additional)) | 1221 | 1.37M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::reserve Line | Count | Source | 1219 | 80.4k | pub fn reserve(&mut self, additional: usize) { | 1220 | 80.4k | infallible(self.try_reserve(additional)) | 1221 | 80.4k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::reserve Line | Count | Source | 1219 | 666k | pub fn reserve(&mut self, additional: usize) { | 1220 | 666k | infallible(self.try_reserve(additional)) | 1221 | 666k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::reserve Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::reserve Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::reserve Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::reserve Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::reserve Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::reserve Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::reserve Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]>>::reserve <smallvec::SmallVec<[u8; 16]>>::reserve Line | Count | Source | 1219 | 37.2k | pub fn reserve(&mut self, additional: usize) { | 1220 | 37.2k | infallible(self.try_reserve(additional)) | 1221 | 37.2k | } |
<smallvec::SmallVec<[u8; 1024]>>::reserve Line | Count | Source | 1219 | 707k | pub fn reserve(&mut self, additional: usize) { | 1220 | 707k | infallible(self.try_reserve(additional)) | 1221 | 707k | } |
<smallvec::SmallVec<[u8; 8]>>::reserve Line | Count | Source | 1219 | 82.4k | pub fn reserve(&mut self, additional: usize) { | 1220 | 82.4k | infallible(self.try_reserve(additional)) | 1221 | 82.4k | } |
<smallvec::SmallVec<[u32; 16]>>::reserve Line | Count | Source | 1219 | 139k | pub fn reserve(&mut self, additional: usize) { | 1220 | 139k | infallible(self.try_reserve(additional)) | 1221 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::Allocation; 4]>>::reserve Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::reserve Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::reserve Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::reserve Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::reserve Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::reserve Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::reserve Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::reserve <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::reserve Line | Count | Source | 1219 | 153k | pub fn reserve(&mut self, additional: usize) { | 1220 | 153k | infallible(self.try_reserve(additional)) | 1221 | 153k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::reserve Line | Count | Source | 1219 | 347k | pub fn reserve(&mut self, additional: usize) { | 1220 | 347k | infallible(self.try_reserve(additional)) | 1221 | 347k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::reserve Line | Count | Source | 1219 | 153k | pub fn reserve(&mut self, additional: usize) { | 1220 | 153k | infallible(self.try_reserve(additional)) | 1221 | 153k | } |
Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::reserve Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::reserve <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::reserve Line | Count | Source | 1219 | 32.6k | pub fn reserve(&mut self, additional: usize) { | 1220 | 32.6k | infallible(self.try_reserve(additional)) | 1221 | 32.6k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::reserve Line | Count | Source | 1219 | 120k | pub fn reserve(&mut self, additional: usize) { | 1220 | 120k | infallible(self.try_reserve(additional)) | 1221 | 120k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::reserve Line | Count | Source | 1219 | 32.6k | pub fn reserve(&mut self, additional: usize) { | 1220 | 32.6k | infallible(self.try_reserve(additional)) | 1221 | 32.6k | } |
|
1222 | | |
1223 | | /// Internal method used to grow in push() and insert(), where we know already we have to grow. |
1224 | | #[cold] |
1225 | 223k | fn reserve_one_unchecked(&mut self) { |
1226 | 223k | debug_assert_eq!(self.len(), self.capacity()); |
1227 | 223k | let new_cap = self.len() |
1228 | 223k | .checked_add(1) |
1229 | 223k | .and_then(usize::checked_next_power_of_two) |
1230 | 223k | .expect("capacity overflow"); |
1231 | 223k | infallible(self.try_grow(new_cap)) |
1232 | 223k | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]>>::reserve_one_unchecked Line | Count | Source | 1225 | 66.5k | fn reserve_one_unchecked(&mut self) { | 1226 | 66.5k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 66.5k | let new_cap = self.len() | 1228 | 66.5k | .checked_add(1) | 1229 | 66.5k | .and_then(usize::checked_next_power_of_two) | 1230 | 66.5k | .expect("capacity overflow"); | 1231 | 66.5k | infallible(self.try_grow(new_cap)) | 1232 | 66.5k | } |
Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::reserve_one_unchecked <smallvec::SmallVec<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]>>::reserve_one_unchecked Line | Count | Source | 1225 | 3 | fn reserve_one_unchecked(&mut self) { | 1226 | 3 | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 3 | let new_cap = self.len() | 1228 | 3 | .checked_add(1) | 1229 | 3 | .and_then(usize::checked_next_power_of_two) | 1230 | 3 | .expect("capacity overflow"); | 1231 | 3 | infallible(self.try_grow(new_cap)) | 1232 | 3 | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::reserve_one_unchecked <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::reserve_one_unchecked Line | Count | Source | 1225 | 1.97k | fn reserve_one_unchecked(&mut self) { | 1226 | 1.97k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 1.97k | let new_cap = self.len() | 1228 | 1.97k | .checked_add(1) | 1229 | 1.97k | .and_then(usize::checked_next_power_of_two) | 1230 | 1.97k | .expect("capacity overflow"); | 1231 | 1.97k | infallible(self.try_grow(new_cap)) | 1232 | 1.97k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::reserve_one_unchecked Line | Count | Source | 1225 | 8.12k | fn reserve_one_unchecked(&mut self) { | 1226 | 8.12k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 8.12k | let new_cap = self.len() | 1228 | 8.12k | .checked_add(1) | 1229 | 8.12k | .and_then(usize::checked_next_power_of_two) | 1230 | 8.12k | .expect("capacity overflow"); | 1231 | 8.12k | infallible(self.try_grow(new_cap)) | 1232 | 8.12k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]>>::reserve_one_unchecked <smallvec::SmallVec<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]>>::reserve_one_unchecked Line | Count | Source | 1225 | 426 | fn reserve_one_unchecked(&mut self) { | 1226 | 426 | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 426 | let new_cap = self.len() | 1228 | 426 | .checked_add(1) | 1229 | 426 | .and_then(usize::checked_next_power_of_two) | 1230 | 426 | .expect("capacity overflow"); | 1231 | 426 | infallible(self.try_grow(new_cap)) | 1232 | 426 | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::Allocation; 2]>>::reserve_one_unchecked <smallvec::SmallVec<[regalloc2::PReg; 8]>>::reserve_one_unchecked Line | Count | Source | 1225 | 7.52k | fn reserve_one_unchecked(&mut self) { | 1226 | 7.52k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 7.52k | let new_cap = self.len() | 1228 | 7.52k | .checked_add(1) | 1229 | 7.52k | .and_then(usize::checked_next_power_of_two) | 1230 | 7.52k | .expect("capacity overflow"); | 1231 | 7.52k | infallible(self.try_grow(new_cap)) | 1232 | 7.52k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::SpillSlot; 8]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::loop_analysis::Loop; 8]>>::reserve_one_unchecked <smallvec::SmallVec<[regalloc2::index::Block; 16]>>::reserve_one_unchecked Line | Count | Source | 1225 | 4.76k | fn reserve_one_unchecked(&mut self) { | 1226 | 4.76k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 4.76k | let new_cap = self.len() | 1228 | 4.76k | .checked_add(1) | 1229 | 4.76k | .and_then(usize::checked_next_power_of_two) | 1230 | 4.76k | .expect("capacity overflow"); | 1231 | 4.76k | infallible(self.try_grow(new_cap)) | 1232 | 4.76k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Inst; 2]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Block; 16]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 4]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::reserve_one_unchecked <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::reserve_one_unchecked Line | Count | Source | 1225 | 698 | fn reserve_one_unchecked(&mut self) { | 1226 | 698 | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 698 | let new_cap = self.len() | 1228 | 698 | .checked_add(1) | 1229 | 698 | .and_then(usize::checked_next_power_of_two) | 1230 | 698 | .expect("capacity overflow"); | 1231 | 698 | infallible(self.try_grow(new_cap)) | 1232 | 698 | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::RetPair; 2]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 16]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 4]>>::reserve_one_unchecked <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::reserve_one_unchecked Line | Count | Source | 1225 | 1.09k | fn reserve_one_unchecked(&mut self) { | 1226 | 1.09k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 1.09k | let new_cap = self.len() | 1228 | 1.09k | .checked_add(1) | 1229 | 1.09k | .and_then(usize::checked_next_power_of_two) | 1230 | 1.09k | .expect("capacity overflow"); | 1231 | 1.09k | infallible(self.try_grow(new_cap)) | 1232 | 1.09k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]>>::reserve_one_unchecked Line | Count | Source | 1225 | 1.53k | fn reserve_one_unchecked(&mut self) { | 1226 | 1.53k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 1.53k | let new_cap = self.len() | 1228 | 1.53k | .checked_add(1) | 1229 | 1.53k | .and_then(usize::checked_next_power_of_two) | 1230 | 1.53k | .expect("capacity overflow"); | 1231 | 1.53k | infallible(self.try_grow(new_cap)) | 1232 | 1.53k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]>>::reserve_one_unchecked <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::reserve_one_unchecked Line | Count | Source | 1225 | 1.14k | fn reserve_one_unchecked(&mut self) { | 1226 | 1.14k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 1.14k | let new_cap = self.len() | 1228 | 1.14k | .checked_add(1) | 1229 | 1.14k | .and_then(usize::checked_next_power_of_two) | 1230 | 1.14k | .expect("capacity overflow"); | 1231 | 1.14k | infallible(self.try_grow(new_cap)) | 1232 | 1.14k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]>>::reserve_one_unchecked Line | Count | Source | 1225 | 4.03k | fn reserve_one_unchecked(&mut self) { | 1226 | 4.03k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 4.03k | let new_cap = self.len() | 1228 | 4.03k | .checked_add(1) | 1229 | 4.03k | .and_then(usize::checked_next_power_of_two) | 1230 | 4.03k | .expect("capacity overflow"); | 1231 | 4.03k | infallible(self.try_grow(new_cap)) | 1232 | 4.03k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::reserve_one_unchecked Line | Count | Source | 1225 | 6.36k | fn reserve_one_unchecked(&mut self) { | 1226 | 6.36k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 6.36k | let new_cap = self.len() | 1228 | 6.36k | .checked_add(1) | 1229 | 6.36k | .and_then(usize::checked_next_power_of_two) | 1230 | 6.36k | .expect("capacity overflow"); | 1231 | 6.36k | infallible(self.try_grow(new_cap)) | 1232 | 6.36k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 2]>>::reserve_one_unchecked Line | Count | Source | 1225 | 616 | fn reserve_one_unchecked(&mut self) { | 1226 | 616 | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 616 | let new_cap = self.len() | 1228 | 616 | .checked_add(1) | 1229 | 616 | .and_then(usize::checked_next_power_of_two) | 1230 | 616 | .expect("capacity overflow"); | 1231 | 616 | infallible(self.try_grow(new_cap)) | 1232 | 616 | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::reserve_one_unchecked <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]>>::reserve_one_unchecked Line | Count | Source | 1225 | 818 | fn reserve_one_unchecked(&mut self) { | 1226 | 818 | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 818 | let new_cap = self.len() | 1228 | 818 | .checked_add(1) | 1229 | 818 | .and_then(usize::checked_next_power_of_two) | 1230 | 818 | .expect("capacity overflow"); | 1231 | 818 | infallible(self.try_grow(new_cap)) | 1232 | 818 | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::InsertedMove; 8]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::reserve_one_unchecked <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::reserve_one_unchecked Line | Count | Source | 1225 | 1.03k | fn reserve_one_unchecked(&mut self) { | 1226 | 1.03k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 1.03k | let new_cap = self.len() | 1228 | 1.03k | .checked_add(1) | 1229 | 1.03k | .and_then(usize::checked_next_power_of_two) | 1230 | 1.03k | .expect("capacity overflow"); | 1231 | 1.03k | infallible(self.try_grow(new_cap)) | 1232 | 1.03k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::reserve_one_unchecked Line | Count | Source | 1225 | 2.92k | fn reserve_one_unchecked(&mut self) { | 1226 | 2.92k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 2.92k | let new_cap = self.len() | 1228 | 2.92k | .checked_add(1) | 1229 | 2.92k | .and_then(usize::checked_next_power_of_two) | 1230 | 2.92k | .expect("capacity overflow"); | 1231 | 2.92k | infallible(self.try_grow(new_cap)) | 1232 | 2.92k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::reserve_one_unchecked Line | Count | Source | 1225 | 10.1k | fn reserve_one_unchecked(&mut self) { | 1226 | 10.1k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 10.1k | let new_cap = self.len() | 1228 | 10.1k | .checked_add(1) | 1229 | 10.1k | .and_then(usize::checked_next_power_of_two) | 1230 | 10.1k | .expect("capacity overflow"); | 1231 | 10.1k | infallible(self.try_grow(new_cap)) | 1232 | 10.1k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::reserve_one_unchecked Line | Count | Source | 1225 | 28.5k | fn reserve_one_unchecked(&mut self) { | 1226 | 28.5k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 28.5k | let new_cap = self.len() | 1228 | 28.5k | .checked_add(1) | 1229 | 28.5k | .and_then(usize::checked_next_power_of_two) | 1230 | 28.5k | .expect("capacity overflow"); | 1231 | 28.5k | infallible(self.try_grow(new_cap)) | 1232 | 28.5k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::reserve_one_unchecked Line | Count | Source | 1225 | 21.2k | fn reserve_one_unchecked(&mut self) { | 1226 | 21.2k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 21.2k | let new_cap = self.len() | 1228 | 21.2k | .checked_add(1) | 1229 | 21.2k | .and_then(usize::checked_next_power_of_two) | 1230 | 21.2k | .expect("capacity overflow"); | 1231 | 21.2k | infallible(self.try_grow(new_cap)) | 1232 | 21.2k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]>>::reserve_one_unchecked <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::reserve_one_unchecked Line | Count | Source | 1225 | 26.0k | fn reserve_one_unchecked(&mut self) { | 1226 | 26.0k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 26.0k | let new_cap = self.len() | 1228 | 26.0k | .checked_add(1) | 1229 | 26.0k | .and_then(usize::checked_next_power_of_two) | 1230 | 26.0k | .expect("capacity overflow"); | 1231 | 26.0k | infallible(self.try_grow(new_cap)) | 1232 | 26.0k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::reserve_one_unchecked <smallvec::SmallVec<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]>>::reserve_one_unchecked Line | Count | Source | 1225 | 3.81k | fn reserve_one_unchecked(&mut self) { | 1226 | 3.81k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 3.81k | let new_cap = self.len() | 1228 | 3.81k | .checked_add(1) | 1229 | 3.81k | .and_then(usize::checked_next_power_of_two) | 1230 | 3.81k | .expect("capacity overflow"); | 1231 | 3.81k | infallible(self.try_grow(new_cap)) | 1232 | 3.81k | } |
<smallvec::SmallVec<[regalloc2::postorder::calculate::State; 64]>>::reserve_one_unchecked Line | Count | Source | 1225 | 564 | fn reserve_one_unchecked(&mut self) { | 1226 | 564 | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 564 | let new_cap = self.len() | 1228 | 564 | .checked_add(1) | 1229 | 564 | .and_then(usize::checked_next_power_of_two) | 1230 | 564 | .expect("capacity overflow"); | 1231 | 564 | infallible(self.try_grow(new_cap)) | 1232 | 564 | } |
Unexecuted instantiation: <smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::reserve_one_unchecked <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]>>::reserve_one_unchecked Line | Count | Source | 1225 | 170 | fn reserve_one_unchecked(&mut self) { | 1226 | 170 | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 170 | let new_cap = self.len() | 1228 | 170 | .checked_add(1) | 1229 | 170 | .and_then(usize::checked_next_power_of_two) | 1230 | 170 | .expect("capacity overflow"); | 1231 | 170 | infallible(self.try_grow(new_cap)) | 1232 | 170 | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::reserve_one_unchecked <smallvec::SmallVec<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::reserve_one_unchecked Line | Count | Source | 1225 | 1.40k | fn reserve_one_unchecked(&mut self) { | 1226 | 1.40k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 1.40k | let new_cap = self.len() | 1228 | 1.40k | .checked_add(1) | 1229 | 1.40k | .and_then(usize::checked_next_power_of_two) | 1230 | 1.40k | .expect("capacity overflow"); | 1231 | 1.40k | infallible(self.try_grow(new_cap)) | 1232 | 1.40k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[u8; 16]>>::reserve_one_unchecked <smallvec::SmallVec<[u8; 1024]>>::reserve_one_unchecked Line | Count | Source | 1225 | 1.49k | fn reserve_one_unchecked(&mut self) { | 1226 | 1.49k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 1.49k | let new_cap = self.len() | 1228 | 1.49k | .checked_add(1) | 1229 | 1.49k | .and_then(usize::checked_next_power_of_two) | 1230 | 1.49k | .expect("capacity overflow"); | 1231 | 1.49k | infallible(self.try_grow(new_cap)) | 1232 | 1.49k | } |
Unexecuted instantiation: <smallvec::SmallVec<[u8; 8]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[usize; 16]>>::reserve_one_unchecked <smallvec::SmallVec<[usize; 4]>>::reserve_one_unchecked Line | Count | Source | 1225 | 108 | fn reserve_one_unchecked(&mut self) { | 1226 | 108 | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 108 | let new_cap = self.len() | 1228 | 108 | .checked_add(1) | 1229 | 108 | .and_then(usize::checked_next_power_of_two) | 1230 | 108 | .expect("capacity overflow"); | 1231 | 108 | infallible(self.try_grow(new_cap)) | 1232 | 108 | } |
<smallvec::SmallVec<[u32; 16]>>::reserve_one_unchecked Line | Count | Source | 1225 | 6.36k | fn reserve_one_unchecked(&mut self) { | 1226 | 6.36k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 6.36k | let new_cap = self.len() | 1228 | 6.36k | .checked_add(1) | 1229 | 6.36k | .and_then(usize::checked_next_power_of_two) | 1230 | 6.36k | .expect("capacity overflow"); | 1231 | 6.36k | infallible(self.try_grow(new_cap)) | 1232 | 6.36k | } |
<smallvec::SmallVec<[u32; 64]>>::reserve_one_unchecked Line | Count | Source | 1225 | 822 | fn reserve_one_unchecked(&mut self) { | 1226 | 822 | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 822 | let new_cap = self.len() | 1228 | 822 | .checked_add(1) | 1229 | 822 | .and_then(usize::checked_next_power_of_two) | 1230 | 822 | .expect("capacity overflow"); | 1231 | 822 | infallible(self.try_grow(new_cap)) | 1232 | 822 | } |
<smallvec::SmallVec<[u32; 8]>>::reserve_one_unchecked Line | Count | Source | 1225 | 12.9k | fn reserve_one_unchecked(&mut self) { | 1226 | 12.9k | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 12.9k | let new_cap = self.len() | 1228 | 12.9k | .checked_add(1) | 1229 | 12.9k | .and_then(usize::checked_next_power_of_two) | 1230 | 12.9k | .expect("capacity overflow"); | 1231 | 12.9k | infallible(self.try_grow(new_cap)) | 1232 | 12.9k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]>>::reserve_one_unchecked Line | Count | Source | 1225 | 418 | fn reserve_one_unchecked(&mut self) { | 1226 | 418 | debug_assert_eq!(self.len(), self.capacity()); | 1227 | 418 | let new_cap = self.len() | 1228 | 418 | .checked_add(1) | 1229 | 418 | .and_then(usize::checked_next_power_of_two) | 1230 | 418 | .expect("capacity overflow"); | 1231 | 418 | infallible(self.try_grow(new_cap)) | 1232 | 418 | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::reserve_one_unchecked Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::reserve_one_unchecked |
1233 | | |
1234 | | /// Reserve capacity for `additional` more elements to be inserted. |
1235 | | /// |
1236 | | /// May reserve more space to avoid frequent reallocations. |
1237 | 6.36M | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { |
1238 | 6.36M | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated |
1239 | 6.36M | // calls to it from callers. |
1240 | 6.36M | let (_, &mut len, cap) = self.triple_mut(); |
1241 | 6.36M | if cap - len >= additional { |
1242 | 6.21M | return Ok(()); |
1243 | 147k | } |
1244 | 147k | let new_cap = len |
1245 | 147k | .checked_add(additional) |
1246 | 147k | .and_then(usize::checked_next_power_of_two) |
1247 | 147k | .ok_or(CollectionAllocErr::CapacityOverflow)?; |
1248 | 147k | self.try_grow(new_cap) |
1249 | 6.36M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]>>::try_reserve Line | Count | Source | 1237 | 376k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 376k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 376k | // calls to it from callers. | 1240 | 376k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 376k | if cap - len >= additional { | 1242 | 376k | return Ok(()); | 1243 | 262 | } | 1244 | 262 | let new_cap = len | 1245 | 262 | .checked_add(additional) | 1246 | 262 | .and_then(usize::checked_next_power_of_two) | 1247 | 262 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 262 | self.try_grow(new_cap) | 1249 | 376k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::try_reserve <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]>>::try_reserve Line | Count | Source | 1237 | 211k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 211k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 211k | // calls to it from callers. | 1240 | 211k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 211k | if cap - len >= additional { | 1242 | 211k | return Ok(()); | 1243 | 0 | } | 1244 | 0 | let new_cap = len | 1245 | 0 | .checked_add(additional) | 1246 | 0 | .and_then(usize::checked_next_power_of_two) | 1247 | 0 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 0 | self.try_grow(new_cap) | 1249 | 211k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]>>::try_reserve Line | Count | Source | 1237 | 139k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 139k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 139k | // calls to it from callers. | 1240 | 139k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 139k | if cap - len >= additional { | 1242 | 137k | return Ok(()); | 1243 | 1.63k | } | 1244 | 1.63k | let new_cap = len | 1245 | 1.63k | .checked_add(additional) | 1246 | 1.63k | .and_then(usize::checked_next_power_of_two) | 1247 | 1.63k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 1.63k | self.try_grow(new_cap) | 1249 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]>>::try_reserve <smallvec::SmallVec<[regalloc2::index::Block; 16]>>::try_reserve Line | Count | Source | 1237 | 278k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 278k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 278k | // calls to it from callers. | 1240 | 278k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 278k | if cap - len >= additional { | 1242 | 278k | return Ok(()); | 1243 | 460 | } | 1244 | 460 | let new_cap = len | 1245 | 460 | .checked_add(additional) | 1246 | 460 | .and_then(usize::checked_next_power_of_two) | 1247 | 460 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 460 | self.try_grow(new_cap) | 1249 | 278k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]>>::try_reserve <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]>>::try_reserve Line | Count | Source | 1237 | 139k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 139k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 139k | // calls to it from callers. | 1240 | 139k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 139k | if cap - len >= additional { | 1242 | 138k | return Ok(()); | 1243 | 650 | } | 1244 | 650 | let new_cap = len | 1245 | 650 | .checked_add(additional) | 1246 | 650 | .and_then(usize::checked_next_power_of_two) | 1247 | 650 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 650 | self.try_grow(new_cap) | 1249 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]>>::try_reserve Line | Count | Source | 1237 | 702k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 702k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 702k | // calls to it from callers. | 1240 | 702k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 702k | if cap - len >= additional { | 1242 | 702k | return Ok(()); | 1243 | 0 | } | 1244 | 0 | let new_cap = len | 1245 | 0 | .checked_add(additional) | 1246 | 0 | .and_then(usize::checked_next_power_of_two) | 1247 | 0 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 0 | self.try_grow(new_cap) | 1249 | 702k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]>>::try_reserve <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::try_reserve Line | Count | Source | 1237 | 49.6k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 49.6k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 49.6k | // calls to it from callers. | 1240 | 49.6k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 49.6k | if cap - len >= additional { | 1242 | 49.6k | return Ok(()); | 1243 | 0 | } | 1244 | 0 | let new_cap = len | 1245 | 0 | .checked_add(additional) | 1246 | 0 | .and_then(usize::checked_next_power_of_two) | 1247 | 0 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 0 | self.try_grow(new_cap) | 1249 | 49.6k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::try_reserve Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::try_reserve <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::try_reserve Line | Count | Source | 1237 | 139k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 139k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 139k | // calls to it from callers. | 1240 | 139k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 139k | if cap - len >= additional { | 1242 | 137k | return Ok(()); | 1243 | 2.13k | } | 1244 | 2.13k | let new_cap = len | 1245 | 2.13k | .checked_add(additional) | 1246 | 2.13k | .and_then(usize::checked_next_power_of_two) | 1247 | 2.13k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 2.13k | self.try_grow(new_cap) | 1249 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::try_reserve Line | Count | Source | 1237 | 395k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 395k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 395k | // calls to it from callers. | 1240 | 395k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 395k | if cap - len >= additional { | 1242 | 316k | return Ok(()); | 1243 | 78.5k | } | 1244 | 78.5k | let new_cap = len | 1245 | 78.5k | .checked_add(additional) | 1246 | 78.5k | .and_then(usize::checked_next_power_of_two) | 1247 | 78.5k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 78.5k | self.try_grow(new_cap) | 1249 | 395k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::try_reserve Line | Count | Source | 1237 | 6.05k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 6.05k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 6.05k | // calls to it from callers. | 1240 | 6.05k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 6.05k | if cap - len >= additional { | 1242 | 6.05k | return Ok(()); | 1243 | 0 | } | 1244 | 0 | let new_cap = len | 1245 | 0 | .checked_add(additional) | 1246 | 0 | .and_then(usize::checked_next_power_of_two) | 1247 | 0 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 0 | self.try_grow(new_cap) | 1249 | 6.05k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::try_reserve Line | Count | Source | 1237 | 1.37M | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 1.37M | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 1.37M | // calls to it from callers. | 1240 | 1.37M | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 1.37M | if cap - len >= additional { | 1242 | 1.35M | return Ok(()); | 1243 | 12.4k | } | 1244 | 12.4k | let new_cap = len | 1245 | 12.4k | .checked_add(additional) | 1246 | 12.4k | .and_then(usize::checked_next_power_of_two) | 1247 | 12.4k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 12.4k | self.try_grow(new_cap) | 1249 | 1.37M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::try_reserve Line | Count | Source | 1237 | 80.4k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 80.4k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 80.4k | // calls to it from callers. | 1240 | 80.4k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 80.4k | if cap - len >= additional { | 1242 | 69.7k | return Ok(()); | 1243 | 10.6k | } | 1244 | 10.6k | let new_cap = len | 1245 | 10.6k | .checked_add(additional) | 1246 | 10.6k | .and_then(usize::checked_next_power_of_two) | 1247 | 10.6k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 10.6k | self.try_grow(new_cap) | 1249 | 80.4k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::try_reserve Line | Count | Source | 1237 | 666k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 666k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 666k | // calls to it from callers. | 1240 | 666k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 666k | if cap - len >= additional { | 1242 | 629k | return Ok(()); | 1243 | 37.0k | } | 1244 | 37.0k | let new_cap = len | 1245 | 37.0k | .checked_add(additional) | 1246 | 37.0k | .and_then(usize::checked_next_power_of_two) | 1247 | 37.0k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 37.0k | self.try_grow(new_cap) | 1249 | 666k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::try_reserve Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::try_reserve Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::try_reserve Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::try_reserve Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::try_reserve Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::try_reserve Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::try_reserve Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]>>::try_reserve <smallvec::SmallVec<[u8; 16]>>::try_reserve Line | Count | Source | 1237 | 37.2k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 37.2k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 37.2k | // calls to it from callers. | 1240 | 37.2k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 37.2k | if cap - len >= additional { | 1242 | 37.2k | return Ok(()); | 1243 | 0 | } | 1244 | 0 | let new_cap = len | 1245 | 0 | .checked_add(additional) | 1246 | 0 | .and_then(usize::checked_next_power_of_two) | 1247 | 0 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 0 | self.try_grow(new_cap) | 1249 | 37.2k | } |
<smallvec::SmallVec<[u8; 1024]>>::try_reserve Line | Count | Source | 1237 | 707k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 707k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 707k | // calls to it from callers. | 1240 | 707k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 707k | if cap - len >= additional { | 1242 | 705k | return Ok(()); | 1243 | 1.43k | } | 1244 | 1.43k | let new_cap = len | 1245 | 1.43k | .checked_add(additional) | 1246 | 1.43k | .and_then(usize::checked_next_power_of_two) | 1247 | 1.43k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 1.43k | self.try_grow(new_cap) | 1249 | 707k | } |
<smallvec::SmallVec<[u8; 8]>>::try_reserve Line | Count | Source | 1237 | 82.4k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 82.4k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 82.4k | // calls to it from callers. | 1240 | 82.4k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 82.4k | if cap - len >= additional { | 1242 | 82.4k | return Ok(()); | 1243 | 0 | } | 1244 | 0 | let new_cap = len | 1245 | 0 | .checked_add(additional) | 1246 | 0 | .and_then(usize::checked_next_power_of_two) | 1247 | 0 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 0 | self.try_grow(new_cap) | 1249 | 82.4k | } |
<smallvec::SmallVec<[u32; 16]>>::try_reserve Line | Count | Source | 1237 | 139k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 139k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 139k | // calls to it from callers. | 1240 | 139k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 139k | if cap - len >= additional { | 1242 | 137k | return Ok(()); | 1243 | 2.13k | } | 1244 | 2.13k | let new_cap = len | 1245 | 2.13k | .checked_add(additional) | 1246 | 2.13k | .and_then(usize::checked_next_power_of_two) | 1247 | 2.13k | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 2.13k | self.try_grow(new_cap) | 1249 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::Allocation; 4]>>::try_reserve Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::try_reserve Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::try_reserve Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::try_reserve Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::try_reserve Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::try_reserve Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::try_reserve Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::try_reserve <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::try_reserve Line | Count | Source | 1237 | 153k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 153k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 153k | // calls to it from callers. | 1240 | 153k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 153k | if cap - len >= additional { | 1242 | 153k | return Ok(()); | 1243 | 58 | } | 1244 | 58 | let new_cap = len | 1245 | 58 | .checked_add(additional) | 1246 | 58 | .and_then(usize::checked_next_power_of_two) | 1247 | 58 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 58 | self.try_grow(new_cap) | 1249 | 153k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::try_reserve Line | Count | Source | 1237 | 347k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 347k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 347k | // calls to it from callers. | 1240 | 347k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 347k | if cap - len >= additional { | 1242 | 347k | return Ok(()); | 1243 | 0 | } | 1244 | 0 | let new_cap = len | 1245 | 0 | .checked_add(additional) | 1246 | 0 | .and_then(usize::checked_next_power_of_two) | 1247 | 0 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 0 | self.try_grow(new_cap) | 1249 | 347k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::try_reserve Line | Count | Source | 1237 | 153k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 153k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 153k | // calls to it from callers. | 1240 | 153k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 153k | if cap - len >= additional { | 1242 | 153k | return Ok(()); | 1243 | 58 | } | 1244 | 58 | let new_cap = len | 1245 | 58 | .checked_add(additional) | 1246 | 58 | .and_then(usize::checked_next_power_of_two) | 1247 | 58 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 58 | self.try_grow(new_cap) | 1249 | 153k | } |
Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::try_reserve Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]>>::try_reserve <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]>>::try_reserve Line | Count | Source | 1237 | 32.6k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 32.6k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 32.6k | // calls to it from callers. | 1240 | 32.6k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 32.6k | if cap - len >= additional { | 1242 | 32.6k | return Ok(()); | 1243 | 0 | } | 1244 | 0 | let new_cap = len | 1245 | 0 | .checked_add(additional) | 1246 | 0 | .and_then(usize::checked_next_power_of_two) | 1247 | 0 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 0 | self.try_grow(new_cap) | 1249 | 32.6k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::try_reserve Line | Count | Source | 1237 | 120k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 120k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 120k | // calls to it from callers. | 1240 | 120k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 120k | if cap - len >= additional { | 1242 | 120k | return Ok(()); | 1243 | 0 | } | 1244 | 0 | let new_cap = len | 1245 | 0 | .checked_add(additional) | 1246 | 0 | .and_then(usize::checked_next_power_of_two) | 1247 | 0 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 0 | self.try_grow(new_cap) | 1249 | 120k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]>>::try_reserve Line | Count | Source | 1237 | 32.6k | pub fn try_reserve(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { | 1238 | 32.6k | // prefer triple_mut() even if triple() would work so that the optimizer removes duplicated | 1239 | 32.6k | // calls to it from callers. | 1240 | 32.6k | let (_, &mut len, cap) = self.triple_mut(); | 1241 | 32.6k | if cap - len >= additional { | 1242 | 32.6k | return Ok(()); | 1243 | 0 | } | 1244 | 0 | let new_cap = len | 1245 | 0 | .checked_add(additional) | 1246 | 0 | .and_then(usize::checked_next_power_of_two) | 1247 | 0 | .ok_or(CollectionAllocErr::CapacityOverflow)?; | 1248 | 0 | self.try_grow(new_cap) | 1249 | 32.6k | } |
|
1250 | | |
1251 | | /// Reserve the minimum capacity for `additional` more elements to be inserted. |
1252 | | /// |
1253 | | /// Panics if the new capacity overflows `usize`. |
1254 | | pub fn reserve_exact(&mut self, additional: usize) { |
1255 | | infallible(self.try_reserve_exact(additional)) |
1256 | | } |
1257 | | |
1258 | | /// Reserve the minimum capacity for `additional` more elements to be inserted. |
1259 | | pub fn try_reserve_exact(&mut self, additional: usize) -> Result<(), CollectionAllocErr> { |
1260 | | let (_, &mut len, cap) = self.triple_mut(); |
1261 | | if cap - len >= additional { |
1262 | | return Ok(()); |
1263 | | } |
1264 | | let new_cap = len |
1265 | | .checked_add(additional) |
1266 | | .ok_or(CollectionAllocErr::CapacityOverflow)?; |
1267 | | self.try_grow(new_cap) |
1268 | | } |
1269 | | |
1270 | | /// Shrink the capacity of the vector as much as possible. |
1271 | | /// |
1272 | | /// When possible, this will move data from an external heap buffer to the vector's inline |
1273 | | /// storage. |
1274 | 172k | pub fn shrink_to_fit(&mut self) { |
1275 | 172k | if !self.spilled() { |
1276 | 154k | return; |
1277 | 17.7k | } |
1278 | 17.7k | let len = self.len(); |
1279 | 17.7k | if self.inline_size() >= len { |
1280 | 15.2k | unsafe { |
1281 | 15.2k | let (ptr, len) = self.data.heap(); |
1282 | 15.2k | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); |
1283 | 15.2k | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); |
1284 | 15.2k | deallocate(ptr.0, self.capacity); |
1285 | 15.2k | self.capacity = len; |
1286 | 15.2k | } |
1287 | 2.58k | } else if self.capacity() > len { |
1288 | 2.58k | self.grow(len); |
1289 | 2.58k | } |
1290 | 172k | } <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::shrink_to_fit Line | Count | Source | 1274 | 92.2k | pub fn shrink_to_fit(&mut self) { | 1275 | 92.2k | if !self.spilled() { | 1276 | 91.2k | return; | 1277 | 1.00k | } | 1278 | 1.00k | let len = self.len(); | 1279 | 1.00k | if self.inline_size() >= len { | 1280 | 992 | unsafe { | 1281 | 992 | let (ptr, len) = self.data.heap(); | 1282 | 992 | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1283 | 992 | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1284 | 992 | deallocate(ptr.0, self.capacity); | 1285 | 992 | self.capacity = len; | 1286 | 992 | } | 1287 | 12 | } else if self.capacity() > len { | 1288 | 12 | self.grow(len); | 1289 | 12 | } | 1290 | 92.2k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::shrink_to_fit Line | Count | Source | 1274 | 80.4k | pub fn shrink_to_fit(&mut self) { | 1275 | 80.4k | if !self.spilled() { | 1276 | 63.6k | return; | 1277 | 16.7k | } | 1278 | 16.7k | let len = self.len(); | 1279 | 16.7k | if self.inline_size() >= len { | 1280 | 14.2k | unsafe { | 1281 | 14.2k | let (ptr, len) = self.data.heap(); | 1282 | 14.2k | self.data = SmallVecData::from_inline(MaybeUninit::uninit()); | 1283 | 14.2k | ptr::copy_nonoverlapping(ptr.as_ptr(), self.data.inline_mut().as_ptr(), len); | 1284 | 14.2k | deallocate(ptr.0, self.capacity); | 1285 | 14.2k | self.capacity = len; | 1286 | 14.2k | } | 1287 | 2.57k | } else if self.capacity() > len { | 1288 | 2.57k | self.grow(len); | 1289 | 2.57k | } | 1290 | 80.4k | } |
|
1291 | | |
1292 | | /// Shorten the vector, keeping the first `len` elements and dropping the rest. |
1293 | | /// |
1294 | | /// If `len` is greater than or equal to the vector's current length, this has no |
1295 | | /// effect. |
1296 | | /// |
1297 | | /// This does not re-allocate. If you want the vector's capacity to shrink, call |
1298 | | /// `shrink_to_fit` after truncating. |
1299 | 3.31M | pub fn truncate(&mut self, len: usize) { |
1300 | 3.31M | unsafe { |
1301 | 3.31M | let (ptr, len_ptr, _) = self.triple_mut(); |
1302 | 3.31M | let ptr = ptr.as_ptr(); |
1303 | 8.48M | while len < *len_ptr { |
1304 | 5.16M | let last_index = *len_ptr - 1; |
1305 | 5.16M | *len_ptr = last_index; |
1306 | 5.16M | ptr::drop_in_place(ptr.add(last_index)); |
1307 | 5.16M | } |
1308 | | } |
1309 | 3.31M | } <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::truncate Line | Count | Source | 1299 | 174k | pub fn truncate(&mut self, len: usize) { | 1300 | 174k | unsafe { | 1301 | 174k | let (ptr, len_ptr, _) = self.triple_mut(); | 1302 | 174k | let ptr = ptr.as_ptr(); | 1303 | 349k | while len < *len_ptr { | 1304 | 174k | let last_index = *len_ptr - 1; | 1305 | 174k | *len_ptr = last_index; | 1306 | 174k | ptr::drop_in_place(ptr.add(last_index)); | 1307 | 174k | } | 1308 | | } | 1309 | 174k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::truncate Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::truncate <smallvec::SmallVec<[cranelift_codegen::ir::entities::Inst; 2]>>::truncate Line | Count | Source | 1299 | 328k | pub fn truncate(&mut self, len: usize) { | 1300 | 328k | unsafe { | 1301 | 328k | let (ptr, len_ptr, _) = self.triple_mut(); | 1302 | 328k | let ptr = ptr.as_ptr(); | 1303 | 468k | while len < *len_ptr { | 1304 | 139k | let last_index = *len_ptr - 1; | 1305 | 139k | *len_ptr = last_index; | 1306 | 139k | ptr::drop_in_place(ptr.add(last_index)); | 1307 | 139k | } | 1308 | | } | 1309 | 328k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::truncate Line | Count | Source | 1299 | 28.2k | pub fn truncate(&mut self, len: usize) { | 1300 | 28.2k | unsafe { | 1301 | 28.2k | let (ptr, len_ptr, _) = self.triple_mut(); | 1302 | 28.2k | let ptr = ptr.as_ptr(); | 1303 | 71.8k | while len < *len_ptr { | 1304 | 43.5k | let last_index = *len_ptr - 1; | 1305 | 43.5k | *len_ptr = last_index; | 1306 | 43.5k | ptr::drop_in_place(ptr.add(last_index)); | 1307 | 43.5k | } | 1308 | | } | 1309 | 28.2k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::truncate <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 2]>>::truncate Line | Count | Source | 1299 | 328k | pub fn truncate(&mut self, len: usize) { | 1300 | 328k | unsafe { | 1301 | 328k | let (ptr, len_ptr, _) = self.triple_mut(); | 1302 | 328k | let ptr = ptr.as_ptr(); | 1303 | 469k | while len < *len_ptr { | 1304 | 141k | let last_index = *len_ptr - 1; | 1305 | 141k | *len_ptr = last_index; | 1306 | 141k | ptr::drop_in_place(ptr.add(last_index)); | 1307 | 141k | } | 1308 | | } | 1309 | 328k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::truncate Line | Count | Source | 1299 | 827k | pub fn truncate(&mut self, len: usize) { | 1300 | 827k | unsafe { | 1301 | 827k | let (ptr, len_ptr, _) = self.triple_mut(); | 1302 | 827k | let ptr = ptr.as_ptr(); | 1303 | 3.99M | while len < *len_ptr { | 1304 | 3.17M | let last_index = *len_ptr - 1; | 1305 | 3.17M | *len_ptr = last_index; | 1306 | 3.17M | ptr::drop_in_place(ptr.add(last_index)); | 1307 | 3.17M | } | 1308 | | } | 1309 | 827k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::truncate Line | Count | Source | 1299 | 93.4k | pub fn truncate(&mut self, len: usize) { | 1300 | 93.4k | unsafe { | 1301 | 93.4k | let (ptr, len_ptr, _) = self.triple_mut(); | 1302 | 93.4k | let ptr = ptr.as_ptr(); | 1303 | 127k | while len < *len_ptr { | 1304 | 33.5k | let last_index = *len_ptr - 1; | 1305 | 33.5k | *len_ptr = last_index; | 1306 | 33.5k | ptr::drop_in_place(ptr.add(last_index)); | 1307 | 33.5k | } | 1308 | | } | 1309 | 93.4k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::truncate Line | Count | Source | 1299 | 80.4k | pub fn truncate(&mut self, len: usize) { | 1300 | 80.4k | unsafe { | 1301 | 80.4k | let (ptr, len_ptr, _) = self.triple_mut(); | 1302 | 80.4k | let ptr = ptr.as_ptr(); | 1303 | 480k | while len < *len_ptr { | 1304 | 399k | let last_index = *len_ptr - 1; | 1305 | 399k | *len_ptr = last_index; | 1306 | 399k | ptr::drop_in_place(ptr.add(last_index)); | 1307 | 399k | } | 1308 | | } | 1309 | 80.4k | } |
<smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::truncate Line | Count | Source | 1299 | 1.23M | pub fn truncate(&mut self, len: usize) { | 1300 | 1.23M | unsafe { | 1301 | 1.23M | let (ptr, len_ptr, _) = self.triple_mut(); | 1302 | 1.23M | let ptr = ptr.as_ptr(); | 1303 | 1.23M | while len < *len_ptr { | 1304 | 2 | let last_index = *len_ptr - 1; | 1305 | 2 | *len_ptr = last_index; | 1306 | 2 | ptr::drop_in_place(ptr.add(last_index)); | 1307 | 2 | } | 1308 | | } | 1309 | 1.23M | } |
<smallvec::SmallVec<[u8; 1024]>>::truncate Line | Count | Source | 1299 | 202k | pub fn truncate(&mut self, len: usize) { | 1300 | 202k | unsafe { | 1301 | 202k | let (ptr, len_ptr, _) = self.triple_mut(); | 1302 | 202k | let ptr = ptr.as_ptr(); | 1303 | 1.24M | while len < *len_ptr { | 1304 | 1.04M | let last_index = *len_ptr - 1; | 1305 | 1.04M | *len_ptr = last_index; | 1306 | 1.04M | ptr::drop_in_place(ptr.add(last_index)); | 1307 | 1.04M | } | 1308 | | } | 1309 | 202k | } |
Unexecuted instantiation: <smallvec::SmallVec<[u32; 16]>>::truncate <smallvec::SmallVec<[regalloc2::Allocation; 4]>>::truncate Line | Count | Source | 1299 | 22.4k | pub fn truncate(&mut self, len: usize) { | 1300 | 22.4k | unsafe { | 1301 | 22.4k | let (ptr, len_ptr, _) = self.triple_mut(); | 1302 | 22.4k | let ptr = ptr.as_ptr(); | 1303 | 42.0k | while len < *len_ptr { | 1304 | 19.6k | let last_index = *len_ptr - 1; | 1305 | 19.6k | *len_ptr = last_index; | 1306 | 19.6k | ptr::drop_in_place(ptr.add(last_index)); | 1307 | 19.6k | } | 1308 | | } | 1309 | 22.4k | } |
|
1310 | | |
1311 | | /// Extracts a slice containing the entire vector. |
1312 | | /// |
1313 | | /// Equivalent to `&s[..]`. |
1314 | 2.05M | pub fn as_slice(&self) -> &[A::Item] { |
1315 | 2.05M | self |
1316 | 2.05M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]>>::as_slice Line | Count | Source | 1314 | 453k | pub fn as_slice(&self) -> &[A::Item] { | 1315 | 453k | self | 1316 | 453k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::as_slice <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::as_slice Line | Count | Source | 1314 | 1.15M | pub fn as_slice(&self) -> &[A::Item] { | 1315 | 1.15M | self | 1316 | 1.15M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::as_slice Line | Count | Source | 1314 | 6.05k | pub fn as_slice(&self) -> &[A::Item] { | 1315 | 6.05k | self | 1316 | 6.05k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::as_slice Line | Count | Source | 1314 | 220k | pub fn as_slice(&self) -> &[A::Item] { | 1315 | 220k | self | 1316 | 220k | } |
<smallvec::SmallVec<[regalloc2::index::Block; 16]>>::as_slice Line | Count | Source | 1314 | 139k | pub fn as_slice(&self) -> &[A::Item] { | 1315 | 139k | self | 1316 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::as_slice Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::as_slice Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::as_slice <smallvec::SmallVec<[u8; 8]>>::as_slice Line | Count | Source | 1314 | 28.4k | pub fn as_slice(&self) -> &[A::Item] { | 1315 | 28.4k | self | 1316 | 28.4k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]>>::as_slice Line | Count | Source | 1314 | 49.6k | pub fn as_slice(&self) -> &[A::Item] { | 1315 | 49.6k | self | 1316 | 49.6k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]>>::as_slice Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]>>::as_slice Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::Allocation; 4]>>::as_slice Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]>>::as_slice Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::as_slice Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::as_slice Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]>>::as_slice Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]>>::as_slice Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::as_slice Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]>>::as_slice Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]>>::as_slice |
1317 | | |
1318 | | /// Extracts a mutable slice of the entire vector. |
1319 | | /// |
1320 | | /// Equivalent to `&mut s[..]`. |
1321 | | pub fn as_mut_slice(&mut self) -> &mut [A::Item] { |
1322 | | self |
1323 | | } |
1324 | | |
1325 | | /// Remove the element at position `index`, replacing it with the last element. |
1326 | | /// |
1327 | | /// This does not preserve ordering, but is O(1). |
1328 | | /// |
1329 | | /// Panics if `index` is out of bounds. |
1330 | | #[inline] |
1331 | | pub fn swap_remove(&mut self, index: usize) -> A::Item { |
1332 | | let len = self.len(); |
1333 | | self.swap(len - 1, index); |
1334 | | self.pop() |
1335 | | .unwrap_or_else(|| unsafe { unreachable_unchecked() }) |
1336 | | } |
1337 | | |
1338 | | /// Remove all elements from the vector. |
1339 | | #[inline] |
1340 | 2.76M | pub fn clear(&mut self) { |
1341 | 2.76M | self.truncate(0); |
1342 | 2.76M | } <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::clear Line | Count | Source | 1340 | 966 | pub fn clear(&mut self) { | 1341 | 966 | self.truncate(0); | 1342 | 966 | } |
<smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]>>::clear Line | Count | Source | 1340 | 1.23M | pub fn clear(&mut self) { | 1341 | 1.23M | self.truncate(0); | 1342 | 1.23M | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Inst; 2]>>::clear Line | Count | Source | 1340 | 328k | pub fn clear(&mut self) { | 1341 | 328k | self.truncate(0); | 1342 | 328k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 2]>>::clear Line | Count | Source | 1340 | 328k | pub fn clear(&mut self) { | 1341 | 328k | self.truncate(0); | 1342 | 328k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::clear Line | Count | Source | 1340 | 827k | pub fn clear(&mut self) { | 1341 | 827k | self.truncate(0); | 1342 | 827k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachBranch; 4]>>::clear Line | Count | Source | 1340 | 28.2k | pub fn clear(&mut self) { | 1341 | 28.2k | self.truncate(0); | 1342 | 28.2k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]>>::clear Line | Count | Source | 1340 | 22.4k | pub fn clear(&mut self) { | 1341 | 22.4k | self.truncate(0); | 1342 | 22.4k | } |
|
1343 | | |
1344 | | /// Remove and return the element at position `index`, shifting all elements after it to the |
1345 | | /// left. |
1346 | | /// |
1347 | | /// Panics if `index` is out of bounds. |
1348 | | pub fn remove(&mut self, index: usize) -> A::Item { |
1349 | | unsafe { |
1350 | | let (ptr, len_ptr, _) = self.triple_mut(); |
1351 | | let len = *len_ptr; |
1352 | | assert!(index < len); |
1353 | | *len_ptr = len - 1; |
1354 | | let ptr = ptr.as_ptr().add(index); |
1355 | | let item = ptr::read(ptr); |
1356 | | ptr::copy(ptr.add(1), ptr, len - index - 1); |
1357 | | item |
1358 | | } |
1359 | | } |
1360 | | |
1361 | | /// Insert an element at position `index`, shifting all elements after it to the right. |
1362 | | /// |
1363 | | /// Panics if `index > len`. |
1364 | | pub fn insert(&mut self, index: usize, element: A::Item) { |
1365 | | unsafe { |
1366 | | let (mut ptr, mut len_ptr, cap) = self.triple_mut(); |
1367 | | if *len_ptr == cap { |
1368 | | self.reserve_one_unchecked(); |
1369 | | let (heap_ptr, heap_len_ptr) = self.data.heap_mut(); |
1370 | | ptr = heap_ptr; |
1371 | | len_ptr = heap_len_ptr; |
1372 | | } |
1373 | | let mut ptr = ptr.as_ptr(); |
1374 | | let len = *len_ptr; |
1375 | | if index > len { |
1376 | | panic!("index exceeds length"); |
1377 | | } |
1378 | | // SAFETY: add is UB if index > len, but we panicked first |
1379 | | ptr = ptr.add(index); |
1380 | | if index < len { |
1381 | | // Shift element to the right of `index`. |
1382 | | ptr::copy(ptr, ptr.add(1), len - index); |
1383 | | } |
1384 | | *len_ptr = len + 1; |
1385 | | ptr::write(ptr, element); |
1386 | | } |
1387 | | } |
1388 | | |
1389 | | /// Insert multiple elements at position `index`, shifting all following elements toward the |
1390 | | /// back. |
1391 | | pub fn insert_many<I: IntoIterator<Item = A::Item>>(&mut self, index: usize, iterable: I) { |
1392 | | let mut iter = iterable.into_iter(); |
1393 | | if index == self.len() { |
1394 | | return self.extend(iter); |
1395 | | } |
1396 | | |
1397 | | let (lower_size_bound, _) = iter.size_hint(); |
1398 | | assert!(lower_size_bound <= core::isize::MAX as usize); // Ensure offset is indexable |
1399 | | assert!(index + lower_size_bound >= index); // Protect against overflow |
1400 | | |
1401 | | let mut num_added = 0; |
1402 | | let old_len = self.len(); |
1403 | | assert!(index <= old_len); |
1404 | | |
1405 | | unsafe { |
1406 | | // Reserve space for `lower_size_bound` elements. |
1407 | | self.reserve(lower_size_bound); |
1408 | | let start = self.as_mut_ptr(); |
1409 | | let ptr = start.add(index); |
1410 | | |
1411 | | // Move the trailing elements. |
1412 | | ptr::copy(ptr, ptr.add(lower_size_bound), old_len - index); |
1413 | | |
1414 | | // In case the iterator panics, don't double-drop the items we just copied above. |
1415 | | self.set_len(0); |
1416 | | let mut guard = DropOnPanic { |
1417 | | start, |
1418 | | skip: index..(index + lower_size_bound), |
1419 | | len: old_len + lower_size_bound, |
1420 | | }; |
1421 | | |
1422 | | // The set_len above invalidates the previous pointers, so we must re-create them. |
1423 | | let start = self.as_mut_ptr(); |
1424 | | let ptr = start.add(index); |
1425 | | |
1426 | | while num_added < lower_size_bound { |
1427 | | let element = match iter.next() { |
1428 | | Some(x) => x, |
1429 | | None => break, |
1430 | | }; |
1431 | | let cur = ptr.add(num_added); |
1432 | | ptr::write(cur, element); |
1433 | | guard.skip.start += 1; |
1434 | | num_added += 1; |
1435 | | } |
1436 | | |
1437 | | if num_added < lower_size_bound { |
1438 | | // Iterator provided fewer elements than the hint. Move the tail backward. |
1439 | | ptr::copy( |
1440 | | ptr.add(lower_size_bound), |
1441 | | ptr.add(num_added), |
1442 | | old_len - index, |
1443 | | ); |
1444 | | } |
1445 | | // There are no more duplicate or uninitialized slots, so the guard is not needed. |
1446 | | self.set_len(old_len + num_added); |
1447 | | mem::forget(guard); |
1448 | | } |
1449 | | |
1450 | | // Insert any remaining elements one-by-one. |
1451 | | for element in iter { |
1452 | | self.insert(index + num_added, element); |
1453 | | num_added += 1; |
1454 | | } |
1455 | | |
1456 | | struct DropOnPanic<T> { |
1457 | | start: *mut T, |
1458 | | skip: Range<usize>, // Space we copied-out-of, but haven't written-to yet. |
1459 | | len: usize, |
1460 | | } |
1461 | | |
1462 | | impl<T> Drop for DropOnPanic<T> { |
1463 | | fn drop(&mut self) { |
1464 | | for i in 0..self.len { |
1465 | | if !self.skip.contains(&i) { |
1466 | | unsafe { |
1467 | | ptr::drop_in_place(self.start.add(i)); |
1468 | | } |
1469 | | } |
1470 | | } |
1471 | | } |
1472 | | } |
1473 | | } |
1474 | | |
1475 | | /// Convert a `SmallVec` to a `Vec`, without reallocating if the `SmallVec` has already spilled onto |
1476 | | /// the heap. |
1477 | 0 | pub fn into_vec(mut self) -> Vec<A::Item> { |
1478 | 0 | if self.spilled() { |
1479 | | unsafe { |
1480 | 0 | let (ptr, &mut len) = self.data.heap_mut(); |
1481 | 0 | let v = Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity); |
1482 | 0 | mem::forget(self); |
1483 | 0 | v |
1484 | | } |
1485 | | } else { |
1486 | 0 | self.into_iter().collect() |
1487 | | } |
1488 | 0 | } |
1489 | | |
1490 | | /// Converts a `SmallVec` into a `Box<[T]>` without reallocating if the `SmallVec` has already spilled |
1491 | | /// onto the heap. |
1492 | | /// |
1493 | | /// Note that this will drop any excess capacity. |
1494 | | pub fn into_boxed_slice(self) -> Box<[A::Item]> { |
1495 | | self.into_vec().into_boxed_slice() |
1496 | | } |
1497 | | |
1498 | | /// Convert the `SmallVec` into an `A` if possible. Otherwise return `Err(Self)`. |
1499 | | /// |
1500 | | /// This method returns `Err(Self)` if the `SmallVec` is too short (and the `A` contains uninitialized elements), |
1501 | | /// or if the `SmallVec` is too long (and all the elements were spilled to the heap). |
1502 | | pub fn into_inner(self) -> Result<A, Self> { |
1503 | | if self.spilled() || self.len() != A::size() { |
1504 | | // Note: A::size, not Self::inline_capacity |
1505 | | Err(self) |
1506 | | } else { |
1507 | | unsafe { |
1508 | | let data = ptr::read(&self.data); |
1509 | | mem::forget(self); |
1510 | | Ok(data.into_inline().assume_init()) |
1511 | | } |
1512 | | } |
1513 | | } |
1514 | | |
1515 | | /// Retains only the elements specified by the predicate. |
1516 | | /// |
1517 | | /// In other words, remove all elements `e` such that `f(&e)` returns `false`. |
1518 | | /// This method operates in place and preserves the order of the retained |
1519 | | /// elements. |
1520 | 1.20k | pub fn retain<F: FnMut(&mut A::Item) -> bool>(&mut self, mut f: F) { |
1521 | 1.20k | let mut del = 0; |
1522 | 1.20k | let len = self.len(); |
1523 | 18.6k | for i in 0..len { |
1524 | 18.6k | if !f(&mut self[i]) { |
1525 | 2.21k | del += 1; |
1526 | 16.4k | } else if del > 0 { |
1527 | 3.03k | self.swap(i - del, i); |
1528 | 13.3k | } |
1529 | | } |
1530 | 1.20k | self.truncate(len - del); |
1531 | 1.20k | } <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::retain::<<regalloc2::ion::data_structures::Env<cranelift_codegen::machinst::vcode::VCode<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>>>::split_into_minimal_bundles::{closure#0}> Line | Count | Source | 1520 | 1.20k | pub fn retain<F: FnMut(&mut A::Item) -> bool>(&mut self, mut f: F) { | 1521 | 1.20k | let mut del = 0; | 1522 | 1.20k | let len = self.len(); | 1523 | 18.6k | for i in 0..len { | 1524 | 18.6k | if !f(&mut self[i]) { | 1525 | 2.21k | del += 1; | 1526 | 16.4k | } else if del > 0 { | 1527 | 3.03k | self.swap(i - del, i); | 1528 | 13.3k | } | 1529 | | } | 1530 | 1.20k | self.truncate(len - del); | 1531 | 1.20k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::retain::<<regalloc2::ion::data_structures::Env<cranelift_codegen::machinst::vcode::VCode<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>>::split_into_minimal_bundles::{closure#0}> Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::retain::<<regalloc2::ion::data_structures::Env<cranelift_codegen::machinst::vcode::VCode<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>>>::split_into_minimal_bundles::{closure#0}> |
1532 | | |
1533 | | /// Retains only the elements specified by the predicate. |
1534 | | /// |
1535 | | /// This method is identical in behaviour to [`retain`]; it is included only |
1536 | | /// to maintain api-compatability with `std::Vec`, where the methods are |
1537 | | /// separate for historical reasons. |
1538 | | pub fn retain_mut<F: FnMut(&mut A::Item) -> bool>(&mut self, f: F) { |
1539 | | self.retain(f) |
1540 | | } |
1541 | | |
1542 | | /// Removes consecutive duplicate elements. |
1543 | | pub fn dedup(&mut self) |
1544 | | where |
1545 | | A::Item: PartialEq<A::Item>, |
1546 | | { |
1547 | | self.dedup_by(|a, b| a == b); |
1548 | | } |
1549 | | |
1550 | | /// Removes consecutive duplicate elements using the given equality relation. |
1551 | | pub fn dedup_by<F>(&mut self, mut same_bucket: F) |
1552 | | where |
1553 | | F: FnMut(&mut A::Item, &mut A::Item) -> bool, |
1554 | | { |
1555 | | // See the implementation of Vec::dedup_by in the |
1556 | | // standard library for an explanation of this algorithm. |
1557 | | let len = self.len(); |
1558 | | if len <= 1 { |
1559 | | return; |
1560 | | } |
1561 | | |
1562 | | let ptr = self.as_mut_ptr(); |
1563 | | let mut w: usize = 1; |
1564 | | |
1565 | | unsafe { |
1566 | | for r in 1..len { |
1567 | | let p_r = ptr.add(r); |
1568 | | let p_wm1 = ptr.add(w - 1); |
1569 | | if !same_bucket(&mut *p_r, &mut *p_wm1) { |
1570 | | if r != w { |
1571 | | let p_w = p_wm1.add(1); |
1572 | | mem::swap(&mut *p_r, &mut *p_w); |
1573 | | } |
1574 | | w += 1; |
1575 | | } |
1576 | | } |
1577 | | } |
1578 | | |
1579 | | self.truncate(w); |
1580 | | } |
1581 | | |
1582 | | /// Removes consecutive elements that map to the same key. |
1583 | | pub fn dedup_by_key<F, K>(&mut self, mut key: F) |
1584 | | where |
1585 | | F: FnMut(&mut A::Item) -> K, |
1586 | | K: PartialEq<K>, |
1587 | | { |
1588 | | self.dedup_by(|a, b| key(a) == key(b)); |
1589 | | } |
1590 | | |
1591 | | /// Resizes the `SmallVec` in-place so that `len` is equal to `new_len`. |
1592 | | /// |
1593 | | /// If `new_len` is greater than `len`, the `SmallVec` is extended by the difference, with each |
1594 | | /// additional slot filled with the result of calling the closure `f`. The return values from `f` |
1595 | | /// will end up in the `SmallVec` in the order they have been generated. |
1596 | | /// |
1597 | | /// If `new_len` is less than `len`, the `SmallVec` is simply truncated. |
1598 | | /// |
1599 | | /// This method uses a closure to create new values on every push. If you'd rather `Clone` a given |
1600 | | /// value, use `resize`. If you want to use the `Default` trait to generate values, you can pass |
1601 | | /// `Default::default()` as the second argument. |
1602 | | /// |
1603 | | /// Added for `std::vec::Vec` compatibility (added in Rust 1.33.0) |
1604 | | /// |
1605 | | /// ``` |
1606 | | /// # use smallvec::{smallvec, SmallVec}; |
1607 | | /// let mut vec : SmallVec<[_; 4]> = smallvec![1, 2, 3]; |
1608 | | /// vec.resize_with(5, Default::default); |
1609 | | /// assert_eq!(&*vec, &[1, 2, 3, 0, 0]); |
1610 | | /// |
1611 | | /// let mut vec : SmallVec<[_; 4]> = smallvec![]; |
1612 | | /// let mut p = 1; |
1613 | | /// vec.resize_with(4, || { p *= 2; p }); |
1614 | | /// assert_eq!(&*vec, &[2, 4, 8, 16]); |
1615 | | /// ``` |
1616 | | pub fn resize_with<F>(&mut self, new_len: usize, f: F) |
1617 | | where |
1618 | | F: FnMut() -> A::Item, |
1619 | | { |
1620 | | let old_len = self.len(); |
1621 | | if old_len < new_len { |
1622 | | let mut f = f; |
1623 | | let additional = new_len - old_len; |
1624 | | self.reserve(additional); |
1625 | | for _ in 0..additional { |
1626 | | self.push(f()); |
1627 | | } |
1628 | | } else if old_len > new_len { |
1629 | | self.truncate(new_len); |
1630 | | } |
1631 | | } |
1632 | | |
1633 | | /// Creates a `SmallVec` directly from the raw components of another |
1634 | | /// `SmallVec`. |
1635 | | /// |
1636 | | /// # Safety |
1637 | | /// |
1638 | | /// This is highly unsafe, due to the number of invariants that aren't |
1639 | | /// checked: |
1640 | | /// |
1641 | | /// * `ptr` needs to have been previously allocated via `SmallVec` for its |
1642 | | /// spilled storage (at least, it's highly likely to be incorrect if it |
1643 | | /// wasn't). |
1644 | | /// * `ptr`'s `A::Item` type needs to be the same size and alignment that |
1645 | | /// it was allocated with |
1646 | | /// * `length` needs to be less than or equal to `capacity`. |
1647 | | /// * `capacity` needs to be the capacity that the pointer was allocated |
1648 | | /// with. |
1649 | | /// |
1650 | | /// Violating these may cause problems like corrupting the allocator's |
1651 | | /// internal data structures. |
1652 | | /// |
1653 | | /// Additionally, `capacity` must be greater than the amount of inline |
1654 | | /// storage `A` has; that is, the new `SmallVec` must need to spill over |
1655 | | /// into heap allocated storage. This condition is asserted against. |
1656 | | /// |
1657 | | /// The ownership of `ptr` is effectively transferred to the |
1658 | | /// `SmallVec` which may then deallocate, reallocate or change the |
1659 | | /// contents of memory pointed to by the pointer at will. Ensure |
1660 | | /// that nothing else uses the pointer after calling this |
1661 | | /// function. |
1662 | | /// |
1663 | | /// # Examples |
1664 | | /// |
1665 | | /// ``` |
1666 | | /// # use smallvec::{smallvec, SmallVec}; |
1667 | | /// use std::mem; |
1668 | | /// use std::ptr; |
1669 | | /// |
1670 | | /// fn main() { |
1671 | | /// let mut v: SmallVec<[_; 1]> = smallvec![1, 2, 3]; |
1672 | | /// |
1673 | | /// // Pull out the important parts of `v`. |
1674 | | /// let p = v.as_mut_ptr(); |
1675 | | /// let len = v.len(); |
1676 | | /// let cap = v.capacity(); |
1677 | | /// let spilled = v.spilled(); |
1678 | | /// |
1679 | | /// unsafe { |
1680 | | /// // Forget all about `v`. The heap allocation that stored the |
1681 | | /// // three values won't be deallocated. |
1682 | | /// mem::forget(v); |
1683 | | /// |
1684 | | /// // Overwrite memory with [4, 5, 6]. |
1685 | | /// // |
1686 | | /// // This is only safe if `spilled` is true! Otherwise, we are |
1687 | | /// // writing into the old `SmallVec`'s inline storage on the |
1688 | | /// // stack. |
1689 | | /// assert!(spilled); |
1690 | | /// for i in 0..len { |
1691 | | /// ptr::write(p.add(i), 4 + i); |
1692 | | /// } |
1693 | | /// |
1694 | | /// // Put everything back together into a SmallVec with a different |
1695 | | /// // amount of inline storage, but which is still less than `cap`. |
1696 | | /// let rebuilt = SmallVec::<[_; 2]>::from_raw_parts(p, len, cap); |
1697 | | /// assert_eq!(&*rebuilt, &[4, 5, 6]); |
1698 | | /// } |
1699 | | /// } |
1700 | | #[inline] |
1701 | | pub unsafe fn from_raw_parts(ptr: *mut A::Item, length: usize, capacity: usize) -> SmallVec<A> { |
1702 | | // SAFETY: We require caller to provide same ptr as we alloc |
1703 | | // and we never alloc null pointer. |
1704 | | let ptr = unsafe { |
1705 | | debug_assert!(!ptr.is_null(), "Called `from_raw_parts` with null pointer."); |
1706 | | NonNull::new_unchecked(ptr) |
1707 | | }; |
1708 | | assert!(capacity > Self::inline_capacity()); |
1709 | | SmallVec { |
1710 | | capacity, |
1711 | | data: SmallVecData::from_heap(ptr, length), |
1712 | | } |
1713 | | } |
1714 | | |
1715 | | /// Returns a raw pointer to the vector's buffer. |
1716 | 5.93M | pub fn as_ptr(&self) -> *const A::Item { |
1717 | 5.93M | // We shadow the slice method of the same name to avoid going through |
1718 | 5.93M | // `deref`, which creates an intermediate reference that may place |
1719 | 5.93M | // additional safety constraints on the contents of the slice. |
1720 | 5.93M | self.triple().0.as_ptr() |
1721 | 5.93M | } Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::as_ptr <smallvec::SmallVec<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]>>::as_ptr Line | Count | Source | 1716 | 223k | pub fn as_ptr(&self) -> *const A::Item { | 1717 | 223k | // We shadow the slice method of the same name to avoid going through | 1718 | 223k | // `deref`, which creates an intermediate reference that may place | 1719 | 223k | // additional safety constraints on the contents of the slice. | 1720 | 223k | self.triple().0.as_ptr() | 1721 | 223k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]>>::as_ptr <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::as_ptr Line | Count | Source | 1716 | 39.0k | pub fn as_ptr(&self) -> *const A::Item { | 1717 | 39.0k | // We shadow the slice method of the same name to avoid going through | 1718 | 39.0k | // `deref`, which creates an intermediate reference that may place | 1719 | 39.0k | // additional safety constraints on the contents of the slice. | 1720 | 39.0k | self.triple().0.as_ptr() | 1721 | 39.0k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::as_ptr <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>>::as_ptr Line | Count | Source | 1716 | 608k | pub fn as_ptr(&self) -> *const A::Item { | 1717 | 608k | // We shadow the slice method of the same name to avoid going through | 1718 | 608k | // `deref`, which creates an intermediate reference that may place | 1719 | 608k | // additional safety constraints on the contents of the slice. | 1720 | 608k | self.triple().0.as_ptr() | 1721 | 608k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]>>::as_ptr Line | Count | Source | 1716 | 305k | pub fn as_ptr(&self) -> *const A::Item { | 1717 | 305k | // We shadow the slice method of the same name to avoid going through | 1718 | 305k | // `deref`, which creates an intermediate reference that may place | 1719 | 305k | // additional safety constraints on the contents of the slice. | 1720 | 305k | self.triple().0.as_ptr() | 1721 | 305k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]>>::as_ptr Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]>>::as_ptr Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]>>::as_ptr Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]>>::as_ptr <smallvec::SmallVec<[regalloc2::index::Block; 16]>>::as_ptr Line | Count | Source | 1716 | 17.6k | pub fn as_ptr(&self) -> *const A::Item { | 1717 | 17.6k | // We shadow the slice method of the same name to avoid going through | 1718 | 17.6k | // `deref`, which creates an intermediate reference that may place | 1719 | 17.6k | // additional safety constraints on the contents of the slice. | 1720 | 17.6k | self.triple().0.as_ptr() | 1721 | 17.6k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::RetPair; 2]>>::as_ptr Line | Count | Source | 1716 | 1.35k | pub fn as_ptr(&self) -> *const A::Item { | 1717 | 1.35k | // We shadow the slice method of the same name to avoid going through | 1718 | 1.35k | // `deref`, which creates an intermediate reference that may place | 1719 | 1.35k | // additional safety constraints on the contents of the slice. | 1720 | 1.35k | self.triple().0.as_ptr() | 1721 | 1.35k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 4]>>::as_ptr <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]>>::as_ptr Line | Count | Source | 1716 | 37.2k | pub fn as_ptr(&self) -> *const A::Item { | 1717 | 37.2k | // We shadow the slice method of the same name to avoid going through | 1718 | 37.2k | // `deref`, which creates an intermediate reference that may place | 1719 | 37.2k | // additional safety constraints on the contents of the slice. | 1720 | 37.2k | self.triple().0.as_ptr() | 1721 | 37.2k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]>>::as_ptr Line | Count | Source | 1716 | 2.61M | pub fn as_ptr(&self) -> *const A::Item { | 1717 | 2.61M | // We shadow the slice method of the same name to avoid going through | 1718 | 2.61M | // `deref`, which creates an intermediate reference that may place | 1719 | 2.61M | // additional safety constraints on the contents of the slice. | 1720 | 2.61M | self.triple().0.as_ptr() | 1721 | 2.61M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 16]>>::as_ptr Line | Count | Source | 1716 | 28.3k | pub fn as_ptr(&self) -> *const A::Item { | 1717 | 28.3k | // We shadow the slice method of the same name to avoid going through | 1718 | 28.3k | // `deref`, which creates an intermediate reference that may place | 1719 | 28.3k | // additional safety constraints on the contents of the slice. | 1720 | 28.3k | self.triple().0.as_ptr() | 1721 | 28.3k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]>>::as_ptr Line | Count | Source | 1716 | 294k | pub fn as_ptr(&self) -> *const A::Item { | 1717 | 294k | // We shadow the slice method of the same name to avoid going through | 1718 | 294k | // `deref`, which creates an intermediate reference that may place | 1719 | 294k | // additional safety constraints on the contents of the slice. | 1720 | 294k | self.triple().0.as_ptr() | 1721 | 294k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>>::as_ptr Line | Count | Source | 1716 | 341k | pub fn as_ptr(&self) -> *const A::Item { | 1717 | 341k | // We shadow the slice method of the same name to avoid going through | 1718 | 341k | // `deref`, which creates an intermediate reference that may place | 1719 | 341k | // additional safety constraints on the contents of the slice. | 1720 | 341k | self.triple().0.as_ptr() | 1721 | 341k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]>>::as_ptr Line | Count | Source | 1716 | 104k | pub fn as_ptr(&self) -> *const A::Item { | 1717 | 104k | // We shadow the slice method of the same name to avoid going through | 1718 | 104k | // `deref`, which creates an intermediate reference that may place | 1719 | 104k | // additional safety constraints on the contents of the slice. | 1720 | 104k | self.triple().0.as_ptr() | 1721 | 104k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>>::as_ptr Line | Count | Source | 1716 | 1.11M | pub fn as_ptr(&self) -> *const A::Item { | 1717 | 1.11M | // We shadow the slice method of the same name to avoid going through | 1718 | 1.11M | // `deref`, which creates an intermediate reference that may place | 1719 | 1.11M | // additional safety constraints on the contents of the slice. | 1720 | 1.11M | self.triple().0.as_ptr() | 1721 | 1.11M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]>>::as_ptr Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>>::as_ptr Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]>>::as_ptr Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>>::as_ptr Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]>>::as_ptr Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]>>::as_ptr Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>>::as_ptr Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]>>::as_ptr Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]>>::as_ptr <smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]>>::as_ptr Line | Count | Source | 1716 | 159k | pub fn as_ptr(&self) -> *const A::Item { | 1717 | 159k | // We shadow the slice method of the same name to avoid going through | 1718 | 159k | // `deref`, which creates an intermediate reference that may place | 1719 | 159k | // additional safety constraints on the contents of the slice. | 1720 | 159k | self.triple().0.as_ptr() | 1721 | 159k | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]>>::as_ptr Line | Count | Source | 1716 | 3.56k | pub fn as_ptr(&self) -> *const A::Item { | 1717 | 3.56k | // We shadow the slice method of the same name to avoid going through | 1718 | 3.56k | // `deref`, which creates an intermediate reference that may place | 1719 | 3.56k | // additional safety constraints on the contents of the slice. | 1720 | 3.56k | self.triple().0.as_ptr() | 1721 | 3.56k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]>>::as_ptr <smallvec::SmallVec<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]>>::as_ptr Line | Count | Source | 1716 | 39.7k | pub fn as_ptr(&self) -> *const A::Item { | 1717 | 39.7k | // We shadow the slice method of the same name to avoid going through | 1718 | 39.7k | // `deref`, which creates an intermediate reference that may place | 1719 | 39.7k | // additional safety constraints on the contents of the slice. | 1720 | 39.7k | self.triple().0.as_ptr() | 1721 | 39.7k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]>>::as_ptr Unexecuted instantiation: <smallvec::SmallVec<[u8; 1024]>>::as_ptr Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::as_ptr Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::as_ptr Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]>>::as_ptr Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]>>::as_ptr |
1722 | | |
1723 | | /// Returns a raw mutable pointer to the vector's buffer. |
1724 | 796k | pub fn as_mut_ptr(&mut self) -> *mut A::Item { |
1725 | 796k | // We shadow the slice method of the same name to avoid going through |
1726 | 796k | // `deref_mut`, which creates an intermediate reference that may place |
1727 | 796k | // additional safety constraints on the contents of the slice. |
1728 | 796k | self.triple_mut().0.as_ptr() |
1729 | 796k | } <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::as_mut_ptr Line | Count | Source | 1724 | 89.4k | pub fn as_mut_ptr(&mut self) -> *mut A::Item { | 1725 | 89.4k | // We shadow the slice method of the same name to avoid going through | 1726 | 89.4k | // `deref_mut`, which creates an intermediate reference that may place | 1727 | 89.4k | // additional safety constraints on the contents of the slice. | 1728 | 89.4k | self.triple_mut().0.as_ptr() | 1729 | 89.4k | } |
<smallvec::SmallVec<[u8; 1024]>>::as_mut_ptr Line | Count | Source | 1724 | 707k | pub fn as_mut_ptr(&mut self) -> *mut A::Item { | 1725 | 707k | // We shadow the slice method of the same name to avoid going through | 1726 | 707k | // `deref_mut`, which creates an intermediate reference that may place | 1727 | 707k | // additional safety constraints on the contents of the slice. | 1728 | 707k | self.triple_mut().0.as_ptr() | 1729 | 707k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>>::as_mut_ptr |
1730 | | } |
1731 | | |
1732 | | impl<A: Array> SmallVec<A> |
1733 | | where |
1734 | | A::Item: Copy, |
1735 | | { |
1736 | | /// Copy the elements from a slice into a new `SmallVec`. |
1737 | | /// |
1738 | | /// For slices of `Copy` types, this is more efficient than `SmallVec::from(slice)`. |
1739 | | pub fn from_slice(slice: &[A::Item]) -> Self { |
1740 | | let len = slice.len(); |
1741 | | if len <= Self::inline_capacity() { |
1742 | | SmallVec { |
1743 | | capacity: len, |
1744 | | data: SmallVecData::from_inline(unsafe { |
1745 | | let mut data: MaybeUninit<A> = MaybeUninit::uninit(); |
1746 | | ptr::copy_nonoverlapping( |
1747 | | slice.as_ptr(), |
1748 | | data.as_mut_ptr() as *mut A::Item, |
1749 | | len, |
1750 | | ); |
1751 | | data |
1752 | | }), |
1753 | | } |
1754 | | } else { |
1755 | | let mut b = slice.to_vec(); |
1756 | | let cap = b.capacity(); |
1757 | | let ptr = NonNull::new(b.as_mut_ptr()).expect("Vec always contain non null pointers."); |
1758 | | mem::forget(b); |
1759 | | SmallVec { |
1760 | | capacity: cap, |
1761 | | data: SmallVecData::from_heap(ptr, len), |
1762 | | } |
1763 | | } |
1764 | | } |
1765 | | |
1766 | | /// Copy elements from a slice into the vector at position `index`, shifting any following |
1767 | | /// elements toward the back. |
1768 | | /// |
1769 | | /// For slices of `Copy` types, this is more efficient than `insert`. |
1770 | | #[inline] |
1771 | 795k | pub fn insert_from_slice(&mut self, index: usize, slice: &[A::Item]) { |
1772 | 795k | self.reserve(slice.len()); |
1773 | 795k | |
1774 | 795k | let len = self.len(); |
1775 | 795k | assert!(index <= len); |
1776 | | |
1777 | 795k | unsafe { |
1778 | 795k | let slice_ptr = slice.as_ptr(); |
1779 | 795k | let ptr = self.as_mut_ptr().add(index); |
1780 | 795k | ptr::copy(ptr, ptr.add(slice.len()), len - index); |
1781 | 795k | ptr::copy_nonoverlapping(slice_ptr, ptr, slice.len()); |
1782 | 795k | self.set_len(len + slice.len()); |
1783 | 795k | } |
1784 | 795k | } <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::insert_from_slice Line | Count | Source | 1771 | 88.5k | pub fn insert_from_slice(&mut self, index: usize, slice: &[A::Item]) { | 1772 | 88.5k | self.reserve(slice.len()); | 1773 | 88.5k | | 1774 | 88.5k | let len = self.len(); | 1775 | 88.5k | assert!(index <= len); | 1776 | | | 1777 | 88.5k | unsafe { | 1778 | 88.5k | let slice_ptr = slice.as_ptr(); | 1779 | 88.5k | let ptr = self.as_mut_ptr().add(index); | 1780 | 88.5k | ptr::copy(ptr, ptr.add(slice.len()), len - index); | 1781 | 88.5k | ptr::copy_nonoverlapping(slice_ptr, ptr, slice.len()); | 1782 | 88.5k | self.set_len(len + slice.len()); | 1783 | 88.5k | } | 1784 | 88.5k | } |
<smallvec::SmallVec<[u8; 1024]>>::insert_from_slice Line | Count | Source | 1771 | 707k | pub fn insert_from_slice(&mut self, index: usize, slice: &[A::Item]) { | 1772 | 707k | self.reserve(slice.len()); | 1773 | 707k | | 1774 | 707k | let len = self.len(); | 1775 | 707k | assert!(index <= len); | 1776 | | | 1777 | 707k | unsafe { | 1778 | 707k | let slice_ptr = slice.as_ptr(); | 1779 | 707k | let ptr = self.as_mut_ptr().add(index); | 1780 | 707k | ptr::copy(ptr, ptr.add(slice.len()), len - index); | 1781 | 707k | ptr::copy_nonoverlapping(slice_ptr, ptr, slice.len()); | 1782 | 707k | self.set_len(len + slice.len()); | 1783 | 707k | } | 1784 | 707k | } |
|
1785 | | |
1786 | | /// Copy elements from a slice and append them to the vector. |
1787 | | /// |
1788 | | /// For slices of `Copy` types, this is more efficient than `extend`. |
1789 | | #[inline] |
1790 | 795k | pub fn extend_from_slice(&mut self, slice: &[A::Item]) { |
1791 | 795k | let len = self.len(); |
1792 | 795k | self.insert_from_slice(len, slice); |
1793 | 795k | } <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>>::extend_from_slice Line | Count | Source | 1790 | 88.5k | pub fn extend_from_slice(&mut self, slice: &[A::Item]) { | 1791 | 88.5k | let len = self.len(); | 1792 | 88.5k | self.insert_from_slice(len, slice); | 1793 | 88.5k | } |
<smallvec::SmallVec<[u8; 1024]>>::extend_from_slice Line | Count | Source | 1790 | 707k | pub fn extend_from_slice(&mut self, slice: &[A::Item]) { | 1791 | 707k | let len = self.len(); | 1792 | 707k | self.insert_from_slice(len, slice); | 1793 | 707k | } |
|
1794 | | } |
1795 | | |
1796 | | impl<A: Array> SmallVec<A> |
1797 | | where |
1798 | | A::Item: Clone, |
1799 | | { |
1800 | | /// Resizes the vector so that its length is equal to `len`. |
1801 | | /// |
1802 | | /// If `len` is less than the current length, the vector simply truncated. |
1803 | | /// |
1804 | | /// If `len` is greater than the current length, `value` is appended to the |
1805 | | /// vector until its length equals `len`. |
1806 | 278k | pub fn resize(&mut self, len: usize, value: A::Item) { |
1807 | 278k | let old_len = self.len(); |
1808 | 278k | |
1809 | 278k | if len > old_len { |
1810 | 278k | self.extend(repeat(value).take(len - old_len)); |
1811 | 278k | } else { |
1812 | 0 | self.truncate(len); |
1813 | 0 | } |
1814 | 278k | } <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]>>::resize Line | Count | Source | 1806 | 139k | pub fn resize(&mut self, len: usize, value: A::Item) { | 1807 | 139k | let old_len = self.len(); | 1808 | 139k | | 1809 | 139k | if len > old_len { | 1810 | 139k | self.extend(repeat(value).take(len - old_len)); | 1811 | 139k | } else { | 1812 | 0 | self.truncate(len); | 1813 | 0 | } | 1814 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[u8; 1024]>>::resize <smallvec::SmallVec<[u32; 16]>>::resize Line | Count | Source | 1806 | 139k | pub fn resize(&mut self, len: usize, value: A::Item) { | 1807 | 139k | let old_len = self.len(); | 1808 | 139k | | 1809 | 139k | if len > old_len { | 1810 | 139k | self.extend(repeat(value).take(len - old_len)); | 1811 | 139k | } else { | 1812 | 0 | self.truncate(len); | 1813 | 0 | } | 1814 | 139k | } |
|
1815 | | |
1816 | | /// Creates a `SmallVec` with `n` copies of `elem`. |
1817 | | /// ``` |
1818 | | /// use smallvec::SmallVec; |
1819 | | /// |
1820 | | /// let v = SmallVec::<[char; 128]>::from_elem('d', 2); |
1821 | | /// assert_eq!(v, SmallVec::from_buf(['d', 'd'])); |
1822 | | /// ``` |
1823 | 4.56k | pub fn from_elem(elem: A::Item, n: usize) -> Self { |
1824 | 4.56k | if n > Self::inline_capacity() { |
1825 | 0 | vec![elem; n].into() |
1826 | | } else { |
1827 | 4.56k | let mut v = SmallVec::<A>::new(); |
1828 | 4.56k | unsafe { |
1829 | 4.56k | let (ptr, len_ptr, _) = v.triple_mut(); |
1830 | 4.56k | let ptr = ptr.as_ptr(); |
1831 | 4.56k | let mut local_len = SetLenOnDrop::new(len_ptr); |
1832 | | |
1833 | 9.26k | for i in 0..n { |
1834 | 9.26k | ::core::ptr::write(ptr.add(i), elem.clone()); |
1835 | 9.26k | local_len.increment_len(1); |
1836 | 9.26k | } |
1837 | | } |
1838 | 4.56k | v |
1839 | | } |
1840 | 4.56k | } <smallvec::SmallVec<[core::option::Option<usize>; 16]>>::from_elem Line | Count | Source | 1823 | 1.52k | pub fn from_elem(elem: A::Item, n: usize) -> Self { | 1824 | 1.52k | if n > Self::inline_capacity() { | 1825 | 0 | vec![elem; n].into() | 1826 | | } else { | 1827 | 1.52k | let mut v = SmallVec::<A>::new(); | 1828 | 1.52k | unsafe { | 1829 | 1.52k | let (ptr, len_ptr, _) = v.triple_mut(); | 1830 | 1.52k | let ptr = ptr.as_ptr(); | 1831 | 1.52k | let mut local_len = SetLenOnDrop::new(len_ptr); | 1832 | | | 1833 | 3.08k | for i in 0..n { | 1834 | 3.08k | ::core::ptr::write(ptr.add(i), elem.clone()); | 1835 | 3.08k | local_len.increment_len(1); | 1836 | 3.08k | } | 1837 | | } | 1838 | 1.52k | v | 1839 | | } | 1840 | 1.52k | } |
<smallvec::SmallVec<[bool; 16]>>::from_elem Line | Count | Source | 1823 | 3.04k | pub fn from_elem(elem: A::Item, n: usize) -> Self { | 1824 | 3.04k | if n > Self::inline_capacity() { | 1825 | 0 | vec![elem; n].into() | 1826 | | } else { | 1827 | 3.04k | let mut v = SmallVec::<A>::new(); | 1828 | 3.04k | unsafe { | 1829 | 3.04k | let (ptr, len_ptr, _) = v.triple_mut(); | 1830 | 3.04k | let ptr = ptr.as_ptr(); | 1831 | 3.04k | let mut local_len = SetLenOnDrop::new(len_ptr); | 1832 | | | 1833 | 6.17k | for i in 0..n { | 1834 | 6.17k | ::core::ptr::write(ptr.add(i), elem.clone()); | 1835 | 6.17k | local_len.increment_len(1); | 1836 | 6.17k | } | 1837 | | } | 1838 | 3.04k | v | 1839 | | } | 1840 | 3.04k | } |
|
1841 | | } |
1842 | | |
1843 | | impl<A: Array> ops::Deref for SmallVec<A> { |
1844 | | type Target = [A::Item]; |
1845 | | #[inline] |
1846 | 57.7M | fn deref(&self) -> &[A::Item] { |
1847 | 57.7M | unsafe { |
1848 | 57.7M | let (ptr, len, _) = self.triple(); |
1849 | 57.7M | slice::from_raw_parts(ptr.as_ptr(), len) |
1850 | 57.7M | } |
1851 | 57.7M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 647k | fn deref(&self) -> &[A::Item] { | 1847 | 647k | unsafe { | 1848 | 647k | let (ptr, len, _) = self.triple(); | 1849 | 647k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 647k | } | 1851 | 647k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 87.8k | fn deref(&self) -> &[A::Item] { | 1847 | 87.8k | unsafe { | 1848 | 87.8k | let (ptr, len, _) = self.triple(); | 1849 | 87.8k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 87.8k | } | 1851 | 87.8k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]> as core::ops::deref::Deref>::deref <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 87.8k | fn deref(&self) -> &[A::Item] { | 1847 | 87.8k | unsafe { | 1848 | 87.8k | let (ptr, len, _) = self.triple(); | 1849 | 87.8k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 87.8k | } | 1851 | 87.8k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 87.8k | fn deref(&self) -> &[A::Item] { | 1847 | 87.8k | unsafe { | 1848 | 87.8k | let (ptr, len, _) = self.triple(); | 1849 | 87.8k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 87.8k | } | 1851 | 87.8k | } |
<smallvec::SmallVec<[core::option::Option<usize>; 16]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 3.08k | fn deref(&self) -> &[A::Item] { | 1847 | 3.08k | unsafe { | 1848 | 3.08k | let (ptr, len, _) = self.triple(); | 1849 | 3.08k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 3.08k | } | 1851 | 3.08k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 458k | fn deref(&self) -> &[A::Item] { | 1847 | 458k | unsafe { | 1848 | 458k | let (ptr, len, _) = self.triple(); | 1849 | 458k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 458k | } | 1851 | 458k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::Allocation; 2]> as core::ops::deref::Deref>::deref <smallvec::SmallVec<[regalloc2::PReg; 8]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 43.6k | fn deref(&self) -> &[A::Item] { | 1847 | 43.6k | unsafe { | 1848 | 43.6k | let (ptr, len, _) = self.triple(); | 1849 | 43.6k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 43.6k | } | 1851 | 43.6k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]> as core::ops::deref::Deref>::deref Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::SpillSlot; 8]> as core::ops::deref::Deref>::deref <smallvec::SmallVec<[cranelift_codegen::loop_analysis::Loop; 8]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 4.39k | fn deref(&self) -> &[A::Item] { | 1847 | 4.39k | unsafe { | 1848 | 4.39k | let (ptr, len, _) = self.triple(); | 1849 | 4.39k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 4.39k | } | 1851 | 4.39k | } |
<smallvec::SmallVec<[regalloc2::index::Block; 16]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 476k | fn deref(&self) -> &[A::Item] { | 1847 | 476k | unsafe { | 1848 | 476k | let (ptr, len, _) = self.triple(); | 1849 | 476k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 476k | } | 1851 | 476k | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Inst; 2]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 668k | fn deref(&self) -> &[A::Item] { | 1847 | 668k | unsafe { | 1848 | 668k | let (ptr, len, _) = self.triple(); | 1849 | 668k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 668k | } | 1851 | 668k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]> as core::ops::deref::Deref>::deref Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]> as core::ops::deref::Deref>::deref <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 148k | fn deref(&self) -> &[A::Item] { | 1847 | 148k | unsafe { | 1848 | 148k | let (ptr, len, _) = self.triple(); | 1849 | 148k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 148k | } | 1851 | 148k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 702k | fn deref(&self) -> &[A::Item] { | 1847 | 702k | unsafe { | 1848 | 702k | let (ptr, len, _) = self.triple(); | 1849 | 702k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 702k | } | 1851 | 702k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]> as core::ops::deref::Deref>::deref <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 1.13M | fn deref(&self) -> &[A::Item] { | 1847 | 1.13M | unsafe { | 1848 | 1.13M | let (ptr, len, _) = self.triple(); | 1849 | 1.13M | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 1.13M | } | 1851 | 1.13M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 104k | fn deref(&self) -> &[A::Item] { | 1847 | 104k | unsafe { | 1848 | 104k | let (ptr, len, _) = self.triple(); | 1849 | 104k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 104k | } | 1851 | 104k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 104k | fn deref(&self) -> &[A::Item] { | 1847 | 104k | unsafe { | 1848 | 104k | let (ptr, len, _) = self.triple(); | 1849 | 104k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 104k | } | 1851 | 104k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 16]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 204k | fn deref(&self) -> &[A::Item] { | 1847 | 204k | unsafe { | 1848 | 204k | let (ptr, len, _) = self.triple(); | 1849 | 204k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 204k | } | 1851 | 204k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachBranch; 4]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 1.64M | fn deref(&self) -> &[A::Item] { | 1847 | 1.64M | unsafe { | 1848 | 1.64M | let (ptr, len, _) = self.triple(); | 1849 | 1.64M | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 1.64M | } | 1851 | 1.64M | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 643k | fn deref(&self) -> &[A::Item] { | 1847 | 643k | unsafe { | 1848 | 643k | let (ptr, len, _) = self.triple(); | 1849 | 643k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 643k | } | 1851 | 643k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 2]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 167k | fn deref(&self) -> &[A::Item] { | 1847 | 167k | unsafe { | 1848 | 167k | let (ptr, len, _) = self.triple(); | 1849 | 167k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 167k | } | 1851 | 167k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 452k | fn deref(&self) -> &[A::Item] { | 1847 | 452k | unsafe { | 1848 | 452k | let (ptr, len, _) = self.triple(); | 1849 | 452k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 452k | } | 1851 | 452k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::InsertedMove; 8]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 464k | fn deref(&self) -> &[A::Item] { | 1847 | 464k | unsafe { | 1848 | 464k | let (ptr, len, _) = self.triple(); | 1849 | 464k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 464k | } | 1851 | 464k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 23.8k | fn deref(&self) -> &[A::Item] { | 1847 | 23.8k | unsafe { | 1848 | 23.8k | let (ptr, len, _) = self.triple(); | 1849 | 23.8k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 23.8k | } | 1851 | 23.8k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 627k | fn deref(&self) -> &[A::Item] { | 1847 | 627k | unsafe { | 1848 | 627k | let (ptr, len, _) = self.triple(); | 1849 | 627k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 627k | } | 1851 | 627k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 27.8M | fn deref(&self) -> &[A::Item] { | 1847 | 27.8M | unsafe { | 1848 | 27.8M | let (ptr, len, _) = self.triple(); | 1849 | 27.8M | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 27.8M | } | 1851 | 27.8M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 6.92M | fn deref(&self) -> &[A::Item] { | 1847 | 6.92M | unsafe { | 1848 | 6.92M | let (ptr, len, _) = self.triple(); | 1849 | 6.92M | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 6.92M | } | 1851 | 6.92M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 324k | fn deref(&self) -> &[A::Item] { | 1847 | 324k | unsafe { | 1848 | 324k | let (ptr, len, _) = self.triple(); | 1849 | 324k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 324k | } | 1851 | 324k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 368k | fn deref(&self) -> &[A::Item] { | 1847 | 368k | unsafe { | 1848 | 368k | let (ptr, len, _) = self.triple(); | 1849 | 368k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 368k | } | 1851 | 368k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 139k | fn deref(&self) -> &[A::Item] { | 1847 | 139k | unsafe { | 1848 | 139k | let (ptr, len, _) = self.triple(); | 1849 | 139k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 139k | } | 1851 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]> as core::ops::deref::Deref>::deref Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::ops::deref::Deref>::deref <smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 479k | fn deref(&self) -> &[A::Item] { | 1847 | 479k | unsafe { | 1848 | 479k | let (ptr, len, _) = self.triple(); | 1849 | 479k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 479k | } | 1851 | 479k | } |
<smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 1.23M | fn deref(&self) -> &[A::Item] { | 1847 | 1.23M | unsafe { | 1848 | 1.23M | let (ptr, len, _) = self.triple(); | 1849 | 1.23M | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 1.23M | } | 1851 | 1.23M | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 331k | fn deref(&self) -> &[A::Item] { | 1847 | 331k | unsafe { | 1848 | 331k | let (ptr, len, _) = self.triple(); | 1849 | 331k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 331k | } | 1851 | 331k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::ops::deref::Deref>::deref <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 139k | fn deref(&self) -> &[A::Item] { | 1847 | 139k | unsafe { | 1848 | 139k | let (ptr, len, _) = self.triple(); | 1849 | 139k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 139k | } | 1851 | 139k | } |
<smallvec::SmallVec<[bool; 16]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 6.13k | fn deref(&self) -> &[A::Item] { | 1847 | 6.13k | unsafe { | 1848 | 6.13k | let (ptr, len, _) = self.triple(); | 1849 | 6.13k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 6.13k | } | 1851 | 6.13k | } |
<smallvec::SmallVec<[u8; 16]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 37.2k | fn deref(&self) -> &[A::Item] { | 1847 | 37.2k | unsafe { | 1848 | 37.2k | let (ptr, len, _) = self.triple(); | 1849 | 37.2k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 37.2k | } | 1851 | 37.2k | } |
<smallvec::SmallVec<[u8; 1024]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 307k | fn deref(&self) -> &[A::Item] { | 1847 | 307k | unsafe { | 1848 | 307k | let (ptr, len, _) = self.triple(); | 1849 | 307k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 307k | } | 1851 | 307k | } |
<smallvec::SmallVec<[u8; 8]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 56.8k | fn deref(&self) -> &[A::Item] { | 1847 | 56.8k | unsafe { | 1848 | 56.8k | let (ptr, len, _) = self.triple(); | 1849 | 56.8k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 56.8k | } | 1851 | 56.8k | } |
<smallvec::SmallVec<[usize; 16]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 3.08k | fn deref(&self) -> &[A::Item] { | 1847 | 3.08k | unsafe { | 1848 | 3.08k | let (ptr, len, _) = self.triple(); | 1849 | 3.08k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 3.08k | } | 1851 | 3.08k | } |
<smallvec::SmallVec<[usize; 4]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 2.94k | fn deref(&self) -> &[A::Item] { | 1847 | 2.94k | unsafe { | 1848 | 2.94k | let (ptr, len, _) = self.triple(); | 1849 | 2.94k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 2.94k | } | 1851 | 2.94k | } |
<smallvec::SmallVec<[u32; 16]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 624k | fn deref(&self) -> &[A::Item] { | 1847 | 624k | unsafe { | 1848 | 624k | let (ptr, len, _) = self.triple(); | 1849 | 624k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 624k | } | 1851 | 624k | } |
<smallvec::SmallVec<[u32; 64]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 197k | fn deref(&self) -> &[A::Item] { | 1847 | 197k | unsafe { | 1848 | 197k | let (ptr, len, _) = self.triple(); | 1849 | 197k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 197k | } | 1851 | 197k | } |
<smallvec::SmallVec<[u32; 8]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 3.80M | fn deref(&self) -> &[A::Item] { | 1847 | 3.80M | unsafe { | 1848 | 3.80M | let (ptr, len, _) = self.triple(); | 1849 | 3.80M | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 3.80M | } | 1851 | 3.80M | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 22.4k | fn deref(&self) -> &[A::Item] { | 1847 | 22.4k | unsafe { | 1848 | 22.4k | let (ptr, len, _) = self.triple(); | 1849 | 22.4k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 22.4k | } | 1851 | 22.4k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::ops::deref::Deref>::deref Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]> as core::ops::deref::Deref>::deref Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::ops::deref::Deref>::deref Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::ops::deref::Deref>::deref Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]> as core::ops::deref::Deref>::deref Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]> as core::ops::deref::Deref>::deref Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]> as core::ops::deref::Deref>::deref <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 3.42M | fn deref(&self) -> &[A::Item] { | 1847 | 3.42M | unsafe { | 1848 | 3.42M | let (ptr, len, _) = self.triple(); | 1849 | 3.42M | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 3.42M | } | 1851 | 3.42M | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 461k | fn deref(&self) -> &[A::Item] { | 1847 | 461k | unsafe { | 1848 | 461k | let (ptr, len, _) = self.triple(); | 1849 | 461k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 461k | } | 1851 | 461k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 454k | fn deref(&self) -> &[A::Item] { | 1847 | 454k | unsafe { | 1848 | 454k | let (ptr, len, _) = self.triple(); | 1849 | 454k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 454k | } | 1851 | 454k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 153k | fn deref(&self) -> &[A::Item] { | 1847 | 153k | unsafe { | 1848 | 153k | let (ptr, len, _) = self.triple(); | 1849 | 153k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 153k | } | 1851 | 153k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]> as core::ops::deref::Deref>::deref Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]> as core::ops::deref::Deref>::deref Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]> as core::ops::deref::Deref>::deref Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]> as core::ops::deref::Deref>::deref Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]> as core::ops::deref::Deref>::deref Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]> as core::ops::deref::Deref>::deref <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 816k | fn deref(&self) -> &[A::Item] { | 1847 | 816k | unsafe { | 1848 | 816k | let (ptr, len, _) = self.triple(); | 1849 | 816k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 816k | } | 1851 | 816k | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 98.1k | fn deref(&self) -> &[A::Item] { | 1847 | 98.1k | unsafe { | 1848 | 98.1k | let (ptr, len, _) = self.triple(); | 1849 | 98.1k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 98.1k | } | 1851 | 98.1k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 406k | fn deref(&self) -> &[A::Item] { | 1847 | 406k | unsafe { | 1848 | 406k | let (ptr, len, _) = self.triple(); | 1849 | 406k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 406k | } | 1851 | 406k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]> as core::ops::deref::Deref>::deref Line | Count | Source | 1846 | 32.6k | fn deref(&self) -> &[A::Item] { | 1847 | 32.6k | unsafe { | 1848 | 32.6k | let (ptr, len, _) = self.triple(); | 1849 | 32.6k | slice::from_raw_parts(ptr.as_ptr(), len) | 1850 | 32.6k | } | 1851 | 32.6k | } |
|
1852 | | } |
1853 | | |
1854 | | impl<A: Array> ops::DerefMut for SmallVec<A> { |
1855 | | #[inline] |
1856 | 134M | fn deref_mut(&mut self) -> &mut [A::Item] { |
1857 | 134M | unsafe { |
1858 | 134M | let (ptr, &mut len, _) = self.triple_mut(); |
1859 | 134M | slice::from_raw_parts_mut(ptr.as_ptr(), len) |
1860 | 134M | } |
1861 | 134M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 359k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 359k | unsafe { | 1858 | 359k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 359k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 359k | } | 1861 | 359k | } |
Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::ops::deref::DerefMut>::deref_mut <smallvec::SmallVec<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 392k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 392k | unsafe { | 1858 | 392k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 392k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 392k | } | 1861 | 392k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 137k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 137k | unsafe { | 1858 | 137k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 137k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 137k | } | 1861 | 137k | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 156k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 156k | unsafe { | 1858 | 156k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 156k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 156k | } | 1861 | 156k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 138k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 138k | unsafe { | 1858 | 138k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 138k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 138k | } | 1861 | 138k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 139k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 139k | unsafe { | 1858 | 139k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 139k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 139k | } | 1861 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 137k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 137k | unsafe { | 1858 | 137k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 137k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 137k | } | 1861 | 137k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 139k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 139k | unsafe { | 1858 | 139k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 139k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 139k | } | 1861 | 139k | } |
<smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 139k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 139k | unsafe { | 1858 | 139k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 139k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 139k | } | 1861 | 139k | } |
<smallvec::SmallVec<[u8; 1024]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 137k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 137k | unsafe { | 1858 | 137k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 137k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 137k | } | 1861 | 137k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]> as core::ops::deref::DerefMut>::deref_mut <smallvec::SmallVec<[core::option::Option<usize>; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 3.04k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 3.04k | unsafe { | 1858 | 3.04k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 3.04k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 3.04k | } | 1861 | 3.04k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 211k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 211k | unsafe { | 1858 | 211k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 211k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 211k | } | 1861 | 211k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]> as core::ops::deref::DerefMut>::deref_mut <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 600k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 600k | unsafe { | 1858 | 600k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 600k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 600k | } | 1861 | 600k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 174k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 174k | unsafe { | 1858 | 174k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 174k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 174k | } | 1861 | 174k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]> as core::ops::deref::DerefMut>::deref_mut <smallvec::SmallVec<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 869k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 869k | unsafe { | 1858 | 869k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 869k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 869k | } | 1861 | 869k | } |
<smallvec::SmallVec<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 717k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 717k | unsafe { | 1858 | 717k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 717k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 717k | } | 1861 | 717k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 2]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 278k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 278k | unsafe { | 1858 | 278k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 278k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 278k | } | 1861 | 278k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 30.6k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 30.6k | unsafe { | 1858 | 30.6k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 30.6k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 30.6k | } | 1861 | 30.6k | } |
<smallvec::SmallVec<[regalloc2::PReg; 8]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 1.26M | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 1.26M | unsafe { | 1858 | 1.26M | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 1.26M | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 1.26M | } | 1861 | 1.26M | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]> as core::ops::deref::DerefMut>::deref_mut <smallvec::SmallVec<[regalloc2::SpillSlot; 8]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 166k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 166k | unsafe { | 1858 | 166k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 166k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 166k | } | 1861 | 166k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]> as core::ops::deref::DerefMut>::deref_mut <smallvec::SmallVec<[cranelift_codegen::loop_analysis::Loop; 8]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 139k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 139k | unsafe { | 1858 | 139k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 139k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 139k | } | 1861 | 139k | } |
<smallvec::SmallVec<[regalloc2::index::Block; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 415k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 415k | unsafe { | 1858 | 415k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 415k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 415k | } | 1861 | 415k | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Inst; 2]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 139k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 139k | unsafe { | 1858 | 139k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 139k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 139k | } | 1861 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Block; 16]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 4]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]> as core::ops::deref::DerefMut>::deref_mut <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 138k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 138k | unsafe { | 1858 | 138k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 138k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 138k | } | 1861 | 138k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 702k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 702k | unsafe { | 1858 | 702k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 702k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 702k | } | 1861 | 702k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]> as core::ops::deref::DerefMut>::deref_mut <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 761k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 761k | unsafe { | 1858 | 761k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 761k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 761k | } | 1861 | 761k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 208k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 208k | unsafe { | 1858 | 208k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 208k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 208k | } | 1861 | 208k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 209k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 209k | unsafe { | 1858 | 209k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 209k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 209k | } | 1861 | 209k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::RetPair; 2]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 1.35k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 1.35k | unsafe { | 1858 | 1.35k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 1.35k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 1.35k | } | 1861 | 1.35k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 204k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 204k | unsafe { | 1858 | 204k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 204k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 204k | } | 1861 | 204k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 4]> as core::ops::deref::DerefMut>::deref_mut <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachBranch; 4]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 224k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 224k | unsafe { | 1858 | 224k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 224k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 224k | } | 1861 | 224k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]> as core::ops::deref::DerefMut>::deref_mut <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 148k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 148k | unsafe { | 1858 | 148k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 148k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 148k | } | 1861 | 148k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]> as core::ops::deref::DerefMut>::deref_mut <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 142k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 142k | unsafe { | 1858 | 142k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 142k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 142k | } | 1861 | 142k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 2]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 139k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 139k | unsafe { | 1858 | 139k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 139k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 139k | } | 1861 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 286k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 286k | unsafe { | 1858 | 286k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 286k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 286k | } | 1861 | 286k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]> as core::ops::deref::DerefMut>::deref_mut <smallvec::SmallVec<[regalloc2::ion::data_structures::InsertedMove; 8]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 464k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 464k | unsafe { | 1858 | 464k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 464k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 464k | } | 1861 | 464k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 10.3k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 10.3k | unsafe { | 1858 | 10.3k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 10.3k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 10.3k | } | 1861 | 10.3k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 426 | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 426 | unsafe { | 1858 | 426 | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 426 | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 426 | } | 1861 | 426 | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 2.44M | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 2.44M | unsafe { | 1858 | 2.44M | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 2.44M | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 2.44M | } | 1861 | 2.44M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 101M | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 101M | unsafe { | 1858 | 101M | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 101M | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 101M | } | 1861 | 101M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 3.97M | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 3.97M | unsafe { | 1858 | 3.97M | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 3.97M | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 3.97M | } | 1861 | 3.97M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 1.23M | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 1.23M | unsafe { | 1858 | 1.23M | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 1.23M | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 1.23M | } | 1861 | 1.23M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 2.86M | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 2.86M | unsafe { | 1858 | 2.86M | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 2.86M | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 2.86M | } | 1861 | 2.86M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 238k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 238k | unsafe { | 1858 | 238k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 238k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 238k | } | 1861 | 238k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 104k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 104k | unsafe { | 1858 | 104k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 104k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 104k | } | 1861 | 104k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 1.47M | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 1.47M | unsafe { | 1858 | 1.47M | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 1.47M | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 1.47M | } | 1861 | 1.47M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]> as core::ops::deref::DerefMut>::deref_mut <smallvec::SmallVec<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 678k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 678k | unsafe { | 1858 | 678k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 678k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 678k | } | 1861 | 678k | } |
<smallvec::SmallVec<[regalloc2::postorder::calculate::State; 64]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 819k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 819k | unsafe { | 1858 | 819k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 819k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 819k | } | 1861 | 819k | } |
<smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 471k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 471k | unsafe { | 1858 | 471k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 471k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 471k | } | 1861 | 471k | } |
<smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 139k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 139k | unsafe { | 1858 | 139k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 139k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 139k | } | 1861 | 139k | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 139k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 139k | unsafe { | 1858 | 139k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 139k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 139k | } | 1861 | 139k | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 3.56k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 3.56k | unsafe { | 1858 | 3.56k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 3.56k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 3.56k | } | 1861 | 3.56k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]> as core::ops::deref::DerefMut>::deref_mut <smallvec::SmallVec<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 306 | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 306 | unsafe { | 1858 | 306 | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 306 | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 306 | } | 1861 | 306 | } |
Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]> as core::ops::deref::DerefMut>::deref_mut <smallvec::SmallVec<[bool; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 12.3k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 12.3k | unsafe { | 1858 | 12.3k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 12.3k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 12.3k | } | 1861 | 12.3k | } |
<smallvec::SmallVec<[u8; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 37.2k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 37.2k | unsafe { | 1858 | 37.2k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 37.2k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 37.2k | } | 1861 | 37.2k | } |
<smallvec::SmallVec<[u8; 1024]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 305k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 305k | unsafe { | 1858 | 305k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 305k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 305k | } | 1861 | 305k | } |
<smallvec::SmallVec<[u8; 8]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 82.4k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 82.4k | unsafe { | 1858 | 82.4k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 82.4k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 82.4k | } | 1861 | 82.4k | } |
<smallvec::SmallVec<[usize; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 1.52k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 1.52k | unsafe { | 1858 | 1.52k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 1.52k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 1.52k | } | 1861 | 1.52k | } |
<smallvec::SmallVec<[usize; 4]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 242k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 242k | unsafe { | 1858 | 242k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 242k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 242k | } | 1861 | 242k | } |
<smallvec::SmallVec<[u32; 16]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 860k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 860k | unsafe { | 1858 | 860k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 860k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 860k | } | 1861 | 860k | } |
<smallvec::SmallVec<[u32; 64]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 138k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 138k | unsafe { | 1858 | 138k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 138k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 138k | } | 1861 | 138k | } |
<smallvec::SmallVec<[u32; 8]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 273k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 273k | unsafe { | 1858 | 273k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 273k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 273k | } | 1861 | 273k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 122k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 122k | unsafe { | 1858 | 122k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 122k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 122k | } | 1861 | 122k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]> as core::ops::deref::DerefMut>::deref_mut <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 3.42M | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 3.42M | unsafe { | 1858 | 3.42M | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 3.42M | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 3.42M | } | 1861 | 3.42M | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 153k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 153k | unsafe { | 1858 | 153k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 153k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 153k | } | 1861 | 153k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 489k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 489k | unsafe { | 1858 | 489k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 489k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 489k | } | 1861 | 489k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 153k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 153k | unsafe { | 1858 | 153k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 153k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 153k | } | 1861 | 153k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[u8; 1024]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]> as core::ops::deref::DerefMut>::deref_mut <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 816k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 816k | unsafe { | 1858 | 816k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 816k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 816k | } | 1861 | 816k | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 32.6k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 32.6k | unsafe { | 1858 | 32.6k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 32.6k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 32.6k | } | 1861 | 32.6k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 274k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 274k | unsafe { | 1858 | 274k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 274k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 274k | } | 1861 | 274k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]> as core::ops::deref::DerefMut>::deref_mut Line | Count | Source | 1856 | 32.6k | fn deref_mut(&mut self) -> &mut [A::Item] { | 1857 | 32.6k | unsafe { | 1858 | 32.6k | let (ptr, &mut len, _) = self.triple_mut(); | 1859 | 32.6k | slice::from_raw_parts_mut(ptr.as_ptr(), len) | 1860 | 32.6k | } | 1861 | 32.6k | } |
|
1862 | | } |
1863 | | |
1864 | | impl<A: Array> AsRef<[A::Item]> for SmallVec<A> { |
1865 | | #[inline] |
1866 | | fn as_ref(&self) -> &[A::Item] { |
1867 | | self |
1868 | | } |
1869 | | } |
1870 | | |
1871 | | impl<A: Array> AsMut<[A::Item]> for SmallVec<A> { |
1872 | | #[inline] |
1873 | | fn as_mut(&mut self) -> &mut [A::Item] { |
1874 | | self |
1875 | | } |
1876 | | } |
1877 | | |
1878 | | impl<A: Array> Borrow<[A::Item]> for SmallVec<A> { |
1879 | | #[inline] |
1880 | | fn borrow(&self) -> &[A::Item] { |
1881 | | self |
1882 | | } |
1883 | | } |
1884 | | |
1885 | | impl<A: Array> BorrowMut<[A::Item]> for SmallVec<A> { |
1886 | | #[inline] |
1887 | | fn borrow_mut(&mut self) -> &mut [A::Item] { |
1888 | | self |
1889 | | } |
1890 | | } |
1891 | | |
1892 | | #[cfg(feature = "write")] |
1893 | | #[cfg_attr(docsrs, doc(cfg(feature = "write")))] |
1894 | | impl<A: Array<Item = u8>> io::Write for SmallVec<A> { |
1895 | | #[inline] |
1896 | | fn write(&mut self, buf: &[u8]) -> io::Result<usize> { |
1897 | | self.extend_from_slice(buf); |
1898 | | Ok(buf.len()) |
1899 | | } |
1900 | | |
1901 | | #[inline] |
1902 | | fn write_all(&mut self, buf: &[u8]) -> io::Result<()> { |
1903 | | self.extend_from_slice(buf); |
1904 | | Ok(()) |
1905 | | } |
1906 | | |
1907 | | #[inline] |
1908 | | fn flush(&mut self) -> io::Result<()> { |
1909 | | Ok(()) |
1910 | | } |
1911 | | } |
1912 | | |
1913 | | #[cfg(feature = "serde")] |
1914 | | #[cfg_attr(docsrs, doc(cfg(feature = "serde")))] |
1915 | | impl<A: Array> Serialize for SmallVec<A> |
1916 | | where |
1917 | | A::Item: Serialize, |
1918 | | { |
1919 | | fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> { |
1920 | | let mut state = serializer.serialize_seq(Some(self.len()))?; |
1921 | | for item in self { |
1922 | | state.serialize_element(&item)?; |
1923 | | } |
1924 | | state.end() |
1925 | | } |
1926 | | } |
1927 | | |
1928 | | #[cfg(feature = "serde")] |
1929 | | #[cfg_attr(docsrs, doc(cfg(feature = "serde")))] |
1930 | | impl<'de, A: Array> Deserialize<'de> for SmallVec<A> |
1931 | | where |
1932 | | A::Item: Deserialize<'de>, |
1933 | | { |
1934 | | fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> { |
1935 | | deserializer.deserialize_seq(SmallVecVisitor { |
1936 | | phantom: PhantomData, |
1937 | | }) |
1938 | | } |
1939 | | } |
1940 | | |
1941 | | #[cfg(feature = "serde")] |
1942 | | struct SmallVecVisitor<A> { |
1943 | | phantom: PhantomData<A>, |
1944 | | } |
1945 | | |
1946 | | #[cfg(feature = "serde")] |
1947 | | impl<'de, A: Array> Visitor<'de> for SmallVecVisitor<A> |
1948 | | where |
1949 | | A::Item: Deserialize<'de>, |
1950 | | { |
1951 | | type Value = SmallVec<A>; |
1952 | | |
1953 | | fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { |
1954 | | formatter.write_str("a sequence") |
1955 | | } |
1956 | | |
1957 | | fn visit_seq<B>(self, mut seq: B) -> Result<Self::Value, B::Error> |
1958 | | where |
1959 | | B: SeqAccess<'de>, |
1960 | | { |
1961 | | use serde::de::Error; |
1962 | | let len = seq.size_hint().unwrap_or(0); |
1963 | | let mut values = SmallVec::new(); |
1964 | | values.try_reserve(len).map_err(B::Error::custom)?; |
1965 | | |
1966 | | while let Some(value) = seq.next_element()? { |
1967 | | values.push(value); |
1968 | | } |
1969 | | |
1970 | | Ok(values) |
1971 | | } |
1972 | | } |
1973 | | |
1974 | | #[cfg(feature = "specialization")] |
1975 | | trait SpecFrom<A: Array, S> { |
1976 | | fn spec_from(slice: S) -> SmallVec<A>; |
1977 | | } |
1978 | | |
1979 | | #[cfg(feature = "specialization")] |
1980 | | mod specialization; |
1981 | | |
1982 | | #[cfg(feature = "arbitrary")] |
1983 | | mod arbitrary; |
1984 | | |
1985 | | #[cfg(feature = "specialization")] |
1986 | | impl<'a, A: Array> SpecFrom<A, &'a [A::Item]> for SmallVec<A> |
1987 | | where |
1988 | | A::Item: Copy, |
1989 | | { |
1990 | | #[inline] |
1991 | | fn spec_from(slice: &'a [A::Item]) -> SmallVec<A> { |
1992 | | SmallVec::from_slice(slice) |
1993 | | } |
1994 | | } |
1995 | | |
1996 | | impl<'a, A: Array> From<&'a [A::Item]> for SmallVec<A> |
1997 | | where |
1998 | | A::Item: Clone, |
1999 | | { |
2000 | | #[cfg(not(feature = "specialization"))] |
2001 | | #[inline] |
2002 | 1.69M | fn from(slice: &'a [A::Item]) -> SmallVec<A> { |
2003 | 1.69M | slice.iter().cloned().collect() |
2004 | 1.69M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::convert::From<&[<[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::Item]>>::from Line | Count | Source | 2002 | 5.23k | fn from(slice: &'a [A::Item]) -> SmallVec<A> { | 2003 | 5.23k | slice.iter().cloned().collect() | 2004 | 5.23k | } |
<smallvec::SmallVec<[regalloc2::index::Block; 16]> as core::convert::From<&[regalloc2::index::Block]>>::from Line | Count | Source | 2002 | 139k | fn from(slice: &'a [A::Item]) -> SmallVec<A> { | 2003 | 139k | slice.iter().cloned().collect() | 2004 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]> as core::convert::From<&[cranelift_codegen::machinst::abi::ABIArgSlot]>>::from Line | Count | Source | 2002 | 49.6k | fn from(slice: &'a [A::Item]) -> SmallVec<A> { | 2003 | 49.6k | slice.iter().cloned().collect() | 2004 | 49.6k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]> as core::convert::From<&[cranelift_codegen::machinst::abi::CallArgPair]>>::from Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]> as core::convert::From<&[cranelift_codegen::machinst::abi::CallRetPair]>>::from <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]> as core::convert::From<&[cranelift_codegen::machinst::buffer::MachLabel]>>::from Line | Count | Source | 2002 | 220k | fn from(slice: &'a [A::Item]) -> SmallVec<A> { | 2003 | 220k | slice.iter().cloned().collect() | 2004 | 220k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::convert::From<&[regalloc2::ion::data_structures::SpillSlotIndex]>>::from Line | Count | Source | 2002 | 6.05k | fn from(slice: &'a [A::Item]) -> SmallVec<A> { | 2003 | 6.05k | slice.iter().cloned().collect() | 2004 | 6.05k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::convert::From<&[regalloc2::ion::data_structures::LiveRangeListEntry]>>::from Line | Count | Source | 2002 | 1.15M | fn from(slice: &'a [A::Item]) -> SmallVec<A> { | 2003 | 1.15M | slice.iter().cloned().collect() | 2004 | 1.15M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]> as core::convert::From<&[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst]>>::from Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]> as core::convert::From<&[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst]>>::from Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]> as core::convert::From<&[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst]>>::from Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::convert::From<&[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst]>>::from <smallvec::SmallVec<[u8; 16]> as core::convert::From<&[u8]>>::from Line | Count | Source | 2002 | 37.2k | fn from(slice: &'a [A::Item]) -> SmallVec<A> { | 2003 | 37.2k | slice.iter().cloned().collect() | 2004 | 37.2k | } |
<smallvec::SmallVec<[u8; 8]> as core::convert::From<&[u8]>>::from Line | Count | Source | 2002 | 82.4k | fn from(slice: &'a [A::Item]) -> SmallVec<A> { | 2003 | 82.4k | slice.iter().cloned().collect() | 2004 | 82.4k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::Allocation; 4]> as core::convert::From<&[regalloc2::Allocation]>>::from Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::convert::From<&[regalloc2::ion::data_structures::SpillSlotIndex]>>::from Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]> as core::convert::From<&[regalloc2::ion::data_structures::LiveBundleIndex]>>::from Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::convert::From<&[regalloc2::ion::data_structures::LiveRangeListEntry]>>::from Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::convert::From<&[regalloc2::ion::data_structures::Use]>>::from Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]> as core::convert::From<&[regalloc2::ion::data_structures::VRegIndex]>>::from Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::convert::From<&[wasmparser::readers::core::types::ValType]>>::from Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::convert::From<&[wasmparser::readers::core::types::ValType]>>::from |
2005 | | |
2006 | | #[cfg(feature = "specialization")] |
2007 | | #[inline] |
2008 | | fn from(slice: &'a [A::Item]) -> SmallVec<A> { |
2009 | | SmallVec::spec_from(slice) |
2010 | | } |
2011 | | } |
2012 | | |
2013 | | impl<A: Array> From<Vec<A::Item>> for SmallVec<A> { |
2014 | | #[inline] |
2015 | 0 | fn from(vec: Vec<A::Item>) -> SmallVec<A> { |
2016 | 0 | SmallVec::from_vec(vec) |
2017 | 0 | } Unexecuted instantiation: <smallvec::SmallVec<[core::option::Option<usize>; 16]> as core::convert::From<alloc::vec::Vec<core::option::Option<usize>>>>::from Unexecuted instantiation: <smallvec::SmallVec<[bool; 16]> as core::convert::From<alloc::vec::Vec<bool>>>::from |
2018 | | } |
2019 | | |
2020 | | impl<A: Array> From<A> for SmallVec<A> { |
2021 | | #[inline] |
2022 | | fn from(array: A) -> SmallVec<A> { |
2023 | | SmallVec::from_buf(array) |
2024 | | } |
2025 | | } |
2026 | | |
2027 | | impl<A: Array, I: SliceIndex<[A::Item]>> ops::Index<I> for SmallVec<A> { |
2028 | | type Output = I::Output; |
2029 | | |
2030 | 20.2M | fn index(&self, index: I) -> &I::Output { |
2031 | 20.2M | &(**self)[index] |
2032 | 20.2M | } <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]> as core::ops::index::Index<core::ops::range::RangeFull>>::index Line | Count | Source | 2030 | 87.8k | fn index(&self, index: I) -> &I::Output { | 2031 | 87.8k | &(**self)[index] | 2032 | 87.8k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]> as core::ops::index::Index<core::ops::range::RangeFull>>::index Line | Count | Source | 2030 | 87.8k | fn index(&self, index: I) -> &I::Output { | 2031 | 87.8k | &(**self)[index] | 2032 | 87.8k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]> as core::ops::index::Index<core::ops::range::RangeFull>>::index Line | Count | Source | 2030 | 87.8k | fn index(&self, index: I) -> &I::Output { | 2031 | 87.8k | &(**self)[index] | 2032 | 87.8k | } |
<smallvec::SmallVec<[core::option::Option<usize>; 16]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 3.08k | fn index(&self, index: I) -> &I::Output { | 2031 | 3.08k | &(**self)[index] | 2032 | 3.08k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 458k | fn index(&self, index: I) -> &I::Output { | 2031 | 458k | &(**self)[index] | 2032 | 458k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::Allocation; 2]> as core::ops::index::Index<usize>>::index Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::SpillSlot; 8]> as core::ops::index::Index<core::ops::range::RangeFull>>::index <smallvec::SmallVec<[regalloc2::index::Block; 16]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 197k | fn index(&self, index: I) -> &I::Output { | 2031 | 197k | &(**self)[index] | 2032 | 197k | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Inst; 2]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 501k | fn index(&self, index: I) -> &I::Output { | 2031 | 501k | &(**self)[index] | 2032 | 501k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]> as core::ops::index::Index<core::ops::range::RangeFull>>::index Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]> as core::ops::index::Index<usize>>::index <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 8.60k | fn index(&self, index: I) -> &I::Output { | 2031 | 8.60k | &(**self)[index] | 2032 | 8.60k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]> as core::ops::index::Index<usize>>::index <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 49.6k | fn index(&self, index: I) -> &I::Output { | 2031 | 49.6k | &(**self)[index] | 2032 | 49.6k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 16]> as core::ops::index::Index<core::ops::range::RangeFull>>::index Line | Count | Source | 2030 | 204k | fn index(&self, index: I) -> &I::Output { | 2031 | 204k | &(**self)[index] | 2032 | 204k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachBranch; 4]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 36.5k | fn index(&self, index: I) -> &I::Output { | 2031 | 36.5k | &(**self)[index] | 2032 | 36.5k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 643k | fn index(&self, index: I) -> &I::Output { | 2031 | 643k | &(**self)[index] | 2032 | 643k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 17.7k | fn index(&self, index: I) -> &I::Output { | 2031 | 17.7k | &(**self)[index] | 2032 | 17.7k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::ops::index::Index<core::ops::range::RangeFull>>::index Line | Count | Source | 2030 | 296k | fn index(&self, index: I) -> &I::Output { | 2031 | 296k | &(**self)[index] | 2032 | 296k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 5.82M | fn index(&self, index: I) -> &I::Output { | 2031 | 5.82M | &(**self)[index] | 2032 | 5.82M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 2.34M | fn index(&self, index: I) -> &I::Output { | 2031 | 2.34M | &(**self)[index] | 2032 | 2.34M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]> as core::ops::index::Index<core::ops::range::RangeFull>>::index <smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 3.08k | fn index(&self, index: I) -> &I::Output { | 2031 | 3.08k | &(**self)[index] | 2032 | 3.08k | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]> as core::ops::index::Index<core::ops::range::Range<usize>>>::index Line | Count | Source | 2030 | 324k | fn index(&self, index: I) -> &I::Output { | 2031 | 324k | &(**self)[index] | 2032 | 324k | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 7.53k | fn index(&self, index: I) -> &I::Output { | 2031 | 7.53k | &(**self)[index] | 2032 | 7.53k | } |
<smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]> as core::ops::index::Index<core::ops::range::RangeFull>>::index Line | Count | Source | 2030 | 139k | fn index(&self, index: I) -> &I::Output { | 2031 | 139k | &(**self)[index] | 2032 | 139k | } |
<smallvec::SmallVec<[bool; 16]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 3.04k | fn index(&self, index: I) -> &I::Output { | 2031 | 3.04k | &(**self)[index] | 2032 | 3.04k | } |
<smallvec::SmallVec<[u8; 16]> as core::ops::index::Index<core::ops::range::RangeFull>>::index Line | Count | Source | 2030 | 37.2k | fn index(&self, index: I) -> &I::Output { | 2031 | 37.2k | &(**self)[index] | 2032 | 37.2k | } |
<smallvec::SmallVec<[u8; 1024]> as core::ops::index::Index<core::ops::range::Range<usize>>>::index Line | Count | Source | 2030 | 28.4k | fn index(&self, index: I) -> &I::Output { | 2031 | 28.4k | &(**self)[index] | 2032 | 28.4k | } |
<smallvec::SmallVec<[u8; 1024]> as core::ops::index::Index<core::ops::range::RangeFull>>::index Line | Count | Source | 2030 | 278k | fn index(&self, index: I) -> &I::Output { | 2031 | 278k | &(**self)[index] | 2032 | 278k | } |
<smallvec::SmallVec<[u8; 8]> as core::ops::index::Index<core::ops::range::RangeFull>>::index Line | Count | Source | 2030 | 28.4k | fn index(&self, index: I) -> &I::Output { | 2031 | 28.4k | &(**self)[index] | 2032 | 28.4k | } |
<smallvec::SmallVec<[u32; 16]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 624k | fn index(&self, index: I) -> &I::Output { | 2031 | 624k | &(**self)[index] | 2032 | 624k | } |
<smallvec::SmallVec<[u32; 64]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 197k | fn index(&self, index: I) -> &I::Output { | 2031 | 197k | &(**self)[index] | 2032 | 197k | } |
<smallvec::SmallVec<[u32; 8]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 2.60M | fn index(&self, index: I) -> &I::Output { | 2031 | 2.60M | &(**self)[index] | 2032 | 2.60M | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]> as core::ops::index::Index<core::ops::range::RangeFull>>::index Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]> as core::ops::index::Index<usize>>::index Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]> as core::ops::index::Index<usize>>::index <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 3.42M | fn index(&self, index: I) -> &I::Output { | 2031 | 3.42M | &(**self)[index] | 2032 | 3.42M | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 1.65k | fn index(&self, index: I) -> &I::Output { | 2031 | 1.65k | &(**self)[index] | 2032 | 1.65k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 454k | fn index(&self, index: I) -> &I::Output { | 2031 | 454k | &(**self)[index] | 2032 | 454k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]> as core::ops::index::Index<core::ops::range::RangeFull>>::index Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]> as core::ops::index::Index<core::ops::range::RangeFull>>::index Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]> as core::ops::index::Index<core::ops::range::RangeFull>>::index Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]> as core::ops::index::Index<usize>>::index Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]> as core::ops::index::Index<usize>>::index <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 816k | fn index(&self, index: I) -> &I::Output { | 2031 | 816k | &(**self)[index] | 2032 | 816k | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 80 | fn index(&self, index: I) -> &I::Output { | 2031 | 80 | &(**self)[index] | 2032 | 80 | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::ops::index::Index<usize>>::index Line | Count | Source | 2030 | 406k | fn index(&self, index: I) -> &I::Output { | 2031 | 406k | &(**self)[index] | 2032 | 406k | } |
|
2033 | | } |
2034 | | |
2035 | | impl<A: Array, I: SliceIndex<[A::Item]>> ops::IndexMut<I> for SmallVec<A> { |
2036 | 50.2M | fn index_mut(&mut self, index: I) -> &mut I::Output { |
2037 | 50.2M | &mut (&mut **self)[index] |
2038 | 50.2M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 359k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 359k | &mut (&mut **self)[index] | 2038 | 359k | } |
Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut <smallvec::SmallVec<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 196k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 196k | &mut (&mut **self)[index] | 2038 | 196k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 137k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 137k | &mut (&mut **self)[index] | 2038 | 137k | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 156k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 156k | &mut (&mut **self)[index] | 2038 | 156k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 138k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 138k | &mut (&mut **self)[index] | 2038 | 138k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 139k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 139k | &mut (&mut **self)[index] | 2038 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 137k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 137k | &mut (&mut **self)[index] | 2038 | 137k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 139k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 139k | &mut (&mut **self)[index] | 2038 | 139k | } |
<smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 139k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 139k | &mut (&mut **self)[index] | 2038 | 139k | } |
<smallvec::SmallVec<[u8; 1024]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 137k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 137k | &mut (&mut **self)[index] | 2038 | 137k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut <smallvec::SmallVec<[core::option::Option<usize>; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 1.52k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 1.52k | &mut (&mut **self)[index] | 2038 | 1.52k | } |
<smallvec::SmallVec<[core::option::Option<usize>; 16]> as core::ops::index::IndexMut<usize>>::index_mut Line | Count | Source | 2036 | 1.52k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 1.52k | &mut (&mut **self)[index] | 2038 | 1.52k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 211k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 211k | &mut (&mut **self)[index] | 2038 | 211k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 137k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 137k | &mut (&mut **self)[index] | 2038 | 137k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 145k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 145k | &mut (&mut **self)[index] | 2038 | 145k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]> as core::ops::index::IndexMut<usize>>::index_mut Line | Count | Source | 2036 | 28.4k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 28.4k | &mut (&mut **self)[index] | 2038 | 28.4k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]> as core::ops::index::IndexMut<usize>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]> as core::ops::index::IndexMut<usize>>::index_mut <smallvec::SmallVec<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 869k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 869k | &mut (&mut **self)[index] | 2038 | 869k | } |
<smallvec::SmallVec<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 139k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 139k | &mut (&mut **self)[index] | 2038 | 139k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 2]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 278k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 278k | &mut (&mut **self)[index] | 2038 | 278k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 30.6k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 30.6k | &mut (&mut **self)[index] | 2038 | 30.6k | } |
<smallvec::SmallVec<[regalloc2::PReg; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 1.26M | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 1.26M | &mut (&mut **self)[index] | 2038 | 1.26M | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut <smallvec::SmallVec<[regalloc2::SpillSlot; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 166k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 166k | &mut (&mut **self)[index] | 2038 | 166k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut <smallvec::SmallVec<[cranelift_codegen::loop_analysis::Loop; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 139k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 139k | &mut (&mut **self)[index] | 2038 | 139k | } |
<smallvec::SmallVec<[regalloc2::index::Block; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 415k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 415k | &mut (&mut **self)[index] | 2038 | 415k | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Inst; 2]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 139k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 139k | &mut (&mut **self)[index] | 2038 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Block; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 138k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 138k | &mut (&mut **self)[index] | 2038 | 138k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 702k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 702k | &mut (&mut **self)[index] | 2038 | 702k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 761k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 761k | &mut (&mut **self)[index] | 2038 | 761k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 208k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 208k | &mut (&mut **self)[index] | 2038 | 208k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 209k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 209k | &mut (&mut **self)[index] | 2038 | 209k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::RetPair; 2]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 1.35k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 1.35k | &mut (&mut **self)[index] | 2038 | 1.35k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 204k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 204k | &mut (&mut **self)[index] | 2038 | 204k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachBranch; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 139k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 139k | &mut (&mut **self)[index] | 2038 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 148k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 148k | &mut (&mut **self)[index] | 2038 | 148k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 134k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 134k | &mut (&mut **self)[index] | 2038 | 134k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]> as core::ops::index::IndexMut<usize>>::index_mut Line | Count | Source | 2036 | 7.88k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 7.88k | &mut (&mut **self)[index] | 2038 | 7.88k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 2]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 139k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 139k | &mut (&mut **self)[index] | 2038 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 286k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 286k | &mut (&mut **self)[index] | 2038 | 286k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut <smallvec::SmallVec<[regalloc2::ion::data_structures::InsertedMove; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 464k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 464k | &mut (&mut **self)[index] | 2038 | 464k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 10.3k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 10.3k | &mut (&mut **self)[index] | 2038 | 10.3k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 426 | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 426 | &mut (&mut **self)[index] | 2038 | 426 | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 2.44M | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 2.44M | &mut (&mut **self)[index] | 2038 | 2.44M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 22.4M | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 22.4M | &mut (&mut **self)[index] | 2038 | 22.4M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::ops::index::IndexMut<usize>>::index_mut Line | Count | Source | 2036 | 259k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 259k | &mut (&mut **self)[index] | 2038 | 259k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 1.50M | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 1.50M | &mut (&mut **self)[index] | 2038 | 1.50M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 1.23M | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 1.23M | &mut (&mut **self)[index] | 2038 | 1.23M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 2.86M | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 2.86M | &mut (&mut **self)[index] | 2038 | 2.86M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 238k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 238k | &mut (&mut **self)[index] | 2038 | 238k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 104k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 104k | &mut (&mut **self)[index] | 2038 | 104k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 1.47M | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 1.47M | &mut (&mut **self)[index] | 2038 | 1.47M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut <smallvec::SmallVec<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 137k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 137k | &mut (&mut **self)[index] | 2038 | 137k | } |
<smallvec::SmallVec<[regalloc2::postorder::calculate::State; 64]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 138k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 138k | &mut (&mut **self)[index] | 2038 | 138k | } |
<smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 466k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 466k | &mut (&mut **self)[index] | 2038 | 466k | } |
<smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 139k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 139k | &mut (&mut **self)[index] | 2038 | 139k | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 139k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 139k | &mut (&mut **self)[index] | 2038 | 139k | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 3.56k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 3.56k | &mut (&mut **self)[index] | 2038 | 3.56k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut <smallvec::SmallVec<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 306 | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 306 | &mut (&mut **self)[index] | 2038 | 306 | } |
Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut <smallvec::SmallVec<[bool; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 3.04k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 3.04k | &mut (&mut **self)[index] | 2038 | 3.04k | } |
<smallvec::SmallVec<[bool; 16]> as core::ops::index::IndexMut<usize>>::index_mut Line | Count | Source | 2036 | 9.26k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 9.26k | &mut (&mut **self)[index] | 2038 | 9.26k | } |
<smallvec::SmallVec<[u8; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 37.2k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 37.2k | &mut (&mut **self)[index] | 2038 | 37.2k | } |
<smallvec::SmallVec<[u8; 1024]> as core::ops::index::IndexMut<core::ops::range::Range<usize>>>::index_mut Line | Count | Source | 2036 | 305k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 305k | &mut (&mut **self)[index] | 2038 | 305k | } |
Unexecuted instantiation: <smallvec::SmallVec<[u8; 1024]> as core::ops::index::IndexMut<core::ops::range::RangeFrom<usize>>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[u8; 1024]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut <smallvec::SmallVec<[u8; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 82.4k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 82.4k | &mut (&mut **self)[index] | 2038 | 82.4k | } |
<smallvec::SmallVec<[usize; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 1.52k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 1.52k | &mut (&mut **self)[index] | 2038 | 1.52k | } |
<smallvec::SmallVec<[usize; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 240k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 240k | &mut (&mut **self)[index] | 2038 | 240k | } |
<smallvec::SmallVec<[u32; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 134k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 134k | &mut (&mut **self)[index] | 2038 | 134k | } |
<smallvec::SmallVec<[u32; 16]> as core::ops::index::IndexMut<usize>>::index_mut Line | Count | Source | 2036 | 726k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 726k | &mut (&mut **self)[index] | 2038 | 726k | } |
<smallvec::SmallVec<[u32; 64]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 138k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 138k | &mut (&mut **self)[index] | 2038 | 138k | } |
<smallvec::SmallVec<[u32; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 273k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 273k | &mut (&mut **self)[index] | 2038 | 273k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 122k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 122k | &mut (&mut **self)[index] | 2038 | 122k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 3.42M | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 3.42M | &mut (&mut **self)[index] | 2038 | 3.42M | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 153k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 153k | &mut (&mut **self)[index] | 2038 | 153k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 489k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 489k | &mut (&mut **self)[index] | 2038 | 489k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 153k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 153k | &mut (&mut **self)[index] | 2038 | 153k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[u8; 1024]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 816k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 816k | &mut (&mut **self)[index] | 2038 | 816k | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 32.6k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 32.6k | &mut (&mut **self)[index] | 2038 | 32.6k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 274k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 274k | &mut (&mut **self)[index] | 2038 | 274k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]> as core::ops::index::IndexMut<core::ops::range::RangeFull>>::index_mut Line | Count | Source | 2036 | 32.6k | fn index_mut(&mut self, index: I) -> &mut I::Output { | 2037 | 32.6k | &mut (&mut **self)[index] | 2038 | 32.6k | } |
|
2039 | | } |
2040 | | |
2041 | | #[allow(deprecated)] |
2042 | | impl<A: Array> ExtendFromSlice<A::Item> for SmallVec<A> |
2043 | | where |
2044 | | A::Item: Copy, |
2045 | | { |
2046 | | fn extend_from_slice(&mut self, other: &[A::Item]) { |
2047 | | SmallVec::extend_from_slice(self, other) |
2048 | | } |
2049 | | } |
2050 | | |
2051 | | impl<A: Array> FromIterator<A::Item> for SmallVec<A> { |
2052 | | #[inline] |
2053 | 4.26M | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { |
2054 | 4.26M | let mut v = SmallVec::new(); |
2055 | 4.26M | v.extend(iterable); |
2056 | 4.26M | v |
2057 | 4.26M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::iter::traits::collect::FromIterator<<[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::Item>>::from_iter::<core::iter::adapters::GenericShunt<core::iter::adapters::map::Map<core::slice::iter::Iter<wasmer_types::types::Type>, <wasmer_compiler_llvm::translator::code::FuncTranslator>::translate_to_module::{closure#0}>, core::result::Result<core::convert::Infallible, wasmer_types::error::CompileError>>> Line | Count | Source | 2053 | 101k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 101k | let mut v = SmallVec::new(); | 2055 | 101k | v.extend(iterable); | 2056 | 101k | v | 2057 | 101k | } |
<smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::iter::traits::collect::FromIterator<<[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::Item>>::from_iter::<core::iter::adapters::GenericShunt<core::iter::adapters::map::Map<core::slice::iter::Iter<wasmparser::readers::core::types::ValType>, <wasmer_compiler_llvm::translator::code::LLVMFunctionCodeGenerator>::translate_operator::{closure#3}>, core::result::Result<core::convert::Infallible, wasmer_types::error::CompileError>>> Line | Count | Source | 2053 | 84.2k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 84.2k | let mut v = SmallVec::new(); | 2055 | 84.2k | v.extend(iterable); | 2056 | 84.2k | v | 2057 | 84.2k | } |
<smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::iter::traits::collect::FromIterator<<[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::Item>>::from_iter::<core::iter::adapters::GenericShunt<core::iter::adapters::map::Map<wasmer_compiler::translator::state::SingleOrMultiValueIterator, <wasmer_compiler_llvm::translator::code::LLVMFunctionCodeGenerator>::translate_operator::{closure#2}>, core::result::Result<core::convert::Infallible, wasmer_types::error::CompileError>>> Line | Count | Source | 2053 | 84.2k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 84.2k | let mut v = SmallVec::new(); | 2055 | 84.2k | v.extend(iterable); | 2056 | 84.2k | v | 2057 | 84.2k | } |
<smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::iter::traits::collect::FromIterator<<[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::Item>>::from_iter::<core::iter::adapters::GenericShunt<core::iter::adapters::map::Map<wasmer_compiler::translator::state::SingleOrMultiValueIterator, <wasmer_compiler_llvm::translator::code::LLVMFunctionCodeGenerator>::translate_operator::{closure#11}>, core::result::Result<core::convert::Infallible, wasmer_types::error::CompileError>>> Line | Count | Source | 2053 | 6.21k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 6.21k | let mut v = SmallVec::new(); | 2055 | 6.21k | v.extend(iterable); | 2056 | 6.21k | v | 2057 | 6.21k | } |
<smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::iter::traits::collect::FromIterator<<[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::Item>>::from_iter::<core::iter::adapters::GenericShunt<core::iter::adapters::map::Map<wasmer_compiler::translator::state::SingleOrMultiValueIterator, <wasmer_compiler_llvm::translator::code::LLVMFunctionCodeGenerator>::translate_operator::{closure#1}>, core::result::Result<core::convert::Infallible, wasmer_types::error::CompileError>>> Line | Count | Source | 2053 | 82.1k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 82.1k | let mut v = SmallVec::new(); | 2055 | 82.1k | v.extend(iterable); | 2056 | 82.1k | v | 2057 | 82.1k | } |
<smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::iter::traits::collect::FromIterator<<[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::Item>>::from_iter::<core::iter::adapters::map::Map<core::slice::iter::Iter<inkwell::types::enums::BasicTypeEnum>, <wasmer_compiler_llvm::translator::code::LLVMFunctionCodeGenerator>::translate_operator::{closure#13}>> Line | Count | Source | 2053 | 6.21k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 6.21k | let mut v = SmallVec::new(); | 2055 | 6.21k | v.extend(iterable); | 2056 | 6.21k | v | 2057 | 6.21k | } |
<smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::iter::traits::collect::FromIterator<<[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::Item>>::from_iter::<core::iter::adapters::map::Map<core::slice::iter::Iter<inkwell::types::enums::BasicTypeEnum>, <wasmer_compiler_llvm::translator::code::LLVMFunctionCodeGenerator>::translate_operator::{closure#14}>> Line | Count | Source | 2053 | 6.21k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 6.21k | let mut v = SmallVec::new(); | 2055 | 6.21k | v.extend(iterable); | 2056 | 6.21k | v | 2057 | 6.21k | } |
<smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::iter::traits::collect::FromIterator<<[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::Item>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<inkwell::values::phi_value::PhiValue>>> Line | Count | Source | 2053 | 5.23k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 5.23k | let mut v = SmallVec::new(); | 2055 | 5.23k | v.extend(iterable); | 2056 | 5.23k | v | 2057 | 5.23k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]> as core::iter::traits::collect::FromIterator<(cranelift_codegen::ir::entities::Value, i32)>>::from_iter::<core::iter::adapters::map::Map<core::ops::range::Range<u64>, <cranelift_frontend::frontend::FunctionBuilder>::emit_small_memory_copy::{closure#0}>> <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]> as core::iter::traits::collect::FromIterator<cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>>>::from_iter::<core::iter::adapters::map::Map<core::ops::range::Range<i32>, <cranelift_codegen::machinst::abi::Caller<cranelift_codegen::isa::x64::abi::X64ABIMachineSpec>>::gen_arg::{closure#1}>> Line | Count | Source | 2053 | 211k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 211k | let mut v = SmallVec::new(); | 2055 | 211k | v.extend(iterable); | 2056 | 211k | v | 2057 | 211k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]> as core::iter::traits::collect::FromIterator<cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>>>::from_iter::<core::iter::adapters::map::Map<core::ops::range::Range<i32>, <cranelift_codegen::machinst::abi::Caller<cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps>>::gen_arg::{closure#1}>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]> as core::iter::traits::collect::FromIterator<cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>>>::from_iter::<core::iter::adapters::map::Map<core::ops::range::Range<i32>, <cranelift_codegen::machinst::abi::Caller<cranelift_codegen::isa::riscv64::abi::Riscv64MachineDeps>>::gen_arg::{closure#1}>> <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]> as core::iter::traits::collect::FromIterator<cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>>>::from_iter::<core::iter::adapters::map::Map<smallvec::IntoIter<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>, <cranelift_codegen::machinst::buffer::MachBufferFinalized<cranelift_codegen::machinst::buffer::Stencil>>::apply_params::{closure#0}>> Line | Count | Source | 2053 | 139k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 139k | let mut v = SmallVec::new(); | 2055 | 139k | v.extend(iterable); | 2056 | 139k | v | 2057 | 139k | } |
<smallvec::SmallVec<[regalloc2::index::Block; 16]> as core::iter::traits::collect::FromIterator<regalloc2::index::Block>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::index::Block>>> Line | Count | Source | 2053 | 139k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 139k | let mut v = SmallVec::new(); | 2055 | 139k | v.extend(iterable); | 2056 | 139k | v | 2057 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]> as core::iter::traits::collect::FromIterator<cranelift_codegen::ir::entities::Value>>::from_iter::<core::iter::adapters::map::Map<core::slice::iter::Iter<cranelift_codegen::egraph::elaborate::IdValue>, <cranelift_codegen::egraph::elaborate::Elaborator>::process_elab_stack::{closure#0}>> <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]> as core::iter::traits::collect::FromIterator<cranelift_codegen::machinst::blockorder::LoweredBlock>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::machinst::blockorder::LoweredBlock>>> Line | Count | Source | 2053 | 139k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 139k | let mut v = SmallVec::new(); | 2055 | 139k | v.extend(iterable); | 2056 | 139k | v | 2057 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]> as core::iter::traits::collect::FromIterator<cranelift_codegen::machinst::inst_common::InsnOutput>>::from_iter::<core::iter::adapters::map::Map<core::ops::range::Range<usize>, cranelift_codegen::isa::x64::lower::lower_insn_to_regs::{closure#0}>> Line | Count | Source | 2053 | 702k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 702k | let mut v = SmallVec::new(); | 2055 | 702k | v.extend(iterable); | 2056 | 702k | v | 2057 | 702k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]> as core::iter::traits::collect::FromIterator<cranelift_codegen::machinst::inst_common::InsnOutput>>::from_iter::<core::iter::adapters::map::Map<core::ops::range::Range<usize>, cranelift_codegen::machinst::inst_common::insn_outputs<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]> as core::iter::traits::collect::FromIterator<cranelift_codegen::machinst::inst_common::InsnOutput>>::from_iter::<core::iter::adapters::map::Map<core::ops::range::Range<usize>, cranelift_codegen::machinst::inst_common::insn_outputs<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]> as core::iter::traits::collect::FromIterator<cranelift_codegen::machinst::abi::ABIArgSlot>>::from_iter::<core::iter::adapters::map::Map<core::iter::adapters::scan::Scan<core::iter::adapters::copied::Copied<core::slice::iter::Iter<cranelift_codegen::ir::types::Type>>, u64, <cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps as cranelift_codegen::machinst::abi::ABIMachineSpec>::compute_arg_locs<core::iter::adapters::chain::Chain<core::option::IntoIter<&cranelift_codegen::ir::extfunc::AbiParam>, core::slice::iter::Iter<cranelift_codegen::ir::extfunc::AbiParam>>>::{closure#0}>, <cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps as cranelift_codegen::machinst::abi::ABIMachineSpec>::compute_arg_locs<core::iter::adapters::chain::Chain<core::option::IntoIter<&cranelift_codegen::ir::extfunc::AbiParam>, core::slice::iter::Iter<cranelift_codegen::ir::extfunc::AbiParam>>>::{closure#1}>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]> as core::iter::traits::collect::FromIterator<cranelift_codegen::machinst::abi::ABIArgSlot>>::from_iter::<core::iter::adapters::map::Map<core::iter::adapters::scan::Scan<core::iter::adapters::copied::Copied<core::slice::iter::Iter<cranelift_codegen::ir::types::Type>>, u64, <cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps as cranelift_codegen::machinst::abi::ABIMachineSpec>::compute_arg_locs<&alloc::vec::Vec<cranelift_codegen::ir::extfunc::AbiParam>>::{closure#0}>, <cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps as cranelift_codegen::machinst::abi::ABIMachineSpec>::compute_arg_locs<&alloc::vec::Vec<cranelift_codegen::ir::extfunc::AbiParam>>::{closure#1}>> <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]> as core::iter::traits::collect::FromIterator<cranelift_codegen::machinst::abi::ABIArgSlot>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::machinst::abi::ABIArgSlot>>> Line | Count | Source | 2053 | 49.6k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 49.6k | let mut v = SmallVec::new(); | 2055 | 49.6k | v.extend(iterable); | 2056 | 49.6k | v | 2057 | 49.6k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]> as core::iter::traits::collect::FromIterator<cranelift_codegen::machinst::abi::CallArgPair>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::machinst::abi::CallArgPair>>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]> as core::iter::traits::collect::FromIterator<cranelift_codegen::machinst::abi::CallRetPair>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::machinst::abi::CallRetPair>>> <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]> as core::iter::traits::collect::FromIterator<cranelift_codegen::machinst::buffer::MachLabel>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::machinst::buffer::MachLabel>>> Line | Count | Source | 2053 | 220k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 220k | let mut v = SmallVec::new(); | 2055 | 220k | v.extend(iterable); | 2056 | 220k | v | 2057 | 220k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::iter::traits::collect::FromIterator<regalloc2::ion::data_structures::SpillSlotIndex>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::SpillSlotIndex>>> Line | Count | Source | 2053 | 6.05k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 6.05k | let mut v = SmallVec::new(); | 2055 | 6.05k | v.extend(iterable); | 2056 | 6.05k | v | 2057 | 6.05k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::iter::traits::collect::FromIterator<regalloc2::ion::data_structures::LiveRangeListEntry>>::from_iter::<core::iter::adapters::skip::Skip<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::LiveRangeListEntry>>>> Line | Count | Source | 2053 | 91.3k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 91.3k | let mut v = SmallVec::new(); | 2055 | 91.3k | v.extend(iterable); | 2056 | 91.3k | v | 2057 | 91.3k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::iter::traits::collect::FromIterator<regalloc2::ion::data_structures::LiveRangeListEntry>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::LiveRangeListEntry>>> Line | Count | Source | 2053 | 1.15M | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 1.15M | let mut v = SmallVec::new(); | 2055 | 1.15M | v.extend(iterable); | 2056 | 1.15M | v | 2057 | 1.15M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::iter::traits::collect::FromIterator<regalloc2::ion::data_structures::Use>>::from_iter::<core::iter::adapters::skip::Skip<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::Use>>>> Line | Count | Source | 2053 | 80.4k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 80.4k | let mut v = SmallVec::new(); | 2055 | 80.4k | v.extend(iterable); | 2056 | 80.4k | v | 2057 | 80.4k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::FromIterator<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::FromIterator<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]> as core::iter::traits::collect::FromIterator<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::FromIterator<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::lower::generate_constant::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::lower::lower_splat_const::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::lower::lower_constant_f32::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::lower::lower_constant_f64::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::lower::lower_constant_u64::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::lower::lower_constant_f128::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::print_with_state::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<<cranelift_codegen::machinst::lower::Lower<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>::put_value_in_regs::{closure#1}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<<cranelift_codegen::machinst::abi::Caller<cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps>>::emit_copy_regs_to_buffer::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::inst::emit::mem_finalize::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::lower_inst::lower_insn_to_regs::{closure#2}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::lower_inst::lower_insn_to_regs::{closure#1}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<<cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps as cranelift_codegen::machinst::abi::ABIMachineSpec>::gen_add_imm::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<<cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps as cranelift_codegen::machinst::abi::ABIMachineSpec>::gen_sp_reg_adjust::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<<cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps as cranelift_codegen::machinst::abi::ABIMachineSpec>::gen_inline_probestack::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<<cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps as cranelift_codegen::machinst::abi::ABIMachineSpec>::gen_inline_probestack::{closure#1}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst as cranelift_codegen::machinst::MachInstEmit>::emit::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::FromIterator<(u8, u64)>>::from_iter::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::machinst::isle::IsleContext<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst, cranelift_codegen::settings::Flags, cranelift_codegen::isa::aarch64::settings::Flags, 6> as cranelift_codegen::isa::aarch64::lower::isle::generated_code::Context>::load_constant64_full::{closure#0}>> <smallvec::SmallVec<[u8; 16]> as core::iter::traits::collect::FromIterator<u8>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<u8>>> Line | Count | Source | 2053 | 37.2k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 37.2k | let mut v = SmallVec::new(); | 2055 | 37.2k | v.extend(iterable); | 2056 | 37.2k | v | 2057 | 37.2k | } |
<smallvec::SmallVec<[u8; 8]> as core::iter::traits::collect::FromIterator<u8>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<u8>>> Line | Count | Source | 2053 | 82.4k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 82.4k | let mut v = SmallVec::new(); | 2055 | 82.4k | v.extend(iterable); | 2056 | 82.4k | v | 2057 | 82.4k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::Allocation; 4]> as core::iter::traits::collect::FromIterator<regalloc2::Allocation>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::Allocation>>> Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::iter::traits::collect::FromIterator<regalloc2::ion::data_structures::SpillSlotIndex>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::SpillSlotIndex>>> Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]> as core::iter::traits::collect::FromIterator<regalloc2::ion::data_structures::LiveBundleIndex>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::LiveBundleIndex>>> Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::iter::traits::collect::FromIterator<regalloc2::ion::data_structures::LiveRangeListEntry>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::LiveRangeListEntry>>> Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::iter::traits::collect::FromIterator<regalloc2::ion::data_structures::Use>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::Use>>> Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]> as core::iter::traits::collect::FromIterator<regalloc2::ion::data_structures::VRegIndex>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::VRegIndex>>> Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]> as core::iter::traits::collect::FromIterator<<[wasmparser::readers::core::operators::Operator; 2] as smallvec::Array>::Item>>::from_iter::<alloc::collections::vec_deque::drain::Drain<wasmparser::readers::core::operators::Operator>> Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]> as core::iter::traits::collect::FromIterator<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>>>::from_iter::<alloc::vec::drain::Drain<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>>> <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]> as core::iter::traits::collect::FromIterator<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>>>::from_iter::<alloc::vec::drain::Drain<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>>> Line | Count | Source | 2053 | 153k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 153k | let mut v = SmallVec::new(); | 2055 | 153k | v.extend(iterable); | 2056 | 153k | v | 2057 | 153k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::iter::traits::collect::FromIterator<wasmparser::readers::core::types::ValType>>::from_iter::<core::iter::adapters::map::Map<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<wasmer_types::types::Type>>, wasmer_compiler_singlepass::codegen::type_to_wp_type>> Line | Count | Source | 2053 | 153k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 153k | let mut v = SmallVec::new(); | 2055 | 153k | v.extend(iterable); | 2056 | 153k | v | 2057 | 153k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::iter::traits::collect::FromIterator<wasmparser::readers::core::types::ValType>>::from_iter::<core::iter::adapters::map::Map<core::slice::iter::Iter<wasmer_types::types::Type>, <wasmer_compiler_singlepass::codegen::FuncGen<wasmer_compiler_singlepass::machine_x64::MachineX86_64>>::emit_head::{closure#0}>> Line | Count | Source | 2053 | 193k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 193k | let mut v = SmallVec::new(); | 2055 | 193k | v.extend(iterable); | 2056 | 193k | v | 2057 | 193k | } |
Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::iter::traits::collect::FromIterator<wasmparser::readers::core::types::ValType>>::from_iter::<core::iter::adapters::map::Map<core::slice::iter::Iter<wasmer_types::types::Type>, <wasmer_compiler_singlepass::codegen::FuncGen<wasmer_compiler_singlepass::machine_arm64::MachineARM64>>::emit_head::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::iter::traits::collect::FromIterator<wasmparser::readers::core::types::ValType>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<wasmparser::readers::core::types::ValType>>> <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]> as core::iter::traits::collect::FromIterator<wasmparser::readers::core::types::ValType>>::from_iter::<core::iter::adapters::map::Map<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<wasmer_types::types::Type>>, wasmer_compiler_singlepass::codegen::type_to_wp_type>> Line | Count | Source | 2053 | 153k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 153k | let mut v = SmallVec::new(); | 2055 | 153k | v.extend(iterable); | 2056 | 153k | v | 2057 | 153k | } |
Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]> as core::iter::traits::collect::FromIterator<<[wasmparser::readers::core::operators::Operator; 2] as smallvec::Array>::Item>>::from_iter::<alloc::collections::vec_deque::drain::Drain<wasmparser::readers::core::operators::Operator>> Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]> as core::iter::traits::collect::FromIterator<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>>>::from_iter::<alloc::vec::drain::Drain<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>>> <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]> as core::iter::traits::collect::FromIterator<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>>>::from_iter::<alloc::vec::drain::Drain<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>>> Line | Count | Source | 2053 | 32.6k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 32.6k | let mut v = SmallVec::new(); | 2055 | 32.6k | v.extend(iterable); | 2056 | 32.6k | v | 2057 | 32.6k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::iter::traits::collect::FromIterator<wasmparser::readers::core::types::ValType>>::from_iter::<core::iter::adapters::map::Map<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<wasmer_types::types::Type>>, wasmer_compiler_singlepass::codegen::type_to_wp_type>> Line | Count | Source | 2053 | 32.6k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 32.6k | let mut v = SmallVec::new(); | 2055 | 32.6k | v.extend(iterable); | 2056 | 32.6k | v | 2057 | 32.6k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::iter::traits::collect::FromIterator<wasmparser::readers::core::types::ValType>>::from_iter::<core::iter::adapters::map::Map<core::slice::iter::Iter<wasmer_types::types::Type>, <wasmer_compiler_singlepass::codegen::FuncGen<wasmer_compiler_singlepass::machine_x64::MachineX86_64>>::emit_head::{closure#0}>> Line | Count | Source | 2053 | 87.8k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 87.8k | let mut v = SmallVec::new(); | 2055 | 87.8k | v.extend(iterable); | 2056 | 87.8k | v | 2057 | 87.8k | } |
Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::iter::traits::collect::FromIterator<wasmparser::readers::core::types::ValType>>::from_iter::<core::iter::adapters::map::Map<core::slice::iter::Iter<wasmer_types::types::Type>, <wasmer_compiler_singlepass::codegen::FuncGen<wasmer_compiler_singlepass::machine_arm64::MachineARM64>>::emit_head::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::iter::traits::collect::FromIterator<wasmparser::readers::core::types::ValType>>::from_iter::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<wasmparser::readers::core::types::ValType>>> <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]> as core::iter::traits::collect::FromIterator<wasmparser::readers::core::types::ValType>>::from_iter::<core::iter::adapters::map::Map<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<wasmer_types::types::Type>>, wasmer_compiler_singlepass::codegen::type_to_wp_type>> Line | Count | Source | 2053 | 32.6k | fn from_iter<I: IntoIterator<Item = A::Item>>(iterable: I) -> SmallVec<A> { | 2054 | 32.6k | let mut v = SmallVec::new(); | 2055 | 32.6k | v.extend(iterable); | 2056 | 32.6k | v | 2057 | 32.6k | } |
|
2058 | | } |
2059 | | |
2060 | | impl<A: Array> Extend<A::Item> for SmallVec<A> { |
2061 | 5.56M | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { |
2062 | 5.56M | let mut iter = iterable.into_iter(); |
2063 | 5.56M | let (lower_size_bound, _) = iter.size_hint(); |
2064 | 5.56M | self.reserve(lower_size_bound); |
2065 | 5.56M | |
2066 | 5.56M | unsafe { |
2067 | 5.56M | let (ptr, len_ptr, cap) = self.triple_mut(); |
2068 | 5.56M | let ptr = ptr.as_ptr(); |
2069 | 5.56M | let mut len = SetLenOnDrop::new(len_ptr); |
2070 | 17.3M | while len.get() < cap { |
2071 | 16.6M | if let Some(out) = iter.next() { |
2072 | 11.7M | ptr::write(ptr.add(len.get()), out); |
2073 | 11.7M | len.increment_len(1); |
2074 | 11.7M | } else { |
2075 | 4.88M | return; |
2076 | | } |
2077 | | } |
2078 | | } |
2079 | | |
2080 | 909k | for elem in iter { |
2081 | 222k | self.push(elem); |
2082 | 222k | } |
2083 | 5.56M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::iter::traits::collect::Extend<<[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::Item>>::extend::<core::iter::adapters::GenericShunt<core::iter::adapters::map::Map<core::slice::iter::Iter<wasmer_types::types::Type>, <wasmer_compiler_llvm::translator::code::FuncTranslator>::translate_to_module::{closure#0}>, core::result::Result<core::convert::Infallible, wasmer_types::error::CompileError>>> Line | Count | Source | 2061 | 101k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 101k | let mut iter = iterable.into_iter(); | 2063 | 101k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 101k | self.reserve(lower_size_bound); | 2065 | 101k | | 2066 | 101k | unsafe { | 2067 | 101k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 101k | let ptr = ptr.as_ptr(); | 2069 | 101k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 142k | while len.get() < cap { | 2071 | 101k | if let Some(out) = iter.next() { | 2072 | 40.9k | ptr::write(ptr.add(len.get()), out); | 2073 | 40.9k | len.increment_len(1); | 2074 | 40.9k | } else { | 2075 | 60.9k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 214k | for elem in iter { | 2081 | 173k | self.push(elem); | 2082 | 173k | } | 2083 | 101k | } |
<smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::iter::traits::collect::Extend<<[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::Item>>::extend::<core::iter::adapters::GenericShunt<core::iter::adapters::map::Map<core::slice::iter::Iter<wasmparser::readers::core::types::ValType>, <wasmer_compiler_llvm::translator::code::LLVMFunctionCodeGenerator>::translate_operator::{closure#3}>, core::result::Result<core::convert::Infallible, wasmer_types::error::CompileError>>> Line | Count | Source | 2061 | 84.2k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 84.2k | let mut iter = iterable.into_iter(); | 2063 | 84.2k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 84.2k | self.reserve(lower_size_bound); | 2065 | 84.2k | | 2066 | 84.2k | unsafe { | 2067 | 84.2k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 84.2k | let ptr = ptr.as_ptr(); | 2069 | 84.2k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 84.4k | while len.get() < cap { | 2071 | 84.2k | if let Some(out) = iter.next() { | 2072 | 200 | ptr::write(ptr.add(len.get()), out); | 2073 | 200 | len.increment_len(1); | 2074 | 200 | } else { | 2075 | 84.0k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 1.89k | for elem in iter { | 2081 | 1.69k | self.push(elem); | 2082 | 1.69k | } | 2083 | 84.2k | } |
<smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::iter::traits::collect::Extend<<[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::Item>>::extend::<core::iter::adapters::GenericShunt<core::iter::adapters::map::Map<wasmer_compiler::translator::state::SingleOrMultiValueIterator, <wasmer_compiler_llvm::translator::code::LLVMFunctionCodeGenerator>::translate_operator::{closure#2}>, core::result::Result<core::convert::Infallible, wasmer_types::error::CompileError>>> Line | Count | Source | 2061 | 84.2k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 84.2k | let mut iter = iterable.into_iter(); | 2063 | 84.2k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 84.2k | self.reserve(lower_size_bound); | 2065 | 84.2k | | 2066 | 84.2k | unsafe { | 2067 | 84.2k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 84.2k | let ptr = ptr.as_ptr(); | 2069 | 84.2k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 144k | while len.get() < cap { | 2071 | 84.2k | if let Some(out) = iter.next() { | 2072 | 60.1k | ptr::write(ptr.add(len.get()), out); | 2073 | 60.1k | len.increment_len(1); | 2074 | 60.1k | } else { | 2075 | 24.0k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 80.6k | for elem in iter { | 2081 | 20.4k | self.push(elem); | 2082 | 20.4k | } | 2083 | 84.2k | } |
<smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::iter::traits::collect::Extend<<[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::Item>>::extend::<core::iter::adapters::GenericShunt<core::iter::adapters::map::Map<wasmer_compiler::translator::state::SingleOrMultiValueIterator, <wasmer_compiler_llvm::translator::code::LLVMFunctionCodeGenerator>::translate_operator::{closure#11}>, core::result::Result<core::convert::Infallible, wasmer_types::error::CompileError>>> Line | Count | Source | 2061 | 6.21k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 6.21k | let mut iter = iterable.into_iter(); | 2063 | 6.21k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 6.21k | self.reserve(lower_size_bound); | 2065 | 6.21k | | 2066 | 6.21k | unsafe { | 2067 | 6.21k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 6.21k | let ptr = ptr.as_ptr(); | 2069 | 6.21k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 10.6k | while len.get() < cap { | 2071 | 6.21k | if let Some(out) = iter.next() { | 2072 | 4.45k | ptr::write(ptr.add(len.get()), out); | 2073 | 4.45k | len.increment_len(1); | 2074 | 4.45k | } else { | 2075 | 1.76k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 7.42k | for elem in iter { | 2081 | 2.97k | self.push(elem); | 2082 | 2.97k | } | 2083 | 6.21k | } |
<smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::iter::traits::collect::Extend<<[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::Item>>::extend::<core::iter::adapters::GenericShunt<core::iter::adapters::map::Map<wasmer_compiler::translator::state::SingleOrMultiValueIterator, <wasmer_compiler_llvm::translator::code::LLVMFunctionCodeGenerator>::translate_operator::{closure#1}>, core::result::Result<core::convert::Infallible, wasmer_types::error::CompileError>>> Line | Count | Source | 2061 | 82.1k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 82.1k | let mut iter = iterable.into_iter(); | 2063 | 82.1k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 82.1k | self.reserve(lower_size_bound); | 2065 | 82.1k | | 2066 | 82.1k | unsafe { | 2067 | 82.1k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 82.1k | let ptr = ptr.as_ptr(); | 2069 | 82.1k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 151k | while len.get() < cap { | 2071 | 82.1k | if let Some(out) = iter.next() { | 2072 | 69.0k | ptr::write(ptr.add(len.get()), out); | 2073 | 69.0k | len.increment_len(1); | 2074 | 69.0k | } else { | 2075 | 13.0k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 93.3k | for elem in iter { | 2081 | 24.2k | self.push(elem); | 2082 | 24.2k | } | 2083 | 82.1k | } |
<smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::iter::traits::collect::Extend<<[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::Item>>::extend::<core::iter::adapters::map::Map<core::slice::iter::Iter<inkwell::types::enums::BasicTypeEnum>, <wasmer_compiler_llvm::translator::code::LLVMFunctionCodeGenerator>::translate_operator::{closure#13}>> Line | Count | Source | 2061 | 6.21k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 6.21k | let mut iter = iterable.into_iter(); | 2063 | 6.21k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 6.21k | self.reserve(lower_size_bound); | 2065 | 6.21k | | 2066 | 6.21k | unsafe { | 2067 | 6.21k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 6.21k | let ptr = ptr.as_ptr(); | 2069 | 6.21k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 7.37k | while len.get() < cap { | 2071 | 7.35k | if let Some(out) = iter.next() { | 2072 | 1.16k | ptr::write(ptr.add(len.get()), out); | 2073 | 1.16k | len.increment_len(1); | 2074 | 1.16k | } else { | 2075 | 6.19k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 21 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 6.21k | } |
<smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::iter::traits::collect::Extend<<[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::Item>>::extend::<core::iter::adapters::map::Map<core::slice::iter::Iter<inkwell::types::enums::BasicTypeEnum>, <wasmer_compiler_llvm::translator::code::LLVMFunctionCodeGenerator>::translate_operator::{closure#14}>> Line | Count | Source | 2061 | 6.21k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 6.21k | let mut iter = iterable.into_iter(); | 2063 | 6.21k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 6.21k | self.reserve(lower_size_bound); | 2065 | 6.21k | | 2066 | 6.21k | unsafe { | 2067 | 6.21k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 6.21k | let ptr = ptr.as_ptr(); | 2069 | 6.21k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 7.37k | while len.get() < cap { | 2071 | 7.35k | if let Some(out) = iter.next() { | 2072 | 1.16k | ptr::write(ptr.add(len.get()), out); | 2073 | 1.16k | len.increment_len(1); | 2074 | 1.16k | } else { | 2075 | 6.19k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 21 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 6.21k | } |
<smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::iter::traits::collect::Extend<<[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::Item>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<inkwell::values::phi_value::PhiValue>>> Line | Count | Source | 2061 | 5.23k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 5.23k | let mut iter = iterable.into_iter(); | 2063 | 5.23k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 5.23k | self.reserve(lower_size_bound); | 2065 | 5.23k | | 2066 | 5.23k | unsafe { | 2067 | 5.23k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 5.23k | let ptr = ptr.as_ptr(); | 2069 | 5.23k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 6.11k | while len.get() < cap { | 2071 | 6.09k | if let Some(out) = iter.next() { | 2072 | 880 | ptr::write(ptr.add(len.get()), out); | 2073 | 880 | len.increment_len(1); | 2074 | 880 | } else { | 2075 | 5.21k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 21 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 5.23k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]> as core::iter::traits::collect::Extend<(cranelift_codegen::ir::entities::Value, i32)>>::extend::<core::iter::adapters::map::Map<core::ops::range::Range<u64>, <cranelift_frontend::frontend::FunctionBuilder>::emit_small_memory_copy::{closure#0}>> <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]> as core::iter::traits::collect::Extend<cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>>>::extend::<core::iter::adapters::map::Map<core::ops::range::Range<i32>, <cranelift_codegen::machinst::abi::Caller<cranelift_codegen::isa::x64::abi::X64ABIMachineSpec>>::gen_arg::{closure#1}>> Line | Count | Source | 2061 | 211k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 211k | let mut iter = iterable.into_iter(); | 2063 | 211k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 211k | self.reserve(lower_size_bound); | 2065 | 211k | | 2066 | 211k | unsafe { | 2067 | 211k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 211k | let ptr = ptr.as_ptr(); | 2069 | 211k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 211k | while len.get() < cap { | 2071 | 211k | if let Some(out) = iter.next() { | 2072 | 0 | ptr::write(ptr.add(len.get()), out); | 2073 | 0 | len.increment_len(1); | 2074 | 0 | } else { | 2075 | 211k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 0 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 211k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]> as core::iter::traits::collect::Extend<cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>>>::extend::<core::iter::adapters::map::Map<core::ops::range::Range<i32>, <cranelift_codegen::machinst::abi::Caller<cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps>>::gen_arg::{closure#1}>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]> as core::iter::traits::collect::Extend<cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>>>::extend::<core::iter::adapters::map::Map<core::ops::range::Range<i32>, <cranelift_codegen::machinst::abi::Caller<cranelift_codegen::isa::riscv64::abi::Riscv64MachineDeps>>::gen_arg::{closure#1}>> <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]> as core::iter::traits::collect::Extend<cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>>>::extend::<core::iter::adapters::map::Map<smallvec::IntoIter<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]>, <cranelift_codegen::machinst::buffer::MachBufferFinalized<cranelift_codegen::machinst::buffer::Stencil>>::apply_params::{closure#0}>> Line | Count | Source | 2061 | 139k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 139k | let mut iter = iterable.into_iter(); | 2063 | 139k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 139k | self.reserve(lower_size_bound); | 2065 | 139k | | 2066 | 139k | unsafe { | 2067 | 139k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 139k | let ptr = ptr.as_ptr(); | 2069 | 139k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 748k | while len.get() < cap { | 2071 | 748k | if let Some(out) = iter.next() { | 2072 | 608k | ptr::write(ptr.add(len.get()), out); | 2073 | 608k | len.increment_len(1); | 2074 | 608k | } else { | 2075 | 139k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 32 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]> as core::iter::traits::collect::Extend<regalloc2::VReg>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::VReg>>> <smallvec::SmallVec<[regalloc2::index::Block; 16]> as core::iter::traits::collect::Extend<regalloc2::index::Block>>::extend::<smallvec::SmallVec<[regalloc2::index::Block; 16]>> Line | Count | Source | 2061 | 139k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 139k | let mut iter = iterable.into_iter(); | 2063 | 139k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 139k | self.reserve(lower_size_bound); | 2065 | 139k | | 2066 | 139k | unsafe { | 2067 | 139k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 139k | let ptr = ptr.as_ptr(); | 2069 | 139k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 157k | while len.get() < cap { | 2071 | 157k | if let Some(out) = iter.next() { | 2072 | 17.6k | ptr::write(ptr.add(len.get()), out); | 2073 | 17.6k | len.increment_len(1); | 2074 | 17.6k | } else { | 2075 | 139k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 92 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 139k | } |
<smallvec::SmallVec<[regalloc2::index::Block; 16]> as core::iter::traits::collect::Extend<regalloc2::index::Block>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::index::Block>>> Line | Count | Source | 2061 | 139k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 139k | let mut iter = iterable.into_iter(); | 2063 | 139k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 139k | self.reserve(lower_size_bound); | 2065 | 139k | | 2066 | 139k | unsafe { | 2067 | 139k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 139k | let ptr = ptr.as_ptr(); | 2069 | 139k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 157k | while len.get() < cap { | 2071 | 157k | if let Some(out) = iter.next() { | 2072 | 17.6k | ptr::write(ptr.add(len.get()), out); | 2073 | 17.6k | len.increment_len(1); | 2074 | 17.6k | } else { | 2075 | 139k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 0 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]> as core::iter::traits::collect::Extend<cranelift_codegen::ir::entities::Value>>::extend::<core::iter::adapters::map::Map<core::slice::iter::Iter<cranelift_codegen::egraph::elaborate::IdValue>, <cranelift_codegen::egraph::elaborate::Elaborator>::process_elab_stack::{closure#0}>> <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]> as core::iter::traits::collect::Extend<cranelift_codegen::machinst::blockorder::LoweredBlock>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::machinst::blockorder::LoweredBlock>>> Line | Count | Source | 2061 | 139k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 139k | let mut iter = iterable.into_iter(); | 2063 | 139k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 139k | self.reserve(lower_size_bound); | 2065 | 139k | | 2066 | 139k | unsafe { | 2067 | 139k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 139k | let ptr = ptr.as_ptr(); | 2069 | 139k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 476k | while len.get() < cap { | 2071 | 476k | if let Some(out) = iter.next() { | 2072 | 336k | ptr::write(ptr.add(len.get()), out); | 2073 | 336k | len.increment_len(1); | 2074 | 336k | } else { | 2075 | 139k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 8 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]> as core::iter::traits::collect::Extend<cranelift_codegen::machinst::inst_common::InsnOutput>>::extend::<core::iter::adapters::map::Map<core::ops::range::Range<usize>, cranelift_codegen::isa::x64::lower::lower_insn_to_regs::{closure#0}>> Line | Count | Source | 2061 | 702k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 702k | let mut iter = iterable.into_iter(); | 2063 | 702k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 702k | self.reserve(lower_size_bound); | 2065 | 702k | | 2066 | 702k | unsafe { | 2067 | 702k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 702k | let ptr = ptr.as_ptr(); | 2069 | 702k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 1.16M | while len.get() < cap { | 2071 | 1.16M | if let Some(out) = iter.next() { | 2072 | 458k | ptr::write(ptr.add(len.get()), out); | 2073 | 458k | len.increment_len(1); | 2074 | 458k | } else { | 2075 | 702k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 0 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 702k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]> as core::iter::traits::collect::Extend<cranelift_codegen::machinst::inst_common::InsnOutput>>::extend::<core::iter::adapters::map::Map<core::ops::range::Range<usize>, cranelift_codegen::machinst::inst_common::insn_outputs<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]> as core::iter::traits::collect::Extend<cranelift_codegen::machinst::inst_common::InsnOutput>>::extend::<core::iter::adapters::map::Map<core::ops::range::Range<usize>, cranelift_codegen::machinst::inst_common::insn_outputs<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]> as core::iter::traits::collect::Extend<cranelift_codegen::machinst::abi::ABIArgSlot>>::extend::<core::iter::adapters::map::Map<core::iter::adapters::scan::Scan<core::iter::adapters::copied::Copied<core::slice::iter::Iter<cranelift_codegen::ir::types::Type>>, u64, <cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps as cranelift_codegen::machinst::abi::ABIMachineSpec>::compute_arg_locs<core::iter::adapters::chain::Chain<core::option::IntoIter<&cranelift_codegen::ir::extfunc::AbiParam>, core::slice::iter::Iter<cranelift_codegen::ir::extfunc::AbiParam>>>::{closure#0}>, <cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps as cranelift_codegen::machinst::abi::ABIMachineSpec>::compute_arg_locs<core::iter::adapters::chain::Chain<core::option::IntoIter<&cranelift_codegen::ir::extfunc::AbiParam>, core::slice::iter::Iter<cranelift_codegen::ir::extfunc::AbiParam>>>::{closure#1}>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]> as core::iter::traits::collect::Extend<cranelift_codegen::machinst::abi::ABIArgSlot>>::extend::<core::iter::adapters::map::Map<core::iter::adapters::scan::Scan<core::iter::adapters::copied::Copied<core::slice::iter::Iter<cranelift_codegen::ir::types::Type>>, u64, <cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps as cranelift_codegen::machinst::abi::ABIMachineSpec>::compute_arg_locs<&alloc::vec::Vec<cranelift_codegen::ir::extfunc::AbiParam>>::{closure#0}>, <cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps as cranelift_codegen::machinst::abi::ABIMachineSpec>::compute_arg_locs<&alloc::vec::Vec<cranelift_codegen::ir::extfunc::AbiParam>>::{closure#1}>> <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]> as core::iter::traits::collect::Extend<cranelift_codegen::machinst::abi::ABIArgSlot>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::machinst::abi::ABIArgSlot>>> Line | Count | Source | 2061 | 49.6k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 49.6k | let mut iter = iterable.into_iter(); | 2063 | 49.6k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 49.6k | self.reserve(lower_size_bound); | 2065 | 49.6k | | 2066 | 49.6k | unsafe { | 2067 | 49.6k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 49.6k | let ptr = ptr.as_ptr(); | 2069 | 49.6k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 99.2k | while len.get() < cap { | 2071 | 49.6k | if let Some(out) = iter.next() { | 2072 | 49.6k | ptr::write(ptr.add(len.get()), out); | 2073 | 49.6k | len.increment_len(1); | 2074 | 49.6k | } else { | 2075 | 0 | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 49.6k | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 49.6k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]> as core::iter::traits::collect::Extend<cranelift_codegen::machinst::abi::CallArgPair>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::machinst::abi::CallArgPair>>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]> as core::iter::traits::collect::Extend<cranelift_codegen::machinst::abi::CallRetPair>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::machinst::abi::CallRetPair>>> <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]> as core::iter::traits::collect::Extend<cranelift_codegen::machinst::buffer::MachLabel>>::extend::<core::iter::adapters::take::Take<core::iter::sources::repeat::Repeat<cranelift_codegen::machinst::buffer::MachLabel>>> Line | Count | Source | 2061 | 139k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 139k | let mut iter = iterable.into_iter(); | 2063 | 139k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 139k | self.reserve(lower_size_bound); | 2065 | 139k | | 2066 | 139k | unsafe { | 2067 | 139k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 139k | let ptr = ptr.as_ptr(); | 2069 | 139k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 476k | while len.get() < cap { | 2071 | 476k | if let Some(out) = iter.next() { | 2072 | 336k | ptr::write(ptr.add(len.get()), out); | 2073 | 336k | len.increment_len(1); | 2074 | 336k | } else { | 2075 | 139k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 92 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]> as core::iter::traits::collect::Extend<cranelift_codegen::machinst::buffer::MachLabel>>::extend::<smallvec::IntoIter<[cranelift_codegen::machinst::buffer::MachLabel; 4]>> Line | Count | Source | 2061 | 174k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 174k | let mut iter = iterable.into_iter(); | 2063 | 174k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 174k | self.reserve(lower_size_bound); | 2065 | 174k | | 2066 | 174k | unsafe { | 2067 | 174k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 174k | let ptr = ptr.as_ptr(); | 2069 | 174k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 2.79M | while len.get() < cap { | 2071 | 2.78M | if let Some(out) = iter.next() { | 2072 | 2.61M | ptr::write(ptr.add(len.get()), out); | 2073 | 2.61M | len.increment_len(1); | 2074 | 2.61M | } else { | 2075 | 167k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 7.27k | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 174k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]> as core::iter::traits::collect::Extend<cranelift_codegen::machinst::buffer::MachLabel>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::machinst::buffer::MachLabel>>> Line | Count | Source | 2061 | 220k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 220k | let mut iter = iterable.into_iter(); | 2063 | 220k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 220k | self.reserve(lower_size_bound); | 2065 | 220k | | 2066 | 220k | unsafe { | 2067 | 220k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 220k | let ptr = ptr.as_ptr(); | 2069 | 220k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 2.86M | while len.get() < cap { | 2071 | 2.85M | if let Some(out) = iter.next() { | 2072 | 2.64M | ptr::write(ptr.add(len.get()), out); | 2073 | 2.64M | len.increment_len(1); | 2074 | 2.64M | } else { | 2075 | 213k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 7.28k | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 220k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::iter::traits::collect::Extend<regalloc2::ion::data_structures::SpillSlotIndex>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::SpillSlotIndex>>> Line | Count | Source | 2061 | 6.05k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 6.05k | let mut iter = iterable.into_iter(); | 2063 | 6.05k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 6.05k | self.reserve(lower_size_bound); | 2065 | 6.05k | | 2066 | 6.05k | unsafe { | 2067 | 6.05k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 6.05k | let ptr = ptr.as_ptr(); | 2069 | 6.05k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 6.05k | while len.get() < cap { | 2071 | 6.05k | if let Some(out) = iter.next() { | 2072 | 0 | ptr::write(ptr.add(len.get()), out); | 2073 | 0 | len.increment_len(1); | 2074 | 0 | } else { | 2075 | 6.05k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 0 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 6.05k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::iter::traits::collect::Extend<regalloc2::ion::data_structures::LiveRangeListEntry>>::extend::<smallvec::Drain<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]>> Line | Count | Source | 2061 | 38.0k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 38.0k | let mut iter = iterable.into_iter(); | 2063 | 38.0k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 38.0k | self.reserve(lower_size_bound); | 2065 | 38.0k | | 2066 | 38.0k | unsafe { | 2067 | 38.0k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 38.0k | let ptr = ptr.as_ptr(); | 2069 | 38.0k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 76.2k | while len.get() < cap { | 2071 | 73.6k | if let Some(out) = iter.next() { | 2072 | 38.1k | ptr::write(ptr.add(len.get()), out); | 2073 | 38.1k | len.increment_len(1); | 2074 | 38.1k | } else { | 2075 | 35.4k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 2.58k | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 38.0k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::iter::traits::collect::Extend<regalloc2::ion::data_structures::LiveRangeListEntry>>::extend::<core::iter::adapters::skip::Skip<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::LiveRangeListEntry>>>> Line | Count | Source | 2061 | 91.3k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 91.3k | let mut iter = iterable.into_iter(); | 2063 | 91.3k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 91.3k | self.reserve(lower_size_bound); | 2065 | 91.3k | | 2066 | 91.3k | unsafe { | 2067 | 91.3k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 91.3k | let ptr = ptr.as_ptr(); | 2069 | 91.3k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 200k | while len.get() < cap { | 2071 | 200k | if let Some(out) = iter.next() { | 2072 | 109k | ptr::write(ptr.add(len.get()), out); | 2073 | 109k | len.increment_len(1); | 2074 | 109k | } else { | 2075 | 91.1k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 222 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 91.3k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::iter::traits::collect::Extend<regalloc2::ion::data_structures::LiveRangeListEntry>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::LiveRangeListEntry>>> Line | Count | Source | 2061 | 1.15M | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 1.15M | let mut iter = iterable.into_iter(); | 2063 | 1.15M | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 1.15M | self.reserve(lower_size_bound); | 2065 | 1.15M | | 2066 | 1.15M | unsafe { | 2067 | 1.15M | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 1.15M | let ptr = ptr.as_ptr(); | 2069 | 1.15M | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 2.38M | while len.get() < cap { | 2071 | 2.38M | if let Some(out) = iter.next() { | 2072 | 1.23M | ptr::write(ptr.add(len.get()), out); | 2073 | 1.23M | len.increment_len(1); | 2074 | 1.23M | } else { | 2075 | 1.15M | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 72 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 1.15M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::iter::traits::collect::Extend<regalloc2::ion::data_structures::Use>>::extend::<core::iter::adapters::skip::Skip<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::Use>>>> Line | Count | Source | 2061 | 80.4k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 80.4k | let mut iter = iterable.into_iter(); | 2063 | 80.4k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 80.4k | self.reserve(lower_size_bound); | 2065 | 80.4k | | 2066 | 80.4k | unsafe { | 2067 | 80.4k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 80.4k | let ptr = ptr.as_ptr(); | 2069 | 80.4k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 480k | while len.get() < cap { | 2071 | 478k | if let Some(out) = iter.next() { | 2072 | 399k | ptr::write(ptr.add(len.get()), out); | 2073 | 399k | len.increment_len(1); | 2074 | 399k | } else { | 2075 | 78.6k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 1.77k | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 80.4k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>>::extend::<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>> Line | Count | Source | 2061 | 99.2k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 99.2k | let mut iter = iterable.into_iter(); | 2063 | 99.2k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 99.2k | self.reserve(lower_size_bound); | 2065 | 99.2k | | 2066 | 99.2k | unsafe { | 2067 | 99.2k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 99.2k | let ptr = ptr.as_ptr(); | 2069 | 99.2k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 297k | while len.get() < cap { | 2071 | 271k | if let Some(out) = iter.next() { | 2072 | 198k | ptr::write(ptr.add(len.get()), out); | 2073 | 198k | len.increment_len(1); | 2074 | 198k | } else { | 2075 | 73.1k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 26.0k | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 99.2k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>>::extend::<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]>> Line | Count | Source | 2061 | 238k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 238k | let mut iter = iterable.into_iter(); | 2063 | 238k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 238k | self.reserve(lower_size_bound); | 2065 | 238k | | 2066 | 238k | unsafe { | 2067 | 238k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 238k | let ptr = ptr.as_ptr(); | 2069 | 238k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 580k | while len.get() < cap { | 2071 | 474k | if let Some(out) = iter.next() { | 2072 | 341k | ptr::write(ptr.add(len.get()), out); | 2073 | 341k | len.increment_len(1); | 2074 | 341k | } else { | 2075 | 132k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 106k | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 238k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>>::extend::<smallvec::IntoIter<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>> Line | Count | Source | 2061 | 328k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 328k | let mut iter = iterable.into_iter(); | 2063 | 328k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 328k | self.reserve(lower_size_bound); | 2065 | 328k | | 2066 | 328k | unsafe { | 2067 | 328k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 328k | let ptr = ptr.as_ptr(); | 2069 | 328k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 746k | while len.get() < cap { | 2071 | 746k | if let Some(out) = iter.next() { | 2072 | 418k | ptr::write(ptr.add(len.get()), out); | 2073 | 418k | len.increment_len(1); | 2074 | 418k | } else { | 2075 | 328k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 0 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 328k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>>::extend::<smallvec::IntoIter<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>::extend::<smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>::extend::<smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>::extend::<smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>::extend::<smallvec::IntoIter<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>::extend::<smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>>::extend::<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>>::extend::<smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>>::extend::<smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>>::extend::<smallvec::IntoIter<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>>> Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]> as core::iter::traits::collect::Extend<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>>::extend::<smallvec::IntoIter<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::lower::generate_constant::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::lower::lower_splat_const::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::lower::lower_constant_f32::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::lower::lower_constant_f64::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::lower::lower_constant_u64::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::lower::lower_constant_f128::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::print_with_state::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<<cranelift_codegen::machinst::lower::Lower<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>::put_value_in_regs::{closure#1}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<<cranelift_codegen::machinst::abi::Caller<cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps>>::emit_copy_regs_to_buffer::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::inst::emit::mem_finalize::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::lower_inst::lower_insn_to_regs::{closure#2}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<cranelift_codegen::isa::aarch64::lower_inst::lower_insn_to_regs::{closure#1}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<<cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps as cranelift_codegen::machinst::abi::ABIMachineSpec>::gen_add_imm::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<<cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps as cranelift_codegen::machinst::abi::ABIMachineSpec>::gen_sp_reg_adjust::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<<cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps as cranelift_codegen::machinst::abi::ABIMachineSpec>::gen_inline_probestack::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<<cranelift_codegen::isa::aarch64::abi::AArch64MachineDeps as cranelift_codegen::machinst::abi::ABIMachineSpec>::gen_inline_probestack::{closure#1}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>::load_constant<<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst as cranelift_codegen::machinst::MachInstEmit>::emit::{closure#0}>::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::Extend<(u8, u64)>>::extend::<core::iter::adapters::filter_map::FilterMap<core::ops::range::Range<u8>, <cranelift_codegen::machinst::isle::IsleContext<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst, cranelift_codegen::settings::Flags, cranelift_codegen::isa::aarch64::settings::Flags, 6> as cranelift_codegen::isa::aarch64::lower::isle::generated_code::Context>::load_constant64_full::{closure#0}>> <smallvec::SmallVec<[u8; 16]> as core::iter::traits::collect::Extend<u8>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<u8>>> Line | Count | Source | 2061 | 37.2k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 37.2k | let mut iter = iterable.into_iter(); | 2063 | 37.2k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 37.2k | self.reserve(lower_size_bound); | 2065 | 37.2k | | 2066 | 37.2k | unsafe { | 2067 | 37.2k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 37.2k | let ptr = ptr.as_ptr(); | 2069 | 37.2k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 605k | while len.get() < cap { | 2071 | 571k | if let Some(out) = iter.next() { | 2072 | 568k | ptr::write(ptr.add(len.get()), out); | 2073 | 568k | len.increment_len(1); | 2074 | 568k | } else { | 2075 | 3.41k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 33.8k | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 37.2k | } |
Unexecuted instantiation: <smallvec::SmallVec<[u8; 1024]> as core::iter::traits::collect::Extend<u8>>::extend::<core::iter::adapters::take::Take<core::iter::sources::repeat::Repeat<u8>>> <smallvec::SmallVec<[u8; 8]> as core::iter::traits::collect::Extend<u8>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<u8>>> Line | Count | Source | 2061 | 82.4k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 82.4k | let mut iter = iterable.into_iter(); | 2063 | 82.4k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 82.4k | self.reserve(lower_size_bound); | 2065 | 82.4k | | 2066 | 82.4k | unsafe { | 2067 | 82.4k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 82.4k | let ptr = ptr.as_ptr(); | 2069 | 82.4k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 576k | while len.get() < cap { | 2071 | 576k | if let Some(out) = iter.next() { | 2072 | 494k | ptr::write(ptr.add(len.get()), out); | 2073 | 494k | len.increment_len(1); | 2074 | 494k | } else { | 2075 | 82.4k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 0 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 82.4k | } |
<smallvec::SmallVec<[u32; 16]> as core::iter::traits::collect::Extend<u32>>::extend::<core::iter::adapters::take::Take<core::iter::sources::repeat::Repeat<u32>>> Line | Count | Source | 2061 | 139k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 139k | let mut iter = iterable.into_iter(); | 2063 | 139k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 139k | self.reserve(lower_size_bound); | 2065 | 139k | | 2066 | 139k | unsafe { | 2067 | 139k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 139k | let ptr = ptr.as_ptr(); | 2069 | 139k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 476k | while len.get() < cap { | 2071 | 476k | if let Some(out) = iter.next() { | 2072 | 336k | ptr::write(ptr.add(len.get()), out); | 2073 | 336k | len.increment_len(1); | 2074 | 336k | } else { | 2075 | 139k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 92 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::Allocation; 4]> as core::iter::traits::collect::Extend<regalloc2::Allocation>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::Allocation>>> Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::iter::traits::collect::Extend<regalloc2::ion::data_structures::SpillSlotIndex>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::SpillSlotIndex>>> Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]> as core::iter::traits::collect::Extend<regalloc2::ion::data_structures::LiveBundleIndex>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::LiveBundleIndex>>> Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::iter::traits::collect::Extend<regalloc2::ion::data_structures::LiveRangeListEntry>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::LiveRangeListEntry>>> Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::iter::traits::collect::Extend<regalloc2::ion::data_structures::Use>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::Use>>> Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]> as core::iter::traits::collect::Extend<regalloc2::ion::data_structures::VRegIndex>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<regalloc2::ion::data_structures::VRegIndex>>> Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]> as core::iter::traits::collect::Extend<<[wasmparser::readers::core::operators::Operator; 2] as smallvec::Array>::Item>>::extend::<alloc::collections::vec_deque::drain::Drain<wasmparser::readers::core::operators::Operator>> Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]> as core::iter::traits::collect::Extend<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>>>::extend::<alloc::vec::drain::Drain<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>>> <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]> as core::iter::traits::collect::Extend<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>>>::extend::<alloc::vec::drain::Drain<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>>> Line | Count | Source | 2061 | 153k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 153k | let mut iter = iterable.into_iter(); | 2063 | 153k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 153k | self.reserve(lower_size_bound); | 2065 | 153k | | 2066 | 153k | unsafe { | 2067 | 153k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 153k | let ptr = ptr.as_ptr(); | 2069 | 153k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 200k | while len.get() < cap { | 2071 | 200k | if let Some(out) = iter.next() { | 2072 | 47.5k | ptr::write(ptr.add(len.get()), out); | 2073 | 47.5k | len.increment_len(1); | 2074 | 47.5k | } else { | 2075 | 152k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 151 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 153k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::iter::traits::collect::Extend<wasmparser::readers::core::types::ValType>>::extend::<core::iter::adapters::map::Map<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<wasmer_types::types::Type>>, wasmer_compiler_singlepass::codegen::type_to_wp_type>> Line | Count | Source | 2061 | 153k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 153k | let mut iter = iterable.into_iter(); | 2063 | 153k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 153k | self.reserve(lower_size_bound); | 2065 | 153k | | 2066 | 153k | unsafe { | 2067 | 153k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 153k | let ptr = ptr.as_ptr(); | 2069 | 153k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 286k | while len.get() < cap { | 2071 | 153k | if let Some(out) = iter.next() { | 2072 | 133k | ptr::write(ptr.add(len.get()), out); | 2073 | 133k | len.increment_len(1); | 2074 | 133k | } else { | 2075 | 19.8k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 133k | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 153k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::iter::traits::collect::Extend<wasmparser::readers::core::types::ValType>>::extend::<core::iter::adapters::map::Map<core::slice::iter::Iter<wasmer_types::types::Type>, <wasmer_compiler_singlepass::codegen::FuncGen<wasmer_compiler_singlepass::machine_x64::MachineX86_64>>::emit_head::{closure#0}>> Line | Count | Source | 2061 | 193k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 193k | let mut iter = iterable.into_iter(); | 2063 | 193k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 193k | self.reserve(lower_size_bound); | 2065 | 193k | | 2066 | 193k | unsafe { | 2067 | 193k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 193k | let ptr = ptr.as_ptr(); | 2069 | 193k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 302k | while len.get() < cap { | 2071 | 193k | if let Some(out) = iter.next() { | 2072 | 108k | ptr::write(ptr.add(len.get()), out); | 2073 | 108k | len.increment_len(1); | 2074 | 108k | } else { | 2075 | 85.7k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 108k | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 193k | } |
Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::iter::traits::collect::Extend<wasmparser::readers::core::types::ValType>>::extend::<core::iter::adapters::map::Map<core::slice::iter::Iter<wasmer_types::types::Type>, <wasmer_compiler_singlepass::codegen::FuncGen<wasmer_compiler_singlepass::machine_arm64::MachineARM64>>::emit_head::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::iter::traits::collect::Extend<wasmparser::readers::core::types::ValType>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<wasmparser::readers::core::types::ValType>>> <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]> as core::iter::traits::collect::Extend<wasmparser::readers::core::types::ValType>>::extend::<core::iter::adapters::map::Map<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<wasmer_types::types::Type>>, wasmer_compiler_singlepass::codegen::type_to_wp_type>> Line | Count | Source | 2061 | 153k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 153k | let mut iter = iterable.into_iter(); | 2063 | 153k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 153k | self.reserve(lower_size_bound); | 2065 | 153k | | 2066 | 153k | unsafe { | 2067 | 153k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 153k | let ptr = ptr.as_ptr(); | 2069 | 153k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 200k | while len.get() < cap { | 2071 | 200k | if let Some(out) = iter.next() { | 2072 | 47.5k | ptr::write(ptr.add(len.get()), out); | 2073 | 47.5k | len.increment_len(1); | 2074 | 47.5k | } else { | 2075 | 152k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 151 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 153k | } |
Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]> as core::iter::traits::collect::Extend<<[wasmparser::readers::core::operators::Operator; 2] as smallvec::Array>::Item>>::extend::<alloc::collections::vec_deque::drain::Drain<wasmparser::readers::core::operators::Operator>> Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]> as core::iter::traits::collect::Extend<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>>>::extend::<alloc::vec::drain::Drain<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>>> <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]> as core::iter::traits::collect::Extend<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>>>::extend::<alloc::vec::drain::Drain<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>>> Line | Count | Source | 2061 | 32.6k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 32.6k | let mut iter = iterable.into_iter(); | 2063 | 32.6k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 32.6k | self.reserve(lower_size_bound); | 2065 | 32.6k | | 2066 | 32.6k | unsafe { | 2067 | 32.6k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 32.6k | let ptr = ptr.as_ptr(); | 2069 | 32.6k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 35.8k | while len.get() < cap { | 2071 | 35.8k | if let Some(out) = iter.next() { | 2072 | 3.17k | ptr::write(ptr.add(len.get()), out); | 2073 | 3.17k | len.increment_len(1); | 2074 | 3.17k | } else { | 2075 | 32.6k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 0 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 32.6k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::iter::traits::collect::Extend<wasmparser::readers::core::types::ValType>>::extend::<core::iter::adapters::map::Map<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<wasmer_types::types::Type>>, wasmer_compiler_singlepass::codegen::type_to_wp_type>> Line | Count | Source | 2061 | 32.6k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 32.6k | let mut iter = iterable.into_iter(); | 2063 | 32.6k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 32.6k | self.reserve(lower_size_bound); | 2065 | 32.6k | | 2066 | 32.6k | unsafe { | 2067 | 32.6k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 32.6k | let ptr = ptr.as_ptr(); | 2069 | 32.6k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 39.0k | while len.get() < cap { | 2071 | 32.6k | if let Some(out) = iter.next() { | 2072 | 6.35k | ptr::write(ptr.add(len.get()), out); | 2073 | 6.35k | len.increment_len(1); | 2074 | 6.35k | } else { | 2075 | 26.3k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 6.35k | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 32.6k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::iter::traits::collect::Extend<wasmparser::readers::core::types::ValType>>::extend::<core::iter::adapters::map::Map<core::slice::iter::Iter<wasmer_types::types::Type>, <wasmer_compiler_singlepass::codegen::FuncGen<wasmer_compiler_singlepass::machine_x64::MachineX86_64>>::emit_head::{closure#0}>> Line | Count | Source | 2061 | 87.8k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 87.8k | let mut iter = iterable.into_iter(); | 2063 | 87.8k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 87.8k | self.reserve(lower_size_bound); | 2065 | 87.8k | | 2066 | 87.8k | unsafe { | 2067 | 87.8k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 87.8k | let ptr = ptr.as_ptr(); | 2069 | 87.8k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 116k | while len.get() < cap { | 2071 | 87.8k | if let Some(out) = iter.next() { | 2072 | 28.8k | ptr::write(ptr.add(len.get()), out); | 2073 | 28.8k | len.increment_len(1); | 2074 | 28.8k | } else { | 2075 | 59.0k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 28.8k | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 87.8k | } |
Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::iter::traits::collect::Extend<wasmparser::readers::core::types::ValType>>::extend::<core::iter::adapters::map::Map<core::slice::iter::Iter<wasmer_types::types::Type>, <wasmer_compiler_singlepass::codegen::FuncGen<wasmer_compiler_singlepass::machine_arm64::MachineARM64>>::emit_head::{closure#0}>> Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::iter::traits::collect::Extend<wasmparser::readers::core::types::ValType>>::extend::<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<wasmparser::readers::core::types::ValType>>> <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]> as core::iter::traits::collect::Extend<wasmparser::readers::core::types::ValType>>::extend::<core::iter::adapters::map::Map<core::iter::adapters::cloned::Cloned<core::slice::iter::Iter<wasmer_types::types::Type>>, wasmer_compiler_singlepass::codegen::type_to_wp_type>> Line | Count | Source | 2061 | 32.6k | fn extend<I: IntoIterator<Item = A::Item>>(&mut self, iterable: I) { | 2062 | 32.6k | let mut iter = iterable.into_iter(); | 2063 | 32.6k | let (lower_size_bound, _) = iter.size_hint(); | 2064 | 32.6k | self.reserve(lower_size_bound); | 2065 | 32.6k | | 2066 | 32.6k | unsafe { | 2067 | 32.6k | let (ptr, len_ptr, cap) = self.triple_mut(); | 2068 | 32.6k | let ptr = ptr.as_ptr(); | 2069 | 32.6k | let mut len = SetLenOnDrop::new(len_ptr); | 2070 | 35.8k | while len.get() < cap { | 2071 | 35.8k | if let Some(out) = iter.next() { | 2072 | 3.17k | ptr::write(ptr.add(len.get()), out); | 2073 | 3.17k | len.increment_len(1); | 2074 | 3.17k | } else { | 2075 | 32.6k | return; | 2076 | | } | 2077 | | } | 2078 | | } | 2079 | | | 2080 | 0 | for elem in iter { | 2081 | 0 | self.push(elem); | 2082 | 0 | } | 2083 | 32.6k | } |
|
2084 | | } |
2085 | | |
2086 | | impl<A: Array> fmt::Debug for SmallVec<A> |
2087 | | where |
2088 | | A::Item: fmt::Debug, |
2089 | | { |
2090 | 0 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
2091 | 0 | f.debug_list().entries(self.iter()).finish() |
2092 | 0 | } Unexecuted instantiation: <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::fmt::Debug>::fmt Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]> as core::fmt::Debug>::fmt Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]> as core::fmt::Debug>::fmt Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]> as core::fmt::Debug>::fmt Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]> as core::fmt::Debug>::fmt Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]> as core::fmt::Debug>::fmt Unexecuted instantiation: <smallvec::SmallVec<[u8; 8]> as core::fmt::Debug>::fmt Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::Allocation; 4]> as core::fmt::Debug>::fmt Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::fmt::Debug>::fmt Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]> as core::fmt::Debug>::fmt Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::fmt::Debug>::fmt Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::fmt::Debug>::fmt Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]> as core::fmt::Debug>::fmt Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::fmt::Debug>::fmt Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::fmt::Debug>::fmt |
2093 | | } |
2094 | | |
2095 | | impl<A: Array> Default for SmallVec<A> { |
2096 | | #[inline] |
2097 | 231k | fn default() -> SmallVec<A> { |
2098 | 231k | SmallVec::new() |
2099 | 231k | } <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::default::Default>::default Line | Count | Source | 2097 | 2.21k | fn default() -> SmallVec<A> { | 2098 | 2.21k | SmallVec::new() | 2099 | 2.21k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]> as core::default::Default>::default Line | Count | Source | 2097 | 104k | fn default() -> SmallVec<A> { | 2098 | 104k | SmallVec::new() | 2099 | 104k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]> as core::default::Default>::default Line | Count | Source | 2097 | 104k | fn default() -> SmallVec<A> { | 2098 | 104k | SmallVec::new() | 2099 | 104k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]> as core::default::Default>::default Line | Count | Source | 2097 | 9.83k | fn default() -> SmallVec<A> { | 2098 | 9.83k | SmallVec::new() | 2099 | 9.83k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]> as core::default::Default>::default Line | Count | Source | 2097 | 9.83k | fn default() -> SmallVec<A> { | 2098 | 9.83k | SmallVec::new() | 2099 | 9.83k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]> as core::default::Default>::default Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]> as core::default::Default>::default Unexecuted instantiation: <smallvec::SmallVec<[u8; 1024]> as core::default::Default>::default Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]> as core::default::Default>::default |
2100 | | } |
2101 | | |
2102 | | #[cfg(feature = "may_dangle")] |
2103 | | unsafe impl<#[may_dangle] A: Array> Drop for SmallVec<A> { |
2104 | | fn drop(&mut self) { |
2105 | | unsafe { |
2106 | | if self.spilled() { |
2107 | | let (ptr, &mut len) = self.data.heap_mut(); |
2108 | | Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity); |
2109 | | } else { |
2110 | | ptr::drop_in_place(&mut self[..]); |
2111 | | } |
2112 | | } |
2113 | | } |
2114 | | } |
2115 | | |
2116 | | #[cfg(not(feature = "may_dangle"))] |
2117 | | impl<A: Array> Drop for SmallVec<A> { |
2118 | 49.1M | fn drop(&mut self) { |
2119 | 49.1M | unsafe { |
2120 | 49.1M | if self.spilled() { |
2121 | 236k | let (ptr, &mut len) = self.data.heap_mut(); |
2122 | 236k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); |
2123 | 48.8M | } else { |
2124 | 48.8M | ptr::drop_in_place(&mut self[..]); |
2125 | 48.8M | } |
2126 | | } |
2127 | 49.1M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 376k | fn drop(&mut self) { | 2119 | 376k | unsafe { | 2120 | 376k | if self.spilled() { | 2121 | 16.7k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 16.7k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 359k | } else { | 2124 | 359k | ptr::drop_in_place(&mut self[..]); | 2125 | 359k | } | 2126 | | } | 2127 | 376k | } |
Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 196k | fn drop(&mut self) { | 2119 | 196k | unsafe { | 2120 | 196k | if self.spilled() { | 2121 | 3 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 3 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 196k | } else { | 2124 | 196k | ptr::drop_in_place(&mut self[..]); | 2125 | 196k | } | 2126 | | } | 2127 | 196k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 1.63k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 1.63k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 137k | } else { | 2124 | 137k | ptr::drop_in_place(&mut self[..]); | 2125 | 137k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 156k | fn drop(&mut self) { | 2119 | 156k | unsafe { | 2120 | 156k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 156k | } else { | 2124 | 156k | ptr::drop_in_place(&mut self[..]); | 2125 | 156k | } | 2126 | | } | 2127 | 156k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 872 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 872 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 138k | } else { | 2124 | 138k | ptr::drop_in_place(&mut self[..]); | 2125 | 138k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 139k | } else { | 2124 | 139k | ptr::drop_in_place(&mut self[..]); | 2125 | 139k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 1.99k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 1.99k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 137k | } else { | 2124 | 137k | ptr::drop_in_place(&mut self[..]); | 2125 | 137k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 426 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 426 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 139k | } else { | 2124 | 139k | ptr::drop_in_place(&mut self[..]); | 2125 | 139k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 139k | } else { | 2124 | 139k | ptr::drop_in_place(&mut self[..]); | 2125 | 139k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[u8; 1024]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 2.05k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 2.05k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 137k | } else { | 2124 | 137k | ptr::drop_in_place(&mut self[..]); | 2125 | 137k | } | 2126 | | } | 2127 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[core::option::Option<usize>; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 1.52k | fn drop(&mut self) { | 2119 | 1.52k | unsafe { | 2120 | 1.52k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 1.52k | } else { | 2124 | 1.52k | ptr::drop_in_place(&mut self[..]); | 2125 | 1.52k | } | 2126 | | } | 2127 | 1.52k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 211k | fn drop(&mut self) { | 2119 | 211k | unsafe { | 2120 | 211k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 211k | } else { | 2124 | 211k | ptr::drop_in_place(&mut self[..]); | 2125 | 211k | } | 2126 | | } | 2127 | 211k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 1.63k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 1.63k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 137k | } else { | 2124 | 137k | ptr::drop_in_place(&mut self[..]); | 2125 | 137k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 149k | fn drop(&mut self) { | 2119 | 149k | unsafe { | 2120 | 149k | if self.spilled() { | 2121 | 3.48k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 3.48k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 145k | } else { | 2124 | 145k | ptr::drop_in_place(&mut self[..]); | 2125 | 145k | } | 2126 | | } | 2127 | 149k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 869k | fn drop(&mut self) { | 2119 | 869k | unsafe { | 2120 | 869k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 869k | } else { | 2124 | 869k | ptr::drop_in_place(&mut self[..]); | 2125 | 869k | } | 2126 | | } | 2127 | 869k | } |
<smallvec::SmallVec<[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 256 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 256 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 139k | } else { | 2124 | 139k | ptr::drop_in_place(&mut self[..]); | 2125 | 139k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 2]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 278k | fn drop(&mut self) { | 2119 | 278k | unsafe { | 2120 | 278k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 278k | } else { | 2124 | 278k | ptr::drop_in_place(&mut self[..]); | 2125 | 278k | } | 2126 | | } | 2127 | 278k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 30.8k | fn drop(&mut self) { | 2119 | 30.8k | unsafe { | 2120 | 30.8k | if self.spilled() { | 2121 | 154 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 154 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 30.6k | } else { | 2124 | 30.6k | ptr::drop_in_place(&mut self[..]); | 2125 | 30.6k | } | 2126 | | } | 2127 | 30.8k | } |
<smallvec::SmallVec<[regalloc2::PReg; 8]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 1.27M | fn drop(&mut self) { | 2119 | 1.27M | unsafe { | 2120 | 1.27M | if self.spilled() { | 2121 | 7.52k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 7.52k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 1.26M | } else { | 2124 | 1.26M | ptr::drop_in_place(&mut self[..]); | 2125 | 1.26M | } | 2126 | | } | 2127 | 1.27M | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[regalloc2::SpillSlot; 8]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 166k | fn drop(&mut self) { | 2119 | 166k | unsafe { | 2120 | 166k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 166k | } else { | 2124 | 166k | ptr::drop_in_place(&mut self[..]); | 2125 | 166k | } | 2126 | | } | 2127 | 166k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[cranelift_codegen::loop_analysis::Loop; 8]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 139k | } else { | 2124 | 139k | ptr::drop_in_place(&mut self[..]); | 2125 | 139k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[regalloc2::index::Block; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 418k | fn drop(&mut self) { | 2119 | 418k | unsafe { | 2120 | 418k | if self.spilled() { | 2121 | 2.52k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 2.52k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 415k | } else { | 2124 | 415k | ptr::drop_in_place(&mut self[..]); | 2125 | 415k | } | 2126 | | } | 2127 | 418k | } |
<smallvec::SmallVec<[cranelift_codegen::ir::entities::Inst; 2]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 139k | } else { | 2124 | 139k | ptr::drop_in_place(&mut self[..]); | 2125 | 139k | } | 2126 | | } | 2127 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Block; 16]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 4]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 8]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 650 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 650 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 138k | } else { | 2124 | 138k | ptr::drop_in_place(&mut self[..]); | 2125 | 138k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 2]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 702k | fn drop(&mut self) { | 2119 | 702k | unsafe { | 2120 | 702k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 702k | } else { | 2124 | 702k | ptr::drop_in_place(&mut self[..]); | 2125 | 702k | } | 2126 | | } | 2127 | 702k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::inst_common::InsnOutput; 4]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 761k | fn drop(&mut self) { | 2119 | 761k | unsafe { | 2120 | 761k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 761k | } else { | 2124 | 761k | ptr::drop_in_place(&mut self[..]); | 2125 | 761k | } | 2126 | | } | 2127 | 761k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 209k | fn drop(&mut self) { | 2119 | 209k | unsafe { | 2120 | 209k | if self.spilled() { | 2121 | 698 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 698 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 208k | } else { | 2124 | 208k | ptr::drop_in_place(&mut self[..]); | 2125 | 208k | } | 2126 | | } | 2127 | 209k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 209k | fn drop(&mut self) { | 2119 | 209k | unsafe { | 2120 | 209k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 209k | } else { | 2124 | 209k | ptr::drop_in_place(&mut self[..]); | 2125 | 209k | } | 2126 | | } | 2127 | 209k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::RetPair; 2]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 1.35k | fn drop(&mut self) { | 2119 | 1.35k | unsafe { | 2120 | 1.35k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 1.35k | } else { | 2124 | 1.35k | ptr::drop_in_place(&mut self[..]); | 2125 | 1.35k | } | 2126 | | } | 2127 | 1.35k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 204k | fn drop(&mut self) { | 2119 | 204k | unsafe { | 2120 | 204k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 204k | } else { | 2124 | 204k | ptr::drop_in_place(&mut self[..]); | 2125 | 204k | } | 2126 | | } | 2127 | 204k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 4]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachBranch; 4]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 388 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 388 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 139k | } else { | 2124 | 139k | ptr::drop_in_place(&mut self[..]); | 2125 | 139k | } | 2126 | | } | 2127 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 149k | fn drop(&mut self) { | 2119 | 149k | unsafe { | 2120 | 149k | if self.spilled() { | 2121 | 846 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 846 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 148k | } else { | 2124 | 148k | ptr::drop_in_place(&mut self[..]); | 2125 | 148k | } | 2126 | | } | 2127 | 149k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 4.93k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 4.93k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 134k | } else { | 2124 | 134k | ptr::drop_in_place(&mut self[..]); | 2125 | 134k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 2]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 330 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 330 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 139k | } else { | 2124 | 139k | ptr::drop_in_place(&mut self[..]); | 2125 | 139k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 360k | fn drop(&mut self) { | 2119 | 360k | unsafe { | 2120 | 360k | if self.spilled() { | 2121 | 74.1k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 74.1k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 286k | } else { | 2124 | 286k | ptr::drop_in_place(&mut self[..]); | 2125 | 286k | } | 2126 | | } | 2127 | 360k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[regalloc2::ion::data_structures::InsertedMove; 8]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 464k | fn drop(&mut self) { | 2119 | 464k | unsafe { | 2120 | 464k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 464k | } else { | 2124 | 464k | ptr::drop_in_place(&mut self[..]); | 2125 | 464k | } | 2126 | | } | 2127 | 464k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 10.3k | fn drop(&mut self) { | 2119 | 10.3k | unsafe { | 2120 | 10.3k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 10.3k | } else { | 2124 | 10.3k | ptr::drop_in_place(&mut self[..]); | 2125 | 10.3k | } | 2126 | | } | 2127 | 10.3k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 966 | fn drop(&mut self) { | 2119 | 966 | unsafe { | 2120 | 966 | if self.spilled() { | 2121 | 540 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 540 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 540 | } else { | 2124 | 426 | ptr::drop_in_place(&mut self[..]); | 2125 | 426 | } | 2126 | | } | 2127 | 966 | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 2.44M | fn drop(&mut self) { | 2119 | 2.44M | unsafe { | 2120 | 2.44M | if self.spilled() { | 2121 | 1.43k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 1.43k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 2.44M | } else { | 2124 | 2.44M | ptr::drop_in_place(&mut self[..]); | 2125 | 2.44M | } | 2126 | | } | 2127 | 2.44M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 22.4M | fn drop(&mut self) { | 2119 | 22.4M | unsafe { | 2120 | 22.4M | if self.spilled() { | 2121 | 14.3k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 14.3k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 22.4M | } else { | 2124 | 22.4M | ptr::drop_in_place(&mut self[..]); | 2125 | 22.4M | } | 2126 | | } | 2127 | 22.4M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 1.51M | fn drop(&mut self) { | 2119 | 1.51M | unsafe { | 2120 | 1.51M | if self.spilled() { | 2121 | 15.0k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 15.0k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 1.50M | } else { | 2124 | 1.50M | ptr::drop_in_place(&mut self[..]); | 2125 | 1.50M | } | 2126 | | } | 2127 | 1.51M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 1.24M | fn drop(&mut self) { | 2119 | 1.24M | unsafe { | 2120 | 1.24M | if self.spilled() { | 2121 | 8.47k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 8.47k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 1.23M | } else { | 2124 | 1.23M | ptr::drop_in_place(&mut self[..]); | 2125 | 1.23M | } | 2126 | | } | 2127 | 1.24M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 2.86M | fn drop(&mut self) { | 2119 | 2.86M | unsafe { | 2120 | 2.86M | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 2.86M | } else { | 2124 | 2.86M | ptr::drop_in_place(&mut self[..]); | 2125 | 2.86M | } | 2126 | | } | 2127 | 2.86M | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 238k | fn drop(&mut self) { | 2119 | 238k | unsafe { | 2120 | 238k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 238k | } else { | 2124 | 238k | ptr::drop_in_place(&mut self[..]); | 2125 | 238k | } | 2126 | | } | 2127 | 238k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 104k | fn drop(&mut self) { | 2119 | 104k | unsafe { | 2120 | 104k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 104k | } else { | 2124 | 104k | ptr::drop_in_place(&mut self[..]); | 2125 | 104k | } | 2126 | | } | 2127 | 104k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 1.53M | fn drop(&mut self) { | 2119 | 1.53M | unsafe { | 2120 | 1.53M | if self.spilled() { | 2121 | 60.9k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 60.9k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 1.47M | } else { | 2124 | 1.47M | ptr::drop_in_place(&mut self[..]); | 2125 | 1.47M | } | 2126 | | } | 2127 | 1.53M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 1.86k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 1.86k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 137k | } else { | 2124 | 137k | ptr::drop_in_place(&mut self[..]); | 2125 | 137k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[regalloc2::postorder::calculate::State; 64]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 518 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 518 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 138k | } else { | 2124 | 138k | ptr::drop_in_place(&mut self[..]); | 2125 | 138k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 466k | fn drop(&mut self) { | 2119 | 466k | unsafe { | 2120 | 466k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 466k | } else { | 2124 | 466k | ptr::drop_in_place(&mut self[..]); | 2125 | 466k | } | 2126 | | } | 2127 | 466k | } |
<smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 139k | } else { | 2124 | 139k | ptr::drop_in_place(&mut self[..]); | 2125 | 139k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 140 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 140 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 139k | } else { | 2124 | 139k | ptr::drop_in_place(&mut self[..]); | 2125 | 139k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 3.56k | fn drop(&mut self) { | 2119 | 3.56k | unsafe { | 2120 | 3.56k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 3.56k | } else { | 2124 | 3.56k | ptr::drop_in_place(&mut self[..]); | 2125 | 3.56k | } | 2126 | | } | 2127 | 3.56k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 966 | fn drop(&mut self) { | 2119 | 966 | unsafe { | 2120 | 966 | if self.spilled() { | 2121 | 660 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 660 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 660 | } else { | 2124 | 306 | ptr::drop_in_place(&mut self[..]); | 2125 | 306 | } | 2126 | | } | 2127 | 966 | } |
Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[bool; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 3.04k | fn drop(&mut self) { | 2119 | 3.04k | unsafe { | 2120 | 3.04k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 3.04k | } else { | 2124 | 3.04k | ptr::drop_in_place(&mut self[..]); | 2125 | 3.04k | } | 2126 | | } | 2127 | 3.04k | } |
<smallvec::SmallVec<[u8; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 37.2k | fn drop(&mut self) { | 2119 | 37.2k | unsafe { | 2120 | 37.2k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 37.2k | } else { | 2124 | 37.2k | ptr::drop_in_place(&mut self[..]); | 2125 | 37.2k | } | 2126 | | } | 2127 | 37.2k | } |
Unexecuted instantiation: <smallvec::SmallVec<[u8; 1024]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[u8; 8]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 82.4k | fn drop(&mut self) { | 2119 | 82.4k | unsafe { | 2120 | 82.4k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 82.4k | } else { | 2124 | 82.4k | ptr::drop_in_place(&mut self[..]); | 2125 | 82.4k | } | 2126 | | } | 2127 | 82.4k | } |
<smallvec::SmallVec<[usize; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 1.52k | fn drop(&mut self) { | 2119 | 1.52k | unsafe { | 2120 | 1.52k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 1.52k | } else { | 2124 | 1.52k | ptr::drop_in_place(&mut self[..]); | 2125 | 1.52k | } | 2126 | | } | 2127 | 1.52k | } |
<smallvec::SmallVec<[usize; 4]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 240k | fn drop(&mut self) { | 2119 | 240k | unsafe { | 2120 | 240k | if self.spilled() { | 2121 | 60 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 60 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 240k | } else { | 2124 | 240k | ptr::drop_in_place(&mut self[..]); | 2125 | 240k | } | 2126 | | } | 2127 | 240k | } |
<smallvec::SmallVec<[u32; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 4.93k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 4.93k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 134k | } else { | 2124 | 134k | ptr::drop_in_place(&mut self[..]); | 2125 | 134k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[u32; 64]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 139k | fn drop(&mut self) { | 2119 | 139k | unsafe { | 2120 | 139k | if self.spilled() { | 2121 | 650 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 650 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 138k | } else { | 2124 | 138k | ptr::drop_in_place(&mut self[..]); | 2125 | 138k | } | 2126 | | } | 2127 | 139k | } |
<smallvec::SmallVec<[u32; 8]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 278k | fn drop(&mut self) { | 2119 | 278k | unsafe { | 2120 | 278k | if self.spilled() { | 2121 | 5.14k | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 5.14k | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 273k | } else { | 2124 | 273k | ptr::drop_in_place(&mut self[..]); | 2125 | 273k | } | 2126 | | } | 2127 | 278k | } |
<smallvec::SmallVec<[regalloc2::Allocation; 4]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 122k | fn drop(&mut self) { | 2119 | 122k | unsafe { | 2120 | 122k | if self.spilled() { | 2121 | 24 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 24 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 122k | } else { | 2124 | 122k | ptr::drop_in_place(&mut self[..]); | 2125 | 122k | } | 2126 | | } | 2127 | 122k | } |
Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 3.42M | fn drop(&mut self) { | 2119 | 3.42M | unsafe { | 2120 | 3.42M | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 3.42M | } else { | 2124 | 3.42M | ptr::drop_in_place(&mut self[..]); | 2125 | 3.42M | } | 2126 | | } | 2127 | 3.42M | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 153k | fn drop(&mut self) { | 2119 | 153k | unsafe { | 2120 | 153k | if self.spilled() { | 2121 | 58 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 58 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 153k | } else { | 2124 | 153k | ptr::drop_in_place(&mut self[..]); | 2125 | 153k | } | 2126 | | } | 2127 | 153k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 489k | fn drop(&mut self) { | 2119 | 489k | unsafe { | 2120 | 489k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 489k | } else { | 2124 | 489k | ptr::drop_in_place(&mut self[..]); | 2125 | 489k | } | 2126 | | } | 2127 | 489k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 153k | fn drop(&mut self) { | 2119 | 153k | unsafe { | 2120 | 153k | if self.spilled() { | 2121 | 58 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 58 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 153k | } else { | 2124 | 153k | ptr::drop_in_place(&mut self[..]); | 2125 | 153k | } | 2126 | | } | 2127 | 153k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::ir::entities::Value; 16]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachCallSite; 16]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachStackMap; 8]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachTrap; 16]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachReloc; 16]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[u8; 1024]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8]> as core::ops::drop::Drop>::drop <smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 816k | fn drop(&mut self) { | 2119 | 816k | unsafe { | 2120 | 816k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 816k | } else { | 2124 | 816k | ptr::drop_in_place(&mut self[..]); | 2125 | 816k | } | 2126 | | } | 2127 | 816k | } |
<smallvec::SmallVec<[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 32.6k | fn drop(&mut self) { | 2119 | 32.6k | unsafe { | 2120 | 32.6k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 32.6k | } else { | 2124 | 32.6k | ptr::drop_in_place(&mut self[..]); | 2125 | 32.6k | } | 2126 | | } | 2127 | 32.6k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 274k | fn drop(&mut self) { | 2119 | 274k | unsafe { | 2120 | 274k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 274k | } else { | 2124 | 274k | ptr::drop_in_place(&mut self[..]); | 2125 | 274k | } | 2126 | | } | 2127 | 274k | } |
<smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 8]> as core::ops::drop::Drop>::drop Line | Count | Source | 2118 | 32.6k | fn drop(&mut self) { | 2119 | 32.6k | unsafe { | 2120 | 32.6k | if self.spilled() { | 2121 | 0 | let (ptr, &mut len) = self.data.heap_mut(); | 2122 | 0 | drop(Vec::from_raw_parts(ptr.as_ptr(), len, self.capacity)); | 2123 | 32.6k | } else { | 2124 | 32.6k | ptr::drop_in_place(&mut self[..]); | 2125 | 32.6k | } | 2126 | | } | 2127 | 32.6k | } |
|
2128 | | } |
2129 | | |
2130 | | impl<A: Array> Clone for SmallVec<A> |
2131 | | where |
2132 | | A::Item: Clone, |
2133 | | { |
2134 | | #[inline] |
2135 | 1.60M | fn clone(&self) -> SmallVec<A> { |
2136 | 1.60M | SmallVec::from(self.as_slice()) |
2137 | 1.60M | } <smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::clone::Clone>::clone Line | Count | Source | 2135 | 5.23k | fn clone(&self) -> SmallVec<A> { | 2136 | 5.23k | SmallVec::from(self.as_slice()) | 2137 | 5.23k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::clone::Clone>::clone Line | Count | Source | 2135 | 1.15M | fn clone(&self) -> SmallVec<A> { | 2136 | 1.15M | SmallVec::from(self.as_slice()) | 2137 | 1.15M | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::clone::Clone>::clone Line | Count | Source | 2135 | 6.05k | fn clone(&self) -> SmallVec<A> { | 2136 | 6.05k | SmallVec::from(self.as_slice()) | 2137 | 6.05k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]> as core::clone::Clone>::clone Line | Count | Source | 2135 | 220k | fn clone(&self) -> SmallVec<A> { | 2136 | 220k | SmallVec::from(self.as_slice()) | 2137 | 220k | } |
<smallvec::SmallVec<[regalloc2::index::Block; 16]> as core::clone::Clone>::clone Line | Count | Source | 2135 | 139k | fn clone(&self) -> SmallVec<A> { | 2136 | 139k | SmallVec::from(self.as_slice()) | 2137 | 139k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]> as core::clone::Clone>::clone Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]> as core::clone::Clone>::clone Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::clone::Clone>::clone <smallvec::SmallVec<[u8; 8]> as core::clone::Clone>::clone Line | Count | Source | 2135 | 28.4k | fn clone(&self) -> SmallVec<A> { | 2136 | 28.4k | SmallVec::from(self.as_slice()) | 2137 | 28.4k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]> as core::clone::Clone>::clone Line | Count | Source | 2135 | 49.6k | fn clone(&self) -> SmallVec<A> { | 2136 | 49.6k | SmallVec::from(self.as_slice()) | 2137 | 49.6k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]> as core::clone::Clone>::clone Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]> as core::clone::Clone>::clone Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::Allocation; 4]> as core::clone::Clone>::clone Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::clone::Clone>::clone Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::clone::Clone>::clone Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]> as core::clone::Clone>::clone Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::SpillSlotIndex; 32]> as core::clone::Clone>::clone Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]> as core::clone::Clone>::clone Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::clone::Clone>::clone Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::types::ValType; 1]> as core::clone::Clone>::clone |
2138 | | |
2139 | | fn clone_from(&mut self, source: &Self) { |
2140 | | // Inspired from `impl Clone for Vec`. |
2141 | | |
2142 | | // drop anything that will not be overwritten |
2143 | | self.truncate(source.len()); |
2144 | | |
2145 | | // self.len <= other.len due to the truncate above, so the |
2146 | | // slices here are always in-bounds. |
2147 | | let (init, tail) = source.split_at(self.len()); |
2148 | | |
2149 | | // reuse the contained values' allocations/resources. |
2150 | | self.clone_from_slice(init); |
2151 | | self.extend(tail.iter().cloned()); |
2152 | | } |
2153 | | } |
2154 | | |
2155 | | impl<A: Array, B: Array> PartialEq<SmallVec<B>> for SmallVec<A> |
2156 | | where |
2157 | | A::Item: PartialEq<B::Item>, |
2158 | | { |
2159 | | #[inline] |
2160 | 0 | fn eq(&self, other: &SmallVec<B>) -> bool { |
2161 | 0 | self[..] == other[..] |
2162 | 0 | } |
2163 | | } |
2164 | | |
2165 | | impl<A: Array> Eq for SmallVec<A> where A::Item: Eq {} |
2166 | | |
2167 | | impl<A: Array> PartialOrd for SmallVec<A> |
2168 | | where |
2169 | | A::Item: PartialOrd, |
2170 | | { |
2171 | | #[inline] |
2172 | | fn partial_cmp(&self, other: &SmallVec<A>) -> Option<cmp::Ordering> { |
2173 | | PartialOrd::partial_cmp(&**self, &**other) |
2174 | | } |
2175 | | } |
2176 | | |
2177 | | impl<A: Array> Ord for SmallVec<A> |
2178 | | where |
2179 | | A::Item: Ord, |
2180 | | { |
2181 | | #[inline] |
2182 | | fn cmp(&self, other: &SmallVec<A>) -> cmp::Ordering { |
2183 | | Ord::cmp(&**self, &**other) |
2184 | | } |
2185 | | } |
2186 | | |
2187 | | impl<A: Array> Hash for SmallVec<A> |
2188 | | where |
2189 | | A::Item: Hash, |
2190 | | { |
2191 | | fn hash<H: Hasher>(&self, state: &mut H) { |
2192 | | (**self).hash(state) |
2193 | | } |
2194 | | } |
2195 | | |
2196 | | unsafe impl<A: Array> Send for SmallVec<A> where A::Item: Send {} |
2197 | | |
2198 | | /// An iterator that consumes a `SmallVec` and yields its items by value. |
2199 | | /// |
2200 | | /// Returned from [`SmallVec::into_iter`][1]. |
2201 | | /// |
2202 | | /// [1]: struct.SmallVec.html#method.into_iter |
2203 | | pub struct IntoIter<A: Array> { |
2204 | | data: SmallVec<A>, |
2205 | | current: usize, |
2206 | | end: usize, |
2207 | | } |
2208 | | |
2209 | | impl<A: Array> fmt::Debug for IntoIter<A> |
2210 | | where |
2211 | | A::Item: fmt::Debug, |
2212 | | { |
2213 | | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
2214 | | f.debug_tuple("IntoIter").field(&self.as_slice()).finish() |
2215 | | } |
2216 | | } |
2217 | | |
2218 | | impl<A: Array + Clone> Clone for IntoIter<A> |
2219 | | where |
2220 | | A::Item: Clone, |
2221 | | { |
2222 | | fn clone(&self) -> IntoIter<A> { |
2223 | | SmallVec::from(self.as_slice()).into_iter() |
2224 | | } |
2225 | | } |
2226 | | |
2227 | | impl<A: Array> Drop for IntoIter<A> { |
2228 | 2.97M | fn drop(&mut self) { |
2229 | 2.97M | for _ in self {} |
2230 | 2.97M | } Unexecuted instantiation: <smallvec::IntoIter<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::ops::drop::Drop>::drop <smallvec::IntoIter<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]> as core::ops::drop::Drop>::drop Line | Count | Source | 2228 | 196k | fn drop(&mut self) { | 2229 | 196k | for _ in self {} | 2230 | 196k | } |
Unexecuted instantiation: <smallvec::IntoIter<[(cranelift_codegen::ir::entities::Value, i32); 4]> as core::ops::drop::Drop>::drop <smallvec::IntoIter<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]> as core::ops::drop::Drop>::drop Line | Count | Source | 2228 | 139k | fn drop(&mut self) { | 2229 | 139k | for _ in self {} | 2230 | 139k | } |
<smallvec::IntoIter<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2228 | 9.83k | fn drop(&mut self) { | 2229 | 9.83k | for _ in self {} | 2230 | 9.83k | } |
Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::IntoIter<[regalloc2::VReg; 2]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::IntoIter<[cranelift_egraph::Id; 8]> as core::ops::drop::Drop>::drop <smallvec::IntoIter<[regalloc2::index::Block; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2228 | 139k | fn drop(&mut self) { | 2229 | 139k | for _ in self {} | 2230 | 139k | } |
<smallvec::IntoIter<[cranelift_codegen::machinst::abi::RetPair; 2]> as core::ops::drop::Drop>::drop Line | Count | Source | 2228 | 1.35k | fn drop(&mut self) { | 2229 | 1.35k | for _ in self {} | 2230 | 1.35k | } |
Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::machinst::reg::Reg; 4]> as core::ops::drop::Drop>::drop <smallvec::IntoIter<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2228 | 9.83k | fn drop(&mut self) { | 2229 | 9.83k | for _ in self {} | 2230 | 9.83k | } |
<smallvec::IntoIter<[cranelift_codegen::machinst::buffer::MachLabel; 4]> as core::ops::drop::Drop>::drop Line | Count | Source | 2228 | 174k | fn drop(&mut self) { | 2229 | 174k | for _ in self {} | 2230 | 174k | } |
<smallvec::IntoIter<[regalloc2::ion::data_structures::LiveBundleIndex; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2228 | 966 | fn drop(&mut self) { | 2229 | 966 | for _ in self {} | 2230 | 966 | } |
<smallvec::IntoIter<[regalloc2::ion::data_structures::VRegIndex; 4]> as core::ops::drop::Drop>::drop Line | Count | Source | 2228 | 88.5k | fn drop(&mut self) { | 2229 | 88.5k | for _ in self {} | 2230 | 88.5k | } |
<smallvec::IntoIter<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2228 | 238k | fn drop(&mut self) { | 2229 | 238k | for _ in self {} | 2230 | 238k | } |
<smallvec::IntoIter<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]> as core::ops::drop::Drop>::drop Line | Count | Source | 2228 | 104k | fn drop(&mut self) { | 2229 | 104k | for _ in self {} | 2230 | 104k | } |
<smallvec::IntoIter<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]> as core::ops::drop::Drop>::drop Line | Count | Source | 2228 | 1.40M | fn drop(&mut self) { | 2229 | 1.40M | for _ in self {} | 2230 | 1.40M | } |
Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]> as core::ops::drop::Drop>::drop <smallvec::IntoIter<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2228 | 464k | fn drop(&mut self) { | 2229 | 464k | for _ in self {} | 2230 | 464k | } |
<smallvec::IntoIter<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]> as core::ops::drop::Drop>::drop Line | Count | Source | 2228 | 3.56k | fn drop(&mut self) { | 2229 | 3.56k | for _ in self {} | 2230 | 3.56k | } |
Unexecuted instantiation: <smallvec::IntoIter<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]> as core::ops::drop::Drop>::drop <smallvec::IntoIter<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]> as core::ops::drop::Drop>::drop Line | Count | Source | 2228 | 966 | fn drop(&mut self) { | 2229 | 966 | for _ in self {} | 2230 | 966 | } |
Unexecuted instantiation: <smallvec::IntoIter<[(u8, u64); 4]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::IntoIter<[u8; 1024]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::IntoIter<[wasmparser::readers::core::operators::Operator; 2]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::IntoIter<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::IntoIter<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::IntoIter<[wasmparser::readers::core::operators::Operator; 2]> as core::ops::drop::Drop>::drop |
2231 | | } |
2232 | | |
2233 | | impl<A: Array> Iterator for IntoIter<A> { |
2234 | | type Item = A::Item; |
2235 | | |
2236 | | #[inline] |
2237 | 11.8M | fn next(&mut self) -> Option<A::Item> { |
2238 | 11.8M | if self.current == self.end { |
2239 | 5.93M | None |
2240 | | } else { |
2241 | | unsafe { |
2242 | 5.89M | let current = self.current; |
2243 | 5.89M | self.current += 1; |
2244 | 5.89M | Some(ptr::read(self.data.as_ptr().add(current))) |
2245 | | } |
2246 | | } |
2247 | 11.8M | } Unexecuted instantiation: <smallvec::IntoIter<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::iter::traits::iterator::Iterator>::next <smallvec::IntoIter<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]> as core::iter::traits::iterator::Iterator>::next Line | Count | Source | 2237 | 615k | fn next(&mut self) -> Option<A::Item> { | 2238 | 615k | if self.current == self.end { | 2239 | 392k | None | 2240 | | } else { | 2241 | | unsafe { | 2242 | 223k | let current = self.current; | 2243 | 223k | self.current += 1; | 2244 | 223k | Some(ptr::read(self.data.as_ptr().add(current))) | 2245 | | } | 2246 | | } | 2247 | 615k | } |
Unexecuted instantiation: <smallvec::IntoIter<[(cranelift_codegen::ir::entities::Value, i32); 4]> as core::iter::traits::iterator::Iterator>::next <smallvec::IntoIter<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]> as core::iter::traits::iterator::Iterator>::next Line | Count | Source | 2237 | 887k | fn next(&mut self) -> Option<A::Item> { | 2238 | 887k | if self.current == self.end { | 2239 | 278k | None | 2240 | | } else { | 2241 | | unsafe { | 2242 | 608k | let current = self.current; | 2243 | 608k | self.current += 1; | 2244 | 608k | Some(ptr::read(self.data.as_ptr().add(current))) | 2245 | | } | 2246 | | } | 2247 | 887k | } |
<smallvec::IntoIter<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]> as core::iter::traits::iterator::Iterator>::next Line | Count | Source | 2237 | 324k | fn next(&mut self) -> Option<A::Item> { | 2238 | 324k | if self.current == self.end { | 2239 | 19.6k | None | 2240 | | } else { | 2241 | | unsafe { | 2242 | 305k | let current = self.current; | 2243 | 305k | self.current += 1; | 2244 | 305k | Some(ptr::read(self.data.as_ptr().add(current))) | 2245 | | } | 2246 | | } | 2247 | 324k | } |
Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]> as core::iter::traits::iterator::Iterator>::next Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]> as core::iter::traits::iterator::Iterator>::next Unexecuted instantiation: <smallvec::IntoIter<[regalloc2::VReg; 2]> as core::iter::traits::iterator::Iterator>::next Unexecuted instantiation: <smallvec::IntoIter<[cranelift_egraph::Id; 8]> as core::iter::traits::iterator::Iterator>::next <smallvec::IntoIter<[regalloc2::index::Block; 16]> as core::iter::traits::iterator::Iterator>::next Line | Count | Source | 2237 | 296k | fn next(&mut self) -> Option<A::Item> { | 2238 | 296k | if self.current == self.end { | 2239 | 278k | None | 2240 | | } else { | 2241 | | unsafe { | 2242 | 17.6k | let current = self.current; | 2243 | 17.6k | self.current += 1; | 2244 | 17.6k | Some(ptr::read(self.data.as_ptr().add(current))) | 2245 | | } | 2246 | | } | 2247 | 296k | } |
<smallvec::IntoIter<[cranelift_codegen::machinst::abi::RetPair; 2]> as core::iter::traits::iterator::Iterator>::next Line | Count | Source | 2237 | 4.06k | fn next(&mut self) -> Option<A::Item> { | 2238 | 4.06k | if self.current == self.end { | 2239 | 2.71k | None | 2240 | | } else { | 2241 | | unsafe { | 2242 | 1.35k | let current = self.current; | 2243 | 1.35k | self.current += 1; | 2244 | 1.35k | Some(ptr::read(self.data.as_ptr().add(current))) | 2245 | | } | 2246 | | } | 2247 | 4.06k | } |
Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::machinst::reg::Reg; 4]> as core::iter::traits::iterator::Iterator>::next <smallvec::IntoIter<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]> as core::iter::traits::iterator::Iterator>::next Line | Count | Source | 2237 | 56.9k | fn next(&mut self) -> Option<A::Item> { | 2238 | 56.9k | if self.current == self.end { | 2239 | 19.6k | None | 2240 | | } else { | 2241 | | unsafe { | 2242 | 37.2k | let current = self.current; | 2243 | 37.2k | self.current += 1; | 2244 | 37.2k | Some(ptr::read(self.data.as_ptr().add(current))) | 2245 | | } | 2246 | | } | 2247 | 56.9k | } |
<smallvec::IntoIter<[cranelift_codegen::machinst::buffer::MachLabel; 4]> as core::iter::traits::iterator::Iterator>::next Line | Count | Source | 2237 | 2.96M | fn next(&mut self) -> Option<A::Item> { | 2238 | 2.96M | if self.current == self.end { | 2239 | 349k | None | 2240 | | } else { | 2241 | | unsafe { | 2242 | 2.61M | let current = self.current; | 2243 | 2.61M | self.current += 1; | 2244 | 2.61M | Some(ptr::read(self.data.as_ptr().add(current))) | 2245 | | } | 2246 | | } | 2247 | 2.96M | } |
<smallvec::IntoIter<[regalloc2::ion::data_structures::LiveBundleIndex; 16]> as core::iter::traits::iterator::Iterator>::next Line | Count | Source | 2237 | 30.2k | fn next(&mut self) -> Option<A::Item> { | 2238 | 30.2k | if self.current == self.end { | 2239 | 1.93k | None | 2240 | | } else { | 2241 | | unsafe { | 2242 | 28.3k | let current = self.current; | 2243 | 28.3k | self.current += 1; | 2244 | 28.3k | Some(ptr::read(self.data.as_ptr().add(current))) | 2245 | | } | 2246 | | } | 2247 | 30.2k | } |
<smallvec::IntoIter<[regalloc2::ion::data_structures::VRegIndex; 4]> as core::iter::traits::iterator::Iterator>::next Line | Count | Source | 2237 | 471k | fn next(&mut self) -> Option<A::Item> { | 2238 | 471k | if self.current == self.end { | 2239 | 177k | None | 2240 | | } else { | 2241 | | unsafe { | 2242 | 294k | let current = self.current; | 2243 | 294k | self.current += 1; | 2244 | 294k | Some(ptr::read(self.data.as_ptr().add(current))) | 2245 | | } | 2246 | | } | 2247 | 471k | } |
<smallvec::IntoIter<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]> as core::iter::traits::iterator::Iterator>::next Line | Count | Source | 2237 | 819k | fn next(&mut self) -> Option<A::Item> { | 2238 | 819k | if self.current == self.end { | 2239 | 477k | None | 2240 | | } else { | 2241 | | unsafe { | 2242 | 341k | let current = self.current; | 2243 | 341k | self.current += 1; | 2244 | 341k | Some(ptr::read(self.data.as_ptr().add(current))) | 2245 | | } | 2246 | | } | 2247 | 819k | } |
<smallvec::IntoIter<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]> as core::iter::traits::iterator::Iterator>::next Line | Count | Source | 2237 | 314k | fn next(&mut self) -> Option<A::Item> { | 2238 | 314k | if self.current == self.end { | 2239 | 209k | None | 2240 | | } else { | 2241 | | unsafe { | 2242 | 104k | let current = self.current; | 2243 | 104k | self.current += 1; | 2244 | 104k | Some(ptr::read(self.data.as_ptr().add(current))) | 2245 | | } | 2246 | | } | 2247 | 314k | } |
<smallvec::IntoIter<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::iterator::Iterator>::next Line | Count | Source | 2237 | 3.90M | fn next(&mut self) -> Option<A::Item> { | 2238 | 3.90M | if self.current == self.end { | 2239 | 2.79M | None | 2240 | | } else { | 2241 | | unsafe { | 2242 | 1.11M | let current = self.current; | 2243 | 1.11M | self.current += 1; | 2244 | 1.11M | Some(ptr::read(self.data.as_ptr().add(current))) | 2245 | | } | 2246 | | } | 2247 | 3.90M | } |
Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]> as core::iter::traits::iterator::Iterator>::next Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]> as core::iter::traits::iterator::Iterator>::next Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]> as core::iter::traits::iterator::Iterator>::next Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::iterator::Iterator>::next Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]> as core::iter::traits::iterator::Iterator>::next Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]> as core::iter::traits::iterator::Iterator>::next Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]> as core::iter::traits::iterator::Iterator>::next Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]> as core::iter::traits::iterator::Iterator>::next Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::iterator::Iterator>::next Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]> as core::iter::traits::iterator::Iterator>::next <smallvec::IntoIter<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]> as core::iter::traits::iterator::Iterator>::next Line | Count | Source | 2237 | 1.08M | fn next(&mut self) -> Option<A::Item> { | 2238 | 1.08M | if self.current == self.end { | 2239 | 929k | None | 2240 | | } else { | 2241 | | unsafe { | 2242 | 159k | let current = self.current; | 2243 | 159k | self.current += 1; | 2244 | 159k | Some(ptr::read(self.data.as_ptr().add(current))) | 2245 | | } | 2246 | | } | 2247 | 1.08M | } |
<smallvec::IntoIter<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]> as core::iter::traits::iterator::Iterator>::next Line | Count | Source | 2237 | 3.56k | fn next(&mut self) -> Option<A::Item> { | 2238 | 3.56k | if self.current == self.end { | 2239 | 3.56k | None | 2240 | | } else { | 2241 | | unsafe { | 2242 | 0 | let current = self.current; | 2243 | 0 | self.current += 1; | 2244 | 0 | Some(ptr::read(self.data.as_ptr().add(current))) | 2245 | | } | 2246 | | } | 2247 | 3.56k | } |
Unexecuted instantiation: <smallvec::IntoIter<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]> as core::iter::traits::iterator::Iterator>::next <smallvec::IntoIter<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]> as core::iter::traits::iterator::Iterator>::next Line | Count | Source | 2237 | 41.6k | fn next(&mut self) -> Option<A::Item> { | 2238 | 41.6k | if self.current == self.end { | 2239 | 1.93k | None | 2240 | | } else { | 2241 | | unsafe { | 2242 | 39.7k | let current = self.current; | 2243 | 39.7k | self.current += 1; | 2244 | 39.7k | Some(ptr::read(self.data.as_ptr().add(current))) | 2245 | | } | 2246 | | } | 2247 | 41.6k | } |
Unexecuted instantiation: <smallvec::IntoIter<[(u8, u64); 4]> as core::iter::traits::iterator::Iterator>::next Unexecuted instantiation: <smallvec::IntoIter<[u8; 1024]> as core::iter::traits::iterator::Iterator>::next Unexecuted instantiation: <smallvec::IntoIter<[wasmparser::readers::core::operators::Operator; 2]> as core::iter::traits::iterator::Iterator>::next Unexecuted instantiation: <smallvec::IntoIter<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::iter::traits::iterator::Iterator>::next Unexecuted instantiation: <smallvec::IntoIter<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::iter::traits::iterator::Iterator>::next Unexecuted instantiation: <smallvec::IntoIter<[wasmparser::readers::core::operators::Operator; 2]> as core::iter::traits::iterator::Iterator>::next |
2248 | | |
2249 | | #[inline] |
2250 | 1.12M | fn size_hint(&self) -> (usize, Option<usize>) { |
2251 | 1.12M | let size = self.end - self.current; |
2252 | 1.12M | (size, Some(size)) |
2253 | 1.12M | } <smallvec::IntoIter<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]> as core::iter::traits::iterator::Iterator>::size_hint Line | Count | Source | 2250 | 139k | fn size_hint(&self) -> (usize, Option<usize>) { | 2251 | 139k | let size = self.end - self.current; | 2252 | 139k | (size, Some(size)) | 2253 | 139k | } |
Unexecuted instantiation: <smallvec::IntoIter<[regalloc2::VReg; 2]> as core::iter::traits::iterator::Iterator>::size_hint <smallvec::IntoIter<[regalloc2::index::Block; 16]> as core::iter::traits::iterator::Iterator>::size_hint Line | Count | Source | 2250 | 139k | fn size_hint(&self) -> (usize, Option<usize>) { | 2251 | 139k | let size = self.end - self.current; | 2252 | 139k | (size, Some(size)) | 2253 | 139k | } |
<smallvec::IntoIter<[cranelift_codegen::machinst::abi::RetPair; 2]> as core::iter::traits::iterator::Iterator>::size_hint Line | Count | Source | 2250 | 1.35k | fn size_hint(&self) -> (usize, Option<usize>) { | 2251 | 1.35k | let size = self.end - self.current; | 2252 | 1.35k | (size, Some(size)) | 2253 | 1.35k | } |
<smallvec::IntoIter<[cranelift_codegen::machinst::buffer::MachLabel; 4]> as core::iter::traits::iterator::Iterator>::size_hint Line | Count | Source | 2250 | 174k | fn size_hint(&self) -> (usize, Option<usize>) { | 2251 | 174k | let size = self.end - self.current; | 2252 | 174k | (size, Some(size)) | 2253 | 174k | } |
<smallvec::IntoIter<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]> as core::iter::traits::iterator::Iterator>::size_hint Line | Count | Source | 2250 | 238k | fn size_hint(&self) -> (usize, Option<usize>) { | 2251 | 238k | let size = self.end - self.current; | 2252 | 238k | (size, Some(size)) | 2253 | 238k | } |
<smallvec::IntoIter<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::iterator::Iterator>::size_hint Line | Count | Source | 2250 | 427k | fn size_hint(&self) -> (usize, Option<usize>) { | 2251 | 427k | let size = self.end - self.current; | 2252 | 427k | (size, Some(size)) | 2253 | 427k | } |
Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]> as core::iter::traits::iterator::Iterator>::size_hint Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::iterator::Iterator>::size_hint Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]> as core::iter::traits::iterator::Iterator>::size_hint Unexecuted instantiation: <smallvec::IntoIter<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::iterator::Iterator>::size_hint Unexecuted instantiation: <smallvec::IntoIter<[u8; 1024]> as core::iter::traits::iterator::Iterator>::size_hint |
2254 | | } |
2255 | | |
2256 | | impl<A: Array> DoubleEndedIterator for IntoIter<A> { |
2257 | | #[inline] |
2258 | 7.12k | fn next_back(&mut self) -> Option<A::Item> { |
2259 | 7.12k | if self.current == self.end { |
2260 | 3.56k | None |
2261 | | } else { |
2262 | | unsafe { |
2263 | 3.56k | self.end -= 1; |
2264 | 3.56k | Some(ptr::read(self.data.as_ptr().add(self.end))) |
2265 | | } |
2266 | | } |
2267 | 7.12k | } |
2268 | | } |
2269 | | |
2270 | | impl<A: Array> ExactSizeIterator for IntoIter<A> {} |
2271 | | impl<A: Array> FusedIterator for IntoIter<A> {} |
2272 | | |
2273 | | impl<A: Array> IntoIter<A> { |
2274 | | /// Returns the remaining items of this iterator as a slice. |
2275 | | pub fn as_slice(&self) -> &[A::Item] { |
2276 | | let len = self.end - self.current; |
2277 | | unsafe { core::slice::from_raw_parts(self.data.as_ptr().add(self.current), len) } |
2278 | | } |
2279 | | |
2280 | | /// Returns the remaining items of this iterator as a mutable slice. |
2281 | | pub fn as_mut_slice(&mut self) -> &mut [A::Item] { |
2282 | | let len = self.end - self.current; |
2283 | | unsafe { core::slice::from_raw_parts_mut(self.data.as_mut_ptr().add(self.current), len) } |
2284 | | } |
2285 | | } |
2286 | | |
2287 | | impl<A: Array> IntoIterator for SmallVec<A> { |
2288 | | type IntoIter = IntoIter<A>; |
2289 | | type Item = A::Item; |
2290 | 2.97M | fn into_iter(mut self) -> Self::IntoIter { |
2291 | 2.97M | unsafe { |
2292 | 2.97M | // Set SmallVec len to zero as `IntoIter` drop handles dropping of the elements |
2293 | 2.97M | let len = self.len(); |
2294 | 2.97M | self.set_len(0); |
2295 | 2.97M | IntoIter { |
2296 | 2.97M | data: self, |
2297 | 2.97M | current: 0, |
2298 | 2.97M | end: len, |
2299 | 2.97M | } |
2300 | 2.97M | } |
2301 | 2.97M | } Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::iter::traits::collect::IntoIterator>::into_iter <smallvec::SmallVec<[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2290 | 196k | fn into_iter(mut self) -> Self::IntoIter { | 2291 | 196k | unsafe { | 2292 | 196k | // Set SmallVec len to zero as `IntoIter` drop handles dropping of the elements | 2293 | 196k | let len = self.len(); | 2294 | 196k | self.set_len(0); | 2295 | 196k | IntoIter { | 2296 | 196k | data: self, | 2297 | 196k | current: 0, | 2298 | 196k | end: len, | 2299 | 196k | } | 2300 | 196k | } | 2301 | 196k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, i32); 4]> as core::iter::traits::collect::IntoIterator>::into_iter <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2290 | 139k | fn into_iter(mut self) -> Self::IntoIter { | 2291 | 139k | unsafe { | 2292 | 139k | // Set SmallVec len to zero as `IntoIter` drop handles dropping of the elements | 2293 | 139k | let len = self.len(); | 2294 | 139k | self.set_len(0); | 2295 | 139k | IntoIter { | 2296 | 139k | data: self, | 2297 | 139k | current: 0, | 2298 | 139k | end: len, | 2299 | 139k | } | 2300 | 139k | } | 2301 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2290 | 9.83k | fn into_iter(mut self) -> Self::IntoIter { | 2291 | 9.83k | unsafe { | 2292 | 9.83k | // Set SmallVec len to zero as `IntoIter` drop handles dropping of the elements | 2293 | 9.83k | let len = self.len(); | 2294 | 9.83k | self.set_len(0); | 2295 | 9.83k | IntoIter { | 2296 | 9.83k | data: self, | 2297 | 9.83k | current: 0, | 2298 | 9.83k | end: len, | 2299 | 9.83k | } | 2300 | 9.83k | } | 2301 | 9.83k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <smallvec::SmallVec<[regalloc2::VReg; 2]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <smallvec::SmallVec<[cranelift_egraph::Id; 8]> as core::iter::traits::collect::IntoIterator>::into_iter <smallvec::SmallVec<[regalloc2::index::Block; 16]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2290 | 139k | fn into_iter(mut self) -> Self::IntoIter { | 2291 | 139k | unsafe { | 2292 | 139k | // Set SmallVec len to zero as `IntoIter` drop handles dropping of the elements | 2293 | 139k | let len = self.len(); | 2294 | 139k | self.set_len(0); | 2295 | 139k | IntoIter { | 2296 | 139k | data: self, | 2297 | 139k | current: 0, | 2298 | 139k | end: len, | 2299 | 139k | } | 2300 | 139k | } | 2301 | 139k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::abi::RetPair; 2]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2290 | 1.35k | fn into_iter(mut self) -> Self::IntoIter { | 2291 | 1.35k | unsafe { | 2292 | 1.35k | // Set SmallVec len to zero as `IntoIter` drop handles dropping of the elements | 2293 | 1.35k | let len = self.len(); | 2294 | 1.35k | self.set_len(0); | 2295 | 1.35k | IntoIter { | 2296 | 1.35k | data: self, | 2297 | 1.35k | current: 0, | 2298 | 1.35k | end: len, | 2299 | 1.35k | } | 2300 | 1.35k | } | 2301 | 1.35k | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::machinst::reg::Reg; 4]> as core::iter::traits::collect::IntoIterator>::into_iter <smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2290 | 9.83k | fn into_iter(mut self) -> Self::IntoIter { | 2291 | 9.83k | unsafe { | 2292 | 9.83k | // Set SmallVec len to zero as `IntoIter` drop handles dropping of the elements | 2293 | 9.83k | let len = self.len(); | 2294 | 9.83k | self.set_len(0); | 2295 | 9.83k | IntoIter { | 2296 | 9.83k | data: self, | 2297 | 9.83k | current: 0, | 2298 | 9.83k | end: len, | 2299 | 9.83k | } | 2300 | 9.83k | } | 2301 | 9.83k | } |
<smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2290 | 174k | fn into_iter(mut self) -> Self::IntoIter { | 2291 | 174k | unsafe { | 2292 | 174k | // Set SmallVec len to zero as `IntoIter` drop handles dropping of the elements | 2293 | 174k | let len = self.len(); | 2294 | 174k | self.set_len(0); | 2295 | 174k | IntoIter { | 2296 | 174k | data: self, | 2297 | 174k | current: 0, | 2298 | 174k | end: len, | 2299 | 174k | } | 2300 | 174k | } | 2301 | 174k | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 16]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2290 | 966 | fn into_iter(mut self) -> Self::IntoIter { | 2291 | 966 | unsafe { | 2292 | 966 | // Set SmallVec len to zero as `IntoIter` drop handles dropping of the elements | 2293 | 966 | let len = self.len(); | 2294 | 966 | self.set_len(0); | 2295 | 966 | IntoIter { | 2296 | 966 | data: self, | 2297 | 966 | current: 0, | 2298 | 966 | end: len, | 2299 | 966 | } | 2300 | 966 | } | 2301 | 966 | } |
<smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2290 | 88.5k | fn into_iter(mut self) -> Self::IntoIter { | 2291 | 88.5k | unsafe { | 2292 | 88.5k | // Set SmallVec len to zero as `IntoIter` drop handles dropping of the elements | 2293 | 88.5k | let len = self.len(); | 2294 | 88.5k | self.set_len(0); | 2295 | 88.5k | IntoIter { | 2296 | 88.5k | data: self, | 2297 | 88.5k | current: 0, | 2298 | 88.5k | end: len, | 2299 | 88.5k | } | 2300 | 88.5k | } | 2301 | 88.5k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2290 | 238k | fn into_iter(mut self) -> Self::IntoIter { | 2291 | 238k | unsafe { | 2292 | 238k | // Set SmallVec len to zero as `IntoIter` drop handles dropping of the elements | 2293 | 238k | let len = self.len(); | 2294 | 238k | self.set_len(0); | 2295 | 238k | IntoIter { | 2296 | 238k | data: self, | 2297 | 238k | current: 0, | 2298 | 238k | end: len, | 2299 | 238k | } | 2300 | 238k | } | 2301 | 238k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2290 | 104k | fn into_iter(mut self) -> Self::IntoIter { | 2291 | 104k | unsafe { | 2292 | 104k | // Set SmallVec len to zero as `IntoIter` drop handles dropping of the elements | 2293 | 104k | let len = self.len(); | 2294 | 104k | self.set_len(0); | 2295 | 104k | IntoIter { | 2296 | 104k | data: self, | 2297 | 104k | current: 0, | 2298 | 104k | end: len, | 2299 | 104k | } | 2300 | 104k | } | 2301 | 104k | } |
<smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2290 | 1.40M | fn into_iter(mut self) -> Self::IntoIter { | 2291 | 1.40M | unsafe { | 2292 | 1.40M | // Set SmallVec len to zero as `IntoIter` drop handles dropping of the elements | 2293 | 1.40M | let len = self.len(); | 2294 | 1.40M | self.set_len(0); | 2295 | 1.40M | IntoIter { | 2296 | 1.40M | data: self, | 2297 | 1.40M | current: 0, | 2298 | 1.40M | end: len, | 2299 | 1.40M | } | 2300 | 1.40M | } | 2301 | 1.40M | } |
Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8]> as core::iter::traits::collect::IntoIterator>::into_iter <smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2290 | 464k | fn into_iter(mut self) -> Self::IntoIter { | 2291 | 464k | unsafe { | 2292 | 464k | // Set SmallVec len to zero as `IntoIter` drop handles dropping of the elements | 2293 | 464k | let len = self.len(); | 2294 | 464k | self.set_len(0); | 2295 | 464k | IntoIter { | 2296 | 464k | data: self, | 2297 | 464k | current: 0, | 2298 | 464k | end: len, | 2299 | 464k | } | 2300 | 464k | } | 2301 | 464k | } |
<smallvec::SmallVec<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2290 | 3.56k | fn into_iter(mut self) -> Self::IntoIter { | 2291 | 3.56k | unsafe { | 2292 | 3.56k | // Set SmallVec len to zero as `IntoIter` drop handles dropping of the elements | 2293 | 3.56k | let len = self.len(); | 2294 | 3.56k | self.set_len(0); | 2295 | 3.56k | IntoIter { | 2296 | 3.56k | data: self, | 2297 | 3.56k | current: 0, | 2298 | 3.56k | end: len, | 2299 | 3.56k | } | 2300 | 3.56k | } | 2301 | 3.56k | } |
Unexecuted instantiation: <smallvec::SmallVec<[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4]> as core::iter::traits::collect::IntoIterator>::into_iter <smallvec::SmallVec<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2290 | 966 | fn into_iter(mut self) -> Self::IntoIter { | 2291 | 966 | unsafe { | 2292 | 966 | // Set SmallVec len to zero as `IntoIter` drop handles dropping of the elements | 2293 | 966 | let len = self.len(); | 2294 | 966 | self.set_len(0); | 2295 | 966 | IntoIter { | 2296 | 966 | data: self, | 2297 | 966 | current: 0, | 2298 | 966 | end: len, | 2299 | 966 | } | 2300 | 966 | } | 2301 | 966 | } |
Unexecuted instantiation: <smallvec::SmallVec<[(u8, u64); 4]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <smallvec::SmallVec<[u8; 1024]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <smallvec::SmallVec<[parking_lot_core::thread_parker::imp::UnparkHandle; 8]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <smallvec::SmallVec<[wasmparser::readers::core::operators::Operator; 2]> as core::iter::traits::collect::IntoIterator>::into_iter |
2302 | | } |
2303 | | |
2304 | | impl<'a, A: Array> IntoIterator for &'a SmallVec<A> { |
2305 | | type IntoIter = slice::Iter<'a, A::Item>; |
2306 | | type Item = &'a A::Item; |
2307 | 17.4M | fn into_iter(self) -> Self::IntoIter { |
2308 | 17.4M | self.iter() |
2309 | 17.4M | } <&smallvec::SmallVec<[inkwell::values::phi_value::PhiValue; 1]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2307 | 84.2k | fn into_iter(self) -> Self::IntoIter { | 2308 | 84.2k | self.iter() | 2309 | 84.2k | } |
<&smallvec::SmallVec<[cranelift_codegen::machinst::abi::ABIArgSlot; 1]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2307 | 49.6k | fn into_iter(self) -> Self::IntoIter { | 2308 | 49.6k | self.iter() | 2309 | 49.6k | } |
<&smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallArgPair; 8]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2307 | 104k | fn into_iter(self) -> Self::IntoIter { | 2308 | 104k | self.iter() | 2309 | 104k | } |
<&smallvec::SmallVec<[cranelift_codegen::machinst::abi::CallRetPair; 8]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2307 | 104k | fn into_iter(self) -> Self::IntoIter { | 2308 | 104k | self.iter() | 2309 | 104k | } |
<&smallvec::SmallVec<[cranelift_codegen::machinst::buffer::MachLabel; 4]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2307 | 231k | fn into_iter(self) -> Self::IntoIter { | 2308 | 231k | self.iter() | 2309 | 231k | } |
<&smallvec::SmallVec<[regalloc2::ion::data_structures::InsertedMove; 8]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2307 | 464k | fn into_iter(self) -> Self::IntoIter { | 2308 | 464k | self.iter() | 2309 | 464k | } |
<&smallvec::SmallVec<[regalloc2::ion::data_structures::LiveBundleIndex; 4]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2307 | 63.7k | fn into_iter(self) -> Self::IntoIter { | 2308 | 63.7k | self.iter() | 2309 | 63.7k | } |
<&smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2307 | 10.7M | fn into_iter(self) -> Self::IntoIter { | 2308 | 10.7M | self.iter() | 2309 | 10.7M | } |
<&smallvec::SmallVec<[regalloc2::ion::data_structures::Use; 4]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2307 | 4.24M | fn into_iter(self) -> Self::IntoIter { | 2308 | 4.24M | self.iter() | 2309 | 4.24M | } |
<&smallvec::SmallVec<[regalloc2::ion::data_structures::VRegIndex; 4]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2307 | 30.1k | fn into_iter(self) -> Self::IntoIter { | 2308 | 30.1k | self.iter() | 2309 | 30.1k | } |
<&smallvec::SmallVec<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2307 | 139k | fn into_iter(self) -> Self::IntoIter { | 2308 | 139k | self.iter() | 2309 | 139k | } |
Unexecuted instantiation: <&smallvec::SmallVec<[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::IntoIterator>::into_iter Unexecuted instantiation: <&smallvec::SmallVec<[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4]> as core::iter::traits::collect::IntoIterator>::into_iter <&smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2307 | 2.46k | fn into_iter(self) -> Self::IntoIter { | 2308 | 2.46k | self.iter() | 2309 | 2.46k | } |
<&smallvec::SmallVec<[(regalloc2::PReg, regalloc2::ProgPoint); 8]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2307 | 1.23M | fn into_iter(self) -> Self::IntoIter { | 2308 | 1.23M | self.iter() | 2309 | 1.23M | } |
|
2310 | | } |
2311 | | |
2312 | | impl<'a, A: Array> IntoIterator for &'a mut SmallVec<A> { |
2313 | | type IntoIter = slice::IterMut<'a, A::Item>; |
2314 | | type Item = &'a mut A::Item; |
2315 | 39.4M | fn into_iter(self) -> Self::IntoIter { |
2316 | 39.4M | self.iter_mut() |
2317 | 39.4M | } <&mut smallvec::SmallVec<[regalloc2::ion::data_structures::LiveRangeListEntry; 4]> as core::iter::traits::collect::IntoIterator>::into_iter Line | Count | Source | 2315 | 39.4M | fn into_iter(self) -> Self::IntoIter { | 2316 | 39.4M | self.iter_mut() | 2317 | 39.4M | } |
Unexecuted instantiation: <&mut smallvec::SmallVec<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16]> as core::iter::traits::collect::IntoIterator>::into_iter |
2318 | | } |
2319 | | |
2320 | | /// Types that can be used as the backing store for a [`SmallVec`]. |
2321 | | pub unsafe trait Array { |
2322 | | /// The type of the array's elements. |
2323 | | type Item; |
2324 | | /// Returns the number of items the array can hold. |
2325 | | fn size() -> usize; |
2326 | | } |
2327 | | |
2328 | | /// Set the length of the vec when the `SetLenOnDrop` value goes out of scope. |
2329 | | /// |
2330 | | /// Copied from <https://github.com/rust-lang/rust/pull/36355> |
2331 | | struct SetLenOnDrop<'a> { |
2332 | | len: &'a mut usize, |
2333 | | local_len: usize, |
2334 | | } |
2335 | | |
2336 | | impl<'a> SetLenOnDrop<'a> { |
2337 | | #[inline] |
2338 | 5.57M | fn new(len: &'a mut usize) -> Self { |
2339 | 5.57M | SetLenOnDrop { |
2340 | 5.57M | local_len: *len, |
2341 | 5.57M | len, |
2342 | 5.57M | } |
2343 | 5.57M | } <smallvec::SetLenOnDrop>::new Line | Count | Source | 2338 | 376k | fn new(len: &'a mut usize) -> Self { | 2339 | 376k | SetLenOnDrop { | 2340 | 376k | local_len: *len, | 2341 | 376k | len, | 2342 | 376k | } | 2343 | 376k | } |
Unexecuted instantiation: <smallvec::SetLenOnDrop>::new <smallvec::SetLenOnDrop>::new Line | Count | Source | 2338 | 4.35M | fn new(len: &'a mut usize) -> Self { | 2339 | 4.35M | SetLenOnDrop { | 2340 | 4.35M | local_len: *len, | 2341 | 4.35M | len, | 2342 | 4.35M | } | 2343 | 4.35M | } |
Unexecuted instantiation: <smallvec::SetLenOnDrop>::new Unexecuted instantiation: <smallvec::SetLenOnDrop>::new <smallvec::SetLenOnDrop>::new Line | Count | Source | 2338 | 653k | fn new(len: &'a mut usize) -> Self { | 2339 | 653k | SetLenOnDrop { | 2340 | 653k | local_len: *len, | 2341 | 653k | len, | 2342 | 653k | } | 2343 | 653k | } |
Unexecuted instantiation: <smallvec::SetLenOnDrop>::new <smallvec::SetLenOnDrop>::new Line | Count | Source | 2338 | 185k | fn new(len: &'a mut usize) -> Self { | 2339 | 185k | SetLenOnDrop { | 2340 | 185k | local_len: *len, | 2341 | 185k | len, | 2342 | 185k | } | 2343 | 185k | } |
|
2344 | | |
2345 | | #[inline] |
2346 | 29.1M | fn get(&self) -> usize { |
2347 | 29.1M | self.local_len |
2348 | 29.1M | } <smallvec::SetLenOnDrop>::get Line | Count | Source | 2346 | 732k | fn get(&self) -> usize { | 2347 | 732k | self.local_len | 2348 | 732k | } |
Unexecuted instantiation: <smallvec::SetLenOnDrop>::get <smallvec::SetLenOnDrop>::get Line | Count | Source | 2346 | 26.8M | fn get(&self) -> usize { | 2347 | 26.8M | self.local_len | 2348 | 26.8M | } |
Unexecuted instantiation: <smallvec::SetLenOnDrop>::get Unexecuted instantiation: <smallvec::SetLenOnDrop>::get <smallvec::SetLenOnDrop>::get Line | Count | Source | 2346 | 1.32M | fn get(&self) -> usize { | 2347 | 1.32M | self.local_len | 2348 | 1.32M | } |
Unexecuted instantiation: <smallvec::SetLenOnDrop>::get <smallvec::SetLenOnDrop>::get Line | Count | Source | 2346 | 269k | fn get(&self) -> usize { | 2347 | 269k | self.local_len | 2348 | 269k | } |
|
2349 | | |
2350 | | #[inline] |
2351 | 11.7M | fn increment_len(&mut self, increment: usize) { |
2352 | 11.7M | self.local_len += increment; |
2353 | 11.7M | } <smallvec::SetLenOnDrop>::increment_len Line | Count | Source | 2351 | 178k | fn increment_len(&mut self, increment: usize) { | 2352 | 178k | self.local_len += increment; | 2353 | 178k | } |
Unexecuted instantiation: <smallvec::SetLenOnDrop>::increment_len <smallvec::SetLenOnDrop>::increment_len Line | Count | Source | 2351 | 11.2M | fn increment_len(&mut self, increment: usize) { | 2352 | 11.2M | self.local_len += increment; | 2353 | 11.2M | } |
Unexecuted instantiation: <smallvec::SetLenOnDrop>::increment_len Unexecuted instantiation: <smallvec::SetLenOnDrop>::increment_len <smallvec::SetLenOnDrop>::increment_len Line | Count | Source | 2351 | 336k | fn increment_len(&mut self, increment: usize) { | 2352 | 336k | self.local_len += increment; | 2353 | 336k | } |
Unexecuted instantiation: <smallvec::SetLenOnDrop>::increment_len <smallvec::SetLenOnDrop>::increment_len Line | Count | Source | 2351 | 41.5k | fn increment_len(&mut self, increment: usize) { | 2352 | 41.5k | self.local_len += increment; | 2353 | 41.5k | } |
|
2354 | | } |
2355 | | |
2356 | | impl<'a> Drop for SetLenOnDrop<'a> { |
2357 | | #[inline] |
2358 | 5.57M | fn drop(&mut self) { |
2359 | 5.57M | *self.len = self.local_len; |
2360 | 5.57M | } <smallvec::SetLenOnDrop as core::ops::drop::Drop>::drop Line | Count | Source | 2358 | 376k | fn drop(&mut self) { | 2359 | 376k | *self.len = self.local_len; | 2360 | 376k | } |
Unexecuted instantiation: <smallvec::SetLenOnDrop as core::ops::drop::Drop>::drop <smallvec::SetLenOnDrop as core::ops::drop::Drop>::drop Line | Count | Source | 2358 | 4.35M | fn drop(&mut self) { | 2359 | 4.35M | *self.len = self.local_len; | 2360 | 4.35M | } |
Unexecuted instantiation: <smallvec::SetLenOnDrop as core::ops::drop::Drop>::drop Unexecuted instantiation: <smallvec::SetLenOnDrop as core::ops::drop::Drop>::drop <smallvec::SetLenOnDrop as core::ops::drop::Drop>::drop Line | Count | Source | 2358 | 653k | fn drop(&mut self) { | 2359 | 653k | *self.len = self.local_len; | 2360 | 653k | } |
Unexecuted instantiation: <smallvec::SetLenOnDrop as core::ops::drop::Drop>::drop <smallvec::SetLenOnDrop as core::ops::drop::Drop>::drop Line | Count | Source | 2358 | 185k | fn drop(&mut self) { | 2359 | 185k | *self.len = self.local_len; | 2360 | 185k | } |
|
2361 | | } |
2362 | | |
2363 | | #[cfg(feature = "const_new")] |
2364 | | impl<T, const N: usize> SmallVec<[T; N]> { |
2365 | | /// Construct an empty vector. |
2366 | | /// |
2367 | | /// This is a `const` version of [`SmallVec::new`] that is enabled by the feature `const_new`, with the limitation that it only works for arrays. |
2368 | | #[cfg_attr(docsrs, doc(cfg(feature = "const_new")))] |
2369 | | #[inline] |
2370 | | pub const fn new_const() -> Self { |
2371 | | SmallVec { |
2372 | | capacity: 0, |
2373 | | data: SmallVecData::from_const(MaybeUninit::uninit()), |
2374 | | } |
2375 | | } |
2376 | | |
2377 | | /// The array passed as an argument is moved to be an inline version of `SmallVec`. |
2378 | | /// |
2379 | | /// This is a `const` version of [`SmallVec::from_buf`] that is enabled by the feature `const_new`, with the limitation that it only works for arrays. |
2380 | | #[cfg_attr(docsrs, doc(cfg(feature = "const_new")))] |
2381 | | #[inline] |
2382 | | pub const fn from_const(items: [T; N]) -> Self { |
2383 | | SmallVec { |
2384 | | capacity: N, |
2385 | | data: SmallVecData::from_const(MaybeUninit::new(items)), |
2386 | | } |
2387 | | } |
2388 | | |
2389 | | /// Constructs a new `SmallVec` on the stack from an array without |
2390 | | /// copying elements. Also sets the length. The user is responsible |
2391 | | /// for ensuring that `len <= N`. |
2392 | | /// |
2393 | | /// This is a `const` version of [`SmallVec::from_buf_and_len_unchecked`] that is enabled by the feature `const_new`, with the limitation that it only works for arrays. |
2394 | | #[cfg_attr(docsrs, doc(cfg(feature = "const_new")))] |
2395 | | #[inline] |
2396 | | pub const unsafe fn from_const_with_len_unchecked(items: [T; N], len: usize) -> Self { |
2397 | | SmallVec { |
2398 | | capacity: len, |
2399 | | data: SmallVecData::from_const(MaybeUninit::new(items)), |
2400 | | } |
2401 | | } |
2402 | | } |
2403 | | |
2404 | | #[cfg(feature = "const_generics")] |
2405 | | #[cfg_attr(docsrs, doc(cfg(feature = "const_generics")))] |
2406 | | unsafe impl<T, const N: usize> Array for [T; N] { |
2407 | | type Item = T; |
2408 | | #[inline] |
2409 | | fn size() -> usize { |
2410 | | N |
2411 | | } |
2412 | | } |
2413 | | |
2414 | | #[cfg(not(feature = "const_generics"))] |
2415 | | macro_rules! impl_array( |
2416 | | ($($size:expr),+) => { |
2417 | | $( |
2418 | | unsafe impl<T> Array for [T; $size] { |
2419 | | type Item = T; |
2420 | | #[inline] |
2421 | 770M | fn size() -> usize { $size } <[inkwell::values::phi_value::PhiValue; 1] as smallvec::Array>::size Line | Count | Source | 2421 | 4.79M | fn size() -> usize { $size } |
Unexecuted instantiation: <[parking_lot_core::thread_parker::imp::UnparkHandle; 8] as smallvec::Array>::size <[(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>); 8] as smallvec::Array>::size Line | Count | Source | 2421 | 3.24M | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::buffer::MachStackMap; 8] as smallvec::Array>::size Line | Count | Source | 2421 | 418k | fn size() -> usize { $size } |
<[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8] as smallvec::Array>::size Line | Count | Source | 2421 | 418k | fn size() -> usize { $size } |
<[cranelift_codegen::ir::entities::Value; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 626k | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::buffer::MachCallSite; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 416k | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::buffer::MachTrap; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 588k | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::buffer::MachReloc; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 592k | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64] as smallvec::Array>::size Line | Count | Source | 2421 | 589k | fn size() -> usize { $size } |
<[u8; 1024] as smallvec::Array>::size Line | Count | Source | 2421 | 414k | fn size() -> usize { $size } |
Unexecuted instantiation: <[(cranelift_codegen::ir::entities::Value, i32); 4] as smallvec::Array>::size <[usize; 4] as smallvec::Array>::size Line | Count | Source | 2421 | 2.09M | fn size() -> usize { $size } |
<[(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>); 16] as smallvec::Array>::size Line | Count | Source | 2421 | 6.74M | fn size() -> usize { $size } |
Unexecuted instantiation: <[regalloc2::VReg; 2] as smallvec::Array>::size <[regalloc2::postorder::calculate::State; 64] as smallvec::Array>::size Line | Count | Source | 2421 | 3.21M | fn size() -> usize { $size } |
<[regalloc2::Allocation; 2] as smallvec::Array>::size Line | Count | Source | 2421 | 1.39M | fn size() -> usize { $size } |
<[usize; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 41.5k | fn size() -> usize { $size } |
<[regalloc2::ion::data_structures::LiveRangeListEntry; 4] as smallvec::Array>::size Line | Count | Source | 2421 | 425M | fn size() -> usize { $size } |
<[regalloc2::ion::data_structures::VRegIndex; 4] as smallvec::Array>::size Line | Count | Source | 2421 | 10.3M | fn size() -> usize { $size } |
<[regalloc2::ion::data_structures::InsertedMove; 8] as smallvec::Array>::size Line | Count | Source | 2421 | 3.57M | fn size() -> usize { $size } |
<[regalloc2::ion::data_structures::SpillSlotIndex; 32] as smallvec::Array>::size Line | Count | Source | 2421 | 190k | fn size() -> usize { $size } |
<[(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex); 16] as smallvec::Array>::size Line | Count | Source | 2421 | 108k | fn size() -> usize { $size } |
<[regalloc2::ion::data_structures::LiveBundleIndex; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 84.1k | fn size() -> usize { $size } |
<[regalloc2::ion::data_structures::LiveBundleIndex; 4] as smallvec::Array>::size Line | Count | Source | 2421 | 19.3M | fn size() -> usize { $size } |
<[regalloc2::PReg; 8] as smallvec::Array>::size Line | Count | Source | 2421 | 7.45M | fn size() -> usize { $size } |
<[regalloc2::ion::data_structures::Use; 4] as smallvec::Array>::size Line | Count | Source | 2421 | 34.2M | fn size() -> usize { $size } |
<[(regalloc2::PReg, regalloc2::ProgPoint); 8] as smallvec::Array>::size Line | Count | Source | 2421 | 5.63M | fn size() -> usize { $size } |
Unexecuted instantiation: <[cranelift_egraph::Id; 8] as smallvec::Array>::size Unexecuted instantiation: <[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 5] as smallvec::Array>::size <[regalloc2::SpillSlot; 8] as smallvec::Array>::size Line | Count | Source | 2421 | 1.16M | fn size() -> usize { $size } |
<[cranelift_codegen::loop_analysis::Loop; 8] as smallvec::Array>::size Line | Count | Source | 2421 | 714k | fn size() -> usize { $size } |
Unexecuted instantiation: <[cranelift_codegen::ir::entities::Value; 8] as smallvec::Array>::size Unexecuted instantiation: <[cranelift_codegen::egraph::elaborate::LoopStackEntry; 8] as smallvec::Array>::size <[cranelift_codegen::machinst::abi::CallArgPair; 8] as smallvec::Array>::size Line | Count | Source | 2421 | 1.56M | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::abi::CallRetPair; 8] as smallvec::Array>::size Line | Count | Source | 2421 | 1.25M | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::buffer::MachStackMap; 8] as smallvec::Array>::size Line | Count | Source | 2421 | 139k | fn size() -> usize { $size } |
Unexecuted instantiation: <[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 8] as smallvec::Array>::size Unexecuted instantiation: <[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 8] as smallvec::Array>::size Unexecuted instantiation: <[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 8] as smallvec::Array>::size <[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8] as smallvec::Array>::size Line | Count | Source | 2421 | 1.07M | fn size() -> usize { $size } |
<[u8; 8] as smallvec::Array>::size Line | Count | Source | 2421 | 773k | fn size() -> usize { $size } |
<[u32; 8] as smallvec::Array>::size Line | Count | Source | 2421 | 15.7M | fn size() -> usize { $size } |
<[core::option::Option<usize>; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 19.8k | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 1.69M | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 3.41M | fn size() -> usize { $size } |
Unexecuted instantiation: <[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>; 16] as smallvec::Array>::size Unexecuted instantiation: <[cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>; 16] as smallvec::Array>::size <[core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 2.51M | fn size() -> usize { $size } |
<[regalloc2::index::Block; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 5.59M | fn size() -> usize { $size } |
Unexecuted instantiation: <[cranelift_codegen::ir::entities::Block; 16] as smallvec::Array>::size <[cranelift_codegen::machinst::reg::Reg; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 1.42M | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::buffer::MachCallSite; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 333k | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::buffer::MachLabelConstant; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 1.04M | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::buffer::MachTrap; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 449k | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::buffer::MachLabel; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 2.46M | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::buffer::MachReloc; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 182k | fn size() -> usize { $size } |
<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 3.27M | fn size() -> usize { $size } |
Unexecuted instantiation: <[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 16] as smallvec::Array>::size Unexecuted instantiation: <[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 16] as smallvec::Array>::size <[<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 3.71M | fn size() -> usize { $size } |
<[bool; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 52.1k | fn size() -> usize { $size } |
<[u8; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 372k | fn size() -> usize { $size } |
<[u32; 16] as smallvec::Array>::size Line | Count | Source | 2421 | 3.73M | fn size() -> usize { $size } |
<[(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value); 32] as smallvec::Array>::size Line | Count | Source | 2421 | 42.7k | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64] as smallvec::Array>::size Line | Count | Source | 2421 | 702k | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>; 64] as smallvec::Array>::size Line | Count | Source | 2421 | 4.80M | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::blockorder::LoweredBlock; 64] as smallvec::Array>::size Line | Count | Source | 2421 | 1.40M | fn size() -> usize { $size } |
<[u32; 64] as smallvec::Array>::size Line | Count | Source | 2421 | 1.65M | fn size() -> usize { $size } |
<[(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block); 128] as smallvec::Array>::size Line | Count | Source | 2421 | 2.86M | fn size() -> usize { $size } |
<[u8; 1024] as smallvec::Array>::size Line | Count | Source | 2421 | 35.6M | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::abi::ABIArgSlot; 1] as smallvec::Array>::size Line | Count | Source | 2421 | 8.57M | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>; 2] as smallvec::Array>::size Line | Count | Source | 2421 | 6.07M | fn size() -> usize { $size } |
<[cranelift_codegen::ir::entities::Inst; 2] as smallvec::Array>::size Line | Count | Source | 2421 | 3.59M | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::inst_common::InsnOutput; 2] as smallvec::Array>::size Line | Count | Source | 2421 | 7.02M | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::abi::RetPair; 2] as smallvec::Array>::size Line | Count | Source | 2421 | 17.6k | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::buffer::MachLabel; 2] as smallvec::Array>::size Line | Count | Source | 2421 | 1.93M | fn size() -> usize { $size } |
<[cranelift_codegen::isa::x64::inst::args::InstructionSet; 2] as smallvec::Array>::size Line | Count | Source | 2421 | 21.5M | fn size() -> usize { $size } |
<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 2] as smallvec::Array>::size Line | Count | Source | 2421 | 1.25M | fn size() -> usize { $size } |
Unexecuted instantiation: <[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 2] as smallvec::Array>::size Unexecuted instantiation: <[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 2] as smallvec::Array>::size <[regalloc2::Allocation; 4] as smallvec::Array>::size Line | Count | Source | 2421 | 92.1k | fn size() -> usize { $size } |
Unexecuted instantiation: <[cranelift_codegen::ir::entities::Value; 4] as smallvec::Array>::size Unexecuted instantiation: <[cranelift_codegen::machinst::inst_common::InsnOutput; 4] as smallvec::Array>::size Unexecuted instantiation: <[cranelift_codegen::machinst::reg::Reg; 4] as smallvec::Array>::size <[cranelift_codegen::machinst::buffer::MachBranch; 4] as smallvec::Array>::size Line | Count | Source | 2421 | 4.80M | fn size() -> usize { $size } |
<[cranelift_codegen::machinst::buffer::MachLabel; 4] as smallvec::Array>::size Line | Count | Source | 2421 | 10.0M | fn size() -> usize { $size } |
<[cranelift_codegen::isa::x64::lower::isle::generated_code::MInst; 4] as smallvec::Array>::size Line | Count | Source | 2421 | 19.7M | fn size() -> usize { $size } |
Unexecuted instantiation: <[cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst; 4] as smallvec::Array>::size Unexecuted instantiation: <[cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst; 4] as smallvec::Array>::size Unexecuted instantiation: <[(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp); 4] as smallvec::Array>::size Unexecuted instantiation: <[(u8, u64); 4] as smallvec::Array>::size <[regalloc2::ion::data_structures::SpillSlotIndex; 32] as smallvec::Array>::size Line | Count | Source | 2421 | 35.1k | fn size() -> usize { $size } |
<[regalloc2::Allocation; 4] as smallvec::Array>::size Line | Count | Source | 2421 | 1.08M | fn size() -> usize { $size } |
Unexecuted instantiation: <[regalloc2::ion::data_structures::LiveBundleIndex; 4] as smallvec::Array>::size Unexecuted instantiation: <[regalloc2::ion::data_structures::LiveRangeListEntry; 4] as smallvec::Array>::size Unexecuted instantiation: <[regalloc2::ion::data_structures::Use; 4] as smallvec::Array>::size Unexecuted instantiation: <[regalloc2::ion::data_structures::VRegIndex; 4] as smallvec::Array>::size Unexecuted instantiation: <[wasmparser::readers::core::operators::Operator; 2] as smallvec::Array>::size Unexecuted instantiation: <[parking_lot_core::thread_parker::imp::UnparkHandle; 8] as smallvec::Array>::size Unexecuted instantiation: <[parking_lot_core::thread_parker::imp::UnparkHandle; 8] as smallvec::Array>::size Unexecuted instantiation: <[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8] as smallvec::Array>::size <[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8] as smallvec::Array>::size Line | Count | Source | 2421 | 2.45M | fn size() -> usize { $size } |
<[wasmparser::readers::core::types::ValType; 8] as smallvec::Array>::size Line | Count | Source | 2421 | 1.83M | fn size() -> usize { $size } |
Unexecuted instantiation: <[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1] as smallvec::Array>::size <[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1] as smallvec::Array>::size Line | Count | Source | 2421 | 30.7M | fn size() -> usize { $size } |
<[wasmparser::readers::core::types::ValType; 1] as smallvec::Array>::size Line | Count | Source | 2421 | 5.58M | fn size() -> usize { $size } |
Unexecuted instantiation: <[cranelift_codegen::machinst::buffer::MachStackMap; 8] as smallvec::Array>::size Unexecuted instantiation: <[(u32, cranelift_codegen::isa::unwind::UnwindInst); 8] as smallvec::Array>::size Unexecuted instantiation: <[cranelift_codegen::ir::entities::Value; 16] as smallvec::Array>::size Unexecuted instantiation: <[cranelift_codegen::machinst::buffer::MachCallSite; 16] as smallvec::Array>::size Unexecuted instantiation: <[cranelift_codegen::machinst::buffer::MachTrap; 16] as smallvec::Array>::size Unexecuted instantiation: <[cranelift_codegen::machinst::buffer::MachReloc; 16] as smallvec::Array>::size Unexecuted instantiation: <[cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>; 64] as smallvec::Array>::size Unexecuted instantiation: <[u8; 1024] as smallvec::Array>::size Unexecuted instantiation: <[wasmparser::readers::core::operators::Operator; 2] as smallvec::Array>::size Unexecuted instantiation: <[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 8] as smallvec::Array>::size <[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 8] as smallvec::Array>::size Line | Count | Source | 2421 | 523k | fn size() -> usize { $size } |
<[wasmparser::readers::core::types::ValType; 8] as smallvec::Array>::size Line | Count | Source | 2421 | 392k | fn size() -> usize { $size } |
Unexecuted instantiation: <[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>; 1] as smallvec::Array>::size <[wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>; 1] as smallvec::Array>::size Line | Count | Source | 2421 | 7.34M | fn size() -> usize { $size } |
<[wasmparser::readers::core::types::ValType; 1] as smallvec::Array>::size Line | Count | Source | 2421 | 3.71M | fn size() -> usize { $size } |
|
2422 | | } |
2423 | | )+ |
2424 | | } |
2425 | | ); |
2426 | | |
2427 | | #[cfg(not(feature = "const_generics"))] |
2428 | | impl_array!( |
2429 | | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, |
2430 | | 26, 27, 28, 29, 30, 31, 32, 36, 0x40, 0x60, 0x80, 0x100, 0x200, 0x400, 0x600, 0x800, 0x1000, |
2431 | | 0x2000, 0x4000, 0x6000, 0x8000, 0x10000, 0x20000, 0x40000, 0x60000, 0x80000, 0x10_0000 |
2432 | | ); |
2433 | | |
2434 | | /// Convenience trait for constructing a `SmallVec` |
2435 | | pub trait ToSmallVec<A: Array> { |
2436 | | /// Construct a new `SmallVec` from a slice. |
2437 | | fn to_smallvec(&self) -> SmallVec<A>; |
2438 | | } |
2439 | | |
2440 | | impl<A: Array> ToSmallVec<A> for [A::Item] |
2441 | | where |
2442 | | A::Item: Copy, |
2443 | | { |
2444 | | #[inline] |
2445 | | fn to_smallvec(&self) -> SmallVec<A> { |
2446 | | SmallVec::from_slice(self) |
2447 | | } |
2448 | | } |
2449 | | |
2450 | | // Immutable counterpart for `NonNull<T>`. |
2451 | | #[repr(transparent)] |
2452 | | struct ConstNonNull<T>(NonNull<T>); |
2453 | | |
2454 | | impl<T> ConstNonNull<T> { |
2455 | | #[inline] |
2456 | 129M | fn new(ptr: *const T) -> Option<Self> { |
2457 | 129M | NonNull::new(ptr as *mut T).map(Self) |
2458 | 129M | } <smallvec::ConstNonNull<inkwell::values::phi_value::PhiValue>>::new Line | Count | Source | 2456 | 645k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 645k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 645k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<parking_lot_core::thread_parker::imp::UnparkHandle>>::new <smallvec::ConstNonNull<(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>)>>::new Line | Count | Source | 2456 | 615k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 615k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 615k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>>>::new Line | Count | Source | 2456 | 86.2k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 86.2k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 86.2k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::ir::entities::Value>>::new <smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachTrap>>::new Line | Count | Source | 2456 | 85.8k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 85.8k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 85.8k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachReloc>>::new Line | Count | Source | 2456 | 87.4k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 87.4k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 87.4k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<(cranelift_codegen::ir::entities::Value, i32)>>::new <smallvec::ConstNonNull<core::option::Option<usize>>>::new Line | Count | Source | 2456 | 3.08k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 3.08k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 3.08k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::machinst::reg::Writable<cranelift_codegen::machinst::reg::Reg>>>::new Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>>>::new <smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>>>::new Line | Count | Source | 2456 | 567k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 567k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 567k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>>>::new Line | Count | Source | 2456 | 652k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 652k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 652k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>>::new Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>>>::new <smallvec::ConstNonNull<cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>>>::new Line | Count | Source | 2456 | 458k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 458k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 458k | } |
<smallvec::ConstNonNull<core::slice::iter::Iter<cranelift_codegen::ir::entities::Value>>>::new Line | Count | Source | 2456 | 256 | fn new(ptr: *const T) -> Option<Self> { | 2457 | 256 | NonNull::new(ptr as *mut T).map(Self) | 2458 | 256 | } |
Unexecuted instantiation: <smallvec::ConstNonNull<regalloc2::Allocation>>::new <smallvec::ConstNonNull<regalloc2::PReg>>::new Line | Count | Source | 2456 | 51.2k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 51.2k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 51.2k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<regalloc2::VReg>>::new <smallvec::ConstNonNull<regalloc2::SpillSlot>>::new Line | Count | Source | 2456 | 166k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 166k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 166k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_egraph::Id>>::new <smallvec::ConstNonNull<cranelift_codegen::loop_analysis::Loop>>::new Line | Count | Source | 2456 | 4.39k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 4.39k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 4.39k | } |
<smallvec::ConstNonNull<regalloc2::index::Block>>::new Line | Count | Source | 2456 | 688k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 688k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 688k | } |
<smallvec::ConstNonNull<cranelift_codegen::ir::entities::Inst>>::new Line | Count | Source | 2456 | 997k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 997k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 997k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::ir::entities::Block>>::new Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::ir::entities::Value>>::new Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::egraph::elaborate::LoopStackEntry>>::new <smallvec::ConstNonNull<cranelift_codegen::machinst::blockorder::LoweredBlock>>::new Line | Count | Source | 2456 | 145k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 145k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 145k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::inst_common::InsnOutput>>::new Line | Count | Source | 2456 | 702k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 702k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 702k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::abi::ABIArgSlot>>::new Line | Count | Source | 2456 | 1.95M | fn new(ptr: *const T) -> Option<Self> { | 2457 | 1.95M | NonNull::new(ptr as *mut T).map(Self) | 2458 | 1.95M | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::abi::CallArgPair>>::new Line | Count | Source | 2456 | 104k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 104k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 104k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::abi::CallRetPair>>::new Line | Count | Source | 2456 | 104k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 104k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 104k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::abi::RetPair>>::new Line | Count | Source | 2456 | 2.71k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 2.71k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 2.71k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::reg::Reg>>::new Line | Count | Source | 2456 | 204k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 204k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 204k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachBranch>>::new Line | Count | Source | 2456 | 1.57M | fn new(ptr: *const T) -> Option<Self> { | 2457 | 1.57M | NonNull::new(ptr as *mut T).map(Self) | 2458 | 1.57M | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachCallSite>>::new Line | Count | Source | 2456 | 872 | fn new(ptr: *const T) -> Option<Self> { | 2457 | 872 | NonNull::new(ptr as *mut T).map(Self) | 2458 | 872 | } |
Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachStackMap>>::new <smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachLabelConstant>>::new Line | Count | Source | 2456 | 168k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 168k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 168k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachTrap>>::new Line | Count | Source | 2456 | 1.99k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 1.99k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 1.99k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachLabel>>::new Line | Count | Source | 2456 | 1.13M | fn new(ptr: *const T) -> Option<Self> { | 2457 | 1.13M | NonNull::new(ptr as *mut T).map(Self) | 2458 | 1.13M | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachReloc>>::new Line | Count | Source | 2456 | 426 | fn new(ptr: *const T) -> Option<Self> { | 2457 | 426 | NonNull::new(ptr as *mut T).map(Self) | 2458 | 426 | } |
<smallvec::ConstNonNull<regalloc2::ion::data_structures::InsertedMove>>::new Line | Count | Source | 2456 | 464k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 464k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 464k | } |
<smallvec::ConstNonNull<regalloc2::ion::data_structures::SpillSlotIndex>>::new Line | Count | Source | 2456 | 48.4k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 48.4k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 48.4k | } |
<smallvec::ConstNonNull<regalloc2::ion::data_structures::LiveBundleIndex>>::new Line | Count | Source | 2456 | 2.65M | fn new(ptr: *const T) -> Option<Self> { | 2457 | 2.65M | NonNull::new(ptr as *mut T).map(Self) | 2458 | 2.65M | } |
<smallvec::ConstNonNull<regalloc2::ion::data_structures::LiveRangeListEntry>>::new Line | Count | Source | 2456 | 73.4M | fn new(ptr: *const T) -> Option<Self> { | 2457 | 73.4M | NonNull::new(ptr as *mut T).map(Self) | 2458 | 73.4M | } |
<smallvec::ConstNonNull<regalloc2::ion::data_structures::Use>>::new Line | Count | Source | 2456 | 8.22M | fn new(ptr: *const T) -> Option<Self> { | 2457 | 8.22M | NonNull::new(ptr as *mut T).map(Self) | 2458 | 8.22M | } |
<smallvec::ConstNonNull<regalloc2::ion::data_structures::VRegIndex>>::new Line | Count | Source | 2456 | 390k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 390k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 390k | } |
<smallvec::ConstNonNull<cranelift_codegen::isa::x64::inst::args::InstructionSet>>::new Line | Count | Source | 2456 | 3.23M | fn new(ptr: *const T) -> Option<Self> { | 2457 | 3.23M | NonNull::new(ptr as *mut T).map(Self) | 2458 | 3.23M | } |
<smallvec::ConstNonNull<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>>::new Line | Count | Source | 2456 | 3.25M | fn new(ptr: *const T) -> Option<Self> { | 2457 | 3.25M | NonNull::new(ptr as *mut T).map(Self) | 2458 | 3.25M | } |
Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>::new Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>>::new <smallvec::ConstNonNull<<cranelift_codegen::machinst::blockorder::BlockLoweringOrder>::new::StackEntry>>::new Line | Count | Source | 2456 | 462k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 462k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 462k | } |
<smallvec::ConstNonNull<regalloc2::postorder::calculate::State>>::new Line | Count | Source | 2456 | 518 | fn new(ptr: *const T) -> Option<Self> { | 2457 | 518 | NonNull::new(ptr as *mut T).map(Self) | 2458 | 518 | } |
<smallvec::ConstNonNull<(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>)>>::new Line | Count | Source | 2456 | 1.57M | fn new(ptr: *const T) -> Option<Self> { | 2457 | 1.57M | NonNull::new(ptr as *mut T).map(Self) | 2458 | 1.57M | } |
<smallvec::ConstNonNull<(regalloc2::PReg, regalloc2::ProgPoint)>>::new Line | Count | Source | 2456 | 1.23M | fn new(ptr: *const T) -> Option<Self> { | 2457 | 1.23M | NonNull::new(ptr as *mut T).map(Self) | 2458 | 1.23M | } |
<smallvec::ConstNonNull<(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block)>>::new Line | Count | Source | 2456 | 935k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 935k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 935k | } |
<smallvec::ConstNonNull<(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value)>>::new Line | Count | Source | 2456 | 7.12k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 7.12k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 7.12k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp)>>::new <smallvec::ConstNonNull<(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex)>>::new Line | Count | Source | 2456 | 3.35k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 3.35k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 3.35k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<(u8, u64)>>::new <smallvec::ConstNonNull<(u32, cranelift_codegen::isa::unwind::UnwindInst)>>::new Line | Count | Source | 2456 | 139k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 139k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 139k | } |
<smallvec::ConstNonNull<bool>>::new Line | Count | Source | 2456 | 6.13k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 6.13k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 6.13k | } |
<smallvec::ConstNonNull<u8>>::new Line | Count | Source | 2456 | 8.38M | fn new(ptr: *const T) -> Option<Self> { | 2457 | 8.38M | NonNull::new(ptr as *mut T).map(Self) | 2458 | 8.38M | } |
<smallvec::ConstNonNull<usize>>::new Line | Count | Source | 2456 | 346k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 346k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 346k | } |
<smallvec::ConstNonNull<u32>>::new Line | Count | Source | 2456 | 6.49M | fn new(ptr: *const T) -> Option<Self> { | 2457 | 6.49M | NonNull::new(ptr as *mut T).map(Self) | 2458 | 6.49M | } |
<smallvec::ConstNonNull<regalloc2::Allocation>>::new Line | Count | Source | 2456 | 22.5k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 22.5k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 22.5k | } |
<smallvec::ConstNonNull<regalloc2::ion::data_structures::SpillSlotIndex>>::new Line | Count | Source | 2456 | 17.5k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 17.5k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 17.5k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<regalloc2::ion::data_structures::LiveBundleIndex>>::new Unexecuted instantiation: <smallvec::ConstNonNull<regalloc2::ion::data_structures::LiveRangeListEntry>>::new Unexecuted instantiation: <smallvec::ConstNonNull<regalloc2::ion::data_structures::Use>>::new Unexecuted instantiation: <smallvec::ConstNonNull<regalloc2::ion::data_structures::VRegIndex>>::new Unexecuted instantiation: <smallvec::ConstNonNull<wasmparser::readers::core::operators::Operator>>::new Unexecuted instantiation: <smallvec::ConstNonNull<parking_lot_core::thread_parker::imp::UnparkHandle>>::new Unexecuted instantiation: <smallvec::ConstNonNull<parking_lot_core::thread_parker::imp::UnparkHandle>>::new Unexecuted instantiation: <smallvec::ConstNonNull<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>>>::new <smallvec::ConstNonNull<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>>>::new Line | Count | Source | 2456 | 4.03M | fn new(ptr: *const T) -> Option<Self> { | 2457 | 4.03M | NonNull::new(ptr as *mut T).map(Self) | 2458 | 4.03M | } |
<smallvec::ConstNonNull<wasmparser::readers::core::types::ValType>>::new Line | Count | Source | 2456 | 1.29M | fn new(ptr: *const T) -> Option<Self> { | 2457 | 1.29M | NonNull::new(ptr as *mut T).map(Self) | 2458 | 1.29M | } |
Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>>>::new Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::ir::entities::Value>>::new Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachTrap>>::new Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachReloc>>::new Unexecuted instantiation: <smallvec::ConstNonNull<wasmparser::readers::core::operators::Operator>>::new Unexecuted instantiation: <smallvec::ConstNonNull<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>>>::new <smallvec::ConstNonNull<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>>>::new Line | Count | Source | 2456 | 947k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 947k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 947k | } |
<smallvec::ConstNonNull<wasmparser::readers::core::types::ValType>>::new Line | Count | Source | 2456 | 937k | fn new(ptr: *const T) -> Option<Self> { | 2457 | 937k | NonNull::new(ptr as *mut T).map(Self) | 2458 | 937k | } |
|
2459 | | #[inline] |
2460 | 63.6M | fn as_ptr(self) -> *const T { |
2461 | 63.6M | self.0.as_ptr() |
2462 | 63.6M | } <smallvec::ConstNonNull<inkwell::values::phi_value::PhiValue>>::as_ptr Line | Count | Source | 2460 | 647k | fn as_ptr(self) -> *const T { | 2461 | 647k | self.0.as_ptr() | 2462 | 647k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<parking_lot_core::thread_parker::imp::UnparkHandle>>::as_ptr <smallvec::ConstNonNull<(*const parking_lot_core::parking_lot::ThreadData, core::option::Option<parking_lot_core::thread_parker::imp::UnparkHandle>)>>::as_ptr Line | Count | Source | 2460 | 223k | fn as_ptr(self) -> *const T { | 2461 | 223k | self.0.as_ptr() | 2462 | 223k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>>>::as_ptr Line | Count | Source | 2460 | 87.8k | fn as_ptr(self) -> *const T { | 2461 | 87.8k | self.0.as_ptr() | 2462 | 87.8k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::ir::entities::Value>>::as_ptr <smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachTrap>>::as_ptr Line | Count | Source | 2460 | 87.8k | fn as_ptr(self) -> *const T { | 2461 | 87.8k | self.0.as_ptr() | 2462 | 87.8k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachReloc>>::as_ptr Line | Count | Source | 2460 | 87.8k | fn as_ptr(self) -> *const T { | 2461 | 87.8k | self.0.as_ptr() | 2462 | 87.8k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<(cranelift_codegen::ir::entities::Value, i32)>>::as_ptr <smallvec::ConstNonNull<regalloc2::ion::data_structures::LiveRangeListEntry>>::as_ptr Line | Count | Source | 2460 | 27.9M | fn as_ptr(self) -> *const T { | 2461 | 27.9M | self.0.as_ptr() | 2462 | 27.9M | } |
Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>>::as_ptr <smallvec::ConstNonNull<regalloc2::ion::data_structures::Use>>::as_ptr Line | Count | Source | 2460 | 6.94M | fn as_ptr(self) -> *const T { | 2461 | 6.94M | self.0.as_ptr() | 2462 | 6.94M | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Stencil>>>::as_ptr Line | Count | Source | 2460 | 608k | fn as_ptr(self) -> *const T { | 2461 | 608k | self.0.as_ptr() | 2462 | 608k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>>>::as_ptr Line | Count | Source | 2460 | 305k | fn as_ptr(self) -> *const T { | 2461 | 305k | self.0.as_ptr() | 2462 | 305k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>>::as_ptr Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachLabelFixup<cranelift_codegen::isa::riscv64::lower::isle::generated_code::MInst>>>::as_ptr Unexecuted instantiation: <smallvec::ConstNonNull<regalloc2::VReg>>::as_ptr Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_egraph::Id>>::as_ptr <smallvec::ConstNonNull<regalloc2::index::Block>>::as_ptr Line | Count | Source | 2460 | 494k | fn as_ptr(self) -> *const T { | 2461 | 494k | self.0.as_ptr() | 2462 | 494k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::abi::RetPair>>::as_ptr Line | Count | Source | 2460 | 1.35k | fn as_ptr(self) -> *const T { | 2461 | 1.35k | self.0.as_ptr() | 2462 | 1.35k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::reg::Reg>>::as_ptr Line | Count | Source | 2460 | 204k | fn as_ptr(self) -> *const T { | 2461 | 204k | self.0.as_ptr() | 2462 | 204k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachLabelConstant>>::as_ptr Line | Count | Source | 2460 | 37.2k | fn as_ptr(self) -> *const T { | 2461 | 37.2k | self.0.as_ptr() | 2462 | 37.2k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachLabel>>::as_ptr Line | Count | Source | 2460 | 3.88M | fn as_ptr(self) -> *const T { | 2461 | 3.88M | self.0.as_ptr() | 2462 | 3.88M | } |
<smallvec::ConstNonNull<regalloc2::ion::data_structures::LiveBundleIndex>>::as_ptr Line | Count | Source | 2460 | 655k | fn as_ptr(self) -> *const T { | 2461 | 655k | self.0.as_ptr() | 2462 | 655k | } |
<smallvec::ConstNonNull<regalloc2::ion::data_structures::VRegIndex>>::as_ptr Line | Count | Source | 2460 | 618k | fn as_ptr(self) -> *const T { | 2461 | 618k | self.0.as_ptr() | 2462 | 618k | } |
<smallvec::ConstNonNull<cranelift_codegen::isa::x64::lower::isle::generated_code::MInst>>::as_ptr Line | Count | Source | 2460 | 1.69M | fn as_ptr(self) -> *const T { | 2461 | 1.69M | self.0.as_ptr() | 2462 | 1.69M | } |
Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::isa::aarch64::lower::isle::generated_code::MInst>>::as_ptr <smallvec::ConstNonNull<(regalloc2::Allocation, regalloc2::Allocation, core::option::Option<regalloc2::VReg>)>>::as_ptr Line | Count | Source | 2460 | 639k | fn as_ptr(self) -> *const T { | 2461 | 639k | self.0.as_ptr() | 2462 | 639k | } |
<smallvec::ConstNonNull<(cranelift_codegen::ir::entities::Value, cranelift_codegen::ir::entities::Value)>>::as_ptr Line | Count | Source | 2460 | 3.56k | fn as_ptr(self) -> *const T { | 2461 | 3.56k | self.0.as_ptr() | 2462 | 3.56k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<(cranelift_codegen::machinst::reg::Reg, cranelift_codegen::isa::aarch64::inst::args::ExtendOp)>>::as_ptr <smallvec::ConstNonNull<(regalloc2::ion::data_structures::VRegIndex, regalloc2::ion::data_structures::LiveRangeIndex)>>::as_ptr Line | Count | Source | 2460 | 39.7k | fn as_ptr(self) -> *const T { | 2461 | 39.7k | self.0.as_ptr() | 2462 | 39.7k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<(u8, u64)>>::as_ptr <smallvec::ConstNonNull<u8>>::as_ptr Line | Count | Source | 2460 | 401k | fn as_ptr(self) -> *const T { | 2461 | 401k | self.0.as_ptr() | 2462 | 401k | } |
<smallvec::ConstNonNull<core::option::Option<usize>>>::as_ptr Line | Count | Source | 2460 | 3.08k | fn as_ptr(self) -> *const T { | 2461 | 3.08k | self.0.as_ptr() | 2462 | 3.08k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::valueregs::ValueRegs<cranelift_codegen::machinst::reg::Reg>>>::as_ptr Line | Count | Source | 2460 | 458k | fn as_ptr(self) -> *const T { | 2461 | 458k | self.0.as_ptr() | 2462 | 458k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<regalloc2::Allocation>>::as_ptr <smallvec::ConstNonNull<regalloc2::PReg>>::as_ptr Line | Count | Source | 2460 | 43.6k | fn as_ptr(self) -> *const T { | 2461 | 43.6k | self.0.as_ptr() | 2462 | 43.6k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<regalloc2::SpillSlot>>::as_ptr <smallvec::ConstNonNull<cranelift_codegen::loop_analysis::Loop>>::as_ptr Line | Count | Source | 2460 | 4.39k | fn as_ptr(self) -> *const T { | 2461 | 4.39k | self.0.as_ptr() | 2462 | 4.39k | } |
<smallvec::ConstNonNull<cranelift_codegen::ir::entities::Inst>>::as_ptr Line | Count | Source | 2460 | 668k | fn as_ptr(self) -> *const T { | 2461 | 668k | self.0.as_ptr() | 2462 | 668k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::ir::entities::Value>>::as_ptr Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::egraph::elaborate::LoopStackEntry>>::as_ptr <smallvec::ConstNonNull<cranelift_codegen::machinst::blockorder::LoweredBlock>>::as_ptr Line | Count | Source | 2460 | 148k | fn as_ptr(self) -> *const T { | 2461 | 148k | self.0.as_ptr() | 2462 | 148k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::inst_common::InsnOutput>>::as_ptr Line | Count | Source | 2460 | 702k | fn as_ptr(self) -> *const T { | 2461 | 702k | self.0.as_ptr() | 2462 | 702k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::abi::ABIArgSlot>>::as_ptr Line | Count | Source | 2460 | 1.13M | fn as_ptr(self) -> *const T { | 2461 | 1.13M | self.0.as_ptr() | 2462 | 1.13M | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::abi::CallArgPair>>::as_ptr Line | Count | Source | 2460 | 104k | fn as_ptr(self) -> *const T { | 2461 | 104k | self.0.as_ptr() | 2462 | 104k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::abi::CallRetPair>>::as_ptr Line | Count | Source | 2460 | 104k | fn as_ptr(self) -> *const T { | 2461 | 104k | self.0.as_ptr() | 2462 | 104k | } |
<smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachBranch>>::as_ptr Line | Count | Source | 2460 | 1.64M | fn as_ptr(self) -> *const T { | 2461 | 1.64M | self.0.as_ptr() | 2462 | 1.64M | } |
<smallvec::ConstNonNull<regalloc2::ion::data_structures::InsertedMove>>::as_ptr Line | Count | Source | 2460 | 464k | fn as_ptr(self) -> *const T { | 2461 | 464k | self.0.as_ptr() | 2462 | 464k | } |
<smallvec::ConstNonNull<regalloc2::ion::data_structures::SpillSlotIndex>>::as_ptr Line | Count | Source | 2460 | 23.8k | fn as_ptr(self) -> *const T { | 2461 | 23.8k | self.0.as_ptr() | 2462 | 23.8k | } |
<smallvec::ConstNonNull<cranelift_codegen::isa::x64::inst::args::InstructionSet>>::as_ptr Line | Count | Source | 2460 | 368k | fn as_ptr(self) -> *const T { | 2461 | 368k | self.0.as_ptr() | 2462 | 368k | } |
<smallvec::ConstNonNull<(regalloc2::PReg, regalloc2::ProgPoint)>>::as_ptr Line | Count | Source | 2460 | 1.23M | fn as_ptr(self) -> *const T { | 2461 | 1.23M | self.0.as_ptr() | 2462 | 1.23M | } |
<smallvec::ConstNonNull<(cranelift_codegen::ir::entities::Inst, usize, cranelift_codegen::ir::entities::Block)>>::as_ptr Line | Count | Source | 2460 | 331k | fn as_ptr(self) -> *const T { | 2461 | 331k | self.0.as_ptr() | 2462 | 331k | } |
<smallvec::ConstNonNull<(u32, cranelift_codegen::isa::unwind::UnwindInst)>>::as_ptr Line | Count | Source | 2460 | 139k | fn as_ptr(self) -> *const T { | 2461 | 139k | self.0.as_ptr() | 2462 | 139k | } |
<smallvec::ConstNonNull<bool>>::as_ptr Line | Count | Source | 2460 | 6.13k | fn as_ptr(self) -> *const T { | 2461 | 6.13k | self.0.as_ptr() | 2462 | 6.13k | } |
<smallvec::ConstNonNull<usize>>::as_ptr Line | Count | Source | 2460 | 6.03k | fn as_ptr(self) -> *const T { | 2461 | 6.03k | self.0.as_ptr() | 2462 | 6.03k | } |
<smallvec::ConstNonNull<u32>>::as_ptr Line | Count | Source | 2460 | 4.63M | fn as_ptr(self) -> *const T { | 2461 | 4.63M | self.0.as_ptr() | 2462 | 4.63M | } |
<smallvec::ConstNonNull<regalloc2::Allocation>>::as_ptr Line | Count | Source | 2460 | 22.4k | fn as_ptr(self) -> *const T { | 2461 | 22.4k | self.0.as_ptr() | 2462 | 22.4k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<regalloc2::ion::data_structures::SpillSlotIndex>>::as_ptr Unexecuted instantiation: <smallvec::ConstNonNull<regalloc2::ion::data_structures::LiveBundleIndex>>::as_ptr Unexecuted instantiation: <smallvec::ConstNonNull<regalloc2::ion::data_structures::LiveRangeListEntry>>::as_ptr Unexecuted instantiation: <smallvec::ConstNonNull<regalloc2::ion::data_structures::Use>>::as_ptr Unexecuted instantiation: <smallvec::ConstNonNull<regalloc2::ion::data_structures::VRegIndex>>::as_ptr Unexecuted instantiation: <smallvec::ConstNonNull<wasmparser::readers::core::operators::Operator>>::as_ptr Unexecuted instantiation: <smallvec::ConstNonNull<parking_lot_core::thread_parker::imp::UnparkHandle>>::as_ptr Unexecuted instantiation: <smallvec::ConstNonNull<parking_lot_core::thread_parker::imp::UnparkHandle>>::as_ptr Unexecuted instantiation: <smallvec::ConstNonNull<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>>>::as_ptr <smallvec::ConstNonNull<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>>>::as_ptr Line | Count | Source | 2460 | 3.88M | fn as_ptr(self) -> *const T { | 2461 | 3.88M | self.0.as_ptr() | 2462 | 3.88M | } |
<smallvec::ConstNonNull<wasmparser::readers::core::types::ValType>>::as_ptr Line | Count | Source | 2460 | 607k | fn as_ptr(self) -> *const T { | 2461 | 607k | self.0.as_ptr() | 2462 | 607k | } |
Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachSrcLoc<cranelift_codegen::machinst::buffer::Final>>>::as_ptr Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::ir::entities::Value>>::as_ptr Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachTrap>>::as_ptr Unexecuted instantiation: <smallvec::ConstNonNull<cranelift_codegen::machinst::buffer::MachReloc>>::as_ptr Unexecuted instantiation: <smallvec::ConstNonNull<wasmparser::readers::core::operators::Operator>>::as_ptr Unexecuted instantiation: <smallvec::ConstNonNull<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::arm64_decl::GPR, wasmer_compiler_singlepass::arm64_decl::NEON>>>::as_ptr <smallvec::ConstNonNull<wasmer_compiler_singlepass::location::Location<wasmer_compiler_singlepass::x64_decl::GPR, wasmer_compiler_singlepass::x64_decl::XMM>>>::as_ptr Line | Count | Source | 2460 | 914k | fn as_ptr(self) -> *const T { | 2461 | 914k | self.0.as_ptr() | 2462 | 914k | } |
<smallvec::ConstNonNull<wasmparser::readers::core::types::ValType>>::as_ptr Line | Count | Source | 2460 | 439k | fn as_ptr(self) -> *const T { | 2461 | 439k | self.0.as_ptr() | 2462 | 439k | } |
|
2463 | | } |
2464 | | |
2465 | | impl<T> Clone for ConstNonNull<T> { |
2466 | | #[inline] |
2467 | | fn clone(&self) -> Self { |
2468 | | *self |
2469 | | } |
2470 | | } |
2471 | | |
2472 | | impl<T> Copy for ConstNonNull<T> {} |