summaryrefslogtreecommitdiff
path: root/tool/lib/webrick/httpserver.rb
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-06-16 18:06:06 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:36 -0400
commit936ee5556280162da3016bf62ebe74ef07caf882 (patch)
tree094b443010a85104f28a1953b4ba2559238215ea /tool/lib/webrick/httpserver.rb
parent78f64d14d47f49e7fe68aab202a056cec7b86218 (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/lib/webrick/httpserver.rb')
0 files changed, 0 insertions, 0 deletions