Project

General

Profile

« Previous | Next » 

Revision 1f5f8a18

Added by jeremyevans (Jeremy Evans) over 3 years ago

Make Array#min/max optimization respect refined methods

Pass in ec to vm_opt_newarray_{max,min}. Avoids having to
call GET_EC inside the functions, for better performance.

While here, add a test for Array#min/max being redefined to
test_optimization.rb.

Fixes [Bug #18180]