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

ruby-changes:39409

From: nobu <ko1@a...>
Date: Wed, 5 Aug 2015 14:44:11 +0900 (JST)
Subject: [ruby-changes:39409] nobu:r51490 (trunk): insns.def: redundant call

nobu	2015-08-05 14:43:58 +0900 (Wed, 05 Aug 2015)

  New Revision: 51490

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

  Log:
    insns.def: redundant call
    
    * insns.def (leave): remove redundant function call.

  Modified files:
    trunk/insns.def
Index: insns.def
===================================================================
--- insns.def	(revision 51489)
+++ insns.def	(revision 51490)
@@ -1027,9 +1027,10 @@ leave https://github.com/ruby/ruby/blob/trunk/insns.def#L1027
 (VALUE val)
 {
     if (OPT_CHECKED_RUN) {
-	if (reg_cfp->sp != vm_base_ptr(reg_cfp)) {
+	const VALUE *const bp = vm_base_ptr(reg_cfp);
+	if (reg_cfp->sp != bp) {
 	    rb_bug("Stack consistency error (sp: %"PRIdPTRDIFF", bp: %"PRIdPTRDIFF")",
-		   VM_SP_CNT(th, reg_cfp->sp), VM_SP_CNT(th, vm_base_ptr(reg_cfp)));
+		   VM_SP_CNT(th, reg_cfp->sp), VM_SP_CNT(th, bp));
 	}
     }
 

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

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