diff options
author | 卜部昌平 <[email protected]> | 2020-07-10 11:49:50 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2020-07-13 08:56:18 +0900 |
commit | 9721f477c7f33d64af94fad4a1ca51f739b0b08f (patch) | |
tree | 14330998f33e9040a7038b80899098c016a26241 /tool/ruby_vm | |
parent | f66e0212efe4f6572d5e81741e831ab735cc2fee (diff) |
inline Primitive.cexpr!
We can obtain the verbatim source code of Primitive.cexpr!. Why not
paste that content into the JITed program.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3305
Diffstat (limited to 'tool/ruby_vm')
-rw-r--r-- | tool/ruby_vm/helpers/c_escape.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/ruby_vm/helpers/c_escape.rb b/tool/ruby_vm/helpers/c_escape.rb index 3e2bf2e02c..fa3cb8b1aa 100644 --- a/tool/ruby_vm/helpers/c_escape.rb +++ b/tool/ruby_vm/helpers/c_escape.rb @@ -46,7 +46,7 @@ module RubyVM::CEscape # I believe this is the fastest implementation done in pure-ruby. # Constants cached, gsub skips block evaluation, string literal optimized. buf = str.b - buf.gsub! %r/./n, RString2CStr + buf.gsub! %r/./nm, RString2CStr return %'"#{buf}"' end |