Support table64 extension in classic-interp and AOT running modes (#3811)
Add table64 extension(in Memory64 proposal) support in classic-interp and AOT running modes, currently still use uint32 to represent table's initial and maximum size to keep AOT ABI unchanged.
This commit is contained in:
@ -146,9 +146,20 @@ aot_validate_wasm(AOTCompContext *comp_ctx)
|
||||
}
|
||||
|
||||
#if WASM_ENABLE_MEMORY64 != 0
|
||||
if (comp_ctx->pointer_size < sizeof(uint64) && IS_MEMORY64) {
|
||||
aot_set_last_error("Compiling wasm64 to 32bit platform is not allowed");
|
||||
return false;
|
||||
if (comp_ctx->pointer_size < sizeof(uint64)) {
|
||||
if (IS_MEMORY64) {
|
||||
aot_set_last_error("Compiling wasm64(contains i64 memory section) "
|
||||
"to 32bit platform is not allowed");
|
||||
return false;
|
||||
}
|
||||
|
||||
for (uint32 i = 0; i < comp_ctx->comp_data->table_count; ++i) {
|
||||
if (IS_TABLE64(i)) {
|
||||
aot_set_last_error("Compiling wasm64(contains i64 table "
|
||||
"section) to 32bit platform is not allowed");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user