pub struct GlobalCache { /* private fields */ }Expand description
A remembered global-variable lookup.
A var global is an ordinary property of the global object, so reading one walks the
prototype chain — and fib’s recursive call is get_var fib, which made that walk 20%
of call:recursion (lookup_key 19% under it). The binding cannot move: the name is
fixed by the bytecode, and the slot in the object’s table only changes if the global
object is mutated, which the index-and-name check below catches.
Auto Trait Implementations§
impl !RefUnwindSafe for GlobalCache
impl !Send for GlobalCache
impl !Sync for GlobalCache
impl !UnwindSafe for GlobalCache
impl Forget for GlobalCache
impl Freeze for GlobalCache
impl Move for GlobalCache
impl Unpin for GlobalCache
impl UnsafeUnpin for GlobalCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more