rubinius/rubinius

View on GitHub
machine/interpreter/push_literal.cpp

Summary

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

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

      instructions::push_literal(call_frame, literal);

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