diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-14 19:58:59 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-14 19:58:59 +0000 |
commit | 8f08e61bad1d745dc7a10ff216ad5ca2e92b3ded (patch) | |
tree | 3f13f4c2d16aa4780b36e9a3d49e50aee9432f34 /vm_core.h | |
parent | fd3b0dec4a4aa0e56bf56bb058688e0dea91c090 (diff) |
* vm_insnhelper.c: refactoring.
- move all `call' related functions to the last of file.
- make functions for respective method types in vm_call_method().
(all functions have same function parameters)
* vm_core.h: add `opt_pc' filed in `rb_call_info_t'
as temporal variable.
* vm_eval.c (vm_call0_body): catch up above cahnges.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -160,8 +160,10 @@ typedef struct rb_call_info_struct { /* temporary values for method calling */ int argc; + int opt_pc; struct rb_block_struct *blockptr; VALUE recv; + VALUE (*call)(struct rb_thread_struct *th, struct rb_control_frame_struct *cfp, struct rb_call_info_struct *ci); } rb_call_info_t; |