machine/interpreter/set_ivar.cpp
#include "instructions/set_ivar.hpp"
namespace rubinius {
namespace interpreter {
intptr_t set_ivar(STATE, CallFrame* call_frame, intptr_t const opcodes[]) {
intptr_t literal = argument(0);
if(instructions::set_ivar(state, call_frame, literal)) {
call_frame->next_ip(instructions::data_set_ivar.width
+ instructions::data_unwind.width);
} else {
call_frame->next_ip(instructions::data_set_ivar.width);
}
return ((instructions::Instruction)opcodes[call_frame->ip()])(state, call_frame, opcodes);
}
}
}