mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 07:02:13 +00:00
Use outer-most identifier when resolving queued exports, fixes #248
This commit is contained in:
parent
c769f65bac
commit
4498b28442
2
dist/asc.js
vendored
2
dist/asc.js
vendored
File diff suppressed because one or more lines are too long
2
dist/asc.js.map
vendored
2
dist/asc.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/assemblyscript.js
vendored
2
dist/assemblyscript.js
vendored
File diff suppressed because one or more lines are too long
2
dist/assemblyscript.js.map
vendored
2
dist/assemblyscript.js.map
vendored
File diff suppressed because one or more lines are too long
113
package-lock.json
generated
113
package-lock.json
generated
@ -66,9 +66,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "10.5.4",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.5.4.tgz",
|
||||
"integrity": "sha512-8TqvB0ReZWwtcd3LXq3YSrBoLyXFgBX/sBZfGye9+YS8zH7/g+i6QRIuiDmwBoTzcQ/pk89nZYTYU4c5akKkzw==",
|
||||
"version": "10.9.4",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-10.9.4.tgz",
|
||||
"integrity": "sha512-fCHV45gS+m3hH17zgkgADUSi2RR1Vht6wOZ0jyHP8rjiQra9f+mIcgwPQHllmDocYOstIEbKlxbFDYlgrTPYqw==",
|
||||
"dev": true
|
||||
},
|
||||
"@types/shelljs": {
|
||||
@ -349,9 +349,9 @@
|
||||
}
|
||||
},
|
||||
"acorn": {
|
||||
"version": "5.7.1",
|
||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.1.tgz",
|
||||
"integrity": "sha512-d+nbxBUGKg7Arpsvbnlq61mc12ek3EY8EQldM3GPAhWJ1UVxC6TDGbIvUMNU6obBX3i1+ptCIzV4vq0gFPEGVQ==",
|
||||
"version": "5.7.2",
|
||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.2.tgz",
|
||||
"integrity": "sha512-cJrKCNcr2kv8dlDnbw+JPUGjHZzo4myaxOLmpOX8a+rgX94YeTcTMv/LFJUSByRpc+i4GgVnnhLxvMu/2Y+rqw==",
|
||||
"dev": true
|
||||
},
|
||||
"acorn-dynamic-import": {
|
||||
@ -364,15 +364,15 @@
|
||||
}
|
||||
},
|
||||
"ajv": {
|
||||
"version": "6.5.2",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz",
|
||||
"integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==",
|
||||
"version": "6.5.3",
|
||||
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.3.tgz",
|
||||
"integrity": "sha512-LqZ9wY+fx3UMiiPd741yB2pj3hhil+hQc8taf4o2QGRFpWgZ2V5C8HA165DY9sS3fJwsk7uT7ZlFEyC3Ig3lLg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"fast-deep-equal": "^2.0.1",
|
||||
"fast-json-stable-stringify": "^2.0.0",
|
||||
"json-schema-traverse": "^0.4.1",
|
||||
"uri-js": "^4.2.1"
|
||||
"uri-js": "^4.2.2"
|
||||
}
|
||||
},
|
||||
"ajv-keywords": {
|
||||
@ -541,9 +541,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"atob": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/atob/-/atob-2.1.1.tgz",
|
||||
"integrity": "sha1-ri1acpR38onWDdf5amMUoi3Wwio=",
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz",
|
||||
"integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==",
|
||||
"dev": true
|
||||
},
|
||||
"babel-code-frame": {
|
||||
@ -668,9 +668,9 @@
|
||||
"integrity": "sha512-uZ7bizGTMbEOzIwZmGbXIcGFy8IkZjDoNOy+nPnIv7Dy1MiURItE0PRMnpXO2GPOOq6ZALW8pb5xb9MShD0zQQ=="
|
||||
},
|
||||
"bluebird": {
|
||||
"version": "3.5.1",
|
||||
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz",
|
||||
"integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==",
|
||||
"version": "3.5.2",
|
||||
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.2.tgz",
|
||||
"integrity": "sha512-dhHTWMI7kMx5whMQntl7Vr9C6BvV10lFXDAasnqnrMYhXVCzzk6IO9Fo2L75jXHT07WrOngL1WDXOp+yYS91Yg==",
|
||||
"dev": true
|
||||
},
|
||||
"bn.js": {
|
||||
@ -802,7 +802,7 @@
|
||||
},
|
||||
"buffer": {
|
||||
"version": "4.9.1",
|
||||
"resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz",
|
||||
"resolved": "http://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz",
|
||||
"integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
@ -1324,9 +1324,9 @@
|
||||
}
|
||||
},
|
||||
"elliptic": {
|
||||
"version": "6.4.0",
|
||||
"resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",
|
||||
"integrity": "sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",
|
||||
"version": "6.4.1",
|
||||
"resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.1.tgz",
|
||||
"integrity": "sha512-BsXLz5sqX8OHcsh7CqBMztyXARmGQ3LWPtGjJi6DiJHq5C/qvi9P3OqgswKSDftbu8+IoI/QDTAm2fFnQ9SZSQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"bn.js": "^4.4.0",
|
||||
@ -2267,9 +2267,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"glob": {
|
||||
"version": "7.1.2",
|
||||
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz",
|
||||
"integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==",
|
||||
"version": "7.1.3",
|
||||
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz",
|
||||
"integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==",
|
||||
"requires": {
|
||||
"fs.realpath": "^1.0.0",
|
||||
"inflight": "^1.0.4",
|
||||
@ -3100,9 +3100,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"nan": {
|
||||
"version": "2.10.0",
|
||||
"resolved": "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz",
|
||||
"integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==",
|
||||
"version": "2.11.0",
|
||||
"resolved": "https://registry.npmjs.org/nan/-/nan-2.11.0.tgz",
|
||||
"integrity": "sha512-F4miItu2rGnV2ySkXOQoA8FKz/SR2Q2sWP0sbTxNxz/tuokeC8WxOhPMcwi0qIyGtVn/rrSeLbvVkznqCdwYnw==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
@ -3126,9 +3126,9 @@
|
||||
}
|
||||
},
|
||||
"neo-async": {
|
||||
"version": "2.5.1",
|
||||
"resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.5.1.tgz",
|
||||
"integrity": "sha512-3KL3fvuRkZ7s4IFOMfztb7zJp3QaVWnBeGoJlgB38XnCRPj/0tLzzLG5IB8NYOHbJ8g8UGrgZv44GLDk6CxTxA==",
|
||||
"version": "2.5.2",
|
||||
"resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.5.2.tgz",
|
||||
"integrity": "sha512-vdqTKI9GBIYcAEbFAcpKPErKINfPF5zIuz3/niBfq8WUZjpT2tytLlFVrBgWdOtqI4uaA/Rb6No0hux39XXDuw==",
|
||||
"dev": true
|
||||
},
|
||||
"nice-try": {
|
||||
@ -3602,9 +3602,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"repeat-element": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz",
|
||||
"integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=",
|
||||
"version": "1.1.3",
|
||||
"resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz",
|
||||
"integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==",
|
||||
"dev": true
|
||||
},
|
||||
"repeat-string": {
|
||||
@ -3749,9 +3749,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"schema-utils": {
|
||||
"version": "0.4.5",
|
||||
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.4.5.tgz",
|
||||
"integrity": "sha512-yYrjb9TX2k/J1Y5UNy3KYdZq10xhYcF8nMpAW6o3hy6Q8WSIEf9lJHG/ePnOBfziPM3fvQwfOwa13U/Fh8qTfA==",
|
||||
"version": "0.4.7",
|
||||
"resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.4.7.tgz",
|
||||
"integrity": "sha512-v/iwU6wvwGK8HbU9yi3/nhGzP0yGSuhQMzL6ySiec1FSrZZDkhm4noOSWzrNFo/jEc+SJY6jRTwuwbSXJPDUnQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ajv": "^6.1.0",
|
||||
@ -4242,9 +4242,9 @@
|
||||
}
|
||||
},
|
||||
"ts-loader": {
|
||||
"version": "4.4.2",
|
||||
"resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-4.4.2.tgz",
|
||||
"integrity": "sha512-Z3Y1a7A0KZZ1s/mAZkt74l1NAF7Y5xUhD1V9VB8/1eUlUOk8Qa/oo46tO2Uu5kQ3wXypOlbv77lLQySjXEDcdw==",
|
||||
"version": "4.5.0",
|
||||
"resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-4.5.0.tgz",
|
||||
"integrity": "sha512-ihgVaSmgrX4crGV4n7yuoHPoCHbDzj9aepCZR9TgIx4SgJ9gdnB6xLHgUBb7bsFM/f0K6x9iXa65KY/Fu1Klkw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"chalk": "^2.3.0",
|
||||
@ -4363,9 +4363,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"typescript": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.0.1.tgz",
|
||||
"integrity": "sha512-zQIMOmC+372pC/CCVLqnQ0zSBiY7HHodU7mpQdjiZddek4GMj31I3dUJ7gAs9o65X7mnRma6OokOkc6f9jjfBg==",
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.0.3.tgz",
|
||||
"integrity": "sha512-kk80vLW9iGtjMnIv11qyxLqZm20UklzuR2tL0QAnDIygIUIemcZMxlMWudl9OOt76H3ntVzcTiddQ1/pAAJMYg==",
|
||||
"dev": true
|
||||
},
|
||||
"uglify-es": {
|
||||
@ -4400,9 +4400,9 @@
|
||||
"optional": true
|
||||
},
|
||||
"uglifyjs-webpack-plugin": {
|
||||
"version": "1.2.7",
|
||||
"resolved": "https://registry.npmjs.org/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-1.2.7.tgz",
|
||||
"integrity": "sha512-1VicfKhCYHLS8m1DCApqBhoulnASsEoJ/BvpUpP4zoNAPpKzdH+ghk0olGJMmwX2/jprK2j3hAHdUbczBSy2FA==",
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-1.3.0.tgz",
|
||||
"integrity": "sha512-ovHIch0AMlxjD/97j9AYovZxG5wnHOPkL7T1GKochBADp/Zwc44pEWNqpKl1Loupp1WhFg7SlYmHZRUfdAacgw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"cacache": "^10.0.4",
|
||||
@ -4562,13 +4562,10 @@
|
||||
}
|
||||
},
|
||||
"use": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/use/-/use-3.1.0.tgz",
|
||||
"integrity": "sha512-6UJEQM/L+mzC3ZJNM56Q4DFGLX/evKGRg15UJHGB9X5j5Z3AFbgZvjUh2yq/UJUY4U5dh7Fal++XbNg1uzpRAw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"kind-of": "^6.0.2"
|
||||
}
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz",
|
||||
"integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==",
|
||||
"dev": true
|
||||
},
|
||||
"util": {
|
||||
"version": "0.10.4",
|
||||
@ -4612,9 +4609,9 @@
|
||||
}
|
||||
},
|
||||
"webpack": {
|
||||
"version": "4.16.3",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.16.3.tgz",
|
||||
"integrity": "sha512-3VcrVoFgzSz1IYgga71YpU3HO89Al5bSnDOj9RJQPsy+FNyI1sFsUyJITn3pktNuaRBlQT0usvKZE3GgkPGAIw==",
|
||||
"version": "4.17.2",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.17.2.tgz",
|
||||
"integrity": "sha512-hCK8FPco2Paz9FVMlo3ZdVd7Jsr7qxoiEwhd7f4dMaWBLZtc7E+/9QNee4CYHlVSvpmspWBnhFpx4MiWSl3nNg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.5.13",
|
||||
@ -4641,7 +4638,7 @@
|
||||
"tapable": "^1.0.0",
|
||||
"uglifyjs-webpack-plugin": "^1.2.4",
|
||||
"watchpack": "^1.5.0",
|
||||
"webpack-sources": "^1.0.1"
|
||||
"webpack-sources": "^1.2.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"enhanced-resolve": {
|
||||
@ -4677,9 +4674,9 @@
|
||||
}
|
||||
},
|
||||
"webpack-sources": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.1.0.tgz",
|
||||
"integrity": "sha512-aqYp18kPphgoO5c/+NaUvEeACtZjMESmDChuD3NBciVpah3XpMEU9VAAtIaB1BsfJWWTSdv8Vv1m3T0aRk2dUw==",
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.2.0.tgz",
|
||||
"integrity": "sha512-9BZwxR85dNsjWz3blyxdOhTgtnQvv3OEs5xofI0wPYTwu5kaWxS08UuD1oI7WLBLpRO+ylf0ofnXLXWmGb2WMw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"source-list-map": "^2.0.0",
|
||||
|
10
package.json
10
package.json
@ -13,20 +13,20 @@
|
||||
"dependencies": {
|
||||
"@protobufjs/utf8": "^1.1.0",
|
||||
"binaryen": "49.0.0-nightly.20180731",
|
||||
"glob": "^7.1.2",
|
||||
"glob": "^7.1.3",
|
||||
"long": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^10.5.4",
|
||||
"@types/node": "^10.9.4",
|
||||
"browser-process-hrtime": "^0.1.2",
|
||||
"diff": "^3.5.0",
|
||||
"ts-loader": "^4.4.2",
|
||||
"ts-loader": "^4.5.0",
|
||||
"ts-node": "^6.2.0",
|
||||
"tslint": "^5.11.0",
|
||||
"typedoc": "^0.11.1",
|
||||
"typedoc-plugin-external-module-name": "^1.1.3",
|
||||
"typescript": "^3.0.1",
|
||||
"webpack": "^4.16.3",
|
||||
"typescript": "^3.0.3",
|
||||
"webpack": "^4.17.2",
|
||||
"webpack-cli": "^3.1.0"
|
||||
},
|
||||
"main": "index.js",
|
||||
|
@ -539,7 +539,7 @@ export class Program extends DiagnosticEmitter {
|
||||
this.setExportAndCheckLibrary(
|
||||
exportName,
|
||||
element,
|
||||
currentExport.member.externalName
|
||||
queuedExport.member.externalName
|
||||
);
|
||||
break;
|
||||
}
|
||||
@ -562,7 +562,7 @@ export class Program extends DiagnosticEmitter {
|
||||
this.setExportAndCheckLibrary(
|
||||
exportName,
|
||||
element,
|
||||
currentExport.member.externalName
|
||||
queuedExport.member.externalName
|
||||
);
|
||||
} else {
|
||||
this.error(
|
||||
|
@ -17,7 +17,6 @@ export class String {
|
||||
|
||||
// TODO Add and handle second argument
|
||||
static fromCharCode(code: i32): String {
|
||||
if (!code) return changetype<String>("\0");
|
||||
var out = allocateUnsafe(1);
|
||||
store<u16>(
|
||||
changetype<usize>(out),
|
||||
@ -28,8 +27,7 @@ export class String {
|
||||
}
|
||||
|
||||
static fromCodePoint(code: i32): String {
|
||||
assert(<u32>code <= 0x10FFFF); // Invalid code point range
|
||||
if (!code) return changetype<String>("\0");
|
||||
assert(<u32>code <= 0x10FFFF);
|
||||
var sur = code > 0xFFFF;
|
||||
var out = allocateUnsafe(<i32>sur + 1);
|
||||
if (!sur) {
|
||||
|
39
tests/compiler/rereexport.optimized.wat
Normal file
39
tests/compiler/rereexport.optimized.wat
Normal file
@ -0,0 +1,39 @@
|
||||
(module
|
||||
(type $iii (func (param i32 i32) (result i32)))
|
||||
(type $v (func))
|
||||
(global $export/a i32 (i32.const 1))
|
||||
(global $export/b i32 (i32.const 2))
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "a" (global $export/a))
|
||||
(export "renamed_a" (global $export/a))
|
||||
(export "renamed_b" (global $export/b))
|
||||
(export "renamed_renamed_b" (global $export/b))
|
||||
(start $start)
|
||||
(func $export/add (; 0 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(i32.add
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $export/mul (; 1 ;) (; has Stack IR ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(i32.mul
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $start (; 2 ;) (; has Stack IR ;) (type $v)
|
||||
(drop
|
||||
(i32.add
|
||||
(call $export/add
|
||||
(i32.const 1)
|
||||
(i32.const 2)
|
||||
)
|
||||
(call $export/mul
|
||||
(i32.const 3)
|
||||
(i32.const 4)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
6
tests/compiler/rereexport.ts
Normal file
6
tests/compiler/rereexport.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export {
|
||||
a,
|
||||
a as renamed_a,
|
||||
renamed_b,
|
||||
renamed_b as renamed_renamed_b
|
||||
} from "./reexport";
|
41
tests/compiler/rereexport.untouched.wat
Normal file
41
tests/compiler/rereexport.untouched.wat
Normal file
@ -0,0 +1,41 @@
|
||||
(module
|
||||
(type $iii (func (param i32 i32) (result i32)))
|
||||
(type $v (func))
|
||||
(global $export/a i32 (i32.const 1))
|
||||
(global $export/b i32 (i32.const 2))
|
||||
(global $export/c i32 (i32.const 3))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "a" (global $export/a))
|
||||
(export "renamed_a" (global $export/a))
|
||||
(export "renamed_b" (global $export/b))
|
||||
(export "renamed_renamed_b" (global $export/b))
|
||||
(start $start)
|
||||
(func $export/add (; 0 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(i32.add
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $export/mul (; 1 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(i32.mul
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(func $start (; 2 ;) (type $v)
|
||||
(drop
|
||||
(i32.add
|
||||
(call $export/add
|
||||
(i32.const 1)
|
||||
(i32.const 2)
|
||||
)
|
||||
(call $export/mul
|
||||
(i32.const 3)
|
||||
(i32.const 4)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
@ -136,7 +136,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 16)
|
||||
(i32.const 241)
|
||||
(i32.const 239)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
|
@ -221,7 +221,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 16)
|
||||
(i32.const 241)
|
||||
(i32.const 239)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
|
@ -7673,7 +7673,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 1296)
|
||||
(i32.const 56)
|
||||
(i32.const 54)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -7748,7 +7748,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 1296)
|
||||
(i32.const 108)
|
||||
(i32.const 106)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
|
@ -12195,7 +12195,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 1296)
|
||||
(i32.const 56)
|
||||
(i32.const 54)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -12289,7 +12289,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 1296)
|
||||
(i32.const 108)
|
||||
(i32.const 106)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
|
@ -25,8 +25,8 @@
|
||||
(data (i32.const 8) "\10\00\00\00h\00i\00,\00 \00I\00\'\00m\00 \00a\00 \00s\00t\00r\00i\00n\00g")
|
||||
(data (i32.const 48) "\0d\00\00\00s\00t\00d\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s")
|
||||
(data (i32.const 80) "\0e\00\00\00~\00l\00i\00b\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s")
|
||||
(data (i32.const 112) "\01")
|
||||
(data (i32.const 120) "\17\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s")
|
||||
(data (i32.const 112) "\17\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s")
|
||||
(data (i32.const 168) "\01")
|
||||
(data (i32.const 176) "\01\00\00\006")
|
||||
(data (i32.const 184) "\02\00\00\004\d8\06\df")
|
||||
(data (i32.const 192) "\02\00\00\00h\00i")
|
||||
@ -119,7 +119,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 73)
|
||||
(i32.const 71)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -254,7 +254,7 @@
|
||||
(block
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 120)
|
||||
(i32.const 112)
|
||||
(i32.const 14)
|
||||
(i32.const 2)
|
||||
)
|
||||
@ -279,14 +279,6 @@
|
||||
)
|
||||
(func $~lib/string/String.fromCharCode (; 4 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(if
|
||||
(i32.eqz
|
||||
(get_local $0)
|
||||
)
|
||||
(return
|
||||
(i32.const 112)
|
||||
)
|
||||
)
|
||||
(i32.store16 offset=4
|
||||
(tee_local $1
|
||||
(call $~lib/internal/string/allocateUnsafe
|
||||
@ -430,20 +422,12 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 31)
|
||||
(i32.const 30)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
)
|
||||
)
|
||||
(if
|
||||
(i32.eqz
|
||||
(get_local $0)
|
||||
)
|
||||
(return
|
||||
(i32.const 112)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(call $~lib/internal/string/allocateUnsafe
|
||||
(i32.add
|
||||
@ -504,7 +488,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 241)
|
||||
(i32.const 239)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -576,7 +560,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 122)
|
||||
(i32.const 120)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -672,7 +656,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 210)
|
||||
(i32.const 208)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -2787,7 +2771,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 347)
|
||||
(i32.const 345)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -2931,7 +2915,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 367)
|
||||
(i32.const 365)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -3077,7 +3061,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 226)
|
||||
(i32.const 224)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -3732,7 +3716,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 515)
|
||||
(i32.const 513)
|
||||
(i32.const 10)
|
||||
)
|
||||
(unreachable)
|
||||
@ -3830,7 +3814,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 108)
|
||||
(i32.const 106)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -4226,7 +4210,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 387)
|
||||
(i32.const 385)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -4262,7 +4246,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 392)
|
||||
(i32.const 390)
|
||||
(i32.const 6)
|
||||
)
|
||||
(unreachable)
|
||||
@ -4975,7 +4959,7 @@
|
||||
(call $~lib/string/String.fromCharCode
|
||||
(i32.const 0)
|
||||
)
|
||||
(i32.const 112)
|
||||
(i32.const 168)
|
||||
)
|
||||
)
|
||||
(block
|
||||
@ -5032,7 +5016,7 @@
|
||||
(call $~lib/string/String.fromCodePoint
|
||||
(i32.const 0)
|
||||
)
|
||||
(i32.const 112)
|
||||
(i32.const 168)
|
||||
)
|
||||
)
|
||||
(block
|
||||
|
@ -66,8 +66,8 @@
|
||||
(data (i32.const 8) "\10\00\00\00h\00i\00,\00 \00I\00\'\00m\00 \00a\00 \00s\00t\00r\00i\00n\00g\00")
|
||||
(data (i32.const 48) "\0d\00\00\00s\00t\00d\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s\00")
|
||||
(data (i32.const 80) "\0e\00\00\00~\00l\00i\00b\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s\00")
|
||||
(data (i32.const 112) "\01\00\00\00\00\00")
|
||||
(data (i32.const 120) "\17\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s\00")
|
||||
(data (i32.const 112) "\17\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00s\00t\00r\00i\00n\00g\00.\00t\00s\00")
|
||||
(data (i32.const 168) "\01\00\00\00\00\00")
|
||||
(data (i32.const 176) "\01\00\00\006\00")
|
||||
(data (i32.const 184) "\02\00\00\004\d8\06\df")
|
||||
(data (i32.const 192) "\02\00\00\00h\00i\00")
|
||||
@ -164,7 +164,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 73)
|
||||
(i32.const 71)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -324,7 +324,7 @@
|
||||
(block
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 120)
|
||||
(i32.const 112)
|
||||
(i32.const 14)
|
||||
(i32.const 2)
|
||||
)
|
||||
@ -357,14 +357,6 @@
|
||||
)
|
||||
(func $~lib/string/String.fromCharCode (; 4 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(if
|
||||
(i32.eqz
|
||||
(get_local $0)
|
||||
)
|
||||
(return
|
||||
(i32.const 112)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(call $~lib/internal/string/allocateUnsafe
|
||||
(i32.const 1)
|
||||
@ -520,20 +512,12 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 31)
|
||||
(i32.const 30)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
)
|
||||
)
|
||||
(if
|
||||
(i32.eqz
|
||||
(get_local $0)
|
||||
)
|
||||
(return
|
||||
(i32.const 112)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(i32.gt_s
|
||||
(get_local $0)
|
||||
@ -613,7 +597,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 241)
|
||||
(i32.const 239)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -705,7 +689,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 122)
|
||||
(i32.const 120)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -817,7 +801,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 210)
|
||||
(i32.const 208)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -3465,7 +3449,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 347)
|
||||
(i32.const 345)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -3615,7 +3599,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 367)
|
||||
(i32.const 365)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -3766,7 +3750,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 226)
|
||||
(i32.const 224)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -4479,7 +4463,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 515)
|
||||
(i32.const 513)
|
||||
(i32.const 10)
|
||||
)
|
||||
(unreachable)
|
||||
@ -4588,7 +4572,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 108)
|
||||
(i32.const 106)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -5026,7 +5010,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 387)
|
||||
(i32.const 385)
|
||||
(i32.const 4)
|
||||
)
|
||||
(unreachable)
|
||||
@ -5061,7 +5045,7 @@
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 80)
|
||||
(i32.const 392)
|
||||
(i32.const 390)
|
||||
(i32.const 6)
|
||||
)
|
||||
(unreachable)
|
||||
@ -5969,7 +5953,7 @@
|
||||
(call $~lib/string/String.fromCharCode
|
||||
(i32.const 0)
|
||||
)
|
||||
(i32.const 112)
|
||||
(i32.const 168)
|
||||
)
|
||||
)
|
||||
(block
|
||||
@ -6029,7 +6013,7 @@
|
||||
(call $~lib/string/String.fromCodePoint
|
||||
(i32.const 0)
|
||||
)
|
||||
(i32.const 112)
|
||||
(i32.const 168)
|
||||
)
|
||||
)
|
||||
(block
|
||||
|
Loading…
x
Reference in New Issue
Block a user