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