A few MallocBench record/replay fixes
[WebKit-https.git] / PerformanceTests / MallocBench / MallocBench / Interpreter.cpp
index 9178b479f1b6345a1f436bc75d8c17151cf38a03..92636caff651fec26a125fdca7fb5dcd728880a9 100644 (file)
@@ -101,14 +101,12 @@ void Interpreter::run()
             }
             case op_free: {
                 assert(m_objects[op.slot].object);
-                assert(m_objects[op.slot].size);
                 mbfree(m_objects[op.slot].object, m_objects[op.slot].size);
                 m_objects[op.slot] = { 0, 0 };
                 break;
             }
             case op_realloc: {
                 assert(m_objects[op.slot].object);
-                assert(m_objects[op.slot].size);
                 m_objects[op.slot] = { mbrealloc(m_objects[op.slot].object, m_objects[op.slot].size, op.size), op.size };
                 break;
             }