Skip to content
This repository
Browse code

Show literals for push_ivar in bytecode printer

  • Loading branch information...
commit 0f4c2eb99e59dda32f80c417584854b503b2b302 1 parent 37b1011
Ryo Onodera authored February 25, 2013
6  vm/instructions.def
@@ -718,10 +718,10 @@ instruction set_ivar(literal) [ value -- value ]
718 718
 end
719 719
 
720 720
 # [Description]
721  
-#   Pushes the instance variable identified by _index_ onto the stack.
  721
+#   Pushes the instance variable identified by _literal_ onto the stack.
722 722
 
723  
-instruction push_ivar(index) [ -- value ]
724  
-  Symbol* sym = as<Symbol>(call_frame->compiled_code->literals()->at(state, index));
  723
+instruction push_ivar(literal) [ -- value ]
  724
+  Symbol* sym = as<Symbol>(call_frame->compiled_code->literals()->at(state, literal));
725 725
   Object* ret = call_frame->self()->get_ivar(state, sym);
726 726
 
727 727
   CHECK_AND_PUSH(ret);
4  web/_includes/instructions.markdown
Source Rendered
@@ -831,9 +831,9 @@
831 831
 <tr><td>...</td><td>...</td></tr>
832 832
 </tbody>
833 833
 </table>
834  
-<h3><a class="instruction" name="push_ivar">push_ivar(index)</a></h3>
  834
+<h3><a class="instruction" name="push_ivar">push_ivar(literal)</a></h3>
835 835
 
836  
-   Pushes the instance variable identified by _index_ onto the stack.
  836
+   Pushes the instance variable identified by _literal_ onto the stack.
837 837
 
838 838
 
839 839
 <table class="stack_effect">

0 notes on commit 0f4c2eb

Please sign in to comment.
Something went wrong with that request. Please try again.