[ruby-core:85358] Re: [ruby-cvs:69220] nobu:r62039 (trunk): compile.c: unnecessary freezing

From: Eric Wong <normalperson@...>
Date: 2018-02-03 07:30:02 UTC
List: ruby-core #85358
[email protected] wrote:
>   https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62039
> 
>   Log:
>     compile.c: unnecessary freezing
>     
>     * compile.c (iseq_peephole_optimize): get rid of freezing
>       dynamically created string to be duplicated immediately.

We don't need to check for String#+@ redefinitions?

Considering String#+@ and String#-@ look like syntax elements
and are relatively new; can get rid of redefinition check in
opt_str_uminus?

Thanks.

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next