rubinius/rubinius

View on GitHub
machine/interpreter/set_stack_local.cpp

Summary

Maintainability
Test Coverage
#include "instructions/set_stack_local.hpp"

namespace rubinius {
  namespace interpreter {
    intptr_t set_stack_local(STATE, CallFrame* call_frame, intptr_t const opcodes[]) {
      intptr_t which = argument(0);

      instructions::set_stack_local(call_frame, which);

      call_frame->next_ip(instructions::data_set_stack_local.width);
      return ((instructions::Instruction)opcodes[call_frame->ip()])(state, call_frame, opcodes);
    }
  }
}