Closed Bug 1886432 Opened 7 months ago Closed 7 months ago

Improve Wasm code encoder for builtin modules creation

Categories

(Core :: JavaScript: WebAssembly, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: yury, Assigned: yury)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Several utilities that might be useful when module is generated in the C++ code. Coping from the https://phabricator.services.mozilla.com/D200518 review:

  1. StructType::createImmutable (instead of BuildSimpleStruct)

  2. Added ModuleEnvironment's addDefinedFunc

    a) bool addDefinedFunc(ValTypeVec&& params, ValTypeVec&& result, UniqueChars* optionalExportedName)
    b) bool addImportedFunc(ValTypeVec&& params, ValTypeVec&& result, UniqueChars importModName, UniqueChars importFieldName)

Each of those would create the FuncType and add to types, then add the FuncDesc, then any import/export, then declare as exported if needed.

Summary: Improved Wasm code encoder → Improve Wasm code encoder for builtin modules creation
Assignee: nobody → ydelendik
Status: NEW → ASSIGNED
Pushed by ydelendik@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0bc66b10867c Improve Wasm code encoder for builtin modules. r=rhunt
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: