mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-21 15:04:33 -05:00
Inline hint for default FastFunction trait methods (#1199)
This commit is contained in:
parent
b1884eb1f5
commit
54bdfe722e
1 changed files with 2 additions and 0 deletions
|
@ -250,9 +250,11 @@ impl<T: Default> FastApiTypedArray<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait FastFunction {
|
pub trait FastFunction {
|
||||||
|
#[inline(always)]
|
||||||
fn args(&self) -> &'static [Type] {
|
fn args(&self) -> &'static [Type] {
|
||||||
&[]
|
&[]
|
||||||
}
|
}
|
||||||
|
#[inline(always)]
|
||||||
fn return_type(&self) -> CType {
|
fn return_type(&self) -> CType {
|
||||||
CType::Void
|
CType::Void
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue