aboutsummaryrefslogtreecommitdiffstats
path: root/insns.def
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-25 14:55:43 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-25 14:55:43 +0000
commitdbc2870b261ee9a847c3b44fe1124a13bdf4f132 (patch)
tree466c58bd2de4a2499dbd2cdaf5d06aaa5c0b1896 /insns.def
parent25b833ebf2c98871a1aca475a8b83e066a807a06 (diff)
downloadruby-dbc2870b261ee9a847c3b44fe1124a13bdf4f132.tar.gz
insns.def: s/handles_frame/handles_sp/
because it's more suitable to describe the current behavior now. tool/ruby_vm/models/bare_instructions.rb: ditto. tool/ruby_vm/views/_insn_entry.erb: ditto. tool/ruby_vm/views/_mjit_compile_insn_body.erb: ditto. tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def16
1 files changed, 8 insertions, 8 deletions
diff --git a/insns.def b/insns.def
index da5a771de0..2305d20803 100644
--- a/insns.def
+++ b/insns.def
@@ -43,7 +43,7 @@
* sp_inc: Used to dynamically calculate sp increase in
`insn_stack_increase`.
- * handles_frame: If it is true, VM deals with sp in the insn.
+ * handles_sp: If it is true, VM deals with sp in the insn.
- Attributes can access operands, but not stack (push/pop) variables.
@@ -687,7 +687,7 @@ defineclass
(ID id, ISEQ class_iseq, rb_num_t flags)
(VALUE cbase, VALUE super)
(VALUE val)
-// attr bool handles_frame = true;
+// attr bool handles_sp = true;
{
VALUE klass = vm_find_or_create_class_by_id(id, flags, cbase, super);
@@ -714,7 +714,7 @@ send
(CALL_INFO ci, CALL_CACHE cc, ISEQ blockiseq)
(...)
(VALUE val)
-// attr bool handles_frame = true;
+// attr bool handles_sp = true;
// attr rb_snum_t sp_inc = - (int)(ci->orig_argc + ((ci->flag & VM_CALL_ARGS_BLOCKARG) ? 1 : 0));
{
struct rb_calling_info calling;
@@ -768,7 +768,7 @@ opt_send_without_block
(CALL_INFO ci, CALL_CACHE cc)
(...)
(VALUE val)
-// attr bool handles_frame = true;
+// attr bool handles_sp = true;
// attr rb_snum_t sp_inc = -ci->orig_argc;
{
struct rb_calling_info calling;
@@ -783,7 +783,7 @@ invokesuper
(CALL_INFO ci, CALL_CACHE cc, ISEQ blockiseq)
(...)
(VALUE val)
-// attr bool handles_frame = true;
+// attr bool handles_sp = true;
// attr rb_snum_t sp_inc = - (int)(ci->orig_argc + ((ci->flag & VM_CALL_ARGS_BLOCKARG) ? 1 : 0));
{
struct rb_calling_info calling;
@@ -801,7 +801,7 @@ invokeblock
(CALL_INFO ci)
(...)
(VALUE val)
-// attr bool handles_frame = true;
+// attr bool handles_sp = true;
// attr rb_snum_t sp_inc = 1 - ci->orig_argc;
{
struct rb_calling_info calling;
@@ -828,7 +828,7 @@ leave
()
(VALUE val)
(VALUE val)
-// attr bool handles_frame = true;
+// attr bool handles_sp = true;
{
if (OPT_CHECKED_RUN) {
const VALUE *const bp = vm_base_ptr(reg_cfp);
@@ -1376,7 +1376,7 @@ opt_call_c_function
(rb_insn_func_t funcptr)
()
()
-// attr bool handles_frame = true;
+// attr bool handles_sp = true;
{
reg_cfp = (funcptr)(ec, reg_cfp);