[前][次][番号順一覧][スレッド一覧]

ruby-changes:48402

From: ko1 <ko1@a...>
Date: Sat, 28 Oct 2017 20:22:20 +0900 (JST)
Subject: [ruby-changes:48402] ko1:r60516 (trunk): use `ec` directly.

ko1	2017-10-28 20:22:15 +0900 (Sat, 28 Oct 2017)

  New Revision: 60516

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60516

  Log:
    use `ec` directly.

  Modified files:
    trunk/vm_method.c
Index: vm_method.c
===================================================================
--- vm_method.c	(revision 60515)
+++ vm_method.c	(revision 60516)
@@ -258,13 +258,13 @@ method_definition_set(const rb_method_en https://github.com/ruby/ruby/blob/trunk/vm_method.c#L258
 	  case VM_METHOD_TYPE_ATTRSET:
 	  case VM_METHOD_TYPE_IVAR:
 	    {
-		rb_thread_t *th = GET_THREAD();
+		const rb_execution_context_t *ec = GET_EC();
 		rb_control_frame_t *cfp;
 		int line;
 
 		def->body.attr.id = (ID)(VALUE)opts;
 
-		cfp = rb_vm_get_ruby_level_next_cfp(th->ec, th->ec->cfp);
+		cfp = rb_vm_get_ruby_level_next_cfp(ec, ec->cfp);
 
 		if (cfp && (line = rb_vm_get_sourceline(cfp))) {
 		    VALUE location = rb_ary_new3(2, rb_iseq_path(cfp->iseq), INT2FIX(line));

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]