Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Add hooks for implementing bulk-memory-operations #1258

Merged
merged 2 commits into from
Dec 6, 2019
Merged

Add hooks for implementing bulk-memory-operations #1258

merged 2 commits into from
Dec 6, 2019

Conversation

eqrion
Copy link
Collaborator

@eqrion eqrion commented Nov 26, 2019

I have patches that add support for bulk-memory-operations in SpiderMonkey with Cranelift. These commits are the prerequisites for those patches.

The only major change is adding extensibility points to cranelift-wasm for translating bulk-memory-operations. These will be used in SM to translate the operations into function calls which will do the actual work.

cranelift-wasm/src/code_translator.rs Show resolved Hide resolved
cranelift-codegen/src/ir/trapcode.rs Outdated Show resolved Hide resolved
cranelift-codegen/src/ir/dfg.rs Outdated Show resolved Hide resolved
cranelift-wasm/src/code_translator.rs Outdated Show resolved Hide resolved
cranelift-wasm/src/code_translator.rs Show resolved Hide resolved
cranelift-wasm/src/code_translator.rs Show resolved Hide resolved
cranelift-wasm/src/code_translator.rs Show resolved Hide resolved
@eqrion
Copy link
Collaborator Author

eqrion commented Nov 27, 2019

I dropped the two commits that weren't needed. Also I forgot that I should like to the associated SpiderMonkey patch.

Copy link
Member

@bnjbvr bnjbvr left a comment

Choose a reason for hiding this comment

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

Nice, thanks.

cranelift-wasm/src/code_translator.rs Outdated Show resolved Hide resolved
cranelift-wasm/src/environ/spec.rs Show resolved Hide resolved
Copy link
Collaborator

@julian-seward1 julian-seward1 left a comment

Choose a reason for hiding this comment

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

Looks plausible to me. I added two comments in-line.

@bnjbvr bnjbvr self-requested a review December 6, 2019 10:20
@bnjbvr bnjbvr merged commit 78769a1 into bytecodealliance:master Dec 6, 2019
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request Dec 9, 2019
…r=bbouvier

Depends on: bytecodealliance/cranelift#1258

This commit adds support for bulk-mem in CL using our builtin methods.

The major change is in wasm2clif where I added support for more declarative
'instance calls', and used them for the bulk-mem instructions.

Differential Revision: https://phabricator.services.mozilla.com/D54778
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Dec 9, 2019
…r=bbouvier

Depends on: bytecodealliance/cranelift#1258

This commit adds support for bulk-mem in CL using our builtin methods.

The major change is in wasm2clif where I added support for more declarative
'instance calls', and used them for the bulk-mem instructions.

Differential Revision: https://phabricator.services.mozilla.com/D54778

--HG--
extra : moz-landing-system : lando
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Dec 10, 2019
…r=bbouvier

Depends on: bytecodealliance/cranelift#1258

This commit adds support for bulk-mem in CL using our builtin methods.

The major change is in wasm2clif where I added support for more declarative
'instance calls', and used them for the bulk-mem instructions.

Differential Revision: https://phabricator.services.mozilla.com/D54778

UltraBlame original commit: 9129ac29705f517e589fa6232c1987679e0f0e46
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Dec 10, 2019
…r=bbouvier

Depends on: bytecodealliance/cranelift#1258

This commit adds support for bulk-mem in CL using our builtin methods.

The major change is in wasm2clif where I added support for more declarative
'instance calls', and used them for the bulk-mem instructions.

Differential Revision: https://phabricator.services.mozilla.com/D54778

UltraBlame original commit: 9129ac29705f517e589fa6232c1987679e0f0e46
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Dec 10, 2019
…r=bbouvier

Depends on: bytecodealliance/cranelift#1258

This commit adds support for bulk-mem in CL using our builtin methods.

The major change is in wasm2clif where I added support for more declarative
'instance calls', and used them for the bulk-mem instructions.

Differential Revision: https://phabricator.services.mozilla.com/D54778

UltraBlame original commit: 9129ac29705f517e589fa6232c1987679e0f0e46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants