Skip to content

Commit 9dc2ac4

Browse files
committed
inline the inner functions
1 parent e620f69 commit 9dc2ac4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/engine/src/native_function.rs

+2
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ pub(crate) fn native_function_call(
359359
///
360360
/// Panics if the object is currently mutably borrowed.
361361
// <https://tc39.es/ecma262/#sec-built-in-function-objects-call-thisargument-argumentslist>
362+
#[inline]
362363
pub(crate) fn native_function_call_inner(
363364
obj: &JsObject,
364365
native_function: &NativeFunctionObject,
@@ -420,6 +421,7 @@ fn native_function_construct(
420421
)
421422
}
422423

424+
#[inline]
423425
pub(crate) fn native_function_construct_inner(
424426
native_function: &NativeFunctionObject,
425427
this_function_object: JsObject,

0 commit comments

Comments
 (0)