Skip to content

Conversation

@jimmyhmiller
Copy link

No description provided.

@maximecb maximecb merged commit 980de00 into ocb-dump Sep 1, 2022
@maximecb maximecb deleted the ocb-dump-option-with-none branch September 1, 2022 17:34
if let Some(target) = get_option!(dump_disasm) {
if target == DumpDisasm::All || !cb.outlined {
match get_option!(dump_disasm) {
DumpDisasm::All | DumpDisasm::Inlined if cb.inlined() => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you intended DumpDisasm::All | (DumpDisasm::Inlined if cb.inlined()), but it seems like it's actually evaluated like (DumpDisasm::All | DumpDisasm::Inlined) if cb.inlined(), so this doesn't print outlined cb.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k0kubun added a commit that referenced this pull request Sep 1, 2022
* Let --yjit-dump-disasm=all dump ocb code as well

* Use an enum instead

* Add a None Option to DumpDisasm (#444)

* Add a None Option to DumpDisasm

* Update yjit/src/asm/mod.rs

Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>

* Fix a build failure

* Use only a single name

* Only None will be a disabled case

* Fix cargo test

* Fix --yjit-dump-disasm=all to print outlined cb

Co-authored-by: Jimmy Miller <jimmyhmiller@gmail.com>
Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants