Commit f690f713 authored by Marius Wachtler's avatar Marius Wachtler

bjit: directly emit recordType again

the comment was totaly not true, result can't be 0 for our uses
parent 1e2ba218
......@@ -881,15 +881,11 @@ std::pair<RewriterVar*, RewriterAction*> JitFragmentWriter::emitPPCall(void* fun
}, args, ActionType::NORMAL);
if (type_recorder) {
RewriterVar* type_recorder_var = imm(type_recorder);
/*
TODO use call for now because this code is broken because it does not check if result is null
RewriterVar* obj_cls_var = result->getAttr(offsetof(Box, cls));
addAction([=]() { _emitRecordType(type_recorder_var, obj_cls_var); }, { type_recorder_var, obj_cls_var },
ActionType::NORMAL);
*/
call(false, (void*)recordType, type_recorder_var, result);
result->refUsed();
emitPendingCallsCheck();
return std::make_pair(result, call_action);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment