Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Show literals for push_ivar in bytecode printer

  • Loading branch information...
commit 0f4c2eb99e59dda32f80c417584854b503b2b302 1 parent 37b1011
Ryo Onodera ryoqun authored
Showing with 5 additions and 5 deletions.
  1. +3 −3 vm/instructions.def
  2. +2 −2 web/_includes/instructions.markdown
6 vm/instructions.def
View
@@ -718,10 +718,10 @@ instruction set_ivar(literal) [ value -- value ]
end
# [Description]
-# Pushes the instance variable identified by _index_ onto the stack.
+# Pushes the instance variable identified by _literal_ onto the stack.
-instruction push_ivar(index) [ -- value ]
- Symbol* sym = as<Symbol>(call_frame->compiled_code->literals()->at(state, index));
+instruction push_ivar(literal) [ -- value ]
+ Symbol* sym = as<Symbol>(call_frame->compiled_code->literals()->at(state, literal));
Object* ret = call_frame->self()->get_ivar(state, sym);
CHECK_AND_PUSH(ret);
4 web/_includes/instructions.markdown
View
@@ -831,9 +831,9 @@
<tr><td>...</td><td>...</td></tr>
</tbody>
</table>
-<h3><a class="instruction" name="push_ivar">push_ivar(index)</a></h3>
+<h3><a class="instruction" name="push_ivar">push_ivar(literal)</a></h3>
- Pushes the instance variable identified by _index_ onto the stack.
+ Pushes the instance variable identified by _literal_ onto the stack.
<table class="stack_effect">
Please sign in to comment.
Something went wrong with that request. Please try again.