diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2021-06-16 18:06:06 -0400 |
|---|---|---|
| committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:36 -0400 |
| commit | 936ee5556280162da3016bf62ebe74ef07caf882 (patch) | |
| tree | 094b443010a85104f28a1953b4ba2559238215ea /tool | |
| parent | 78f64d14d47f49e7fe68aab202a056cec7b86218 (diff) | |
Improve opt_not by expanding cfunc codegen
This commit improves opt_not by making it correct when TrueClass#!
and/or FalseClass#! is defined and genearting better code when the
receiver is a heap object.
guard_known_class() can now handle true, false, and nil, and we
introduce a codegen function reimplementing rb_obj_not(), used when we
know we are calling into rb_obj_not().
Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
Co-authored-by: Noah Gibbs <the.codefolio.guy@gmail.com>
Diffstat (limited to 'tool')
0 files changed, 0 insertions, 0 deletions
