Lines Matching defs:kind
655 this.module.exports.push({name: name, kind: kExternalGlobal,
671 this.module.exports.push({name: name, kind: kExternalTable,
775 this.imports.push({module: module, name: name, kind: kExternalFunction,
784 let o = {module: module, name: name, kind: kExternalGlobal, type: type,
791 let o = {module: module, name: name, kind: kExternalMemory,
801 let o = {module: module, name: name, kind: kExternalTable, initial: initial,
812 let o = {module: module, name: name, kind: kExternalTag, type: type_index};
818 this.exports.push({name: name, kind: kExternalFunction, index: index});
822 addExportOfKind(name, kind, index) {
823 this.exports.push({name: name, kind: kind, index: index});
839 this.exports.push({name: name, kind: kExternalMemory, index: 0});
919 section.emit_u8(imp.kind);
920 if (imp.kind == kExternalFunction) {
922 } else if (imp.kind == kExternalGlobal) {
925 } else if (imp.kind == kExternalMemory) {
935 } else if (imp.kind == kExternalTable) {
941 } else if (imp.kind == kExternalTag) {
945 throw new Error("unknown/unsupported import kind " + imp.kind);
1060 section.emit_u8(exp.kind);