Commit b6d8fbe7 authored by Marius Wachtler's avatar Marius Wachtler

Fix bjit del crashes

parent 1077e7f2
......@@ -443,9 +443,6 @@ RewriterVar* JitFragmentWriter::emitUnaryop(RewriterVar* v, int op_type) {
}
std::vector<RewriterVar*> JitFragmentWriter::emitUnpackIntoArray(RewriterVar* v, uint64_t num) {
assert(0 && "untested");
trap();
RewriterVar* keep_alive = allocate(1);
RewriterVar* array = call(false, (void*)unpackIntoArray, v, imm(num), keep_alive);
......@@ -465,16 +462,16 @@ RewriterVar* JitFragmentWriter::emitYield(RewriterVar* v) {
}
void JitFragmentWriter::emitDelAttr(RewriterVar* target, BoxedString* attr) {
emitPPCall((void*)delattr, { target, imm(attr) }, 1, 512)->setType(RefType::OWNED);
emitPPCall((void*)delattr, { target, imm(attr) }, 1, 512);
}
void JitFragmentWriter::emitDelGlobal(BoxedString* name) {
RewriterVar* globals = getInterp()->getAttr(ASTInterpreterJitInterface::getGlobalsOffset());
emitPPCall((void*)delGlobal, { globals, imm(name) }, 1, 512)->setType(RefType::OWNED);
emitPPCall((void*)delGlobal, { globals, imm(name) }, 1, 512);
}
void JitFragmentWriter::emitDelItem(RewriterVar* target, RewriterVar* slice) {
emitPPCall((void*)delitem, { target, slice }, 1, 512)->setType(RefType::OWNED);
emitPPCall((void*)delitem, { target, slice }, 1, 512);
}
void JitFragmentWriter::emitDelName(InternedString name) {
......
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