Skip to content

Store WasmFuncType in FuncType#2365

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:tweak-func-type
Nov 5, 2020
Merged

Store WasmFuncType in FuncType#2365
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:tweak-func-type

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

This commit updates wasmtime::FuncType to exactly store an internal
WasmFuncType from the cranelift crates. This allows us to remove a
translation layer when we are given a FuncType and want to get an
internal cranelift type out as a result.

The other major change from this commit was changing the constructor and
accessors of FuncType to be iterator-based instead of exposing
implementation details.

@alexcrichton alexcrichton requested a review from fitzgen November 4, 2020 20:24
@github-actions github-actions Bot added fuzzing Issues related to our fuzzing infrastructure wasmtime:api Related to the API of the `wasmtime` crate itself labels Nov 4, 2020
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 4, 2020

Subscribe to Label Action

cc @fitzgen, @peterhuene

Details This issue or pull request has been labeled: "fuzzing", "wasmtime:api"

Thus the following users have been cc'd because of the following labels:

  • fitzgen: fuzzing
  • peterhuene: wasmtime:api

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

@github-actions github-actions Bot added the wasmtime:c-api Issues pertaining to the C API. label Nov 5, 2020
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 5, 2020

Subscribe to Label Action

cc @peterhuene

Details This issue or pull request has been labeled: "wasmtime:c-api"

Thus the following users have been cc'd because of the following labels:

  • peterhuene: wasmtime:c-api

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

This commit updates `wasmtime::FuncType` to exactly store an internal
`WasmFuncType` from the cranelift crates. This allows us to remove a
translation layer when we are given a `FuncType` and want to get an
internal cranelift type out as a result.

The other major change from this commit was changing the constructor and
accessors of `FuncType` to be iterator-based instead of exposing
implementation details.
@alexcrichton alexcrichton merged commit a277cf5 into bytecodealliance:main Nov 5, 2020
@alexcrichton alexcrichton deleted the tweak-func-type branch November 5, 2020 14:49
cfallin pushed a commit that referenced this pull request Nov 30, 2020
This commit updates `wasmtime::FuncType` to exactly store an internal
`WasmFuncType` from the cranelift crates. This allows us to remove a
translation layer when we are given a `FuncType` and want to get an
internal cranelift type out as a result.

The other major change from this commit was changing the constructor and
accessors of `FuncType` to be iterator-based instead of exposing
implementation details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fuzzing Issues related to our fuzzing infrastructure wasmtime:api Related to the API of the `wasmtime` crate itself wasmtime:c-api Issues pertaining to the C API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants