mirror of
https://github.com/oxc-project/oxc.git
synced 2026-11-04 18:43:44 +00:00
perf(codegen): add #[inline] to code, code_len (#22373)
This commit is contained in:
1 parent
7c5cfa0753
commit
5f3bdd09e1
1 file changed
+2
@@ -400,10 +400,12 @@ impl<'a> Codegen<'a> {
|
||||
|
||||
// Private APIs
|
||||
impl<'a> Codegen<'a> {
|
||||
#[inline]
|
||||
fn code(&self) -> &CodeBuffer {
|
||||
&self.code
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn code_len(&self) -> usize {
|
||||
self.code().len()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user