Permalink
Browse files

Merge pull request #2175 from ryoqun/push-ivar-pretty

Show literals for push_ivar in bytecode printer
  • Loading branch information...
2 parents 37b1011 + 0f4c2eb commit 6e426494c7fbc01887594ab423ff61d9dc818d25 @dbussink dbussink committed Feb 25, 2013
Showing with 5 additions and 5 deletions.
  1. +3 −3 vm/instructions.def
  2. +2 −2 web/_includes/instructions.markdown
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);
@@ -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">

0 comments on commit 6e42649

Please sign in to comment.