diff options
author | Marc-André Lafortune <github@marc-andre.ca> | 2020-12-24 12:08:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-25 02:08:12 +0900 |
commit | db2ebbd71b746734b88832b1e70db8afed3d68ed (patch) | |
tree | ab48ce3cc5083b59ef7858ec9ecadc2ce018fc70 /internal | |
parent | 8981a63f12f9c30e9c6f893d292d01fd5df89991 (diff) |
Optimize calls to `Kernel#hash` (#3987)
This avoids recursive checks when the `hash` method of an object
isn't specialized.
Notes
Notes:
Merged-By: nurse <naruse@airemix.jp>
Diffstat (limited to 'internal')
-rw-r--r-- | internal/vm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/vm.h b/internal/vm.h index eb193a23dc..d36ed3d0c8 100644 --- a/internal/vm.h +++ b/internal/vm.h @@ -74,6 +74,7 @@ VALUE rb_check_funcall_with_hook_kw(VALUE recv, ID mid, int argc, const VALUE *a rb_check_funcall_hook *hook, VALUE arg, int kw_splat); const char *rb_type_str(enum ruby_value_type type); VALUE rb_check_funcall_default(VALUE, ID, int, const VALUE *, VALUE); +VALUE rb_check_funcall_basic_kw(VALUE, ID, VALUE, int, const VALUE*, int); VALUE rb_yield_1(VALUE val); VALUE rb_yield_force_blockarg(VALUE values); VALUE rb_lambda_call(VALUE obj, ID mid, int argc, const VALUE *argv, |