aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-18 05:16:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-18 05:16:37 +0000
commitbf4a28729c5c66ea5a33630ae32face661e9c0ba (patch)
treeb79b1cf16be2af7b70c97f8ada98847cf5863bcc /compile.c
parente994503d851aa18c010dee6a1eb718c14a97276c (diff)
downloadruby-bf4a28729c5c66ea5a33630ae32face661e9c0ba.tar.gz
intern instruction
* insns.def (intern): new instruction to turn string into symbol. opt_call_c_function can not dump. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/compile.c b/compile.c
index 0e3abd71f7..2962bc8e34 100644
--- a/compile.c
+++ b/compile.c
@@ -29,9 +29,6 @@
#undef RUBY_UNTYPED_DATA_WARNING
#define RUBY_UNTYPED_DATA_WARNING 0
-rb_control_frame_t *
- FUNC_FASTCALL(rb_vm_str_intern)(rb_thread_t *, rb_control_frame_t *);
-
#define ISEQ_TYPE_ONCE_GUARD ISEQ_TYPE_DEFINED_GUARD
#define FIXNUM_INC(n, i) ((n)+(INT2FIX(i)&~FIXNUM_FLAG))
@@ -6582,7 +6579,7 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, NODE *node, int popp
case NODE_DSYM:{
compile_dstr(iseq, ret, node);
if (!popped) {
- ADD_INSN1(ret, line, opt_call_c_function, rb_vm_str_intern);
+ ADD_INSN(ret, line, intern);
}
else {
ADD_INSN(ret, line, pop);