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

ruby-changes:50520

From: ko1 <ko1@a...>
Date: Mon, 5 Mar 2018 10:17:14 +0900 (JST)
Subject: [ruby-changes:50520] ko1:r62658 (trunk): add prefix to the function name.

ko1	2018-03-05 10:17:08 +0900 (Mon, 05 Mar 2018)

  New Revision: 62658

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

  Log:
    add prefix to the function name.
    
    * vm.c (handle_exception): rename to vm_exce_handle_exception.

  Modified files:
    trunk/vm.c
Index: vm.c
===================================================================
--- vm.c	(revision 62657)
+++ vm.c	(revision 62658)
@@ -1794,8 +1794,8 @@ hook_before_rewind(rb_execution_context_ https://github.com/ruby/ruby/blob/trunk/vm.c#L1794
  */
 
 static inline VALUE
-handle_exception(rb_execution_context_t *ec, enum ruby_tag_type state,
-		 VALUE errinfo, VALUE *initial);
+vm_exce_handle_exception(rb_execution_context_t *ec, enum ruby_tag_type state,
+                         VALUE errinfo, VALUE *initial);
 
 MJIT_FUNC_EXPORTED VALUE
 vm_exec(rb_execution_context_t *ec, int mjit_enable_p)
@@ -1808,16 +1808,17 @@ vm_exec(rb_execution_context_t *ec, int https://github.com/ruby/ruby/blob/trunk/vm.c#L1808
 
     _tag.retval = Qnil;
     if ((state = EC_EXEC_TAG()) == TAG_NONE) {
-        if (!mjit_enable_p || (result = mjit_exec(ec)) == Qundef)
+        if (!mjit_enable_p || (result = mjit_exec(ec)) == Qundef) {
             result = vm_exec_core(ec, initial);
-	goto vm_loop_start; /* fallback to the VM */
+        }
+        goto vm_loop_start; /* fallback to the VM */
     }
     else {
 	result = ec->errinfo;
-	rb_ec_raised_reset(ec, RAISED_STACKOVERFLOW);
-	while ((result = handle_exception(ec, state, result, &initial)) == Qundef) {
-	    /* caught a jump, exec the handler */
-	    result = vm_exec_core(ec, initial);
+        rb_ec_raised_reset(ec, RAISED_STACKOVERFLOW);
+        while ((result = vm_exce_handle_exception(ec, state, result, &initial)) == Qundef) {
+            /* caught a jump, exec the handler */
+            result = vm_exec_core(ec, initial);
 	  vm_loop_start:
 	    VM_ASSERT(ec->tag == &_tag);
 	    /* when caught `throw`, `tag.state` is set. */
@@ -1830,8 +1831,8 @@ vm_exec(rb_execution_context_t *ec, int https://github.com/ruby/ruby/blob/trunk/vm.c#L1831
 }
 
 static inline VALUE
-handle_exception(rb_execution_context_t *ec, enum ruby_tag_type state,
-		 VALUE errinfo, VALUE *initial)
+vm_exce_handle_exception(rb_execution_context_t *ec, enum ruby_tag_type state,
+                         VALUE errinfo, VALUE *initial)
 {
     struct vm_throw_data *err = (struct vm_throw_data *)errinfo;
 

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

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