From 84e6a3d31c08d2302f8592ee07cc3bacb1f47d9d Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 27 Oct 2017 01:31:15 +0000 Subject: ec->th for vm_cref_push() and constify. * vm_insnhelper.c (vm_cref_push): accepts `ec` instead of `th`. * vm_insnhelper.c: consitfy the first parameter (ec): * lep_svar * lep_svar_write * lep_svar_get * lep_svar_set * vm_getspecial and added vm_cref_push. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- insns.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'insns.def') diff --git a/insns.def b/insns.def index 01bac33336..9350c2385c 100644 --- a/insns.def +++ b/insns.def @@ -837,7 +837,7 @@ defineclass /* enter scope */ vm_push_frame(th->ec, class_iseq, VM_FRAME_MAGIC_CLASS | VM_ENV_FLAG_LOCAL, klass, GET_BLOCK_HANDLER(), - (VALUE)vm_cref_push(th, klass, NULL, FALSE), + (VALUE)vm_cref_push(th->ec, klass, NULL, FALSE), class_iseq->body->iseq_encoded, GET_SP(), class_iseq->body->local_table_size, class_iseq->body->stack_max); -- cgit v1.2.3