servo/components/script/dom/bindings
Josh Matthews 76ee127af8
Eagerly define interfaces on non-Window globals (#36604)
These changes make us match Gecko's setup for how Window and non-Window
globals are initialized. Since Window globals are much more common than
Worker globals, using lazy interface definitions can be a useful memory
optimization at the expense of increased complexity for property
lookups.

Also adds the MayResolve hook for all globals, which is an optimization
for the JIT to avoid calling resolve hooks unnecessarily.

Testing: Existing test coverage on global interfaces should suffice.

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2025-04-21 03:32:21 +00:00
..
buffer_source.rs Add serde and wgsl features to wgpu-core (#36411) 2025-04-09 10:09:13 +00:00
cell.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
constructor.rs Use version of markup5ever with web_atoms crate (#36542) 2025-04-19 11:49:37 +00:00
conversions.rs Move generated bindings to script_bindings (#36323) 2025-04-04 06:45:08 +00:00
error.rs Support optional message for dataclone error (#36308) 2025-04-13 18:10:04 +00:00
frozenarray.rs Use explicit reborrows with mozjs::MutableHandle (#35892) 2025-03-23 01:23:52 +00:00
function.rs Cleanups for future script crate split (#35987) 2025-03-16 13:46:14 +00:00
import.rs Move generated bindings to script_bindings (#36323) 2025-04-04 06:45:08 +00:00
inheritance.rs More miscellaneous script splitting changes (#36220) 2025-03-30 11:06:30 +00:00
like.rs Move more bindings types to script_bindings (#35620) 2025-02-23 14:25:46 +00:00
mod.rs script: copy include! files from script_bindings to script's OUT_DIR (#36384) 2025-04-08 19:22:24 +00:00
principals.rs Move generated bindings to script_bindings (#36323) 2025-04-04 06:45:08 +00:00
proxyhandler.rs Move generated bindings to script_bindings (#36323) 2025-04-04 06:45:08 +00:00
refcounted.rs refactor: add CanGc as argument to Promise::reject_error (#35646) 2025-02-25 10:12:58 +00:00
reflector.rs Move generated bindings to script_bindings (#36323) 2025-04-04 06:45:08 +00:00
root.rs More miscellaneous script splitting changes (#36220) 2025-03-30 11:06:30 +00:00
serializable.rs Refactor common boilerplate out of serialize/transfer implementations (#35831) 2025-03-15 13:58:56 +00:00
settings_stack.rs Move generated bindings to script_bindings (#36323) 2025-04-04 06:45:08 +00:00
str.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
structuredclone.rs Streams: make writable streams transferrable (#36588) 2025-04-18 08:33:36 +00:00
trace.rs Move generated bindings to script_bindings (#36323) 2025-04-04 06:45:08 +00:00
transferable.rs Refactor common boilerplate out of serialize/transfer implementations (#35831) 2025-03-15 13:58:56 +00:00
utils.rs Eagerly define interfaces on non-Window globals (#36604) 2025-04-21 03:32:21 +00:00
weakref.rs Move generated bindings to script_bindings (#36323) 2025-04-04 06:45:08 +00:00
xmlname.rs Use version of markup5ever with web_atoms crate (#36542) 2025-04-19 11:49:37 +00:00