if (!rose) {
throw CompileError("Unable to generate bytecode.");
}
- *length = roseSize(rose.get());
+ *length = rose.size();
if (!*length) {
DEBUG_PRINTF("RoseEngine has zero length\n");
assert(0);
bool roseCheckRose(const RoseInGraph &ig, bool prefilter,
const ReportManager &rm, const CompileContext &cc);
-size_t roseSize(const RoseEngine *t);
-
/* used by heuristics to determine the small write engine. High numbers are
* intended to indicate a lightweight rose. */
u32 roseQuality(const RoseEngine *t);
return rose;
}
- const size_t mainSize = roseSize(rose.get());
+ const size_t mainSize = rose.size();
const size_t smallWriteSize = smwr_engine.size();
DEBUG_PRINTF("adding smwr engine, size=%zu\n", smallWriteSize);
return ue2::make_unique<RoseBuildImpl>(rm, ssm, smwr, cc, boundary);
}
-size_t roseSize(const RoseEngine *t) {
- assert(t);
- return t->size;
-}
-
bool roseIsPureLiteral(const RoseEngine *t) {
return t->runtimeImpl == ROSE_RUNTIME_PURE_LITERAL;
}