}
cell code_block::owner_quot() const {
- if (!optimized_p() && TAG(owner) == WORD_TYPE)
+ if (type() != CODE_BLOCK_OPTIMIZED && TAG(owner) == WORD_TYPE)
return untag<word>(owner)->def;
return owner;
}
bool pic_p() const { return type() == CODE_BLOCK_PIC; }
- bool optimized_p() const { return type() == CODE_BLOCK_OPTIMIZED; }
-
cell size() const {
cell size;
if (free_p())
void factor_vm::primitive_word_optimized_p() {
word* w = untag_check<word>(ctx->peek());
- ctx->replace(tag_boolean(w->code()->optimized_p()));
+ cell t = w->code()->type();
+ ctx->replace(tag_boolean(t == CODE_BLOCK_OPTIMIZED));
}
// Allocates memory