ruby-core

Mailing list archive

[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
nobu@ruby-lang.org 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:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next