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

ruby-changes:36497

From: ko1 <ko1@a...>
Date: Wed, 26 Nov 2014 15:48:35 +0900 (JST)
Subject: [ruby-changes:36497] ko1:r48579 (trunk): * compile.c (iseq_set_sequence): use "nop" insn instead of

ko1	2014-11-26 15:48:21 +0900 (Wed, 26 Nov 2014)

  New Revision: 48579

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

  Log:
    * compile.c (iseq_set_sequence): use "nop" insn instead of
      "jump to next insn".
      https://bugs.ruby-lang.org/issues/8543#change-50085

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48578)
+++ ChangeLog	(revision 48579)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Nov 26 15:32:06 2014  Koichi Sasada  <ko1@a...>
+
+	* compile.c (iseq_set_sequence): use "nop" insn instead of
+	  "jump to next insn".
+	  https://bugs.ruby-lang.org/issues/8543#change-50085
+
 Wed Nov 26 11:01:35 2014  Eric Wong  <e@8...>
 
 	* iseq.c (iseq_s_compile_file): close IO when done
Index: compile.c
===================================================================
--- compile.c	(revision 48578)
+++ compile.c	(revision 48579)
@@ -1642,8 +1642,8 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ https://github.com/ruby/ruby/blob/trunk/compile.c#L1642
 			    line_info_table[k].position = pos;
 			    k++;
 			}
-			generated_iseq[pos++] = BIN(jump);
-			generated_iseq[pos++] = 0;
+			generated_iseq[pos++] = BIN(nop);
+			generated_iseq[pos++] = BIN(nop);
 		    }
 		    else {
 			rb_bug("iseq_set_sequence: adjust bug");

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

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