This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Rename function types to signatures
AbandonedPublic

Authored by aheejin on Nov 19 2018, 12:52 AM.

Details

Reviewers
dschuff
sbc100
Summary

Currently both of function signatures (WasmSignature objects) and
signature indices (unsigned ints) are often represented with variable
'FunctionTypes', which is confusing.

Should land with D54689.

Event Timeline

aheejin created this revision.Nov 19 2018, 12:52 AM
aheejin retitled this revision from [WebAssembly] Rename function types to signatures (NFC) to [WebAssembly] Rename function types to signatures.
aheejin edited the summary of this revision. (Show Details)
sbc100 added inline comments.Nov 19 2018, 12:41 PM
test/wasm/Inputs/globals.yaml
11

Again, not sure about this name change here.

wasm/InputFiles.cpp
66–67

I guess we should really rename the relocation type too R_WEBASSEMBLY_SIG_INDEX_LEB or R_WEBASSEMBLY_SIGNATURE_INDEX_LEB.

aheejin marked 2 inline comments as done.Nov 20 2018, 6:15 PM
aheejin added inline comments.
wasm/InputFiles.cpp
66–67
aheejin updated this revision to Diff 174860.Nov 20 2018, 6:15 PM
aheejin marked an inline comment as done.
  • Address comments
aheejin abandoned this revision.Nov 25 2018, 12:36 AM

In this comment, Rossberg said

Drive-by comment: the Wasm spec intentionally calls this type index, not signature index. The reason being that we expect additional forms of type definitions to appear in the type section in the future, see e.g. the GC proposal.

So I guess for the moment it's better to drop this CL to be cautious.