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

ruby-changes:55164

From: ko1 <ko1@a...>
Date: Fri, 29 Mar 2019 15:36:52 +0900 (JST)
Subject: [ruby-changes:55164] ko1:r67371 (trunk): use GET_CFP() instead of access reg_cfp directly.

ko1	2019-03-29 15:36:46 +0900 (Fri, 29 Mar 2019)

  New Revision: 67371

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

  Log:
    use GET_CFP() instead of access reg_cfp directly.
    
    GET_CFP() macro contains performance counter logic.

  Modified files:
    trunk/insns.def
Index: insns.def
===================================================================
--- insns.def	(revision 67370)
+++ insns.def	(revision 67371)
@@ -894,9 +894,9 @@ leave https://github.com/ruby/ruby/blob/trunk/insns.def#L894
 // attr bool handles_sp = true;
 {
     if (OPT_CHECKED_RUN) {
-	const VALUE *const bp = vm_base_ptr(reg_cfp);
-	if (reg_cfp->sp != bp) {
-	    vm_stack_consistency_error(ec, reg_cfp, bp);
+	const VALUE *const bp = vm_base_ptr(GET_CFP());
+	if (GET_SP() != bp) {
+	    vm_stack_consistency_error(ec, GET_CFP(), bp);
 	}
     }
 

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

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