mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
script: Inline some hot functions used in flow constructions.
9% improvement in style recalc on the rainbow page.
This commit is contained in:
parent
e2e848c6ad
commit
a0fbc04ba5
3 changed files with 12 additions and 0 deletions
|
@ -621,6 +621,7 @@ pub struct Reflector {
|
|||
}
|
||||
|
||||
impl Reflector {
|
||||
#[inline]
|
||||
pub fn get_jsobject(&self) -> *JSObject {
|
||||
self.object
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue