diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-26 06:23:47 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-26 06:23:47 +0000 |
commit | 1282a4a89500f3c45f0cd56623d536f40abe9bb6 (patch) | |
tree | 949c6c2a2ed80f61fc9bc7e6a386fbb915b2cc48 /gem_prelude.rb | |
parent | f4ca0739ecf00e9c50aaca55e0ecc5e33dd49284 (diff) | |
download | ruby-1282a4a89500f3c45f0cd56623d536f40abe9bb6.tar.gz |
fstring early for internal iseq
All of the strings created here eventually get converted to
fstrings when they are frozen into the iseq. Prepare the
fstring early so we may reduce a one or two objects.
This is a very minor change, mainly for the '<main>' dedupe.
* compile.c (caller_location): use rb_fstring_cstr for "<compiled>"
(it is converted to fstring anyways inside rb_iseq_new_with_opt)
* iseq.c (iseqw_s_compile): ditto
* iseq.c (rb_iseq_new_main): use rb_fstring_cstr for "<main>"
* vm.c (Init_VM): ditto, share with with above
* iseq.c (iseqw_s_compile_file): rb_fstring before rb_io_t->pathv
share "<main>" with above
* vm.c (rb_binding_add_dynavars): fstring "<temp>" immediately
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gem_prelude.rb')
0 files changed, 0 insertions, 0 deletions