diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-10-19 12:36:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-19 15:36:24 -0400 |
commit | 0d360ee7ff962ef66667a75a912c3980c4f5b217 (patch) | |
tree | 5caee5db9a2ff055cf95a28d30a715738916404f /yjit/src/asm | |
parent | 9da0d4ca9d7032347776390fc473857c57a72ba3 (diff) | |
download | ruby-0d360ee7ff962ef66667a75a912c3980c4f5b217.tar.gz |
YJIT: Skip dumping code for the other cb on --yjit-dump-disasm (#6592)
YJIT: Skip dumping code for the other cb
on --yjit-dump-disasm
Diffstat (limited to 'yjit/src/asm')
-rw-r--r-- | yjit/src/asm/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/yjit/src/asm/mod.rs b/yjit/src/asm/mod.rs index 271f11defc..61c1523aab 100644 --- a/yjit/src/asm/mod.rs +++ b/yjit/src/asm/mod.rs @@ -213,9 +213,8 @@ impl CodeBlock { self.page_end_reserve = old_page_end_reserve; } - #[cfg(target_arch = "aarch64")] - #[cfg(not(test))] /// Return the address ranges of a given address range that this CodeBlock can write. + #[cfg(any(feature = "disasm", target_arch = "aarch64"))] pub fn writable_addrs(&self, start_ptr: CodePtr, end_ptr: CodePtr) -> Vec<(usize, usize)> { let mut addrs = vec![]; let mut start = start_ptr.raw_ptr() as usize; |