Skip to content

Conversation

@stevenfontanella
Copy link
Member

@stevenfontanella stevenfontanella commented Jan 20, 2026

TableUtils::IsSubType is removed because it never makes sense to check for subtyping between two (static) Table definitions, since the runtime size must be taken into account.

Fixes the table_grow.wast spec test.

Also make tableMeta() non-virtual in RuntimeTable since the base class has the field and it never makes sense to override it.

@stevenfontanella stevenfontanella force-pushed the table-import branch 5 times, most recently from d465928 to f30f8c6 Compare January 21, 2026 01:18
stevenfontanella added a commit that referenced this pull request Jan 22, 2026
Part of #8180. We currently replicate the existing behavior. In the
future, we can also change ctor-eval to really simulate tables, and only
use the EvallingRuntimeTable in the case of table imports. Removes
existing pointer chasing logic that we repeat for each table operation
(e.g. tableLoad, tableStore).

Allows us to fix spec tests where a table import becomes valid by
resizing it in #8222.
Base automatically changed from table-import to main January 22, 2026 00:10
@stevenfontanella stevenfontanella force-pushed the table-grow-spec-test branch 2 times, most recently from 0e6a253 to cad1017 Compare January 23, 2026 00:51
@stevenfontanella stevenfontanella marked this pull request as ready for review January 23, 2026 06:36
size() >= other.initial && tableMeta_.max <= other.max;
}

const Table* tableMeta() const { return &tableMeta_; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does "meta" mean here? Could this be getTable() perhaps?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant it like 'metadata', I didn't want to name this table since this class is also a table. I think the Table struct represents something more like a table definition than a table itself, maybe I can rename this to tableDefinition?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, yeah, maybe getDefinition() then? This is indeed the definition of the runtime table.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, I put it in the next PR if that sounds good #8230

@stevenfontanella stevenfontanella merged commit 0a3f4b1 into main Jan 24, 2026
17 checks passed
@stevenfontanella stevenfontanella deleted the table-grow-spec-test branch January 24, 2026 00:15
stevenfontanella added a commit that referenced this pull request Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants