@browserless.io/browserless 2.2.0-beta-8 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -2
- package/bin/browserless.js +1 -1
- package/bin/scaffold/README.md +8 -7
- package/build/browserless.js +7 -6
- package/build/browsers/chrome.cdp.d.ts +6 -0
- package/build/browsers/chrome.cdp.js +6 -0
- package/build/browsers/chrome.playwright.d.ts +6 -0
- package/build/browsers/chrome.playwright.js +6 -0
- package/build/browsers/{cdp-chromium.d.ts → chromium.cdp.d.ts} +3 -2
- package/build/browsers/{cdp-chromium.js → chromium.cdp.js} +16 -10
- package/build/browsers/{playwright-chromium.d.ts → chromium.playwright.d.ts} +3 -2
- package/build/browsers/{playwright-chromium.js → chromium.playwright.js} +6 -5
- package/build/browsers/{playwright-firefox.d.ts → firefox.playwright.d.ts} +2 -2
- package/build/browsers/{playwright-firefox.js → firefox.playwright.js} +4 -4
- package/build/browsers/index.d.ts +20 -10
- package/build/browsers/index.js +110 -11
- package/build/browsers/{playwright-webkit.d.ts → webkit.playwright.d.ts} +2 -2
- package/build/browsers/{playwright-webkit.js → webkit.playwright.js} +4 -4
- package/build/data/selectors.json +1 -1
- package/build/exports.d.ts +6 -4
- package/build/exports.js +6 -4
- package/build/hooks.d.ts +4 -5
- package/build/hooks.js +4 -6
- package/build/http.d.ts +22 -1
- package/build/http.js +21 -0
- package/build/router.js +19 -3
- package/build/routes/{chromium/http/content-post.body.json → chrome/http/content.post.body.json} +8 -8
- package/build/routes/chrome/http/content.post.d.ts +7 -0
- package/build/routes/chrome/http/content.post.js +6 -0
- package/build/routes/chrome/http/download.post.d.ts +7 -0
- package/build/routes/chrome/http/download.post.js +6 -0
- package/build/routes/chrome/http/function.post.d.ts +7 -0
- package/build/routes/chrome/http/function.post.js +6 -0
- package/build/routes/chrome/http/json-list.get.d.ts +1 -0
- package/build/routes/chrome/http/json-list.get.js +1 -0
- package/build/routes/chrome/http/json-new.put.d.ts +1 -0
- package/build/routes/chrome/http/json-new.put.js +1 -0
- package/build/routes/chrome/http/json-protocol.get.d.ts +1 -0
- package/build/routes/chrome/http/json-protocol.get.js +1 -0
- package/build/routes/chrome/http/json-version.get.d.ts +1 -0
- package/build/routes/chrome/http/json-version.get.js +1 -0
- package/build/routes/chrome/http/json-version.get.response.json +44 -0
- package/build/routes/{chromium/http/pdf-post.body.json → chrome/http/pdf.post.body.json} +8 -8
- package/build/routes/chrome/http/pdf.post.d.ts +7 -0
- package/build/routes/chrome/http/pdf.post.js +6 -0
- package/build/routes/chrome/http/performance.post.d.ts +7 -0
- package/build/routes/chrome/http/performance.post.js +6 -0
- package/build/routes/{chromium/http/scrape-post.body.json → chrome/http/scrape.post.body.json} +8 -8
- package/build/routes/chrome/http/scrape.post.d.ts +7 -0
- package/build/routes/chrome/http/scrape.post.js +6 -0
- package/build/routes/{chromium/http/screenshot-post.body.json → chrome/http/screenshot.post.body.json} +8 -8
- package/build/routes/chrome/http/screenshot.post.d.ts +7 -0
- package/build/routes/chrome/http/screenshot.post.js +6 -0
- package/build/routes/chrome/tests/content.spec.js +311 -0
- package/build/routes/chrome/tests/download.spec.js +67 -0
- package/build/routes/chrome/tests/function.spec.d.ts +1 -0
- package/build/routes/chrome/tests/function.spec.js +245 -0
- package/build/routes/chrome/tests/json-version.spec.d.ts +1 -0
- package/build/routes/chrome/tests/json-version.spec.js +37 -0
- package/build/routes/chrome/tests/page-websocket.spec.d.ts +1 -0
- package/build/routes/chrome/tests/page-websocket.spec.js +97 -0
- package/build/routes/chrome/tests/pdf.spec.d.ts +1 -0
- package/build/routes/chrome/tests/pdf.spec.js +333 -0
- package/build/routes/chrome/tests/performance.spec.d.ts +1 -0
- package/build/routes/chrome/tests/performance.spec.js +124 -0
- package/build/routes/chrome/tests/scrape.spec.d.ts +1 -0
- package/build/routes/chrome/tests/scrape.spec.js +354 -0
- package/build/routes/chrome/tests/screenshot.spec.d.ts +1 -0
- package/build/routes/chrome/tests/screenshot.spec.js +339 -0
- package/build/routes/chrome/tests/websocket.spec.d.ts +1 -0
- package/build/routes/chrome/tests/websocket.spec.js +371 -0
- package/build/routes/chrome/ws/browser.d.ts +6 -0
- package/build/routes/chrome/ws/browser.js +5 -0
- package/build/routes/chrome/ws/cdp.d.ts +7 -0
- package/build/routes/chrome/ws/cdp.js +6 -0
- package/build/routes/chrome/ws/cdp.query.json +120 -0
- package/build/routes/chrome/ws/page.d.ts +6 -0
- package/build/routes/chrome/ws/page.js +5 -0
- package/build/routes/chrome/ws/page.query.json +120 -0
- package/build/routes/chrome/ws/playwright.d.ts +7 -0
- package/build/routes/chrome/ws/playwright.js +6 -0
- package/build/routes/chromium/http/content.post.body.json +510 -0
- package/build/routes/chromium/http/content.post.d.ts +1 -0
- package/build/routes/chromium/http/content.post.js +1 -0
- package/build/routes/chromium/http/content.post.query.json +183 -0
- package/build/routes/chromium/http/content.post.response.json +5 -0
- package/build/routes/chromium/http/download.post.body.json +32 -0
- package/build/routes/chromium/http/download.post.d.ts +1 -0
- package/build/routes/chromium/http/download.post.js +1 -0
- package/build/routes/chromium/http/download.post.query.json +120 -0
- package/build/routes/chromium/http/download.post.response.json +4 -0
- package/build/routes/chromium/http/function.post.body.json +32 -0
- package/build/routes/chromium/http/function.post.d.ts +1 -0
- package/build/routes/chromium/http/function.post.js +1 -0
- package/build/routes/chromium/http/function.post.query.json +120 -0
- package/build/routes/chromium/http/function.post.response.json +4 -0
- package/build/routes/chromium/http/json-list.get.d.ts +1 -0
- package/build/routes/chromium/http/json-list.get.js +1 -0
- package/build/routes/chromium/http/json-list.get.response.json +52 -0
- package/build/routes/chromium/http/json-new.put.d.ts +1 -0
- package/build/routes/chromium/http/json-new.put.js +1 -0
- package/build/routes/chromium/http/json-new.put.response.json +44 -0
- package/build/routes/chromium/http/json-protocol.get.d.ts +1 -0
- package/build/routes/chromium/http/json-protocol.get.js +1 -0
- package/build/routes/chromium/http/json-protocol.get.response.json +6 -0
- package/build/routes/chromium/http/json-version.get.d.ts +1 -0
- package/build/routes/chromium/http/json-version.get.js +1 -0
- package/build/routes/chromium/http/json-version.get.response.json +44 -0
- package/build/routes/chromium/http/pdf.post.body.json +654 -0
- package/build/routes/chromium/http/pdf.post.d.ts +1 -0
- package/build/routes/chromium/http/pdf.post.js +1 -0
- package/build/routes/chromium/http/pdf.post.query.json +120 -0
- package/build/routes/chromium/http/pdf.post.response.json +5 -0
- package/build/routes/chromium/http/performance.post.body.json +26 -0
- package/build/routes/chromium/http/performance.post.d.ts +1 -0
- package/build/routes/chromium/http/performance.post.js +1 -0
- package/build/routes/chromium/http/performance.post.query.json +120 -0
- package/build/routes/chromium/http/performance.post.response.json +7 -0
- package/build/routes/chromium/http/scrape.post.body.json +557 -0
- package/build/routes/chromium/http/scrape.post.d.ts +1 -0
- package/build/routes/chromium/http/scrape.post.js +1 -0
- package/build/routes/chromium/http/scrape.post.query.json +183 -0
- package/build/routes/chromium/http/scrape.post.response.json +309 -0
- package/build/routes/chromium/http/screenshot.post.body.json +600 -0
- package/build/routes/chromium/http/screenshot.post.d.ts +1 -0
- package/build/routes/chromium/http/screenshot.post.js +1 -0
- package/build/routes/chromium/http/screenshot.post.query.json +120 -0
- package/build/routes/chromium/http/screenshot.post.response.json +5 -0
- package/build/routes/chromium/tests/content.spec.js +16 -16
- package/build/routes/chromium/tests/download.spec.js +3 -3
- package/build/routes/chromium/tests/function.spec.js +10 -10
- package/build/routes/chromium/tests/page-websocket.spec.d.ts +1 -0
- package/build/routes/chromium/tests/page-websocket.spec.js +97 -0
- package/build/routes/chromium/tests/pdf.spec.js +16 -16
- package/build/routes/chromium/tests/performance.spec.js +7 -7
- package/build/routes/chromium/tests/scrape.spec.js +15 -15
- package/build/routes/chromium/tests/screenshot.spec.js +17 -17
- package/build/routes/chromium/tests/websocket.spec.js +31 -37
- package/build/routes/chromium/ws/browser.d.ts +1 -16
- package/build/routes/chromium/ws/browser.js +1 -10
- package/build/routes/chromium/ws/cdp.d.ts +1 -0
- package/build/routes/chromium/ws/cdp.js +1 -0
- package/build/routes/chromium/ws/cdp.query.json +120 -0
- package/build/routes/chromium/ws/page.d.ts +1 -16
- package/build/routes/chromium/ws/page.js +1 -10
- package/build/routes/chromium/ws/playwright.d.ts +1 -0
- package/build/routes/chromium/ws/playwright.js +1 -0
- package/build/routes/firefox/ws/{playwright-firefox.d.ts → playwright.d.ts} +5 -5
- package/build/routes/firefox/ws/{playwright-firefox.js → playwright.js} +4 -4
- package/build/routes/management/http/{sessions-get.response.json → sessions.get.response.json} +11 -1
- package/build/routes/management/http/{static-get.js → static.get.js} +2 -2
- package/build/routes/webkit/ws/{playwright-webkit.d.ts → playwright.d.ts} +5 -5
- package/build/routes/webkit/ws/{playwright-webkit.js → playwright.js} +4 -4
- package/build/routes/webkit/ws/playwright.query.json +100 -0
- package/build/{routes/chromium/ws/cdp-chromium.d.ts → shared/browser.ws.d.ts} +4 -4
- package/build/shared/browser.ws.js +12 -0
- package/build/{routes/chromium/ws/playwright-chromium.d.ts → shared/chromium.playwright.ws.d.ts} +4 -4
- package/build/{routes/chromium/ws/playwright-chromium.js → shared/chromium.playwright.ws.js} +6 -3
- package/build/shared/chromium.ws.d.ts +16 -0
- package/build/shared/chromium.ws.js +10 -0
- package/build/{routes/chromium/http/content-post.d.ts → shared/content.http.d.ts} +3 -3
- package/build/{routes/chromium/http/content-post.js → shared/content.http.js} +3 -3
- package/build/{routes/chromium/http/download-post.d.ts → shared/download.http.d.ts} +3 -3
- package/build/{routes/chromium/http/download-post.js → shared/download.http.js} +4 -4
- package/build/{routes/chromium/http/function-post.d.ts → shared/function.http.d.ts} +3 -3
- package/build/{routes/chromium/http/function-post.js → shared/function.http.js} +4 -4
- package/build/{routes/chromium/http/json-new.d.ts → shared/json-list.http.d.ts} +2 -3
- package/build/{routes/chromium/http/json-list.js → shared/json-list.http.js} +5 -8
- package/build/{routes/chromium/http/json-list.d.ts → shared/json-new.http.d.ts} +2 -3
- package/build/shared/json-new.http.js +34 -0
- package/build/{routes/chromium/http/json-protocol-get.js → shared/json-protocol.http.js} +2 -2
- package/build/{routes/chromium/http/json-version-get.js → shared/json-version.http.js} +3 -3
- package/build/shared/page.ws.d.ts +16 -0
- package/build/shared/page.ws.js +13 -0
- package/build/{routes/chromium/http/pdf-post.d.ts → shared/pdf.http.d.ts} +3 -3
- package/build/{routes/chromium/http/pdf-post.js → shared/pdf.http.js} +3 -3
- package/build/{routes/chromium/http/performance.d.ts → shared/performance.http.d.ts} +3 -3
- package/build/{routes/chromium/http/performance.js → shared/performance.http.js} +4 -4
- package/build/{routes/chromium/http/scrape-post.d.ts → shared/scrape.http.d.ts} +3 -3
- package/build/{routes/chromium/http/scrape-post.js → shared/scrape.http.js} +3 -3
- package/build/{routes/chromium/http/screenshot-post.d.ts → shared/screenshot.http.d.ts} +3 -3
- package/build/{routes/chromium/http/screenshot-post.js → shared/screenshot.http.js} +3 -3
- package/build/shared/utils/performance/child.d.ts +1 -0
- package/build/{routes/chromium → shared}/utils/performance/main.js +1 -1
- package/build/shared/utils/performance/types.js +1 -0
- package/build/shim.js +2 -1
- package/build/types.d.ts +10 -8
- package/build/utils.d.ts +8 -3
- package/build/utils.js +24 -11
- package/docker/base/Dockerfile +1 -1
- package/docker/chrome/Dockerfile +4 -4
- package/docker/chromium/.dockerignore +16 -0
- package/docker/chromium/Dockerfile +40 -0
- package/docker/firefox/Dockerfile +1 -1
- package/docker/multi/Dockerfile +13 -1
- package/docker/webkit/Dockerfile +1 -1
- package/extensions/ublock/3p-filters.html +1 -1
- package/extensions/ublock/_locales/ar/messages.json +4 -0
- package/extensions/ublock/_locales/az/messages.json +4 -0
- package/extensions/ublock/_locales/be/messages.json +4 -0
- package/extensions/ublock/_locales/bg/messages.json +5 -1
- package/extensions/ublock/_locales/bn/messages.json +4 -0
- package/extensions/ublock/_locales/br_FR/messages.json +6 -2
- package/extensions/ublock/_locales/bs/messages.json +4 -0
- package/extensions/ublock/_locales/ca/messages.json +4 -0
- package/extensions/ublock/_locales/cs/messages.json +4 -0
- package/extensions/ublock/_locales/cv/messages.json +4 -0
- package/extensions/ublock/_locales/cy/messages.json +1294 -0
- package/extensions/ublock/_locales/da/messages.json +4 -0
- package/extensions/ublock/_locales/de/messages.json +5 -1
- package/extensions/ublock/_locales/el/messages.json +4 -0
- package/extensions/ublock/_locales/en/messages.json +4 -0
- package/extensions/ublock/_locales/en_GB/messages.json +4 -0
- package/extensions/ublock/_locales/eo/messages.json +9 -5
- package/extensions/ublock/_locales/es/messages.json +4 -0
- package/extensions/ublock/_locales/et/messages.json +4 -0
- package/extensions/ublock/_locales/eu/messages.json +8 -4
- package/extensions/ublock/_locales/fa/messages.json +4 -0
- package/extensions/ublock/_locales/fi/messages.json +4 -0
- package/extensions/ublock/_locales/fil/messages.json +4 -0
- package/extensions/ublock/_locales/fr/messages.json +4 -0
- package/extensions/ublock/_locales/fy/messages.json +4 -0
- package/extensions/ublock/_locales/gl/messages.json +4 -0
- package/extensions/ublock/_locales/gu/messages.json +4 -0
- package/extensions/ublock/_locales/he/messages.json +4 -0
- package/extensions/ublock/_locales/hi/messages.json +4 -0
- package/extensions/ublock/_locales/hr/messages.json +4 -0
- package/extensions/ublock/_locales/hu/messages.json +4 -0
- package/extensions/ublock/_locales/hy/messages.json +4 -0
- package/extensions/ublock/_locales/id/messages.json +5 -1
- package/extensions/ublock/_locales/it/messages.json +4 -0
- package/extensions/ublock/_locales/ja/messages.json +4 -0
- package/extensions/ublock/_locales/ka/messages.json +34 -30
- package/extensions/ublock/_locales/kk/messages.json +4 -0
- package/extensions/ublock/_locales/kn/messages.json +4 -0
- package/extensions/ublock/_locales/ko/messages.json +4 -0
- package/extensions/ublock/_locales/ku/messages.json +4 -0
- package/extensions/ublock/_locales/lt/messages.json +4 -0
- package/extensions/ublock/_locales/lv/messages.json +4 -0
- package/extensions/ublock/_locales/mk/messages.json +4 -0
- package/extensions/ublock/_locales/ml/messages.json +4 -0
- package/extensions/ublock/_locales/mr/messages.json +4 -0
- package/extensions/ublock/_locales/ms/messages.json +13 -9
- package/extensions/ublock/_locales/nb/messages.json +4 -0
- package/extensions/ublock/_locales/nl/messages.json +4 -0
- package/extensions/ublock/_locales/no/messages.json +4 -0
- package/extensions/ublock/_locales/oc/messages.json +4 -0
- package/extensions/ublock/_locales/pa/messages.json +4 -0
- package/extensions/ublock/_locales/pl/messages.json +5 -1
- package/extensions/ublock/_locales/pt_BR/messages.json +4 -0
- package/extensions/ublock/_locales/pt_PT/messages.json +4 -0
- package/extensions/ublock/_locales/ro/messages.json +5 -1
- package/extensions/ublock/_locales/ru/messages.json +4 -0
- package/extensions/ublock/_locales/si/messages.json +4 -0
- package/extensions/ublock/_locales/sk/messages.json +4 -0
- package/extensions/ublock/_locales/sl/messages.json +4 -0
- package/extensions/ublock/_locales/so/messages.json +4 -0
- package/extensions/ublock/_locales/sq/messages.json +4 -0
- package/extensions/ublock/_locales/sr/messages.json +4 -0
- package/extensions/ublock/_locales/sv/messages.json +4 -0
- package/extensions/ublock/_locales/sw/messages.json +4 -0
- package/extensions/ublock/_locales/ta/messages.json +4 -0
- package/extensions/ublock/_locales/te/messages.json +4 -0
- package/extensions/ublock/_locales/th/messages.json +12 -8
- package/extensions/ublock/_locales/tr/messages.json +4 -0
- package/extensions/ublock/_locales/uk/messages.json +4 -0
- package/extensions/ublock/_locales/ur/messages.json +4 -0
- package/extensions/ublock/_locales/vi/messages.json +4 -0
- package/extensions/ublock/_locales/zh_CN/messages.json +6 -2
- package/extensions/ublock/_locales/zh_TW/messages.json +6 -2
- package/extensions/ublock/assets/assets.json +11 -11
- package/extensions/ublock/assets/resources/scriptlets.js +660 -378
- package/extensions/ublock/assets/thirdparties/easylist/easylist.txt +7173 -3455
- package/extensions/ublock/assets/thirdparties/easylist/easyprivacy.txt +18829 -1918
- package/extensions/ublock/assets/thirdparties/pgl.yoyo.org/as/serverlist +21 -26
- package/extensions/ublock/assets/thirdparties/publicsuffix.org/list/effective_tld_names.dat +118 -46
- package/extensions/ublock/assets/thirdparties/urlhaus-filter/urlhaus-filter-online.txt +710 -1117
- package/extensions/ublock/assets/ublock/badlists.txt +0 -4
- package/extensions/ublock/assets/ublock/badware.min.txt +116 -105
- package/extensions/ublock/assets/ublock/filters.min.txt +1443 -1097
- package/extensions/ublock/assets/ublock/privacy.min.txt +50 -31
- package/extensions/ublock/assets/ublock/quick-fixes.min.txt +97 -108
- package/extensions/ublock/assets/ublock/unbreak.min.txt +64 -21
- package/extensions/ublock/css/1p-filters.css +4 -0
- package/extensions/ublock/css/3p-filters.css +6 -4
- package/extensions/ublock/css/common.css +1 -1
- package/extensions/ublock/css/fa-icons.css +1 -0
- package/extensions/ublock/css/logger-ui.css +72 -52
- package/extensions/ublock/css/popup-fenix.css +1 -1
- package/extensions/ublock/img/fontawesome/fontawesome-defs.svg +1 -0
- package/extensions/ublock/js/3p-filters.js +3 -3
- package/extensions/ublock/js/assets.js +7 -4
- package/extensions/ublock/js/background.js +1 -3
- package/extensions/ublock/js/benchmarks.js +1 -0
- package/extensions/ublock/js/broadcast.js +12 -0
- package/extensions/ublock/js/click2load.js +2 -3
- package/extensions/ublock/js/codemirror/ubo-static-filtering.js +1 -0
- package/extensions/ublock/js/commands.js +10 -0
- package/extensions/ublock/js/contentscript-extra.js +13 -11
- package/extensions/ublock/js/contentscript.js +0 -31
- package/extensions/ublock/js/contextmenu.js +5 -1
- package/extensions/ublock/js/dyna-rules.js +83 -52
- package/extensions/ublock/js/fa-icons.js +1 -0
- package/extensions/ublock/js/filtering-context.js +0 -2
- package/extensions/ublock/js/i18n.js +1 -5
- package/extensions/ublock/js/logger-ui.js +71 -38
- package/extensions/ublock/js/logger.js +18 -14
- package/extensions/ublock/js/messaging.js +17 -5
- package/extensions/ublock/js/popup-fenix.js +6 -6
- package/extensions/ublock/js/scriptlet-filtering-core.js +14 -12
- package/extensions/ublock/js/scriptlet-filtering.js +149 -53
- package/extensions/ublock/js/scriptlets/scriptlet-loglevel-1.js +49 -0
- package/extensions/ublock/js/scriptlets/scriptlet-loglevel-2.js +49 -0
- package/extensions/ublock/js/scriptlets/should-inject-contentscript.js +1 -1
- package/extensions/ublock/js/static-dnr-filtering.js +4 -2
- package/extensions/ublock/js/static-filtering-parser.js +14 -8
- package/extensions/ublock/js/static-net-filtering.js +32 -30
- package/extensions/ublock/js/storage.js +18 -4
- package/extensions/ublock/js/traffic.js +3 -3
- package/extensions/ublock/js/ublock.js +1 -1
- package/extensions/ublock/js/vapi-background.js +15 -7
- package/extensions/ublock/logger-ui.html +18 -10
- package/extensions/ublock/manifest.json +4 -1
- package/extensions/ublock/web_accessible_resources/chartbeat.js +3 -0
- package/package.json +12 -11
- package/scripts/build-function.js +1 -1
- package/scripts/build-open-api.js +3 -2
- package/scripts/clean.js +6 -1
- package/scripts/install-debugger.js +20 -0
- package/scripts/install-devtools.js +40 -0
- package/src/browserless.ts +11 -9
- package/src/browsers/chrome.cdp.ts +10 -0
- package/src/browsers/chrome.playwright.ts +10 -0
- package/src/browsers/{cdp-chromium.ts → chromium.cdp.ts} +20 -13
- package/src/browsers/{playwright-chromium.ts → chromium.playwright.ts} +7 -6
- package/src/browsers/{playwright-firefox.ts → firefox.playwright.ts} +5 -5
- package/src/browsers/index.ts +160 -23
- package/src/browsers/{playwright-webkit.ts → webkit.playwright.ts} +5 -5
- package/src/exports.ts +6 -4
- package/src/hooks.ts +4 -12
- package/src/http.ts +21 -0
- package/src/router.ts +21 -5
- package/src/routes/chrome/http/content.post.ts +14 -0
- package/src/routes/chrome/http/download.post.ts +14 -0
- package/src/routes/chrome/http/function.post.ts +14 -0
- package/src/routes/chrome/http/json-list.get.ts +1 -0
- package/src/routes/chrome/http/json-new.put.ts +1 -0
- package/src/routes/chrome/http/json-protocol.get.ts +1 -0
- package/src/routes/chrome/http/json-version.get.ts +1 -0
- package/src/routes/chrome/http/pdf.post.ts +14 -0
- package/src/routes/chrome/http/performance.post.ts +14 -0
- package/src/routes/chrome/http/scrape.post.ts +14 -0
- package/src/routes/chrome/http/screenshot.post.ts +14 -0
- package/src/routes/chrome/tests/content.spec.ts +375 -0
- package/src/routes/chrome/tests/download.spec.ts +77 -0
- package/src/routes/chrome/tests/function.spec.ts +282 -0
- package/src/routes/chrome/tests/json-version.spec.ts +52 -0
- package/src/routes/chrome/tests/page-websocket.spec.ts +129 -0
- package/src/routes/chrome/tests/pdf.spec.ts +380 -0
- package/src/routes/chrome/tests/performance.spec.ts +155 -0
- package/src/routes/chrome/tests/scrape.spec.ts +417 -0
- package/src/routes/chrome/tests/screenshot.spec.ts +387 -0
- package/src/routes/chrome/tests/websocket.spec.ts +491 -0
- package/src/routes/chrome/ws/browser.ts +8 -0
- package/src/routes/chrome/ws/cdp.ts +12 -0
- package/src/routes/chrome/ws/page.ts +8 -0
- package/src/routes/chrome/ws/playwright.ts +12 -0
- package/src/routes/chromium/http/content.post.ts +6 -0
- package/src/routes/chromium/http/download.post.ts +6 -0
- package/src/routes/chromium/http/function.post.ts +6 -0
- package/src/routes/chromium/http/json-list.get.ts +1 -0
- package/src/routes/chromium/http/json-new.put.ts +1 -0
- package/src/routes/chromium/http/json-protocol.get.ts +1 -0
- package/src/routes/chromium/http/json-version.get.ts +1 -0
- package/src/routes/chromium/http/pdf.post.ts +6 -0
- package/src/routes/chromium/http/performance.post.ts +6 -0
- package/src/routes/chromium/http/scrape.post.ts +6 -0
- package/src/routes/chromium/http/screenshot.post.ts +6 -0
- package/src/routes/chromium/tests/content.spec.ts +36 -28
- package/src/routes/chromium/tests/download.spec.ts +3 -3
- package/src/routes/chromium/tests/function.spec.ts +18 -15
- package/src/routes/chromium/tests/page-websocket.spec.ts +129 -0
- package/src/routes/chromium/tests/pdf.spec.ts +31 -26
- package/src/routes/chromium/tests/performance.spec.ts +46 -34
- package/src/routes/chromium/tests/scrape.spec.ts +23 -20
- package/src/routes/chromium/tests/screenshot.spec.ts +24 -24
- package/src/routes/chromium/tests/websocket.spec.ts +31 -40
- package/src/routes/chromium/ws/browser.ts +1 -29
- package/src/routes/chromium/ws/cdp.ts +1 -0
- package/src/routes/chromium/ws/page.ts +1 -29
- package/src/routes/chromium/ws/playwright.ts +4 -0
- package/src/routes/firefox/ws/{playwright-firefox.ts → playwright.ts} +5 -5
- package/src/routes/management/http/{static-get.ts → static.get.ts} +2 -2
- package/src/routes/webkit/ws/{playwright-webkit.ts → playwright.ts} +5 -5
- package/src/shared/browser.ws.ts +34 -0
- package/src/{routes/chromium/ws/playwright-chromium.ts → shared/chromium.playwright.ws.ts} +7 -4
- package/src/{routes/chromium/ws/cdp-chromium.ts → shared/chromium.ws.ts} +6 -6
- package/src/{routes/chromium/http/content-post.ts → shared/content.http.ts} +4 -4
- package/src/{routes/chromium/http/download-post.ts → shared/download.http.ts} +4 -4
- package/src/{routes/chromium/http/function-post.ts → shared/function.http.ts} +4 -4
- package/src/shared/json-list.http.ts +35 -0
- package/src/{routes/chromium/http/json-new.ts → shared/json-new.http.ts} +23 -7
- package/src/{routes/chromium/http/json-protocol-get.ts → shared/json-protocol.http.ts} +3 -5
- package/src/{routes/chromium/http/json-version-get.ts → shared/json-version.http.ts} +4 -5
- package/src/shared/page.ws.ts +35 -0
- package/src/{routes/chromium/http/pdf-post.ts → shared/pdf.http.ts} +4 -4
- package/src/{routes/chromium/http/performance.ts → shared/performance.http.ts} +4 -4
- package/src/{routes/chromium/http/scrape-post.ts → shared/scrape.http.ts} +4 -4
- package/src/{routes/chromium/http/screenshot-post.ts → shared/screenshot.http.ts} +4 -4
- package/src/{routes/chromium → shared}/utils/function/handler.ts +2 -2
- package/src/{routes/chromium → shared}/utils/performance/main.ts +1 -2
- package/src/shim.ts +2 -1
- package/src/types.ts +27 -20
- package/src/utils.ts +32 -14
- package/static/devtools/Images/accelerometer-back.svg +1 -0
- package/static/devtools/Images/accelerometer-bottom.png +0 -0
- package/static/devtools/Images/accelerometer-front.svg +1 -0
- package/static/devtools/Images/accelerometer-left.png +0 -0
- package/static/devtools/Images/accelerometer-right.png +0 -0
- package/static/devtools/Images/accelerometer-top.png +0 -0
- package/static/devtools/Images/baseline-icon.svg +1 -0
- package/static/devtools/Images/breaking_change_icon.svg +1 -0
- package/static/devtools/Images/checkboxCheckmark.svg +1 -0
- package/static/devtools/Images/checker.png +0 -0
- package/static/devtools/Images/chevrons.svg +1 -0
- package/static/devtools/Images/chromeDisabledSelect.png +0 -0
- package/static/devtools/Images/chromeDisabledSelect_2x.png +0 -0
- package/static/devtools/Images/chromeLeft.avif +0 -0
- package/static/devtools/Images/chromeMiddle.avif +0 -0
- package/static/devtools/Images/chromeRight.avif +0 -0
- package/static/devtools/Images/chromeSelect.svg +1 -0
- package/static/devtools/Images/chromeSelectDark.svg +1 -0
- package/static/devtools/Images/cssoverview_icons_2x.avif +0 -0
- package/static/devtools/Images/dropdown_7x6_icon.svg +1 -0
- package/static/devtools/Images/elements_panel_icon.svg +1 -0
- package/static/devtools/Images/errorWave.svg +1 -0
- package/static/devtools/Images/error_icon.svg +1 -0
- package/static/devtools/Images/feedback_thin_16x16_icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-center-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-end-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-space-around-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-space-between-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-space-evenly-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-start-icon.svg +1 -0
- package/static/devtools/Images/flex-align-content-stretch-icon.svg +1 -0
- package/static/devtools/Images/flex-align-items-center-icon.svg +1 -0
- package/static/devtools/Images/flex-align-items-flex-end-icon.svg +1 -0
- package/static/devtools/Images/flex-align-items-flex-start-icon.svg +1 -0
- package/static/devtools/Images/flex-align-items-stretch-icon.svg +1 -0
- package/static/devtools/Images/flex-align-self-center-icon.svg +1 -0
- package/static/devtools/Images/flex-align-self-flex-end-icon.svg +1 -0
- package/static/devtools/Images/flex-align-self-flex-start-icon.svg +1 -0
- package/static/devtools/Images/flex-align-self-stretch-icon.svg +1 -0
- package/static/devtools/Images/flex-direction-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-center-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-flex-end-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-flex-start-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-space-around-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-space-between-icon.svg +1 -0
- package/static/devtools/Images/flex-justify-content-space-evenly-icon.svg +1 -0
- package/static/devtools/Images/ic_checkmark_16x16.svg +3 -0
- package/static/devtools/Images/ic_delete_filter.svg +1 -0
- package/static/devtools/Images/ic_delete_list.svg +1 -0
- package/static/devtools/Images/ic_info_black_18dp.svg +1 -0
- package/static/devtools/Images/ic_page_next_16x16_icon.svg +1 -0
- package/static/devtools/Images/ic_page_prev_16x16_icon.svg +1 -0
- package/static/devtools/Images/ic_redo_16x16_icon.svg +1 -0
- package/static/devtools/Images/ic_show_node_16x16.svg +4 -0
- package/static/devtools/Images/ic_suggest_color.svg +6 -0
- package/static/devtools/Images/ic_undo_16x16_icon.svg +1 -0
- package/static/devtools/Images/ic_warning_black_18dp.svg +1 -0
- package/static/devtools/Images/issue-text-icon.svg +1 -0
- package/static/devtools/Images/largeIcons.svg +1 -0
- package/static/devtools/Images/lighthouse_logo.svg +1 -0
- package/static/devtools/Images/link_icon.svg +1 -0
- package/static/devtools/Images/mediumIcons.svg +1 -0
- package/static/devtools/Images/navigationControls.png +0 -0
- package/static/devtools/Images/navigationControls_2x.png +0 -0
- package/static/devtools/Images/network_panel_icon.svg +1 -0
- package/static/devtools/Images/nodeIcon.avif +0 -0
- package/static/devtools/Images/node_search_icon.svg +1 -0
- package/static/devtools/Images/popoverArrows.png +0 -0
- package/static/devtools/Images/profileGroupIcon.png +0 -0
- package/static/devtools/Images/profileIcon.png +0 -0
- package/static/devtools/Images/profileSmallIcon.png +0 -0
- package/static/devtools/Images/radioDot-dark-theme.png +0 -0
- package/static/devtools/Images/radioDot.png +0 -0
- package/static/devtools/Images/refresh_12x12_icon.svg +1 -0
- package/static/devtools/Images/resizeDiagonal.svg +1 -0
- package/static/devtools/Images/resizeHorizontal.svg +1 -0
- package/static/devtools/Images/resizeVertical.svg +1 -0
- package/static/devtools/Images/resourceCSSIcon.png +0 -0
- package/static/devtools/Images/resourceDocumentIcon.png +0 -0
- package/static/devtools/Images/resourceDocumentIconSmall.png +0 -0
- package/static/devtools/Images/resourceJSIcon.png +0 -0
- package/static/devtools/Images/resourcePlainIcon.png +0 -0
- package/static/devtools/Images/resourcePlainIconSmall.png +0 -0
- package/static/devtools/Images/resourcesTimeGraphIcon.avif +0 -0
- package/static/devtools/Images/searchNext.png +0 -0
- package/static/devtools/Images/searchPrev.png +0 -0
- package/static/devtools/Images/securityIcons.svg +1 -0
- package/static/devtools/Images/settings_14x14_icon.svg +1 -0
- package/static/devtools/Images/smallIcons.svg +1 -0
- package/static/devtools/Images/sources_panel_icon.svg +1 -0
- package/static/devtools/Images/speech.png +0 -0
- package/static/devtools/Images/toolbarResizerVertical.png +0 -0
- package/static/devtools/Images/touchCursor.png +0 -0
- package/static/devtools/Images/touchCursor_2x.png +0 -0
- package/static/devtools/Images/treeoutlineTriangles.svg +1 -0
- package/static/devtools/Images/warning_icon.svg +1 -0
- package/static/devtools/Images/whatsnew.avif +0 -0
- package/static/devtools/Tests.js +1654 -0
- package/static/devtools/accessibility/accessibility-legacy.js +1 -0
- package/static/devtools/accessibility/accessibility-meta.js +1 -0
- package/static/devtools/accessibility/accessibility.js +1 -0
- package/static/devtools/accessibility/accessibility_module.js +1 -0
- package/static/devtools/accessibility_test_runner/accessibility_test_runner.js +77 -0
- package/static/devtools/accessibility_test_runner/accessibility_test_runner_module.js +0 -0
- package/static/devtools/animation/animation-legacy.js +1 -0
- package/static/devtools/animation/animation-meta.js +1 -0
- package/static/devtools/animation/animation.js +1 -0
- package/static/devtools/animation/animation_module.js +1 -0
- package/static/devtools/application_test_runner/AppcacheTestRunner.js +220 -0
- package/static/devtools/application_test_runner/CacheStorageTestRunner.js +286 -0
- package/static/devtools/application_test_runner/IndexedDBTestRunner.js +476 -0
- package/static/devtools/application_test_runner/ResourceTreeTestRunner.js +99 -0
- package/static/devtools/application_test_runner/ResourcesTestRunner.js +167 -0
- package/static/devtools/application_test_runner/ServiceWorkersTestRunner.js +131 -0
- package/static/devtools/application_test_runner/application_test_runner.js +10 -0
- package/static/devtools/application_test_runner/application_test_runner_module.js +0 -0
- package/static/devtools/axe_core_test_runner/axe_core_test_runner.js +174 -0
- package/static/devtools/axe_core_test_runner/axe_core_test_runner_module.js +0 -0
- package/static/devtools/bindings/bindings-legacy.js +1 -0
- package/static/devtools/bindings/bindings.js +1 -0
- package/static/devtools/bindings_test_runner/AutomappingTestRunner.js +130 -0
- package/static/devtools/bindings_test_runner/BindingsTestRunner.js +238 -0
- package/static/devtools/bindings_test_runner/IsolatedFilesystemTestRunner.js +287 -0
- package/static/devtools/bindings_test_runner/OverridesTestRunner.js +26 -0
- package/static/devtools/bindings_test_runner/PersistenceTestRunner.js +109 -0
- package/static/devtools/bindings_test_runner/bindings_test_runner.js +9 -0
- package/static/devtools/bindings_test_runner/bindings_test_runner_module.js +0 -0
- package/static/devtools/browser_debugger/browser_debugger-legacy.js +1 -0
- package/static/devtools/browser_debugger/browser_debugger-meta.js +1 -0
- package/static/devtools/browser_debugger/browser_debugger.js +1 -0
- package/static/devtools/browser_debugger/browser_debugger_module.js +1 -0
- package/static/devtools/browser_sdk/browser_sdk-meta.js +1 -0
- package/static/devtools/browser_sdk/browser_sdk.js +1 -0
- package/static/devtools/changes/changes-legacy.js +1 -0
- package/static/devtools/changes/changes-meta.js +1 -0
- package/static/devtools/changes/changes.js +1 -0
- package/static/devtools/changes/changes_module.js +1 -0
- package/static/devtools/client_variations/client_variations.js +1 -0
- package/static/devtools/client_variations/client_variations_module.js +0 -0
- package/static/devtools/cm/cm.js +1 -0
- package/static/devtools/cm/cm_module.js +1 -0
- package/static/devtools/cm_headless/cm_headless.js +1 -0
- package/static/devtools/color_picker/color_picker-legacy.js +1 -0
- package/static/devtools/color_picker/color_picker.js +1 -0
- package/static/devtools/color_picker/color_picker_module.js +1 -0
- package/static/devtools/common/common-legacy.js +1 -0
- package/static/devtools/common/common.js +1 -0
- package/static/devtools/component_helpers/component_helpers.js +1 -0
- package/static/devtools/components/components-legacy.js +1 -0
- package/static/devtools/components/components.js +1 -0
- package/static/devtools/console/console-legacy.js +1 -0
- package/static/devtools/console/console-meta.js +1 -0
- package/static/devtools/console/console.js +6 -0
- package/static/devtools/console/console_module.js +1 -0
- package/static/devtools/console_counters/console_counters-legacy.js +1 -0
- package/static/devtools/console_counters/console_counters.js +1 -0
- package/static/devtools/console_test_runner/console_test_runner.js +696 -0
- package/static/devtools/console_test_runner/console_test_runner_module.js +0 -0
- package/static/devtools/cookie_table/cookie_table-legacy.js +1 -0
- package/static/devtools/cookie_table/cookie_table.js +1 -0
- package/static/devtools/cookie_table/cookie_table_module.js +1 -0
- package/static/devtools/coverage/coverage-legacy.js +1 -0
- package/static/devtools/coverage/coverage-meta.js +1 -0
- package/static/devtools/coverage/coverage.js +1 -0
- package/static/devtools/coverage/coverage_module.js +1 -0
- package/static/devtools/coverage_test_runner/coverage_test_runner.js +151 -0
- package/static/devtools/coverage_test_runner/coverage_test_runner_module.js +0 -0
- package/static/devtools/cpu_profiler_test_runner/cpu_profiler_test_runner.js +72 -0
- package/static/devtools/cpu_profiler_test_runner/cpu_profiler_test_runner_module.js +0 -0
- package/static/devtools/css_overview/css_overview-meta.js +1 -0
- package/static/devtools/css_overview/css_overview.js +146 -0
- package/static/devtools/css_overview/css_overview_module.js +1 -0
- package/static/devtools/data_grid/data_grid-legacy.js +1 -0
- package/static/devtools/data_grid/data_grid.js +1 -0
- package/static/devtools/data_grid/data_grid_module.js +1 -0
- package/static/devtools/data_grid_test_runner/data_grid_test_runner.js +78 -0
- package/static/devtools/data_grid_test_runner/data_grid_test_runner_module.js +0 -0
- package/static/devtools/developer_resources/developer_resources-legacy.js +1 -0
- package/static/devtools/developer_resources/developer_resources-meta.js +1 -0
- package/static/devtools/developer_resources/developer_resources.js +1 -0
- package/static/devtools/developer_resources/developer_resources_module.js +1 -0
- package/static/devtools/device_mode_test_runner/device_mode_test_runner.js +45 -0
- package/static/devtools/device_mode_test_runner/device_mode_test_runner_module.js +0 -0
- package/static/devtools/devtools_app.html +20 -0
- package/static/devtools/devtools_app.js +1 -0
- package/static/devtools/devtools_compatibility.js +1546 -0
- package/static/devtools/diff/diff-legacy.js +1 -0
- package/static/devtools/diff/diff.js +1 -0
- package/static/devtools/diff/diff_module.js +0 -0
- package/static/devtools/dom_extension/dom_extension.js +1 -0
- package/static/devtools/elements/elements-legacy.js +1 -0
- package/static/devtools/elements/elements-meta.js +1 -0
- package/static/devtools/elements/elements.js +469 -0
- package/static/devtools/elements/elements_module.js +1 -0
- package/static/devtools/elements_test_runner/EditDOMTestRunner.js +78 -0
- package/static/devtools/elements_test_runner/ElementsPanelShadowSelectionOnRefreshTestRunner.js +39 -0
- package/static/devtools/elements_test_runner/ElementsTestRunner.js +1280 -0
- package/static/devtools/elements_test_runner/SetOuterHTMLTestRunner.js +115 -0
- package/static/devtools/elements_test_runner/StylesUpdateLinksTestRunner.js +134 -0
- package/static/devtools/elements_test_runner/elements_test_runner.js +9 -0
- package/static/devtools/elements_test_runner/elements_test_runner_module.js +0 -0
- package/static/devtools/emulated_devices/emulated_devices_module.js +0 -0
- package/static/devtools/emulated_devices/optimized/MotoG4-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/MotoG4-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/Nexus5X-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/Nexus5X-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/Nexus6P-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/Nexus6P-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-1x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-2x.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPad-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPad-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone5-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone5-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone6-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone6-portrait.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone6Plus-landscape.avif +0 -0
- package/static/devtools/emulated_devices/optimized/iPhone6Plus-portrait.avif +0 -0
- package/static/devtools/emulation/emulation-legacy.js +1 -0
- package/static/devtools/emulation/emulation-meta.js +1 -0
- package/static/devtools/emulation/emulation.js +1 -0
- package/static/devtools/event_listeners/event_listeners-legacy.js +1 -0
- package/static/devtools/event_listeners/event_listeners.js +1 -0
- package/static/devtools/event_listeners/event_listeners_module.js +1 -0
- package/static/devtools/extensions/extensions-legacy.js +1 -0
- package/static/devtools/extensions/extensions.js +1 -0
- package/static/devtools/extensions_test_runner/ExtensionsNetworkTestRunner.js +27 -0
- package/static/devtools/extensions_test_runner/ExtensionsTestRunner.js +68 -0
- package/static/devtools/extensions_test_runner/extensions_test_runner.js +6 -0
- package/static/devtools/extensions_test_runner/extensions_test_runner_module.js +0 -0
- package/static/devtools/formatter/formatter-legacy.js +1 -0
- package/static/devtools/formatter/formatter.js +1 -0
- package/static/devtools/formatter/formatter_module.js +0 -0
- package/static/devtools/formatter_worker/FormatterActions.js +1 -0
- package/static/devtools/formatter_worker/formatter_worker-entrypoint.js +1 -0
- package/static/devtools/formatter_worker/formatter_worker.js +1 -0
- package/static/devtools/har_importer/har_importer-legacy.js +1 -0
- package/static/devtools/har_importer/har_importer.js +1 -0
- package/static/devtools/har_importer/har_importer_module.js +0 -0
- package/static/devtools/heap_profiler_test_runner/heap_profiler_test_runner.js +740 -0
- package/static/devtools/heap_profiler_test_runner/heap_profiler_test_runner_module.js +0 -0
- package/static/devtools/heap_snapshot_model/heap_snapshot_model-legacy.js +1 -0
- package/static/devtools/heap_snapshot_model/heap_snapshot_model.js +1 -0
- package/static/devtools/heap_snapshot_model/heap_snapshot_model_module.js +0 -0
- package/static/devtools/heap_snapshot_worker/heap_snapshot_worker-entrypoint.js +1 -0
- package/static/devtools/heap_snapshot_worker/heap_snapshot_worker-legacy.js +1 -0
- package/static/devtools/heap_snapshot_worker/heap_snapshot_worker.js +1 -0
- package/static/devtools/heap_snapshot_worker/heap_snapshot_worker_module.js +0 -0
- package/static/devtools/help/help-legacy.js +1 -0
- package/static/devtools/help/help-meta.js +1 -0
- package/static/devtools/help/help.js +1 -0
- package/static/devtools/help/help_module.js +1 -0
- package/static/devtools/host/host-legacy.js +1 -0
- package/static/devtools/host/host.js +1 -0
- package/static/devtools/i18n/i18n.js +1 -0
- package/static/devtools/i18n/i18n_locales-tsconfig.json +8 -0
- package/static/devtools/i18n/locales/en-US.json +3566 -0
- package/static/devtools/inline_editor/inline_editor-legacy.js +1 -0
- package/static/devtools/inline_editor/inline_editor.js +203 -0
- package/static/devtools/inline_editor/inline_editor_module.js +1 -0
- package/static/devtools/input/input-legacy.js +1 -0
- package/static/devtools/input/input-meta.js +1 -0
- package/static/devtools/input/input.js +1 -0
- package/static/devtools/input/input_module.js +1 -0
- package/static/devtools/inspector.html +20 -0
- package/static/devtools/inspector.js +1 -0
- package/static/devtools/inspector_main/inspector_main-legacy.js +1 -0
- package/static/devtools/inspector_main/inspector_main-meta.js +1 -0
- package/static/devtools/inspector_main/inspector_main.js +1 -0
- package/static/devtools/integration_test_runner.html +14 -0
- package/static/devtools/integration_test_runner.js +2 -0
- package/static/devtools/issues/issues-legacy.js +1 -0
- package/static/devtools/issues/issues-meta.js +1 -0
- package/static/devtools/issues/issues.js +67 -0
- package/static/devtools/issues/issues_module.js +1 -0
- package/static/devtools/javascript_metadata/javascript_metadata-legacy.js +1 -0
- package/static/devtools/javascript_metadata/javascript_metadata.js +1 -0
- package/static/devtools/javascript_metadata/javascript_metadata_module.js +0 -0
- package/static/devtools/js_app.html +20 -0
- package/static/devtools/js_app.js +1 -0
- package/static/devtools/js_main/js_main-legacy.js +1 -0
- package/static/devtools/js_main/js_main.js +1 -0
- package/static/devtools/js_profiler/js_profiler-meta.js +1 -0
- package/static/devtools/js_profiler/js_profiler.js +1 -0
- package/static/devtools/js_profiler/js_profiler_module.js +0 -0
- package/static/devtools/layer_viewer/layer_viewer-legacy.js +1 -0
- package/static/devtools/layer_viewer/layer_viewer.js +1 -0
- package/static/devtools/layer_viewer/layer_viewer_module.js +1 -0
- package/static/devtools/layers/layers-legacy.js +1 -0
- package/static/devtools/layers/layers-meta.js +1 -0
- package/static/devtools/layers/layers.js +1 -0
- package/static/devtools/layers/layers_module.js +0 -0
- package/static/devtools/layers_test_runner/layers_test_runner.js +156 -0
- package/static/devtools/layers_test_runner/layers_test_runner_module.js +0 -0
- package/static/devtools/lighthouse/lighthouse-legacy.js +1 -0
- package/static/devtools/lighthouse/lighthouse-meta.js +1 -0
- package/static/devtools/lighthouse/lighthouse.js +70 -0
- package/static/devtools/lighthouse/lighthouse_module.js +1 -0
- package/static/devtools/lighthouse_test_runner/lighthouse_test_runner.js +136 -0
- package/static/devtools/lighthouse_test_runner/lighthouse_test_runner_module.js +0 -0
- package/static/devtools/lighthouse_worker/LighthouseService.js +195 -0
- package/static/devtools/lighthouse_worker/lighthouse_worker.js +6 -0
- package/static/devtools/lighthouse_worker.js +1 -0
- package/static/devtools/linear_memory_inspector/linear_memory_inspector-legacy.js +1 -0
- package/static/devtools/linear_memory_inspector/linear_memory_inspector-meta.js +1 -0
- package/static/devtools/linear_memory_inspector/linear_memory_inspector.js +399 -0
- package/static/devtools/linear_memory_inspector/linear_memory_inspector_module.js +0 -0
- package/static/devtools/main/main-legacy.js +1 -0
- package/static/devtools/main/main.js +1 -0
- package/static/devtools/media/media-legacy.js +1 -0
- package/static/devtools/media/media-meta.js +1 -0
- package/static/devtools/media/media.js +1 -0
- package/static/devtools/media/media_module.js +1 -0
- package/static/devtools/mobile_throttling/mobile_throttling-legacy.js +1 -0
- package/static/devtools/mobile_throttling/mobile_throttling-meta.js +1 -0
- package/static/devtools/mobile_throttling/mobile_throttling.js +1 -0
- package/static/devtools/ndb_app.html +20 -0
- package/static/devtools/ndb_app.js +1 -0
- package/static/devtools/network/network-legacy.js +1 -0
- package/static/devtools/network/network-meta.js +1 -0
- package/static/devtools/network/network.js +72 -0
- package/static/devtools/network/network_module.js +1 -0
- package/static/devtools/network_test_runner/network_test_runner.js +280 -0
- package/static/devtools/network_test_runner/network_test_runner_module.js +0 -0
- package/static/devtools/node_app.html +20 -0
- package/static/devtools/node_app.js +1 -0
- package/static/devtools/node_debugger/node_debugger-meta.js +1 -0
- package/static/devtools/node_debugger/node_debugger.js +1 -0
- package/static/devtools/node_debugger/node_debugger_module.js +0 -0
- package/static/devtools/node_main/node_main-legacy.js +1 -0
- package/static/devtools/node_main/node_main-meta.js +1 -0
- package/static/devtools/node_main/node_main.js +1 -0
- package/static/devtools/object_ui/object_ui-legacy.js +1 -0
- package/static/devtools/object_ui/object_ui.js +3 -0
- package/static/devtools/object_ui/object_ui_module.js +1 -0
- package/static/devtools/perf_ui/perf_ui-legacy.js +1 -0
- package/static/devtools/perf_ui/perf_ui.js +152 -0
- package/static/devtools/perf_ui/perf_ui_module.js +1 -0
- package/static/devtools/performance_monitor/performance_monitor-legacy.js +1 -0
- package/static/devtools/performance_monitor/performance_monitor-meta.js +1 -0
- package/static/devtools/performance_monitor/performance_monitor.js +1 -0
- package/static/devtools/performance_monitor/performance_monitor_module.js +1 -0
- package/static/devtools/performance_test_runner/TimelineDataTestRunner.js +5375 -0
- package/static/devtools/performance_test_runner/TimelineTestRunner.js +446 -0
- package/static/devtools/performance_test_runner/performance_test_runner.js +6 -0
- package/static/devtools/performance_test_runner/performance_test_runner_module.js +0 -0
- package/static/devtools/persistence/persistence-legacy.js +1 -0
- package/static/devtools/persistence/persistence-meta.js +1 -0
- package/static/devtools/persistence/persistence.js +1 -0
- package/static/devtools/platform/platform.js +1 -0
- package/static/devtools/profiler/profiler-legacy.js +1 -0
- package/static/devtools/profiler/profiler-meta.js +1 -0
- package/static/devtools/profiler/profiler.js +8 -0
- package/static/devtools/profiler/profiler_module.js +1 -0
- package/static/devtools/protocol_client/protocol_client-legacy.js +1 -0
- package/static/devtools/protocol_client/protocol_client.js +1 -0
- package/static/devtools/protocol_monitor/protocol_monitor-legacy.js +1 -0
- package/static/devtools/protocol_monitor/protocol_monitor-meta.js +1 -0
- package/static/devtools/protocol_monitor/protocol_monitor.js +1 -0
- package/static/devtools/protocol_monitor/protocol_monitor_module.js +1 -0
- package/static/devtools/quick_open/quick_open-legacy.js +1 -0
- package/static/devtools/quick_open/quick_open.js +1 -0
- package/static/devtools/quick_open/quick_open_module.js +1 -0
- package/static/devtools/recorder/recorder.js +1 -0
- package/static/devtools/resources/resources-legacy.js +1 -0
- package/static/devtools/resources/resources-meta.js +1 -0
- package/static/devtools/resources/resources.js +28 -0
- package/static/devtools/resources/resources_module.js +1 -0
- package/static/devtools/root/root-legacy.js +1 -0
- package/static/devtools/root/root.js +1 -0
- package/static/devtools/screencast/screencast-legacy.js +1 -0
- package/static/devtools/screencast/screencast.js +1 -0
- package/static/devtools/sdk/sdk-legacy.js +1 -0
- package/static/devtools/sdk/sdk.js +2 -0
- package/static/devtools/sdk_test_runner/sdk_test_runner.js +297 -0
- package/static/devtools/sdk_test_runner/sdk_test_runner_module.js +0 -0
- package/static/devtools/search/search-legacy.js +1 -0
- package/static/devtools/search/search.js +1 -0
- package/static/devtools/search/search_module.js +1 -0
- package/static/devtools/security/security-legacy.js +1 -0
- package/static/devtools/security/security-meta.js +1 -0
- package/static/devtools/security/security.js +1 -0
- package/static/devtools/security/security_module.js +1 -0
- package/static/devtools/security_test_runner/security_test_runner.js +32 -0
- package/static/devtools/security_test_runner/security_test_runner_module.js +0 -0
- package/static/devtools/services/services-legacy.js +1 -0
- package/static/devtools/services/services.js +1 -0
- package/static/devtools/settings/settings-legacy.js +1 -0
- package/static/devtools/settings/settings-meta.js +1 -0
- package/static/devtools/settings/settings.js +1 -0
- package/static/devtools/settings/settings_module.js +1 -0
- package/static/devtools/shell.js +1 -0
- package/static/devtools/snippets/snippets-legacy.js +1 -0
- package/static/devtools/snippets/snippets.js +1 -0
- package/static/devtools/snippets/snippets_module.js +0 -0
- package/static/devtools/source_frame/source_frame-legacy.js +1 -0
- package/static/devtools/source_frame/source_frame.js +1 -0
- package/static/devtools/source_frame/source_frame_module.js +1 -0
- package/static/devtools/sources/sources-legacy.js +1 -0
- package/static/devtools/sources/sources-meta.js +1 -0
- package/static/devtools/sources/sources.js +13 -0
- package/static/devtools/sources/sources_module.js +1 -0
- package/static/devtools/sources_test_runner/AutocompleteTestRunner.js +46 -0
- package/static/devtools/sources_test_runner/DebuggerTestRunner.js +895 -0
- package/static/devtools/sources_test_runner/EditorTestRunner.js +237 -0
- package/static/devtools/sources_test_runner/LiveEditTestRunner.js +33 -0
- package/static/devtools/sources_test_runner/SearchTestRunner.js +158 -0
- package/static/devtools/sources_test_runner/SourcesTestRunner.js +173 -0
- package/static/devtools/sources_test_runner/sources_test_runner.js +10 -0
- package/static/devtools/sources_test_runner/sources_test_runner_module.js +0 -0
- package/static/devtools/startup/startup.js +1 -0
- package/static/devtools/test_runner/test_runner.js +1 -0
- package/static/devtools/text_editor/text_editor-legacy.js +1 -0
- package/static/devtools/text_editor/text_editor.js +1 -0
- package/static/devtools/text_editor/text_editor_module.js +1 -0
- package/static/devtools/text_utils/text_utils-legacy.js +1 -0
- package/static/devtools/text_utils/text_utils.js +1 -0
- package/static/devtools/theme_support/theme_support.js +1 -0
- package/static/devtools/third_party/acorn/acorn-tsconfig.json +8 -0
- package/static/devtools/third_party/acorn/acorn.js +1 -0
- package/static/devtools/third_party/acorn/package/dist/acorn.d.ts +209 -0
- package/static/devtools/third_party/acorn/package/dist/acorn.mjs +5261 -0
- package/static/devtools/third_party/acorn/package/dist/acorn.mjs.d.ts +2 -0
- package/static/devtools/third_party/acorn/package/dist/acorn.mjs.map +1 -0
- package/static/devtools/third_party/acorn-loose/acorn-loose-tsconfig.json +8 -0
- package/static/devtools/third_party/acorn-loose/package/dist/acorn-loose.d.ts +16 -0
- package/static/devtools/third_party/acorn-loose/package/dist/acorn-loose.mjs +1418 -0
- package/static/devtools/third_party/axe-core/axe.js +16423 -0
- package/static/devtools/third_party/chromium/chromium-tsconfig.json +8 -0
- package/static/devtools/third_party/chromium/client-variations/ClientVariations.d.ts +13 -0
- package/static/devtools/third_party/chromium/client-variations/ClientVariations.js +27 -0
- package/static/devtools/third_party/codemirror/codemirror-tsconfig.json +72 -0
- package/static/devtools/third_party/codemirror/package/addon/comment/comment.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/addon/comment/comment.js +211 -0
- package/static/devtools/third_party/codemirror/package/addon/edit/closebrackets.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/edit/closebrackets.js +201 -0
- package/static/devtools/third_party/codemirror/package/addon/edit/matchbrackets.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/edit/matchbrackets.js +158 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/brace-fold.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/brace-fold.js +105 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/foldcode.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/foldcode.js +157 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/foldgutter.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/fold/foldgutter.js +163 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/multiplex.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/multiplex.js +131 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/overlay.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/overlay.js +90 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/simple.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/mode/simple.js +216 -0
- package/static/devtools/third_party/codemirror/package/addon/runmode/runmode-standalone.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/runmode/runmode-standalone.js +333 -0
- package/static/devtools/third_party/codemirror/package/addon/selection/active-line.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/selection/active-line.js +72 -0
- package/static/devtools/third_party/codemirror/package/addon/selection/mark-selection.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/addon/selection/mark-selection.js +119 -0
- package/static/devtools/third_party/codemirror/package/lib/codemirror.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/lib/codemirror.js +9800 -0
- package/static/devtools/third_party/codemirror/package/mode/clike/clike.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/mode/clike/clike.js +935 -0
- package/static/devtools/third_party/codemirror/package/mode/clojure/clojure.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/mode/clojure/clojure.js +292 -0
- package/static/devtools/third_party/codemirror/package/mode/coffeescript/coffeescript.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/mode/coffeescript/coffeescript.js +359 -0
- package/static/devtools/third_party/codemirror/package/mode/css/css.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/css/css.js +864 -0
- package/static/devtools/third_party/codemirror/package/mode/htmlembedded/htmlembedded.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/htmlembedded/htmlembedded.js +37 -0
- package/static/devtools/third_party/codemirror/package/mode/htmlmixed/htmlmixed.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/htmlmixed/htmlmixed.js +153 -0
- package/static/devtools/third_party/codemirror/package/mode/javascript/javascript.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/javascript/javascript.js +942 -0
- package/static/devtools/third_party/codemirror/package/mode/jsx/jsx.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/mode/jsx/jsx.js +148 -0
- package/static/devtools/third_party/codemirror/package/mode/livescript/livescript.d.ts +4 -0
- package/static/devtools/third_party/codemirror/package/mode/livescript/livescript.js +280 -0
- package/static/devtools/third_party/codemirror/package/mode/markdown/markdown.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/markdown/markdown.js +886 -0
- package/static/devtools/third_party/codemirror/package/mode/php/php.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/php/php.js +234 -0
- package/static/devtools/third_party/codemirror/package/mode/python/python.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/python/python.js +399 -0
- package/static/devtools/third_party/codemirror/package/mode/shell/shell.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/shell/shell.js +168 -0
- package/static/devtools/third_party/codemirror/package/mode/wast/wast.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/wast/wast.js +41 -0
- package/static/devtools/third_party/codemirror/package/mode/xml/xml.d.ts +1 -0
- package/static/devtools/third_party/codemirror/package/mode/xml/xml.js +413 -0
- package/static/devtools/third_party/i18n/bundle-tsconfig.json +8 -0
- package/static/devtools/third_party/i18n/i18n.d.ts +108 -0
- package/static/devtools/third_party/i18n/i18n.js +4336 -0
- package/static/devtools/third_party/lighthouse/lighthouse-dt-bundle.d.ts +1 -0
- package/static/devtools/third_party/lighthouse/lighthouse-dt-bundle.js +1140 -0
- package/static/devtools/third_party/lighthouse/lighthouse-tsconfig.json +10 -0
- package/static/devtools/third_party/lighthouse/locales/ar-XB.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ar.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/bg.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ca.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/cs.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/da.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/de.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/el.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/en-GB.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/en-US.json +2297 -0
- package/static/devtools/third_party/lighthouse/locales/en-XA.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/en-XL.json +2297 -0
- package/static/devtools/third_party/lighthouse/locales/es-419.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/es.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/fi.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/fil.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/fr.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/he.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/hi.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/hr.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/hu.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/id.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/it.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ja.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ko.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/lt.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/lv.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/nl.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/no.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/pl.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/pt-PT.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/pt.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ro.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ru.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/sk.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/sl.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/sr-Latn.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/sr.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/sv.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/ta.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/te.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/th.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/tr.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/uk.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/vi.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/zh-HK.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/zh-TW.json +2066 -0
- package/static/devtools/third_party/lighthouse/locales/zh.json +2066 -0
- package/static/devtools/third_party/lighthouse/report-assets/report-generator.d.ts +1 -0
- package/static/devtools/third_party/lighthouse/report-assets/report-generator.js +167 -0
- package/static/devtools/third_party/lighthouse/report-assets/report.d.ts +1 -0
- package/static/devtools/third_party/lighthouse/report-assets/report.js +5032 -0
- package/static/devtools/third_party/lit-html/lit-html-tsconfig.json +22 -0
- package/static/devtools/third_party/lit-html/lit-html.js +120 -0
- package/static/devtools/third_party/lit-html/package/directives/class-map.d.ts +28 -0
- package/static/devtools/third_party/lit-html/package/directives/class-map.js +101 -0
- package/static/devtools/third_party/lit-html/package/directives/class-map.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/directives/if-defined.d.ts +22 -0
- package/static/devtools/third_party/lit-html/package/directives/if-defined.js +37 -0
- package/static/devtools/third_party/lit-html/package/directives/if-defined.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/directives/live.d.ts +38 -0
- package/static/devtools/third_party/lit-html/package/directives/live.js +73 -0
- package/static/devtools/third_party/lit-html/package/directives/live.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/directives/repeat.d.ts +37 -0
- package/static/devtools/third_party/lit-html/package/directives/repeat.js +415 -0
- package/static/devtools/third_party/lit-html/package/directives/repeat.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/directives/style-map.d.ts +36 -0
- package/static/devtools/third_party/lit-html/package/directives/style-map.js +78 -0
- package/static/devtools/third_party/lit-html/package/directives/style-map.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/default-template-processor.d.ts +39 -0
- package/static/devtools/third_party/lit-html/package/lib/default-template-processor.js +52 -0
- package/static/devtools/third_party/lit-html/package/lib/default-template-processor.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/directive.d.ts +59 -0
- package/static/devtools/third_party/lit-html/package/lib/directive.js +63 -0
- package/static/devtools/third_party/lit-html/package/lib/directive.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/dom.d.ts +29 -0
- package/static/devtools/third_party/lit-html/package/lib/dom.js +44 -0
- package/static/devtools/third_party/lit-html/package/lib/dom.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/part.d.ts +46 -0
- package/static/devtools/third_party/lit-html/package/lib/part.js +23 -0
- package/static/devtools/third_party/lit-html/package/lib/part.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/parts.d.ts +148 -0
- package/static/devtools/third_party/lit-html/package/lib/parts.js +476 -0
- package/static/devtools/third_party/lit-html/package/lib/parts.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/render.d.ts +33 -0
- package/static/devtools/third_party/lit-html/package/lib/render.js +43 -0
- package/static/devtools/third_party/lit-html/package/lib/render.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/template-factory.d.ts +57 -0
- package/static/devtools/third_party/lit-html/package/lib/template-factory.js +48 -0
- package/static/devtools/third_party/lit-html/package/lib/template-factory.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/template-instance.d.ts +30 -0
- package/static/devtools/third_party/lit-html/package/lib/template-instance.js +134 -0
- package/static/devtools/third_party/lit-html/package/lib/template-instance.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/template-result.d.ts +42 -0
- package/static/devtools/third_party/lit-html/package/lib/template-result.js +131 -0
- package/static/devtools/third_party/lit-html/package/lib/template-result.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lib/template.d.ts +92 -0
- package/static/devtools/third_party/lit-html/package/lib/template.js +215 -0
- package/static/devtools/third_party/lit-html/package/lib/template.js.map +1 -0
- package/static/devtools/third_party/lit-html/package/lit-html.d.ts +42 -0
- package/static/devtools/third_party/lit-html/package/lit-html.js +59 -0
- package/static/devtools/third_party/lit-html/package/lit-html.js.map +1 -0
- package/static/devtools/third_party/marked/marked-tsconfig.json +8 -0
- package/static/devtools/third_party/marked/marked.js +1 -0
- package/static/devtools/third_party/marked/package/lib/marked.esm.d.ts +1 -0
- package/static/devtools/third_party/marked/package/lib/marked.esm.js +2584 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.d.ts +53 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/api-docs-entry.js +64 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.d.ts +176 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Accessibility.js +356 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts +21 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/AriaQueryHandler.js +81 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +423 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +516 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts +39 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserConnector.js +76 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts +26 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +30 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +120 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +266 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectionTransport.d.ts +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectionTransport.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConnectionTransport.js +15 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.d.ts +72 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ConsoleMessage.js +60 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts +181 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Coverage.js +316 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +174 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +647 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts +53 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Debug.js +77 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts +33 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/DeviceDescriptors.js +873 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts +76 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Dialog.js +92 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.d.ts +25 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EmulationManager.js +33 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts +34 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +37 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts +59 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EvalTypes.js +15 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts +89 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/EventEmitter.js +109 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.d.ts +82 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Events.js +83 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts +189 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/ExecutionContext.js +313 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts +60 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FileChooser.js +66 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +735 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +962 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +276 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +421 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts +128 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +150 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +322 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +463 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +439 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +724 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +62 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/LifecycleWatcher.js +145 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +80 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +262 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts +152 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js +31 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +910 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +1343 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Product.d.ts +21 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Product.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Product.js +15 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts +135 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Puppeteer.js +133 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PuppeteerViewport.d.ts +24 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PuppeteerViewport.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/PuppeteerViewport.js +0 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts +66 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/QueryHandler.js +157 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.d.ts +61 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/SecurityDetails.js +72 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +98 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js +137 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.d.ts +28 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/TimeoutSettings.js +43 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts +47 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/Tracing.js +94 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.d.ts +40 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/USKeyboardLayout.js +403 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts +102 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/WebWorker.js +109 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/assert.js +24 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.d.ts +17 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/fetch.js +20 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts +66 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +288 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts +17 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/environment.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/environment.js +16 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-node.js +39 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/initialize-web.js +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts +132 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +468 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts +40 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +197 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +42 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.js +0 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts +16 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +469 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +29 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/NodeWebSocketTransport.js +34 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts +31 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/PipeTransport.js +61 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts +156 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/Puppeteer.js +183 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/install.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node/install.js +151 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node-puppeteer-core.js +23 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/node.js +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/revisions.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +19 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/web.d.ts +18 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/web.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/puppeteer/web.js +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.d.ts +22 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.d.ts.map +1 -0
- package/static/devtools/third_party/puppeteer/package/lib/esm/vendor/mitt/src/index.js +53 -0
- package/static/devtools/third_party/puppeteer/puppeteer-tsconfig.json +58 -0
- package/static/devtools/third_party/puppeteer/puppeteer.js +1 -0
- package/static/devtools/third_party/wasmparser/package/dist/esm/WasmDis.js +1595 -0
- package/static/devtools/third_party/wasmparser/package/dist/esm/WasmParser.js +3120 -0
- package/static/devtools/third_party/wasmparser/wasmparser-tsconfig.json +9 -0
- package/static/devtools/timeline/timeline-legacy.js +1 -0
- package/static/devtools/timeline/timeline-meta.js +1 -0
- package/static/devtools/timeline/timeline.js +1 -0
- package/static/devtools/timeline/timeline_module.js +1 -0
- package/static/devtools/timeline_model/timeline_model-legacy.js +1 -0
- package/static/devtools/timeline_model/timeline_model.js +1 -0
- package/static/devtools/timeline_model/timeline_model_module.js +0 -0
- package/static/devtools/toolbox.html +20 -0
- package/static/devtools/toolbox.js +1 -0
- package/static/devtools/toolbox_bootstrap/toolbox_bootstrap.js +1 -0
- package/static/devtools/ui/components/components.js +378 -0
- package/static/devtools/ui/ui-legacy.js +1 -0
- package/static/devtools/ui/ui.js +3 -0
- package/static/devtools/ui/utils/utils.js +1 -0
- package/static/devtools/wasmparser_worker/wasmparser_worker-entrypoint.js +1 -0
- package/static/devtools/wasmparser_worker/wasmparser_worker.js +1 -0
- package/static/devtools/web_audio/graph_visualizer/graph_visualizer.js +1 -0
- package/static/devtools/web_audio/web_audio-legacy.js +1 -0
- package/static/devtools/web_audio/web_audio-meta.js +1 -0
- package/static/devtools/web_audio/web_audio.js +23 -0
- package/static/devtools/web_audio/web_audio_module.js +1 -0
- package/static/devtools/webauthn/webauthn-legacy.js +1 -0
- package/static/devtools/webauthn/webauthn-meta.js +1 -0
- package/static/devtools/webauthn/webauthn.js +6 -0
- package/static/devtools/webauthn/webauthn_module.js +1 -0
- package/static/devtools/worker_app.html +20 -0
- package/static/devtools/worker_app.js +1 -0
- package/static/devtools/worker_main/worker_main-legacy.js +1 -0
- package/static/devtools/worker_main/worker_main.js +1 -0
- package/static/devtools/worker_service/worker_service.js +1 -0
- package/static/devtools/workspace/workspace-legacy.js +1 -0
- package/static/devtools/workspace/workspace.js +1 -0
- package/static/devtools/workspace_diff/workspace_diff-legacy.js +1 -0
- package/static/devtools/workspace_diff/workspace_diff.js +1 -0
- package/static/devtools/workspace_diff/workspace_diff_module.js +0 -0
- package/static/docs/swagger.json +2337 -279
- package/static/function/client.js +1037 -992
- package/build/routes/chromium/http/json-new.js +0 -23
- package/build/routes/chromium/http/json-version-get.response.json +0 -37
- package/build/routes/chromium/utils/cdp.d.ts +0 -2
- package/build/routes/chromium/utils/cdp.js +0 -14
- package/build/routes/chromium/ws/cdp-chromium.js +0 -10
- package/src/routes/chromium/http/json-list.ts +0 -50
- package/src/routes/chromium/utils/cdp.ts +0 -19
- package/build/routes/{chromium/http/content-post.query.json → chrome/http/content.post.query.json} +0 -0
- package/build/routes/{chromium/http/content-post.response.json → chrome/http/content.post.response.json} +0 -0
- package/build/routes/{chromium/http/download-post.body.json → chrome/http/download.post.body.json} +0 -0
- package/build/routes/{chromium/http/download-post.query.json → chrome/http/download.post.query.json} +0 -0
- package/build/routes/{chromium/http/download-post.response.json → chrome/http/download.post.response.json} +0 -0
- package/build/routes/{chromium/http/function-post.body.json → chrome/http/function.post.body.json} +0 -0
- package/build/routes/{chromium/http/function-post.query.json → chrome/http/function.post.query.json} +0 -0
- package/build/routes/{chromium/http/function-post.response.json → chrome/http/function.post.response.json} +0 -0
- package/build/routes/{chromium/http/json-list.response.json → chrome/http/json-list.get.response.json} +0 -0
- package/build/routes/{chromium/http/json-new.response.json → chrome/http/json-new.put.response.json} +0 -0
- package/build/routes/{chromium/http/json-protocol-get.response.json → chrome/http/json-protocol.get.response.json} +0 -0
- package/build/routes/{chromium/http/pdf-post.query.json → chrome/http/pdf.post.query.json} +0 -0
- package/build/routes/{chromium/http/pdf-post.response.json → chrome/http/pdf.post.response.json} +0 -0
- package/build/routes/{chromium/http/performance.body.json → chrome/http/performance.post.body.json} +0 -0
- package/build/routes/{chromium/http/performance.query.json → chrome/http/performance.post.query.json} +0 -0
- package/build/routes/{chromium/http/performance.response.json → chrome/http/performance.post.response.json} +0 -0
- package/build/routes/{chromium/http/scrape-post.query.json → chrome/http/scrape.post.query.json} +0 -0
- package/build/routes/{chromium/http/scrape-post.response.json → chrome/http/scrape.post.response.json} +0 -0
- package/build/routes/{chromium/http/screenshot-post.query.json → chrome/http/screenshot.post.query.json} +0 -0
- package/build/routes/{chromium/http/screenshot-post.response.json → chrome/http/screenshot.post.response.json} +0 -0
- package/build/routes/{chromium/utils/performance/child.d.ts → chrome/tests/content.spec.d.ts} +0 -0
- package/build/routes/{chromium/utils/performance/types.js → chrome/tests/download.spec.d.ts} +0 -0
- package/build/routes/{chromium/ws/cdp-chromium.query.json → chrome/ws/browser.query.json} +0 -0
- package/build/routes/{chromium/ws/playwright-chromium.query.json → chrome/ws/playwright.query.json} +0 -0
- package/build/routes/{firefox/ws/playwright-firefox.query.json → chromium/ws/playwright.query.json} +0 -0
- package/build/routes/{webkit/ws/playwright-webkit.query.json → firefox/ws/playwright.query.json} +0 -0
- package/build/routes/management/http/{config-get.d.ts → config.get.d.ts} +0 -0
- package/build/routes/management/http/{config-get.js → config.get.js} +0 -0
- package/build/routes/management/http/{config-get.response.json → config.get.response.json} +0 -0
- package/build/routes/management/http/{metrics-total-get.d.ts → metrics-total.get.d.ts} +0 -0
- package/build/routes/management/http/{metrics-total-get.js → metrics-total.get.js} +0 -0
- package/build/routes/management/http/{metrics-total-get.response.json → metrics-total.get.response.json} +0 -0
- package/build/routes/management/http/{metrics-get.d.ts → metrics.get.d.ts} +0 -0
- package/build/routes/management/http/{metrics-get.js → metrics.get.js} +0 -0
- package/build/routes/management/http/{metrics-get.response.json → metrics.get.response.json} +0 -0
- package/build/routes/management/http/{sessions-get.d.ts → sessions.get.d.ts} +0 -0
- package/build/routes/management/http/{sessions-get.js → sessions.get.js} +0 -0
- package/build/routes/management/http/{static-get.d.ts → static.get.d.ts} +0 -0
- package/build/{routes/chromium/http/json-protocol-get.d.ts → shared/json-protocol.http.d.ts} +1 -1
- package/build/{routes/chromium/http/json-version-get.d.ts → shared/json-version.http.d.ts} +1 -1
- /package/build/{routes/chromium → shared}/utils/function/client.d.ts +0 -0
- /package/build/{routes/chromium → shared}/utils/function/client.js +0 -0
- /package/build/{routes/chromium → shared}/utils/function/handler.d.ts +0 -0
- /package/build/{routes/chromium → shared}/utils/function/handler.js +0 -0
- /package/build/{routes/chromium → shared}/utils/performance/child.js +0 -0
- /package/build/{routes/chromium → shared}/utils/performance/main.d.ts +0 -0
- /package/build/{routes/chromium → shared}/utils/performance/types.d.ts +0 -0
- /package/src/routes/management/http/{config-get.ts → config.get.ts} +0 -0
- /package/src/routes/management/http/{metrics-total-get.ts → metrics-total.get.ts} +0 -0
- /package/src/routes/management/http/{metrics-get.ts → metrics.get.ts} +0 -0
- /package/src/routes/management/http/{sessions-get.ts → sessions.get.ts} +0 -0
- /package/src/{routes/chromium → shared}/utils/function/client.ts +0 -0
- /package/src/{routes/chromium → shared}/utils/performance/child.ts +0 -0
- /package/src/{routes/chromium → shared}/utils/performance/types.ts +0 -0
|
@@ -0,0 +1,3120 @@
|
|
|
1
|
+
/* Copyright 2016 Mozilla Foundation
|
|
2
|
+
*
|
|
3
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License.
|
|
5
|
+
* You may obtain a copy of the License at
|
|
6
|
+
*
|
|
7
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
*
|
|
9
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
* See the License for the specific language governing permissions and
|
|
13
|
+
* limitations under the License.
|
|
14
|
+
*/
|
|
15
|
+
// See https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md
|
|
16
|
+
const WASM_MAGIC_NUMBER = 0x6d736100;
|
|
17
|
+
const WASM_SUPPORTED_EXPERIMENTAL_VERSION = 0xd;
|
|
18
|
+
const WASM_SUPPORTED_VERSION = 0x1;
|
|
19
|
+
export var SectionCode;
|
|
20
|
+
(function (SectionCode) {
|
|
21
|
+
SectionCode[SectionCode["Unknown"] = -1] = "Unknown";
|
|
22
|
+
SectionCode[SectionCode["Custom"] = 0] = "Custom";
|
|
23
|
+
SectionCode[SectionCode["Type"] = 1] = "Type";
|
|
24
|
+
SectionCode[SectionCode["Import"] = 2] = "Import";
|
|
25
|
+
SectionCode[SectionCode["Function"] = 3] = "Function";
|
|
26
|
+
SectionCode[SectionCode["Table"] = 4] = "Table";
|
|
27
|
+
SectionCode[SectionCode["Memory"] = 5] = "Memory";
|
|
28
|
+
SectionCode[SectionCode["Global"] = 6] = "Global";
|
|
29
|
+
SectionCode[SectionCode["Export"] = 7] = "Export";
|
|
30
|
+
SectionCode[SectionCode["Start"] = 8] = "Start";
|
|
31
|
+
SectionCode[SectionCode["Element"] = 9] = "Element";
|
|
32
|
+
SectionCode[SectionCode["Code"] = 10] = "Code";
|
|
33
|
+
SectionCode[SectionCode["Data"] = 11] = "Data";
|
|
34
|
+
})(SectionCode || (SectionCode = {}));
|
|
35
|
+
export var OperatorCode;
|
|
36
|
+
(function (OperatorCode) {
|
|
37
|
+
OperatorCode[OperatorCode["unreachable"] = 0] = "unreachable";
|
|
38
|
+
OperatorCode[OperatorCode["nop"] = 1] = "nop";
|
|
39
|
+
OperatorCode[OperatorCode["block"] = 2] = "block";
|
|
40
|
+
OperatorCode[OperatorCode["loop"] = 3] = "loop";
|
|
41
|
+
OperatorCode[OperatorCode["if"] = 4] = "if";
|
|
42
|
+
OperatorCode[OperatorCode["else"] = 5] = "else";
|
|
43
|
+
OperatorCode[OperatorCode["end"] = 11] = "end";
|
|
44
|
+
OperatorCode[OperatorCode["br"] = 12] = "br";
|
|
45
|
+
OperatorCode[OperatorCode["br_if"] = 13] = "br_if";
|
|
46
|
+
OperatorCode[OperatorCode["br_table"] = 14] = "br_table";
|
|
47
|
+
OperatorCode[OperatorCode["return"] = 15] = "return";
|
|
48
|
+
OperatorCode[OperatorCode["call"] = 16] = "call";
|
|
49
|
+
OperatorCode[OperatorCode["call_indirect"] = 17] = "call_indirect";
|
|
50
|
+
OperatorCode[OperatorCode["return_call"] = 18] = "return_call";
|
|
51
|
+
OperatorCode[OperatorCode["return_call_indirect"] = 19] = "return_call_indirect";
|
|
52
|
+
OperatorCode[OperatorCode["drop"] = 26] = "drop";
|
|
53
|
+
OperatorCode[OperatorCode["select"] = 27] = "select";
|
|
54
|
+
OperatorCode[OperatorCode["local_get"] = 32] = "local_get";
|
|
55
|
+
OperatorCode[OperatorCode["local_set"] = 33] = "local_set";
|
|
56
|
+
OperatorCode[OperatorCode["local_tee"] = 34] = "local_tee";
|
|
57
|
+
OperatorCode[OperatorCode["global_get"] = 35] = "global_get";
|
|
58
|
+
OperatorCode[OperatorCode["global_set"] = 36] = "global_set";
|
|
59
|
+
OperatorCode[OperatorCode["i32_load"] = 40] = "i32_load";
|
|
60
|
+
OperatorCode[OperatorCode["i64_load"] = 41] = "i64_load";
|
|
61
|
+
OperatorCode[OperatorCode["f32_load"] = 42] = "f32_load";
|
|
62
|
+
OperatorCode[OperatorCode["f64_load"] = 43] = "f64_load";
|
|
63
|
+
OperatorCode[OperatorCode["i32_load8_s"] = 44] = "i32_load8_s";
|
|
64
|
+
OperatorCode[OperatorCode["i32_load8_u"] = 45] = "i32_load8_u";
|
|
65
|
+
OperatorCode[OperatorCode["i32_load16_s"] = 46] = "i32_load16_s";
|
|
66
|
+
OperatorCode[OperatorCode["i32_load16_u"] = 47] = "i32_load16_u";
|
|
67
|
+
OperatorCode[OperatorCode["i64_load8_s"] = 48] = "i64_load8_s";
|
|
68
|
+
OperatorCode[OperatorCode["i64_load8_u"] = 49] = "i64_load8_u";
|
|
69
|
+
OperatorCode[OperatorCode["i64_load16_s"] = 50] = "i64_load16_s";
|
|
70
|
+
OperatorCode[OperatorCode["i64_load16_u"] = 51] = "i64_load16_u";
|
|
71
|
+
OperatorCode[OperatorCode["i64_load32_s"] = 52] = "i64_load32_s";
|
|
72
|
+
OperatorCode[OperatorCode["i64_load32_u"] = 53] = "i64_load32_u";
|
|
73
|
+
OperatorCode[OperatorCode["i32_store"] = 54] = "i32_store";
|
|
74
|
+
OperatorCode[OperatorCode["i64_store"] = 55] = "i64_store";
|
|
75
|
+
OperatorCode[OperatorCode["f32_store"] = 56] = "f32_store";
|
|
76
|
+
OperatorCode[OperatorCode["f64_store"] = 57] = "f64_store";
|
|
77
|
+
OperatorCode[OperatorCode["i32_store8"] = 58] = "i32_store8";
|
|
78
|
+
OperatorCode[OperatorCode["i32_store16"] = 59] = "i32_store16";
|
|
79
|
+
OperatorCode[OperatorCode["i64_store8"] = 60] = "i64_store8";
|
|
80
|
+
OperatorCode[OperatorCode["i64_store16"] = 61] = "i64_store16";
|
|
81
|
+
OperatorCode[OperatorCode["i64_store32"] = 62] = "i64_store32";
|
|
82
|
+
OperatorCode[OperatorCode["current_memory"] = 63] = "current_memory";
|
|
83
|
+
OperatorCode[OperatorCode["grow_memory"] = 64] = "grow_memory";
|
|
84
|
+
OperatorCode[OperatorCode["i32_const"] = 65] = "i32_const";
|
|
85
|
+
OperatorCode[OperatorCode["i64_const"] = 66] = "i64_const";
|
|
86
|
+
OperatorCode[OperatorCode["f32_const"] = 67] = "f32_const";
|
|
87
|
+
OperatorCode[OperatorCode["f64_const"] = 68] = "f64_const";
|
|
88
|
+
OperatorCode[OperatorCode["i32_eqz"] = 69] = "i32_eqz";
|
|
89
|
+
OperatorCode[OperatorCode["i32_eq"] = 70] = "i32_eq";
|
|
90
|
+
OperatorCode[OperatorCode["i32_ne"] = 71] = "i32_ne";
|
|
91
|
+
OperatorCode[OperatorCode["i32_lt_s"] = 72] = "i32_lt_s";
|
|
92
|
+
OperatorCode[OperatorCode["i32_lt_u"] = 73] = "i32_lt_u";
|
|
93
|
+
OperatorCode[OperatorCode["i32_gt_s"] = 74] = "i32_gt_s";
|
|
94
|
+
OperatorCode[OperatorCode["i32_gt_u"] = 75] = "i32_gt_u";
|
|
95
|
+
OperatorCode[OperatorCode["i32_le_s"] = 76] = "i32_le_s";
|
|
96
|
+
OperatorCode[OperatorCode["i32_le_u"] = 77] = "i32_le_u";
|
|
97
|
+
OperatorCode[OperatorCode["i32_ge_s"] = 78] = "i32_ge_s";
|
|
98
|
+
OperatorCode[OperatorCode["i32_ge_u"] = 79] = "i32_ge_u";
|
|
99
|
+
OperatorCode[OperatorCode["i64_eqz"] = 80] = "i64_eqz";
|
|
100
|
+
OperatorCode[OperatorCode["i64_eq"] = 81] = "i64_eq";
|
|
101
|
+
OperatorCode[OperatorCode["i64_ne"] = 82] = "i64_ne";
|
|
102
|
+
OperatorCode[OperatorCode["i64_lt_s"] = 83] = "i64_lt_s";
|
|
103
|
+
OperatorCode[OperatorCode["i64_lt_u"] = 84] = "i64_lt_u";
|
|
104
|
+
OperatorCode[OperatorCode["i64_gt_s"] = 85] = "i64_gt_s";
|
|
105
|
+
OperatorCode[OperatorCode["i64_gt_u"] = 86] = "i64_gt_u";
|
|
106
|
+
OperatorCode[OperatorCode["i64_le_s"] = 87] = "i64_le_s";
|
|
107
|
+
OperatorCode[OperatorCode["i64_le_u"] = 88] = "i64_le_u";
|
|
108
|
+
OperatorCode[OperatorCode["i64_ge_s"] = 89] = "i64_ge_s";
|
|
109
|
+
OperatorCode[OperatorCode["i64_ge_u"] = 90] = "i64_ge_u";
|
|
110
|
+
OperatorCode[OperatorCode["f32_eq"] = 91] = "f32_eq";
|
|
111
|
+
OperatorCode[OperatorCode["f32_ne"] = 92] = "f32_ne";
|
|
112
|
+
OperatorCode[OperatorCode["f32_lt"] = 93] = "f32_lt";
|
|
113
|
+
OperatorCode[OperatorCode["f32_gt"] = 94] = "f32_gt";
|
|
114
|
+
OperatorCode[OperatorCode["f32_le"] = 95] = "f32_le";
|
|
115
|
+
OperatorCode[OperatorCode["f32_ge"] = 96] = "f32_ge";
|
|
116
|
+
OperatorCode[OperatorCode["f64_eq"] = 97] = "f64_eq";
|
|
117
|
+
OperatorCode[OperatorCode["f64_ne"] = 98] = "f64_ne";
|
|
118
|
+
OperatorCode[OperatorCode["f64_lt"] = 99] = "f64_lt";
|
|
119
|
+
OperatorCode[OperatorCode["f64_gt"] = 100] = "f64_gt";
|
|
120
|
+
OperatorCode[OperatorCode["f64_le"] = 101] = "f64_le";
|
|
121
|
+
OperatorCode[OperatorCode["f64_ge"] = 102] = "f64_ge";
|
|
122
|
+
OperatorCode[OperatorCode["i32_clz"] = 103] = "i32_clz";
|
|
123
|
+
OperatorCode[OperatorCode["i32_ctz"] = 104] = "i32_ctz";
|
|
124
|
+
OperatorCode[OperatorCode["i32_popcnt"] = 105] = "i32_popcnt";
|
|
125
|
+
OperatorCode[OperatorCode["i32_add"] = 106] = "i32_add";
|
|
126
|
+
OperatorCode[OperatorCode["i32_sub"] = 107] = "i32_sub";
|
|
127
|
+
OperatorCode[OperatorCode["i32_mul"] = 108] = "i32_mul";
|
|
128
|
+
OperatorCode[OperatorCode["i32_div_s"] = 109] = "i32_div_s";
|
|
129
|
+
OperatorCode[OperatorCode["i32_div_u"] = 110] = "i32_div_u";
|
|
130
|
+
OperatorCode[OperatorCode["i32_rem_s"] = 111] = "i32_rem_s";
|
|
131
|
+
OperatorCode[OperatorCode["i32_rem_u"] = 112] = "i32_rem_u";
|
|
132
|
+
OperatorCode[OperatorCode["i32_and"] = 113] = "i32_and";
|
|
133
|
+
OperatorCode[OperatorCode["i32_or"] = 114] = "i32_or";
|
|
134
|
+
OperatorCode[OperatorCode["i32_xor"] = 115] = "i32_xor";
|
|
135
|
+
OperatorCode[OperatorCode["i32_shl"] = 116] = "i32_shl";
|
|
136
|
+
OperatorCode[OperatorCode["i32_shr_s"] = 117] = "i32_shr_s";
|
|
137
|
+
OperatorCode[OperatorCode["i32_shr_u"] = 118] = "i32_shr_u";
|
|
138
|
+
OperatorCode[OperatorCode["i32_rotl"] = 119] = "i32_rotl";
|
|
139
|
+
OperatorCode[OperatorCode["i32_rotr"] = 120] = "i32_rotr";
|
|
140
|
+
OperatorCode[OperatorCode["i64_clz"] = 121] = "i64_clz";
|
|
141
|
+
OperatorCode[OperatorCode["i64_ctz"] = 122] = "i64_ctz";
|
|
142
|
+
OperatorCode[OperatorCode["i64_popcnt"] = 123] = "i64_popcnt";
|
|
143
|
+
OperatorCode[OperatorCode["i64_add"] = 124] = "i64_add";
|
|
144
|
+
OperatorCode[OperatorCode["i64_sub"] = 125] = "i64_sub";
|
|
145
|
+
OperatorCode[OperatorCode["i64_mul"] = 126] = "i64_mul";
|
|
146
|
+
OperatorCode[OperatorCode["i64_div_s"] = 127] = "i64_div_s";
|
|
147
|
+
OperatorCode[OperatorCode["i64_div_u"] = 128] = "i64_div_u";
|
|
148
|
+
OperatorCode[OperatorCode["i64_rem_s"] = 129] = "i64_rem_s";
|
|
149
|
+
OperatorCode[OperatorCode["i64_rem_u"] = 130] = "i64_rem_u";
|
|
150
|
+
OperatorCode[OperatorCode["i64_and"] = 131] = "i64_and";
|
|
151
|
+
OperatorCode[OperatorCode["i64_or"] = 132] = "i64_or";
|
|
152
|
+
OperatorCode[OperatorCode["i64_xor"] = 133] = "i64_xor";
|
|
153
|
+
OperatorCode[OperatorCode["i64_shl"] = 134] = "i64_shl";
|
|
154
|
+
OperatorCode[OperatorCode["i64_shr_s"] = 135] = "i64_shr_s";
|
|
155
|
+
OperatorCode[OperatorCode["i64_shr_u"] = 136] = "i64_shr_u";
|
|
156
|
+
OperatorCode[OperatorCode["i64_rotl"] = 137] = "i64_rotl";
|
|
157
|
+
OperatorCode[OperatorCode["i64_rotr"] = 138] = "i64_rotr";
|
|
158
|
+
OperatorCode[OperatorCode["f32_abs"] = 139] = "f32_abs";
|
|
159
|
+
OperatorCode[OperatorCode["f32_neg"] = 140] = "f32_neg";
|
|
160
|
+
OperatorCode[OperatorCode["f32_ceil"] = 141] = "f32_ceil";
|
|
161
|
+
OperatorCode[OperatorCode["f32_floor"] = 142] = "f32_floor";
|
|
162
|
+
OperatorCode[OperatorCode["f32_trunc"] = 143] = "f32_trunc";
|
|
163
|
+
OperatorCode[OperatorCode["f32_nearest"] = 144] = "f32_nearest";
|
|
164
|
+
OperatorCode[OperatorCode["f32_sqrt"] = 145] = "f32_sqrt";
|
|
165
|
+
OperatorCode[OperatorCode["f32_add"] = 146] = "f32_add";
|
|
166
|
+
OperatorCode[OperatorCode["f32_sub"] = 147] = "f32_sub";
|
|
167
|
+
OperatorCode[OperatorCode["f32_mul"] = 148] = "f32_mul";
|
|
168
|
+
OperatorCode[OperatorCode["f32_div"] = 149] = "f32_div";
|
|
169
|
+
OperatorCode[OperatorCode["f32_min"] = 150] = "f32_min";
|
|
170
|
+
OperatorCode[OperatorCode["f32_max"] = 151] = "f32_max";
|
|
171
|
+
OperatorCode[OperatorCode["f32_copysign"] = 152] = "f32_copysign";
|
|
172
|
+
OperatorCode[OperatorCode["f64_abs"] = 153] = "f64_abs";
|
|
173
|
+
OperatorCode[OperatorCode["f64_neg"] = 154] = "f64_neg";
|
|
174
|
+
OperatorCode[OperatorCode["f64_ceil"] = 155] = "f64_ceil";
|
|
175
|
+
OperatorCode[OperatorCode["f64_floor"] = 156] = "f64_floor";
|
|
176
|
+
OperatorCode[OperatorCode["f64_trunc"] = 157] = "f64_trunc";
|
|
177
|
+
OperatorCode[OperatorCode["f64_nearest"] = 158] = "f64_nearest";
|
|
178
|
+
OperatorCode[OperatorCode["f64_sqrt"] = 159] = "f64_sqrt";
|
|
179
|
+
OperatorCode[OperatorCode["f64_add"] = 160] = "f64_add";
|
|
180
|
+
OperatorCode[OperatorCode["f64_sub"] = 161] = "f64_sub";
|
|
181
|
+
OperatorCode[OperatorCode["f64_mul"] = 162] = "f64_mul";
|
|
182
|
+
OperatorCode[OperatorCode["f64_div"] = 163] = "f64_div";
|
|
183
|
+
OperatorCode[OperatorCode["f64_min"] = 164] = "f64_min";
|
|
184
|
+
OperatorCode[OperatorCode["f64_max"] = 165] = "f64_max";
|
|
185
|
+
OperatorCode[OperatorCode["f64_copysign"] = 166] = "f64_copysign";
|
|
186
|
+
OperatorCode[OperatorCode["i32_wrap_i64"] = 167] = "i32_wrap_i64";
|
|
187
|
+
OperatorCode[OperatorCode["i32_trunc_f32_s"] = 168] = "i32_trunc_f32_s";
|
|
188
|
+
OperatorCode[OperatorCode["i32_trunc_f32_u"] = 169] = "i32_trunc_f32_u";
|
|
189
|
+
OperatorCode[OperatorCode["i32_trunc_f64_s"] = 170] = "i32_trunc_f64_s";
|
|
190
|
+
OperatorCode[OperatorCode["i32_trunc_f64_u"] = 171] = "i32_trunc_f64_u";
|
|
191
|
+
OperatorCode[OperatorCode["i64_extend_i32_s"] = 172] = "i64_extend_i32_s";
|
|
192
|
+
OperatorCode[OperatorCode["i64_extend_i32_u"] = 173] = "i64_extend_i32_u";
|
|
193
|
+
OperatorCode[OperatorCode["i64_trunc_f32_s"] = 174] = "i64_trunc_f32_s";
|
|
194
|
+
OperatorCode[OperatorCode["i64_trunc_f32_u"] = 175] = "i64_trunc_f32_u";
|
|
195
|
+
OperatorCode[OperatorCode["i64_trunc_f64_s"] = 176] = "i64_trunc_f64_s";
|
|
196
|
+
OperatorCode[OperatorCode["i64_trunc_f64_u"] = 177] = "i64_trunc_f64_u";
|
|
197
|
+
OperatorCode[OperatorCode["f32_convert_i32_s"] = 178] = "f32_convert_i32_s";
|
|
198
|
+
OperatorCode[OperatorCode["f32_convert_i32_u"] = 179] = "f32_convert_i32_u";
|
|
199
|
+
OperatorCode[OperatorCode["f32_convert_i64_s"] = 180] = "f32_convert_i64_s";
|
|
200
|
+
OperatorCode[OperatorCode["f32_convert_i64_u"] = 181] = "f32_convert_i64_u";
|
|
201
|
+
OperatorCode[OperatorCode["f32_demote_f64"] = 182] = "f32_demote_f64";
|
|
202
|
+
OperatorCode[OperatorCode["f64_convert_i32_s"] = 183] = "f64_convert_i32_s";
|
|
203
|
+
OperatorCode[OperatorCode["f64_convert_i32_u"] = 184] = "f64_convert_i32_u";
|
|
204
|
+
OperatorCode[OperatorCode["f64_convert_i64_s"] = 185] = "f64_convert_i64_s";
|
|
205
|
+
OperatorCode[OperatorCode["f64_convert_i64_u"] = 186] = "f64_convert_i64_u";
|
|
206
|
+
OperatorCode[OperatorCode["f64_promote_f32"] = 187] = "f64_promote_f32";
|
|
207
|
+
OperatorCode[OperatorCode["i32_reinterpret_f32"] = 188] = "i32_reinterpret_f32";
|
|
208
|
+
OperatorCode[OperatorCode["i64_reinterpret_f64"] = 189] = "i64_reinterpret_f64";
|
|
209
|
+
OperatorCode[OperatorCode["f32_reinterpret_i32"] = 190] = "f32_reinterpret_i32";
|
|
210
|
+
OperatorCode[OperatorCode["f64_reinterpret_i64"] = 191] = "f64_reinterpret_i64";
|
|
211
|
+
OperatorCode[OperatorCode["i32_extend8_s"] = 192] = "i32_extend8_s";
|
|
212
|
+
OperatorCode[OperatorCode["i32_extend16_s"] = 193] = "i32_extend16_s";
|
|
213
|
+
OperatorCode[OperatorCode["i64_extend8_s"] = 194] = "i64_extend8_s";
|
|
214
|
+
OperatorCode[OperatorCode["i64_extend16_s"] = 195] = "i64_extend16_s";
|
|
215
|
+
OperatorCode[OperatorCode["i64_extend32_s"] = 196] = "i64_extend32_s";
|
|
216
|
+
OperatorCode[OperatorCode["prefix_0xfc"] = 252] = "prefix_0xfc";
|
|
217
|
+
OperatorCode[OperatorCode["prefix_0xfd"] = 253] = "prefix_0xfd";
|
|
218
|
+
OperatorCode[OperatorCode["prefix_0xfe"] = 254] = "prefix_0xfe";
|
|
219
|
+
OperatorCode[OperatorCode["i32_trunc_sat_f32_s"] = 64512] = "i32_trunc_sat_f32_s";
|
|
220
|
+
OperatorCode[OperatorCode["i32_trunc_sat_f32_u"] = 64513] = "i32_trunc_sat_f32_u";
|
|
221
|
+
OperatorCode[OperatorCode["i32_trunc_sat_f64_s"] = 64514] = "i32_trunc_sat_f64_s";
|
|
222
|
+
OperatorCode[OperatorCode["i32_trunc_sat_f64_u"] = 64515] = "i32_trunc_sat_f64_u";
|
|
223
|
+
OperatorCode[OperatorCode["i64_trunc_sat_f32_s"] = 64516] = "i64_trunc_sat_f32_s";
|
|
224
|
+
OperatorCode[OperatorCode["i64_trunc_sat_f32_u"] = 64517] = "i64_trunc_sat_f32_u";
|
|
225
|
+
OperatorCode[OperatorCode["i64_trunc_sat_f64_s"] = 64518] = "i64_trunc_sat_f64_s";
|
|
226
|
+
OperatorCode[OperatorCode["i64_trunc_sat_f64_u"] = 64519] = "i64_trunc_sat_f64_u";
|
|
227
|
+
OperatorCode[OperatorCode["memory_init"] = 64520] = "memory_init";
|
|
228
|
+
OperatorCode[OperatorCode["data_drop"] = 64521] = "data_drop";
|
|
229
|
+
OperatorCode[OperatorCode["memory_copy"] = 64522] = "memory_copy";
|
|
230
|
+
OperatorCode[OperatorCode["memory_fill"] = 64523] = "memory_fill";
|
|
231
|
+
OperatorCode[OperatorCode["table_init"] = 64524] = "table_init";
|
|
232
|
+
OperatorCode[OperatorCode["elem_drop"] = 64525] = "elem_drop";
|
|
233
|
+
OperatorCode[OperatorCode["table_copy"] = 64526] = "table_copy";
|
|
234
|
+
OperatorCode[OperatorCode["table_grow"] = 64527] = "table_grow";
|
|
235
|
+
OperatorCode[OperatorCode["table_size"] = 64528] = "table_size";
|
|
236
|
+
OperatorCode[OperatorCode["table_fill"] = 64529] = "table_fill";
|
|
237
|
+
OperatorCode[OperatorCode["table_get"] = 37] = "table_get";
|
|
238
|
+
OperatorCode[OperatorCode["table_set"] = 38] = "table_set";
|
|
239
|
+
OperatorCode[OperatorCode["ref_null"] = 208] = "ref_null";
|
|
240
|
+
OperatorCode[OperatorCode["ref_is_null"] = 209] = "ref_is_null";
|
|
241
|
+
OperatorCode[OperatorCode["ref_func"] = 210] = "ref_func";
|
|
242
|
+
OperatorCode[OperatorCode["atomic_notify"] = 65024] = "atomic_notify";
|
|
243
|
+
OperatorCode[OperatorCode["i32_atomic_wait"] = 65025] = "i32_atomic_wait";
|
|
244
|
+
OperatorCode[OperatorCode["i64_atomic_wait"] = 65026] = "i64_atomic_wait";
|
|
245
|
+
OperatorCode[OperatorCode["atomic_fence"] = 65027] = "atomic_fence";
|
|
246
|
+
OperatorCode[OperatorCode["i32_atomic_load"] = 65040] = "i32_atomic_load";
|
|
247
|
+
OperatorCode[OperatorCode["i64_atomic_load"] = 65041] = "i64_atomic_load";
|
|
248
|
+
OperatorCode[OperatorCode["i32_atomic_load8_u"] = 65042] = "i32_atomic_load8_u";
|
|
249
|
+
OperatorCode[OperatorCode["i32_atomic_load16_u"] = 65043] = "i32_atomic_load16_u";
|
|
250
|
+
OperatorCode[OperatorCode["i64_atomic_load8_u"] = 65044] = "i64_atomic_load8_u";
|
|
251
|
+
OperatorCode[OperatorCode["i64_atomic_load16_u"] = 65045] = "i64_atomic_load16_u";
|
|
252
|
+
OperatorCode[OperatorCode["i64_atomic_load32_u"] = 65046] = "i64_atomic_load32_u";
|
|
253
|
+
OperatorCode[OperatorCode["i32_atomic_store"] = 65047] = "i32_atomic_store";
|
|
254
|
+
OperatorCode[OperatorCode["i64_atomic_store"] = 65048] = "i64_atomic_store";
|
|
255
|
+
OperatorCode[OperatorCode["i32_atomic_store8"] = 65049] = "i32_atomic_store8";
|
|
256
|
+
OperatorCode[OperatorCode["i32_atomic_store16"] = 65050] = "i32_atomic_store16";
|
|
257
|
+
OperatorCode[OperatorCode["i64_atomic_store8"] = 65051] = "i64_atomic_store8";
|
|
258
|
+
OperatorCode[OperatorCode["i64_atomic_store16"] = 65052] = "i64_atomic_store16";
|
|
259
|
+
OperatorCode[OperatorCode["i64_atomic_store32"] = 65053] = "i64_atomic_store32";
|
|
260
|
+
OperatorCode[OperatorCode["i32_atomic_rmw_add"] = 65054] = "i32_atomic_rmw_add";
|
|
261
|
+
OperatorCode[OperatorCode["i64_atomic_rmw_add"] = 65055] = "i64_atomic_rmw_add";
|
|
262
|
+
OperatorCode[OperatorCode["i32_atomic_rmw8_add_u"] = 65056] = "i32_atomic_rmw8_add_u";
|
|
263
|
+
OperatorCode[OperatorCode["i32_atomic_rmw16_add_u"] = 65057] = "i32_atomic_rmw16_add_u";
|
|
264
|
+
OperatorCode[OperatorCode["i64_atomic_rmw8_add_u"] = 65058] = "i64_atomic_rmw8_add_u";
|
|
265
|
+
OperatorCode[OperatorCode["i64_atomic_rmw16_add_u"] = 65059] = "i64_atomic_rmw16_add_u";
|
|
266
|
+
OperatorCode[OperatorCode["i64_atomic_rmw32_add_u"] = 65060] = "i64_atomic_rmw32_add_u";
|
|
267
|
+
OperatorCode[OperatorCode["i32_atomic_rmw_sub"] = 65061] = "i32_atomic_rmw_sub";
|
|
268
|
+
OperatorCode[OperatorCode["i64_atomic_rmw_sub"] = 65062] = "i64_atomic_rmw_sub";
|
|
269
|
+
OperatorCode[OperatorCode["i32_atomic_rmw8_sub_u"] = 65063] = "i32_atomic_rmw8_sub_u";
|
|
270
|
+
OperatorCode[OperatorCode["i32_atomic_rmw16_sub_u"] = 65064] = "i32_atomic_rmw16_sub_u";
|
|
271
|
+
OperatorCode[OperatorCode["i64_atomic_rmw8_sub_u"] = 65065] = "i64_atomic_rmw8_sub_u";
|
|
272
|
+
OperatorCode[OperatorCode["i64_atomic_rmw16_sub_u"] = 65066] = "i64_atomic_rmw16_sub_u";
|
|
273
|
+
OperatorCode[OperatorCode["i64_atomic_rmw32_sub_u"] = 65067] = "i64_atomic_rmw32_sub_u";
|
|
274
|
+
OperatorCode[OperatorCode["i32_atomic_rmw_and"] = 65068] = "i32_atomic_rmw_and";
|
|
275
|
+
OperatorCode[OperatorCode["i64_atomic_rmw_and"] = 65069] = "i64_atomic_rmw_and";
|
|
276
|
+
OperatorCode[OperatorCode["i32_atomic_rmw8_and_u"] = 65070] = "i32_atomic_rmw8_and_u";
|
|
277
|
+
OperatorCode[OperatorCode["i32_atomic_rmw16_and_u"] = 65071] = "i32_atomic_rmw16_and_u";
|
|
278
|
+
OperatorCode[OperatorCode["i64_atomic_rmw8_and_u"] = 65072] = "i64_atomic_rmw8_and_u";
|
|
279
|
+
OperatorCode[OperatorCode["i64_atomic_rmw16_and_u"] = 65073] = "i64_atomic_rmw16_and_u";
|
|
280
|
+
OperatorCode[OperatorCode["i64_atomic_rmw32_and_u"] = 65074] = "i64_atomic_rmw32_and_u";
|
|
281
|
+
OperatorCode[OperatorCode["i32_atomic_rmw_or"] = 65075] = "i32_atomic_rmw_or";
|
|
282
|
+
OperatorCode[OperatorCode["i64_atomic_rmw_or"] = 65076] = "i64_atomic_rmw_or";
|
|
283
|
+
OperatorCode[OperatorCode["i32_atomic_rmw8_or_u"] = 65077] = "i32_atomic_rmw8_or_u";
|
|
284
|
+
OperatorCode[OperatorCode["i32_atomic_rmw16_or_u"] = 65078] = "i32_atomic_rmw16_or_u";
|
|
285
|
+
OperatorCode[OperatorCode["i64_atomic_rmw8_or_u"] = 65079] = "i64_atomic_rmw8_or_u";
|
|
286
|
+
OperatorCode[OperatorCode["i64_atomic_rmw16_or_u"] = 65080] = "i64_atomic_rmw16_or_u";
|
|
287
|
+
OperatorCode[OperatorCode["i64_atomic_rmw32_or_u"] = 65081] = "i64_atomic_rmw32_or_u";
|
|
288
|
+
OperatorCode[OperatorCode["i32_atomic_rmw_xor"] = 65082] = "i32_atomic_rmw_xor";
|
|
289
|
+
OperatorCode[OperatorCode["i64_atomic_rmw_xor"] = 65083] = "i64_atomic_rmw_xor";
|
|
290
|
+
OperatorCode[OperatorCode["i32_atomic_rmw8_xor_u"] = 65084] = "i32_atomic_rmw8_xor_u";
|
|
291
|
+
OperatorCode[OperatorCode["i32_atomic_rmw16_xor_u"] = 65085] = "i32_atomic_rmw16_xor_u";
|
|
292
|
+
OperatorCode[OperatorCode["i64_atomic_rmw8_xor_u"] = 65086] = "i64_atomic_rmw8_xor_u";
|
|
293
|
+
OperatorCode[OperatorCode["i64_atomic_rmw16_xor_u"] = 65087] = "i64_atomic_rmw16_xor_u";
|
|
294
|
+
OperatorCode[OperatorCode["i64_atomic_rmw32_xor_u"] = 65088] = "i64_atomic_rmw32_xor_u";
|
|
295
|
+
OperatorCode[OperatorCode["i32_atomic_rmw_xchg"] = 65089] = "i32_atomic_rmw_xchg";
|
|
296
|
+
OperatorCode[OperatorCode["i64_atomic_rmw_xchg"] = 65090] = "i64_atomic_rmw_xchg";
|
|
297
|
+
OperatorCode[OperatorCode["i32_atomic_rmw8_xchg_u"] = 65091] = "i32_atomic_rmw8_xchg_u";
|
|
298
|
+
OperatorCode[OperatorCode["i32_atomic_rmw16_xchg_u"] = 65092] = "i32_atomic_rmw16_xchg_u";
|
|
299
|
+
OperatorCode[OperatorCode["i64_atomic_rmw8_xchg_u"] = 65093] = "i64_atomic_rmw8_xchg_u";
|
|
300
|
+
OperatorCode[OperatorCode["i64_atomic_rmw16_xchg_u"] = 65094] = "i64_atomic_rmw16_xchg_u";
|
|
301
|
+
OperatorCode[OperatorCode["i64_atomic_rmw32_xchg_u"] = 65095] = "i64_atomic_rmw32_xchg_u";
|
|
302
|
+
OperatorCode[OperatorCode["i32_atomic_rmw_cmpxchg"] = 65096] = "i32_atomic_rmw_cmpxchg";
|
|
303
|
+
OperatorCode[OperatorCode["i64_atomic_rmw_cmpxchg"] = 65097] = "i64_atomic_rmw_cmpxchg";
|
|
304
|
+
OperatorCode[OperatorCode["i32_atomic_rmw8_cmpxchg_u"] = 65098] = "i32_atomic_rmw8_cmpxchg_u";
|
|
305
|
+
OperatorCode[OperatorCode["i32_atomic_rmw16_cmpxchg_u"] = 65099] = "i32_atomic_rmw16_cmpxchg_u";
|
|
306
|
+
OperatorCode[OperatorCode["i64_atomic_rmw8_cmpxchg_u"] = 65100] = "i64_atomic_rmw8_cmpxchg_u";
|
|
307
|
+
OperatorCode[OperatorCode["i64_atomic_rmw16_cmpxchg_u"] = 65101] = "i64_atomic_rmw16_cmpxchg_u";
|
|
308
|
+
OperatorCode[OperatorCode["i64_atomic_rmw32_cmpxchg_u"] = 65102] = "i64_atomic_rmw32_cmpxchg_u";
|
|
309
|
+
OperatorCode[OperatorCode["v128_load"] = 64768] = "v128_load";
|
|
310
|
+
OperatorCode[OperatorCode["i16x8_load8x8_s"] = 64769] = "i16x8_load8x8_s";
|
|
311
|
+
OperatorCode[OperatorCode["i16x8_load8x8_u"] = 64770] = "i16x8_load8x8_u";
|
|
312
|
+
OperatorCode[OperatorCode["i32x4_load16x4_s"] = 64771] = "i32x4_load16x4_s";
|
|
313
|
+
OperatorCode[OperatorCode["i32x4_load16x4_u"] = 64772] = "i32x4_load16x4_u";
|
|
314
|
+
OperatorCode[OperatorCode["i64x2_load32x2_s"] = 64773] = "i64x2_load32x2_s";
|
|
315
|
+
OperatorCode[OperatorCode["i64x2_load32x2_u"] = 64774] = "i64x2_load32x2_u";
|
|
316
|
+
OperatorCode[OperatorCode["v8x16_load_splat"] = 64775] = "v8x16_load_splat";
|
|
317
|
+
OperatorCode[OperatorCode["v16x8_load_splat"] = 64776] = "v16x8_load_splat";
|
|
318
|
+
OperatorCode[OperatorCode["v32x4_load_splat"] = 64777] = "v32x4_load_splat";
|
|
319
|
+
OperatorCode[OperatorCode["v64x2_load_splat"] = 64778] = "v64x2_load_splat";
|
|
320
|
+
OperatorCode[OperatorCode["v128_store"] = 64779] = "v128_store";
|
|
321
|
+
OperatorCode[OperatorCode["v128_load32_zero"] = 65020] = "v128_load32_zero";
|
|
322
|
+
OperatorCode[OperatorCode["v128_load64_zero"] = 65021] = "v128_load64_zero";
|
|
323
|
+
OperatorCode[OperatorCode["v128_const"] = 64780] = "v128_const";
|
|
324
|
+
OperatorCode[OperatorCode["i8x16_shuffle"] = 64781] = "i8x16_shuffle";
|
|
325
|
+
OperatorCode[OperatorCode["i8x16_swizzle"] = 64782] = "i8x16_swizzle";
|
|
326
|
+
OperatorCode[OperatorCode["i8x16_splat"] = 64783] = "i8x16_splat";
|
|
327
|
+
OperatorCode[OperatorCode["i16x8_splat"] = 64784] = "i16x8_splat";
|
|
328
|
+
OperatorCode[OperatorCode["i32x4_splat"] = 64785] = "i32x4_splat";
|
|
329
|
+
OperatorCode[OperatorCode["i64x2_splat"] = 64786] = "i64x2_splat";
|
|
330
|
+
OperatorCode[OperatorCode["f32x4_splat"] = 64787] = "f32x4_splat";
|
|
331
|
+
OperatorCode[OperatorCode["f64x2_splat"] = 64788] = "f64x2_splat";
|
|
332
|
+
OperatorCode[OperatorCode["i8x16_extract_lane_s"] = 64789] = "i8x16_extract_lane_s";
|
|
333
|
+
OperatorCode[OperatorCode["i8x16_extract_lane_u"] = 64790] = "i8x16_extract_lane_u";
|
|
334
|
+
OperatorCode[OperatorCode["i8x16_replace_lane"] = 64791] = "i8x16_replace_lane";
|
|
335
|
+
OperatorCode[OperatorCode["i16x8_extract_lane_s"] = 64792] = "i16x8_extract_lane_s";
|
|
336
|
+
OperatorCode[OperatorCode["i16x8_extract_lane_u"] = 64793] = "i16x8_extract_lane_u";
|
|
337
|
+
OperatorCode[OperatorCode["i16x8_replace_lane"] = 64794] = "i16x8_replace_lane";
|
|
338
|
+
OperatorCode[OperatorCode["i32x4_extract_lane"] = 64795] = "i32x4_extract_lane";
|
|
339
|
+
OperatorCode[OperatorCode["i32x4_replace_lane"] = 64796] = "i32x4_replace_lane";
|
|
340
|
+
OperatorCode[OperatorCode["i64x2_extract_lane"] = 64797] = "i64x2_extract_lane";
|
|
341
|
+
OperatorCode[OperatorCode["i64x2_replace_lane"] = 64798] = "i64x2_replace_lane";
|
|
342
|
+
OperatorCode[OperatorCode["f32x4_extract_lane"] = 64799] = "f32x4_extract_lane";
|
|
343
|
+
OperatorCode[OperatorCode["f32x4_replace_lane"] = 64800] = "f32x4_replace_lane";
|
|
344
|
+
OperatorCode[OperatorCode["f64x2_extract_lane"] = 64801] = "f64x2_extract_lane";
|
|
345
|
+
OperatorCode[OperatorCode["f64x2_replace_lane"] = 64802] = "f64x2_replace_lane";
|
|
346
|
+
OperatorCode[OperatorCode["i8x16_eq"] = 64803] = "i8x16_eq";
|
|
347
|
+
OperatorCode[OperatorCode["i8x16_ne"] = 64804] = "i8x16_ne";
|
|
348
|
+
OperatorCode[OperatorCode["i8x16_lt_s"] = 64805] = "i8x16_lt_s";
|
|
349
|
+
OperatorCode[OperatorCode["i8x16_lt_u"] = 64806] = "i8x16_lt_u";
|
|
350
|
+
OperatorCode[OperatorCode["i8x16_gt_s"] = 64807] = "i8x16_gt_s";
|
|
351
|
+
OperatorCode[OperatorCode["i8x16_gt_u"] = 64808] = "i8x16_gt_u";
|
|
352
|
+
OperatorCode[OperatorCode["i8x16_le_s"] = 64809] = "i8x16_le_s";
|
|
353
|
+
OperatorCode[OperatorCode["i8x16_le_u"] = 64810] = "i8x16_le_u";
|
|
354
|
+
OperatorCode[OperatorCode["i8x16_ge_s"] = 64811] = "i8x16_ge_s";
|
|
355
|
+
OperatorCode[OperatorCode["i8x16_ge_u"] = 64812] = "i8x16_ge_u";
|
|
356
|
+
OperatorCode[OperatorCode["i16x8_eq"] = 64813] = "i16x8_eq";
|
|
357
|
+
OperatorCode[OperatorCode["i16x8_ne"] = 64814] = "i16x8_ne";
|
|
358
|
+
OperatorCode[OperatorCode["i16x8_lt_s"] = 64815] = "i16x8_lt_s";
|
|
359
|
+
OperatorCode[OperatorCode["i16x8_lt_u"] = 64816] = "i16x8_lt_u";
|
|
360
|
+
OperatorCode[OperatorCode["i16x8_gt_s"] = 64817] = "i16x8_gt_s";
|
|
361
|
+
OperatorCode[OperatorCode["i16x8_gt_u"] = 64818] = "i16x8_gt_u";
|
|
362
|
+
OperatorCode[OperatorCode["i16x8_le_s"] = 64819] = "i16x8_le_s";
|
|
363
|
+
OperatorCode[OperatorCode["i16x8_le_u"] = 64820] = "i16x8_le_u";
|
|
364
|
+
OperatorCode[OperatorCode["i16x8_ge_s"] = 64821] = "i16x8_ge_s";
|
|
365
|
+
OperatorCode[OperatorCode["i16x8_ge_u"] = 64822] = "i16x8_ge_u";
|
|
366
|
+
OperatorCode[OperatorCode["i32x4_eq"] = 64823] = "i32x4_eq";
|
|
367
|
+
OperatorCode[OperatorCode["i32x4_ne"] = 64824] = "i32x4_ne";
|
|
368
|
+
OperatorCode[OperatorCode["i32x4_lt_s"] = 64825] = "i32x4_lt_s";
|
|
369
|
+
OperatorCode[OperatorCode["i32x4_lt_u"] = 64826] = "i32x4_lt_u";
|
|
370
|
+
OperatorCode[OperatorCode["i32x4_gt_s"] = 64827] = "i32x4_gt_s";
|
|
371
|
+
OperatorCode[OperatorCode["i32x4_gt_u"] = 64828] = "i32x4_gt_u";
|
|
372
|
+
OperatorCode[OperatorCode["i32x4_le_s"] = 64829] = "i32x4_le_s";
|
|
373
|
+
OperatorCode[OperatorCode["i32x4_le_u"] = 64830] = "i32x4_le_u";
|
|
374
|
+
OperatorCode[OperatorCode["i32x4_ge_s"] = 64831] = "i32x4_ge_s";
|
|
375
|
+
OperatorCode[OperatorCode["i32x4_ge_u"] = 64832] = "i32x4_ge_u";
|
|
376
|
+
OperatorCode[OperatorCode["f32x4_eq"] = 64833] = "f32x4_eq";
|
|
377
|
+
OperatorCode[OperatorCode["f32x4_ne"] = 64834] = "f32x4_ne";
|
|
378
|
+
OperatorCode[OperatorCode["f32x4_lt"] = 64835] = "f32x4_lt";
|
|
379
|
+
OperatorCode[OperatorCode["f32x4_gt"] = 64836] = "f32x4_gt";
|
|
380
|
+
OperatorCode[OperatorCode["f32x4_le"] = 64837] = "f32x4_le";
|
|
381
|
+
OperatorCode[OperatorCode["f32x4_ge"] = 64838] = "f32x4_ge";
|
|
382
|
+
OperatorCode[OperatorCode["f64x2_eq"] = 64839] = "f64x2_eq";
|
|
383
|
+
OperatorCode[OperatorCode["f64x2_ne"] = 64840] = "f64x2_ne";
|
|
384
|
+
OperatorCode[OperatorCode["f64x2_lt"] = 64841] = "f64x2_lt";
|
|
385
|
+
OperatorCode[OperatorCode["f64x2_gt"] = 64842] = "f64x2_gt";
|
|
386
|
+
OperatorCode[OperatorCode["f64x2_le"] = 64843] = "f64x2_le";
|
|
387
|
+
OperatorCode[OperatorCode["f64x2_ge"] = 64844] = "f64x2_ge";
|
|
388
|
+
OperatorCode[OperatorCode["v128_not"] = 64845] = "v128_not";
|
|
389
|
+
OperatorCode[OperatorCode["v128_and"] = 64846] = "v128_and";
|
|
390
|
+
OperatorCode[OperatorCode["v128_andnot"] = 64847] = "v128_andnot";
|
|
391
|
+
OperatorCode[OperatorCode["v128_or"] = 64848] = "v128_or";
|
|
392
|
+
OperatorCode[OperatorCode["v128_xor"] = 64849] = "v128_xor";
|
|
393
|
+
OperatorCode[OperatorCode["v128_bitselect"] = 64850] = "v128_bitselect";
|
|
394
|
+
OperatorCode[OperatorCode["i8x16_abs"] = 64864] = "i8x16_abs";
|
|
395
|
+
OperatorCode[OperatorCode["i8x16_neg"] = 64865] = "i8x16_neg";
|
|
396
|
+
OperatorCode[OperatorCode["i8x16_any_true"] = 64866] = "i8x16_any_true";
|
|
397
|
+
OperatorCode[OperatorCode["i8x16_all_true"] = 64867] = "i8x16_all_true";
|
|
398
|
+
OperatorCode[OperatorCode["i8x16_bitmask"] = 64868] = "i8x16_bitmask";
|
|
399
|
+
OperatorCode[OperatorCode["i8x16_narrow_i16x8_s"] = 64869] = "i8x16_narrow_i16x8_s";
|
|
400
|
+
OperatorCode[OperatorCode["i8x16_narrow_i16x8_u"] = 64870] = "i8x16_narrow_i16x8_u";
|
|
401
|
+
OperatorCode[OperatorCode["i8x16_shl"] = 64875] = "i8x16_shl";
|
|
402
|
+
OperatorCode[OperatorCode["i8x16_shr_s"] = 64876] = "i8x16_shr_s";
|
|
403
|
+
OperatorCode[OperatorCode["i8x16_shr_u"] = 64877] = "i8x16_shr_u";
|
|
404
|
+
OperatorCode[OperatorCode["i8x16_add"] = 64878] = "i8x16_add";
|
|
405
|
+
OperatorCode[OperatorCode["i8x16_add_sat_s"] = 64879] = "i8x16_add_sat_s";
|
|
406
|
+
OperatorCode[OperatorCode["i8x16_add_sat_u"] = 64880] = "i8x16_add_sat_u";
|
|
407
|
+
OperatorCode[OperatorCode["i8x16_sub"] = 64881] = "i8x16_sub";
|
|
408
|
+
OperatorCode[OperatorCode["i8x16_sub_sat_s"] = 64882] = "i8x16_sub_sat_s";
|
|
409
|
+
OperatorCode[OperatorCode["i8x16_sub_sat_u"] = 64883] = "i8x16_sub_sat_u";
|
|
410
|
+
OperatorCode[OperatorCode["i8x16_min_s"] = 64886] = "i8x16_min_s";
|
|
411
|
+
OperatorCode[OperatorCode["i8x16_min_u"] = 64887] = "i8x16_min_u";
|
|
412
|
+
OperatorCode[OperatorCode["i8x16_max_s"] = 64888] = "i8x16_max_s";
|
|
413
|
+
OperatorCode[OperatorCode["i8x16_max_u"] = 64889] = "i8x16_max_u";
|
|
414
|
+
OperatorCode[OperatorCode["i8x16_avgr_u"] = 64891] = "i8x16_avgr_u";
|
|
415
|
+
OperatorCode[OperatorCode["i16x8_abs"] = 64896] = "i16x8_abs";
|
|
416
|
+
OperatorCode[OperatorCode["i16x8_neg"] = 64897] = "i16x8_neg";
|
|
417
|
+
OperatorCode[OperatorCode["i16x8_any_true"] = 64898] = "i16x8_any_true";
|
|
418
|
+
OperatorCode[OperatorCode["i16x8_all_true"] = 64899] = "i16x8_all_true";
|
|
419
|
+
OperatorCode[OperatorCode["i16x8_bitmask"] = 64900] = "i16x8_bitmask";
|
|
420
|
+
OperatorCode[OperatorCode["i16x8_narrow_i32x4_s"] = 64901] = "i16x8_narrow_i32x4_s";
|
|
421
|
+
OperatorCode[OperatorCode["i16x8_narrow_i32x4_u"] = 64902] = "i16x8_narrow_i32x4_u";
|
|
422
|
+
OperatorCode[OperatorCode["i16x8_widen_low_i8x16_s"] = 64903] = "i16x8_widen_low_i8x16_s";
|
|
423
|
+
OperatorCode[OperatorCode["i16x8_widen_high_i8x16_s"] = 64904] = "i16x8_widen_high_i8x16_s";
|
|
424
|
+
OperatorCode[OperatorCode["i16x8_widen_low_i8x16_u"] = 64905] = "i16x8_widen_low_i8x16_u";
|
|
425
|
+
OperatorCode[OperatorCode["i16x8_widen_high_i8x16_u"] = 64906] = "i16x8_widen_high_i8x16_u";
|
|
426
|
+
OperatorCode[OperatorCode["i16x8_shl"] = 64907] = "i16x8_shl";
|
|
427
|
+
OperatorCode[OperatorCode["i16x8_shr_s"] = 64908] = "i16x8_shr_s";
|
|
428
|
+
OperatorCode[OperatorCode["i16x8_shr_u"] = 64909] = "i16x8_shr_u";
|
|
429
|
+
OperatorCode[OperatorCode["i16x8_add"] = 64910] = "i16x8_add";
|
|
430
|
+
OperatorCode[OperatorCode["i16x8_add_sat_s"] = 64911] = "i16x8_add_sat_s";
|
|
431
|
+
OperatorCode[OperatorCode["i16x8_add_sat_u"] = 64912] = "i16x8_add_sat_u";
|
|
432
|
+
OperatorCode[OperatorCode["i16x8_sub"] = 64913] = "i16x8_sub";
|
|
433
|
+
OperatorCode[OperatorCode["i16x8_sub_sat_s"] = 64914] = "i16x8_sub_sat_s";
|
|
434
|
+
OperatorCode[OperatorCode["i16x8_sub_sat_u"] = 64915] = "i16x8_sub_sat_u";
|
|
435
|
+
OperatorCode[OperatorCode["i16x8_mul"] = 64917] = "i16x8_mul";
|
|
436
|
+
OperatorCode[OperatorCode["i16x8_min_s"] = 64918] = "i16x8_min_s";
|
|
437
|
+
OperatorCode[OperatorCode["i16x8_min_u"] = 64919] = "i16x8_min_u";
|
|
438
|
+
OperatorCode[OperatorCode["i16x8_max_s"] = 64920] = "i16x8_max_s";
|
|
439
|
+
OperatorCode[OperatorCode["i16x8_max_u"] = 64921] = "i16x8_max_u";
|
|
440
|
+
OperatorCode[OperatorCode["i16x8_avgr_u"] = 64923] = "i16x8_avgr_u";
|
|
441
|
+
OperatorCode[OperatorCode["i32x4_abs"] = 64928] = "i32x4_abs";
|
|
442
|
+
OperatorCode[OperatorCode["i32x4_neg"] = 64929] = "i32x4_neg";
|
|
443
|
+
OperatorCode[OperatorCode["i32x4_any_true"] = 64930] = "i32x4_any_true";
|
|
444
|
+
OperatorCode[OperatorCode["i32x4_all_true"] = 64931] = "i32x4_all_true";
|
|
445
|
+
OperatorCode[OperatorCode["i32x4_bitmask"] = 64932] = "i32x4_bitmask";
|
|
446
|
+
OperatorCode[OperatorCode["i32x4_widen_low_i16x8_s"] = 64935] = "i32x4_widen_low_i16x8_s";
|
|
447
|
+
OperatorCode[OperatorCode["i32x4_widen_high_i16x8_s"] = 64936] = "i32x4_widen_high_i16x8_s";
|
|
448
|
+
OperatorCode[OperatorCode["i32x4_widen_low_i16x8_u"] = 64937] = "i32x4_widen_low_i16x8_u";
|
|
449
|
+
OperatorCode[OperatorCode["i32x4_widen_high_i16x8_u"] = 64938] = "i32x4_widen_high_i16x8_u";
|
|
450
|
+
OperatorCode[OperatorCode["i32x4_shl"] = 64939] = "i32x4_shl";
|
|
451
|
+
OperatorCode[OperatorCode["i32x4_shr_s"] = 64940] = "i32x4_shr_s";
|
|
452
|
+
OperatorCode[OperatorCode["i32x4_shr_u"] = 64941] = "i32x4_shr_u";
|
|
453
|
+
OperatorCode[OperatorCode["i32x4_add"] = 64942] = "i32x4_add";
|
|
454
|
+
OperatorCode[OperatorCode["i32x4_sub"] = 64945] = "i32x4_sub";
|
|
455
|
+
OperatorCode[OperatorCode["i32x4_mul"] = 64949] = "i32x4_mul";
|
|
456
|
+
OperatorCode[OperatorCode["i32x4_min_s"] = 64950] = "i32x4_min_s";
|
|
457
|
+
OperatorCode[OperatorCode["i32x4_min_u"] = 64951] = "i32x4_min_u";
|
|
458
|
+
OperatorCode[OperatorCode["i32x4_max_s"] = 64952] = "i32x4_max_s";
|
|
459
|
+
OperatorCode[OperatorCode["i32x4_max_u"] = 64953] = "i32x4_max_u";
|
|
460
|
+
OperatorCode[OperatorCode["i32x4_dot_i16x8_s"] = 64954] = "i32x4_dot_i16x8_s";
|
|
461
|
+
OperatorCode[OperatorCode["i64x2_neg"] = 64961] = "i64x2_neg";
|
|
462
|
+
OperatorCode[OperatorCode["i64x2_shl"] = 64971] = "i64x2_shl";
|
|
463
|
+
OperatorCode[OperatorCode["i64x2_shr_s"] = 64972] = "i64x2_shr_s";
|
|
464
|
+
OperatorCode[OperatorCode["i64x2_shr_u"] = 64973] = "i64x2_shr_u";
|
|
465
|
+
OperatorCode[OperatorCode["i64x2_add"] = 64974] = "i64x2_add";
|
|
466
|
+
OperatorCode[OperatorCode["i64x2_sub"] = 64977] = "i64x2_sub";
|
|
467
|
+
OperatorCode[OperatorCode["i64x2_mul"] = 64981] = "i64x2_mul";
|
|
468
|
+
OperatorCode[OperatorCode["f32x4_abs"] = 64992] = "f32x4_abs";
|
|
469
|
+
OperatorCode[OperatorCode["f32x4_neg"] = 64993] = "f32x4_neg";
|
|
470
|
+
OperatorCode[OperatorCode["f32x4_sqrt"] = 64995] = "f32x4_sqrt";
|
|
471
|
+
OperatorCode[OperatorCode["f32x4_add"] = 64996] = "f32x4_add";
|
|
472
|
+
OperatorCode[OperatorCode["f32x4_sub"] = 64997] = "f32x4_sub";
|
|
473
|
+
OperatorCode[OperatorCode["f32x4_mul"] = 64998] = "f32x4_mul";
|
|
474
|
+
OperatorCode[OperatorCode["f32x4_div"] = 64999] = "f32x4_div";
|
|
475
|
+
OperatorCode[OperatorCode["f32x4_min"] = 65000] = "f32x4_min";
|
|
476
|
+
OperatorCode[OperatorCode["f32x4_max"] = 65001] = "f32x4_max";
|
|
477
|
+
OperatorCode[OperatorCode["f32x4_pmin"] = 65002] = "f32x4_pmin";
|
|
478
|
+
OperatorCode[OperatorCode["f32x4_pmax"] = 65003] = "f32x4_pmax";
|
|
479
|
+
OperatorCode[OperatorCode["f64x2_abs"] = 65004] = "f64x2_abs";
|
|
480
|
+
OperatorCode[OperatorCode["f64x2_neg"] = 65005] = "f64x2_neg";
|
|
481
|
+
OperatorCode[OperatorCode["f64x2_sqrt"] = 65007] = "f64x2_sqrt";
|
|
482
|
+
OperatorCode[OperatorCode["f64x2_add"] = 65008] = "f64x2_add";
|
|
483
|
+
OperatorCode[OperatorCode["f64x2_sub"] = 65009] = "f64x2_sub";
|
|
484
|
+
OperatorCode[OperatorCode["f64x2_mul"] = 65010] = "f64x2_mul";
|
|
485
|
+
OperatorCode[OperatorCode["f64x2_div"] = 65011] = "f64x2_div";
|
|
486
|
+
OperatorCode[OperatorCode["f64x2_min"] = 65012] = "f64x2_min";
|
|
487
|
+
OperatorCode[OperatorCode["f64x2_max"] = 65013] = "f64x2_max";
|
|
488
|
+
OperatorCode[OperatorCode["f64x2_pmin"] = 65014] = "f64x2_pmin";
|
|
489
|
+
OperatorCode[OperatorCode["f64x2_pmax"] = 65015] = "f64x2_pmax";
|
|
490
|
+
OperatorCode[OperatorCode["i32x4_trunc_sat_f32x4_s"] = 65016] = "i32x4_trunc_sat_f32x4_s";
|
|
491
|
+
OperatorCode[OperatorCode["i32x4_trunc_sat_f32x4_u"] = 65017] = "i32x4_trunc_sat_f32x4_u";
|
|
492
|
+
OperatorCode[OperatorCode["f32x4_convert_i32x4_s"] = 65018] = "f32x4_convert_i32x4_s";
|
|
493
|
+
OperatorCode[OperatorCode["f32x4_convert_i32x4_u"] = 65019] = "f32x4_convert_i32x4_u";
|
|
494
|
+
})(OperatorCode || (OperatorCode = {}));
|
|
495
|
+
export const OperatorCodeNames = [
|
|
496
|
+
"unreachable",
|
|
497
|
+
"nop",
|
|
498
|
+
"block",
|
|
499
|
+
"loop",
|
|
500
|
+
"if",
|
|
501
|
+
"else",
|
|
502
|
+
undefined,
|
|
503
|
+
undefined,
|
|
504
|
+
undefined,
|
|
505
|
+
undefined,
|
|
506
|
+
undefined,
|
|
507
|
+
"end",
|
|
508
|
+
"br",
|
|
509
|
+
"br_if",
|
|
510
|
+
"br_table",
|
|
511
|
+
"return",
|
|
512
|
+
"call",
|
|
513
|
+
"call_indirect",
|
|
514
|
+
"return_call",
|
|
515
|
+
"return_call_indirect",
|
|
516
|
+
undefined,
|
|
517
|
+
undefined,
|
|
518
|
+
undefined,
|
|
519
|
+
undefined,
|
|
520
|
+
undefined,
|
|
521
|
+
undefined,
|
|
522
|
+
"drop",
|
|
523
|
+
"select",
|
|
524
|
+
undefined,
|
|
525
|
+
undefined,
|
|
526
|
+
undefined,
|
|
527
|
+
undefined,
|
|
528
|
+
"local.get",
|
|
529
|
+
"local.set",
|
|
530
|
+
"local.tee",
|
|
531
|
+
"global.get",
|
|
532
|
+
"global.set",
|
|
533
|
+
"table.get",
|
|
534
|
+
"table.set",
|
|
535
|
+
undefined,
|
|
536
|
+
"i32.load",
|
|
537
|
+
"i64.load",
|
|
538
|
+
"f32.load",
|
|
539
|
+
"f64.load",
|
|
540
|
+
"i32.load8_s",
|
|
541
|
+
"i32.load8_u",
|
|
542
|
+
"i32.load16_s",
|
|
543
|
+
"i32.load16_u",
|
|
544
|
+
"i64.load8_s",
|
|
545
|
+
"i64.load8_u",
|
|
546
|
+
"i64.load16_s",
|
|
547
|
+
"i64.load16_u",
|
|
548
|
+
"i64.load32_s",
|
|
549
|
+
"i64.load32_u",
|
|
550
|
+
"i32.store",
|
|
551
|
+
"i64.store",
|
|
552
|
+
"f32.store",
|
|
553
|
+
"f64.store",
|
|
554
|
+
"i32.store8",
|
|
555
|
+
"i32.store16",
|
|
556
|
+
"i64.store8",
|
|
557
|
+
"i64.store16",
|
|
558
|
+
"i64.store32",
|
|
559
|
+
"current_memory",
|
|
560
|
+
"memory.grow",
|
|
561
|
+
"i32.const",
|
|
562
|
+
"i64.const",
|
|
563
|
+
"f32.const",
|
|
564
|
+
"f64.const",
|
|
565
|
+
"i32.eqz",
|
|
566
|
+
"i32.eq",
|
|
567
|
+
"i32.ne",
|
|
568
|
+
"i32.lt_s",
|
|
569
|
+
"i32.lt_u",
|
|
570
|
+
"i32.gt_s",
|
|
571
|
+
"i32.gt_u",
|
|
572
|
+
"i32.le_s",
|
|
573
|
+
"i32.le_u",
|
|
574
|
+
"i32.ge_s",
|
|
575
|
+
"i32.ge_u",
|
|
576
|
+
"i64.eqz",
|
|
577
|
+
"i64.eq",
|
|
578
|
+
"i64.ne",
|
|
579
|
+
"i64.lt_s",
|
|
580
|
+
"i64.lt_u",
|
|
581
|
+
"i64.gt_s",
|
|
582
|
+
"i64.gt_u",
|
|
583
|
+
"i64.le_s",
|
|
584
|
+
"i64.le_u",
|
|
585
|
+
"i64.ge_s",
|
|
586
|
+
"i64.ge_u",
|
|
587
|
+
"f32.eq",
|
|
588
|
+
"f32.ne",
|
|
589
|
+
"f32.lt",
|
|
590
|
+
"f32.gt",
|
|
591
|
+
"f32.le",
|
|
592
|
+
"f32.ge",
|
|
593
|
+
"f64.eq",
|
|
594
|
+
"f64.ne",
|
|
595
|
+
"f64.lt",
|
|
596
|
+
"f64.gt",
|
|
597
|
+
"f64.le",
|
|
598
|
+
"f64.ge",
|
|
599
|
+
"i32.clz",
|
|
600
|
+
"i32.ctz",
|
|
601
|
+
"i32.popcnt",
|
|
602
|
+
"i32.add",
|
|
603
|
+
"i32.sub",
|
|
604
|
+
"i32.mul",
|
|
605
|
+
"i32.div_s",
|
|
606
|
+
"i32.div_u",
|
|
607
|
+
"i32.rem_s",
|
|
608
|
+
"i32.rem_u",
|
|
609
|
+
"i32.and",
|
|
610
|
+
"i32.or",
|
|
611
|
+
"i32.xor",
|
|
612
|
+
"i32.shl",
|
|
613
|
+
"i32.shr_s",
|
|
614
|
+
"i32.shr_u",
|
|
615
|
+
"i32.rotl",
|
|
616
|
+
"i32.rotr",
|
|
617
|
+
"i64.clz",
|
|
618
|
+
"i64.ctz",
|
|
619
|
+
"i64.popcnt",
|
|
620
|
+
"i64.add",
|
|
621
|
+
"i64.sub",
|
|
622
|
+
"i64.mul",
|
|
623
|
+
"i64.div_s",
|
|
624
|
+
"i64.div_u",
|
|
625
|
+
"i64.rem_s",
|
|
626
|
+
"i64.rem_u",
|
|
627
|
+
"i64.and",
|
|
628
|
+
"i64.or",
|
|
629
|
+
"i64.xor",
|
|
630
|
+
"i64.shl",
|
|
631
|
+
"i64.shr_s",
|
|
632
|
+
"i64.shr_u",
|
|
633
|
+
"i64.rotl",
|
|
634
|
+
"i64.rotr",
|
|
635
|
+
"f32.abs",
|
|
636
|
+
"f32.neg",
|
|
637
|
+
"f32.ceil",
|
|
638
|
+
"f32.floor",
|
|
639
|
+
"f32.trunc",
|
|
640
|
+
"f32.nearest",
|
|
641
|
+
"f32.sqrt",
|
|
642
|
+
"f32.add",
|
|
643
|
+
"f32.sub",
|
|
644
|
+
"f32.mul",
|
|
645
|
+
"f32.div",
|
|
646
|
+
"f32.min",
|
|
647
|
+
"f32.max",
|
|
648
|
+
"f32.copysign",
|
|
649
|
+
"f64.abs",
|
|
650
|
+
"f64.neg",
|
|
651
|
+
"f64.ceil",
|
|
652
|
+
"f64.floor",
|
|
653
|
+
"f64.trunc",
|
|
654
|
+
"f64.nearest",
|
|
655
|
+
"f64.sqrt",
|
|
656
|
+
"f64.add",
|
|
657
|
+
"f64.sub",
|
|
658
|
+
"f64.mul",
|
|
659
|
+
"f64.div",
|
|
660
|
+
"f64.min",
|
|
661
|
+
"f64.max",
|
|
662
|
+
"f64.copysign",
|
|
663
|
+
"i32.wrap_i64",
|
|
664
|
+
"i32.trunc_f32_s",
|
|
665
|
+
"i32.trunc_f32_u",
|
|
666
|
+
"i32.trunc_f64_s",
|
|
667
|
+
"i32.trunc_f64_u",
|
|
668
|
+
"i64.extend_i32_s",
|
|
669
|
+
"i64.extend_i32_u",
|
|
670
|
+
"i64.trunc_f32_s",
|
|
671
|
+
"i64.trunc_f32_u",
|
|
672
|
+
"i64.trunc_f64_s",
|
|
673
|
+
"i64.trunc_f64_u",
|
|
674
|
+
"f32.convert_i32_s",
|
|
675
|
+
"f32.convert_i32_u",
|
|
676
|
+
"f32.convert_i64_s",
|
|
677
|
+
"f32.convert_i64_u",
|
|
678
|
+
"f32.demote_f64",
|
|
679
|
+
"f64.convert_i32_s",
|
|
680
|
+
"f64.convert_i32_u",
|
|
681
|
+
"f64.convert_i64_s",
|
|
682
|
+
"f64.convert_i64_u",
|
|
683
|
+
"f64.promote_f32",
|
|
684
|
+
"i32.reinterpret_f32",
|
|
685
|
+
"i64.reinterpret_f64",
|
|
686
|
+
"f32.reinterpret_i32",
|
|
687
|
+
"f64.reinterpret_i64",
|
|
688
|
+
"i32.extend8_s",
|
|
689
|
+
"i32.extend16_s",
|
|
690
|
+
"i64.extend8_s",
|
|
691
|
+
"i64.extend16_s",
|
|
692
|
+
"i64.extend32_s",
|
|
693
|
+
undefined,
|
|
694
|
+
undefined,
|
|
695
|
+
undefined,
|
|
696
|
+
undefined,
|
|
697
|
+
undefined,
|
|
698
|
+
undefined,
|
|
699
|
+
undefined,
|
|
700
|
+
undefined,
|
|
701
|
+
undefined,
|
|
702
|
+
undefined,
|
|
703
|
+
undefined,
|
|
704
|
+
"ref.null",
|
|
705
|
+
"ref.is_null",
|
|
706
|
+
"ref.func",
|
|
707
|
+
undefined,
|
|
708
|
+
undefined,
|
|
709
|
+
undefined,
|
|
710
|
+
undefined,
|
|
711
|
+
undefined,
|
|
712
|
+
undefined,
|
|
713
|
+
undefined,
|
|
714
|
+
undefined,
|
|
715
|
+
undefined,
|
|
716
|
+
undefined,
|
|
717
|
+
undefined,
|
|
718
|
+
undefined,
|
|
719
|
+
undefined,
|
|
720
|
+
undefined,
|
|
721
|
+
undefined,
|
|
722
|
+
undefined,
|
|
723
|
+
undefined,
|
|
724
|
+
undefined,
|
|
725
|
+
undefined,
|
|
726
|
+
undefined,
|
|
727
|
+
undefined,
|
|
728
|
+
undefined,
|
|
729
|
+
undefined,
|
|
730
|
+
undefined,
|
|
731
|
+
undefined,
|
|
732
|
+
undefined,
|
|
733
|
+
undefined,
|
|
734
|
+
undefined,
|
|
735
|
+
undefined,
|
|
736
|
+
undefined,
|
|
737
|
+
undefined,
|
|
738
|
+
undefined,
|
|
739
|
+
undefined,
|
|
740
|
+
undefined,
|
|
741
|
+
undefined,
|
|
742
|
+
undefined,
|
|
743
|
+
undefined,
|
|
744
|
+
undefined,
|
|
745
|
+
undefined,
|
|
746
|
+
undefined,
|
|
747
|
+
undefined,
|
|
748
|
+
undefined,
|
|
749
|
+
undefined,
|
|
750
|
+
undefined,
|
|
751
|
+
undefined,
|
|
752
|
+
];
|
|
753
|
+
[
|
|
754
|
+
"i32.trunc_sat_f32_s",
|
|
755
|
+
"i32.trunc_sat_f32_u",
|
|
756
|
+
"i32.trunc_sat_f64_s",
|
|
757
|
+
"i32.trunc_sat_f64_u",
|
|
758
|
+
"i64.trunc_sat_f32_s",
|
|
759
|
+
"i64.trunc_sat_f32_u",
|
|
760
|
+
"i64.trunc_sat_f64_s",
|
|
761
|
+
"i64.trunc_sat_f64_u",
|
|
762
|
+
"memory.init",
|
|
763
|
+
"data.drop",
|
|
764
|
+
"memory.copy",
|
|
765
|
+
"memory.fill",
|
|
766
|
+
"table.init",
|
|
767
|
+
"elem.drop",
|
|
768
|
+
"table.copy",
|
|
769
|
+
"table.grow",
|
|
770
|
+
"table.size",
|
|
771
|
+
"table.fill",
|
|
772
|
+
].forEach((s, i) => {
|
|
773
|
+
OperatorCodeNames[0xfc00 | i] = s;
|
|
774
|
+
});
|
|
775
|
+
[
|
|
776
|
+
"v128.load",
|
|
777
|
+
"i16x8.load8x8_s",
|
|
778
|
+
"i16x8.load8x8_u",
|
|
779
|
+
"i32x4.load16x4_s",
|
|
780
|
+
"i32x4.load16x4_u",
|
|
781
|
+
"i64x2.load32x2_s",
|
|
782
|
+
"i64x2.load32x2_u",
|
|
783
|
+
"v8x16.load_splat",
|
|
784
|
+
"v16x8.load_splat",
|
|
785
|
+
"v32x4.load_splat",
|
|
786
|
+
"v64x2.load_splat",
|
|
787
|
+
"v128.store",
|
|
788
|
+
"v128.const",
|
|
789
|
+
"i8x16.shuffle",
|
|
790
|
+
"i8x16.swizzle",
|
|
791
|
+
"i8x16.splat",
|
|
792
|
+
"i16x8.splat",
|
|
793
|
+
"i32x4.splat",
|
|
794
|
+
"i64x2.splat",
|
|
795
|
+
"f32x4.splat",
|
|
796
|
+
"f64x2.splat",
|
|
797
|
+
"i8x16.extract_lane_s",
|
|
798
|
+
"i8x16.extract_lane_u",
|
|
799
|
+
"i8x16.replace_lane",
|
|
800
|
+
"i16x8.extract_lane_s",
|
|
801
|
+
"i16x8.extract_lane_u",
|
|
802
|
+
"i16x8.replace_lane",
|
|
803
|
+
"i32x4.extract_lane",
|
|
804
|
+
"i32x4.replace_lane",
|
|
805
|
+
"i64x2.extract_lane",
|
|
806
|
+
"i64x2.replace_lane",
|
|
807
|
+
"f32x4.extract_lane",
|
|
808
|
+
"f32x4.replace_lane",
|
|
809
|
+
"f64x2.extract_lane",
|
|
810
|
+
"f64x2.replace_lane",
|
|
811
|
+
"i8x16.eq",
|
|
812
|
+
"i8x16.ne",
|
|
813
|
+
"i8x16.lt_s",
|
|
814
|
+
"i8x16.lt_u",
|
|
815
|
+
"i8x16.gt_s",
|
|
816
|
+
"i8x16.gt_u",
|
|
817
|
+
"i8x16.le_s",
|
|
818
|
+
"i8x16.le_u",
|
|
819
|
+
"i8x16.ge_s",
|
|
820
|
+
"i8x16.ge_u",
|
|
821
|
+
"i16x8.eq",
|
|
822
|
+
"i16x8.ne",
|
|
823
|
+
"i16x8.lt_s",
|
|
824
|
+
"i16x8.lt_u",
|
|
825
|
+
"i16x8.gt_s",
|
|
826
|
+
"i16x8.gt_u",
|
|
827
|
+
"i16x8.le_s",
|
|
828
|
+
"i16x8.le_u",
|
|
829
|
+
"i16x8.ge_s",
|
|
830
|
+
"i16x8.ge_u",
|
|
831
|
+
"i32x4.eq",
|
|
832
|
+
"i32x4.ne",
|
|
833
|
+
"i32x4.lt_s",
|
|
834
|
+
"i32x4.lt_u",
|
|
835
|
+
"i32x4.gt_s",
|
|
836
|
+
"i32x4.gt_u",
|
|
837
|
+
"i32x4.le_s",
|
|
838
|
+
"i32x4.le_u",
|
|
839
|
+
"i32x4.ge_s",
|
|
840
|
+
"i32x4.ge_u",
|
|
841
|
+
"f32x4.eq",
|
|
842
|
+
"f32x4.ne",
|
|
843
|
+
"f32x4.lt",
|
|
844
|
+
"f32x4.gt",
|
|
845
|
+
"f32x4.le",
|
|
846
|
+
"f32x4.ge",
|
|
847
|
+
"f64x2.eq",
|
|
848
|
+
"f64x2.ne",
|
|
849
|
+
"f64x2.lt",
|
|
850
|
+
"f64x2.gt",
|
|
851
|
+
"f64x2.le",
|
|
852
|
+
"f64x2.ge",
|
|
853
|
+
"v128.not",
|
|
854
|
+
"v128.and",
|
|
855
|
+
"v128.andnot",
|
|
856
|
+
"v128.or",
|
|
857
|
+
"v128.xor",
|
|
858
|
+
"v128.bitselect",
|
|
859
|
+
undefined,
|
|
860
|
+
undefined,
|
|
861
|
+
undefined,
|
|
862
|
+
undefined,
|
|
863
|
+
undefined,
|
|
864
|
+
undefined,
|
|
865
|
+
undefined,
|
|
866
|
+
undefined,
|
|
867
|
+
undefined,
|
|
868
|
+
undefined,
|
|
869
|
+
undefined,
|
|
870
|
+
undefined,
|
|
871
|
+
undefined,
|
|
872
|
+
"i8x16.abs",
|
|
873
|
+
"i8x16.neg",
|
|
874
|
+
"i8x16.any_true",
|
|
875
|
+
"i8x16.all_true",
|
|
876
|
+
"i8x16.bitmask",
|
|
877
|
+
"i8x16.narrow_i16x8_s",
|
|
878
|
+
"i8x16.narrow_i16x8_u",
|
|
879
|
+
undefined,
|
|
880
|
+
undefined,
|
|
881
|
+
undefined,
|
|
882
|
+
undefined,
|
|
883
|
+
"i8x16.shl",
|
|
884
|
+
"i8x16.shr_s",
|
|
885
|
+
"i8x16.shr_u",
|
|
886
|
+
"i8x16.add",
|
|
887
|
+
"i8x16.add_sat_s",
|
|
888
|
+
"i8x16.add_sat_u",
|
|
889
|
+
"i8x16.sub",
|
|
890
|
+
"i8x16.sub_sat_s",
|
|
891
|
+
"i8x16.sub_sat_u",
|
|
892
|
+
undefined,
|
|
893
|
+
undefined,
|
|
894
|
+
"i8x16.min_s",
|
|
895
|
+
"i8x16.min_u",
|
|
896
|
+
"i8x16.max_s",
|
|
897
|
+
"i8x16.max_u",
|
|
898
|
+
undefined,
|
|
899
|
+
"i8x16.avgr_u",
|
|
900
|
+
undefined,
|
|
901
|
+
undefined,
|
|
902
|
+
undefined,
|
|
903
|
+
undefined,
|
|
904
|
+
"i16x8.abs",
|
|
905
|
+
"i16x8.neg",
|
|
906
|
+
"i16x8.any_true",
|
|
907
|
+
"i16x8.all_true",
|
|
908
|
+
"i16x8.bitmask",
|
|
909
|
+
"i16x8.narrow_i32x4_s",
|
|
910
|
+
"i16x8.narrow_i32x4_u",
|
|
911
|
+
"i16x8.widen_low_i8x16_s",
|
|
912
|
+
"i16x8.widen_high_i8x16_s",
|
|
913
|
+
"i16x8.widen_low_i8x16_u",
|
|
914
|
+
"i16x8.widen_high_i8x16_u",
|
|
915
|
+
"i16x8.shl",
|
|
916
|
+
"i16x8.shr_s",
|
|
917
|
+
"i16x8.shr_u",
|
|
918
|
+
"i16x8.add",
|
|
919
|
+
"i16x8.add_sat_s",
|
|
920
|
+
"i16x8.add_sat_u",
|
|
921
|
+
"i16x8.sub",
|
|
922
|
+
"i16x8.sub_sat_s",
|
|
923
|
+
"i16x8.sub_sat_u",
|
|
924
|
+
undefined,
|
|
925
|
+
"i16x8.mul",
|
|
926
|
+
"i16x8.min_s",
|
|
927
|
+
"i16x8.min_u",
|
|
928
|
+
"i16x8.max_s",
|
|
929
|
+
"i16x8.max_u",
|
|
930
|
+
undefined,
|
|
931
|
+
"i16x8.avgr_u",
|
|
932
|
+
undefined,
|
|
933
|
+
undefined,
|
|
934
|
+
undefined,
|
|
935
|
+
undefined,
|
|
936
|
+
"i32x4.abs",
|
|
937
|
+
"i32x4.neg",
|
|
938
|
+
"i32x4.any_true",
|
|
939
|
+
"i32x4.all_true",
|
|
940
|
+
"i32x4.bitmask",
|
|
941
|
+
undefined,
|
|
942
|
+
undefined,
|
|
943
|
+
"i32x4.widen_low_i16x8_s",
|
|
944
|
+
"i32x4.widen_high_i16x8_s",
|
|
945
|
+
"i32x4.widen_low_i16x8_u",
|
|
946
|
+
"i32x4.widen_high_i16x8_u",
|
|
947
|
+
"i32x4.shl",
|
|
948
|
+
"i32x4.shr_s",
|
|
949
|
+
"i32x4.shr_u",
|
|
950
|
+
"i32x4.add",
|
|
951
|
+
undefined,
|
|
952
|
+
undefined,
|
|
953
|
+
"i32x4.sub",
|
|
954
|
+
undefined,
|
|
955
|
+
undefined,
|
|
956
|
+
undefined,
|
|
957
|
+
"i32x4.mul",
|
|
958
|
+
"i32x4.min_s",
|
|
959
|
+
"i32x4.min_u",
|
|
960
|
+
"i32x4.max_s",
|
|
961
|
+
"i32x4.max_u",
|
|
962
|
+
"i32x4.dot_i16x8_s",
|
|
963
|
+
undefined,
|
|
964
|
+
undefined,
|
|
965
|
+
undefined,
|
|
966
|
+
undefined,
|
|
967
|
+
undefined,
|
|
968
|
+
undefined,
|
|
969
|
+
"i64x2.neg",
|
|
970
|
+
undefined,
|
|
971
|
+
undefined,
|
|
972
|
+
undefined,
|
|
973
|
+
undefined,
|
|
974
|
+
undefined,
|
|
975
|
+
undefined,
|
|
976
|
+
undefined,
|
|
977
|
+
undefined,
|
|
978
|
+
undefined,
|
|
979
|
+
"i64x2.shl",
|
|
980
|
+
"i64x2.shr_s",
|
|
981
|
+
"i64x2.shr_u",
|
|
982
|
+
"i64x2.add",
|
|
983
|
+
undefined,
|
|
984
|
+
undefined,
|
|
985
|
+
"i64x2.sub",
|
|
986
|
+
undefined,
|
|
987
|
+
undefined,
|
|
988
|
+
undefined,
|
|
989
|
+
"i64x2.mul",
|
|
990
|
+
undefined,
|
|
991
|
+
undefined,
|
|
992
|
+
undefined,
|
|
993
|
+
undefined,
|
|
994
|
+
undefined,
|
|
995
|
+
undefined,
|
|
996
|
+
undefined,
|
|
997
|
+
undefined,
|
|
998
|
+
undefined,
|
|
999
|
+
undefined,
|
|
1000
|
+
"f32x4.abs",
|
|
1001
|
+
"f32x4.neg",
|
|
1002
|
+
undefined,
|
|
1003
|
+
"f32x4.sqrt",
|
|
1004
|
+
"f32x4.add",
|
|
1005
|
+
"f32x4.sub",
|
|
1006
|
+
"f32x4.mul",
|
|
1007
|
+
"f32x4.div",
|
|
1008
|
+
"f32x4.min",
|
|
1009
|
+
"f32x4.max",
|
|
1010
|
+
"f32x4.pmin",
|
|
1011
|
+
"f32x4.pmax",
|
|
1012
|
+
"f64x2.abs",
|
|
1013
|
+
"f64x2.neg",
|
|
1014
|
+
undefined,
|
|
1015
|
+
"f64x2.sqrt",
|
|
1016
|
+
"f64x2.add",
|
|
1017
|
+
"f64x2.sub",
|
|
1018
|
+
"f64x2.mul",
|
|
1019
|
+
"f64x2.div",
|
|
1020
|
+
"f64x2.min",
|
|
1021
|
+
"f64x2.max",
|
|
1022
|
+
"f64x2.pmin",
|
|
1023
|
+
"f64x2.pmax",
|
|
1024
|
+
"i32x4.trunc_sat_f32x4_s",
|
|
1025
|
+
"i32x4.trunc_sat_f32x4_u",
|
|
1026
|
+
"f32x4.convert_i32x4_s",
|
|
1027
|
+
"f32x4.convert_i32x4_u",
|
|
1028
|
+
"v128.load32_zero",
|
|
1029
|
+
"v128.load64_zero",
|
|
1030
|
+
].forEach((s, i) => {
|
|
1031
|
+
OperatorCodeNames[0xfd00 | i] = s;
|
|
1032
|
+
});
|
|
1033
|
+
[
|
|
1034
|
+
"atomic.notify",
|
|
1035
|
+
"i32.atomic.wait",
|
|
1036
|
+
"i64.atomic.wait",
|
|
1037
|
+
"atomic.fence",
|
|
1038
|
+
undefined,
|
|
1039
|
+
undefined,
|
|
1040
|
+
undefined,
|
|
1041
|
+
undefined,
|
|
1042
|
+
undefined,
|
|
1043
|
+
undefined,
|
|
1044
|
+
undefined,
|
|
1045
|
+
undefined,
|
|
1046
|
+
undefined,
|
|
1047
|
+
undefined,
|
|
1048
|
+
undefined,
|
|
1049
|
+
undefined,
|
|
1050
|
+
"i32.atomic.load",
|
|
1051
|
+
"i64.atomic.load",
|
|
1052
|
+
"i32.atomic.load8_u",
|
|
1053
|
+
"i32.atomic.load16_u",
|
|
1054
|
+
"i64.atomic.load8_u",
|
|
1055
|
+
"i64.atomic.load16_u",
|
|
1056
|
+
"i64.atomic.load32_u",
|
|
1057
|
+
"i32.atomic.store",
|
|
1058
|
+
"i64.atomic.store",
|
|
1059
|
+
"i32.atomic.store8",
|
|
1060
|
+
"i32.atomic.store16",
|
|
1061
|
+
"i64.atomic.store8",
|
|
1062
|
+
"i64.atomic.store16",
|
|
1063
|
+
"i64.atomic.store32",
|
|
1064
|
+
"i32.atomic.rmw.add",
|
|
1065
|
+
"i64.atomic.rmw.add",
|
|
1066
|
+
"i32.atomic.rmw8.add_u",
|
|
1067
|
+
"i32.atomic.rmw16.add_u",
|
|
1068
|
+
"i64.atomic.rmw8.add_u",
|
|
1069
|
+
"i64.atomic.rmw16.add_u",
|
|
1070
|
+
"i64.atomic.rmw32.add_u",
|
|
1071
|
+
"i32.atomic.rmw.sub",
|
|
1072
|
+
"i64.atomic.rmw.sub",
|
|
1073
|
+
"i32.atomic.rmw8.sub_u",
|
|
1074
|
+
"i32.atomic.rmw16.sub_u",
|
|
1075
|
+
"i64.atomic.rmw8.sub_u",
|
|
1076
|
+
"i64.atomic.rmw16.sub_u",
|
|
1077
|
+
"i64.atomic.rmw32.sub_u",
|
|
1078
|
+
"i32.atomic.rmw.and",
|
|
1079
|
+
"i64.atomic.rmw.and",
|
|
1080
|
+
"i32.atomic.rmw8.and_u",
|
|
1081
|
+
"i32.atomic.rmw16.and_u",
|
|
1082
|
+
"i64.atomic.rmw8.and_u",
|
|
1083
|
+
"i64.atomic.rmw16.and_u",
|
|
1084
|
+
"i64.atomic.rmw32.and_u",
|
|
1085
|
+
"i32.atomic.rmw.or",
|
|
1086
|
+
"i64.atomic.rmw.or",
|
|
1087
|
+
"i32.atomic.rmw8.or_u",
|
|
1088
|
+
"i32.atomic.rmw16.or_u",
|
|
1089
|
+
"i64.atomic.rmw8.or_u",
|
|
1090
|
+
"i64.atomic.rmw16.or_u",
|
|
1091
|
+
"i64.atomic.rmw32.or_u",
|
|
1092
|
+
"i32.atomic.rmw.xor",
|
|
1093
|
+
"i64.atomic.rmw.xor",
|
|
1094
|
+
"i32.atomic.rmw8.xor_u",
|
|
1095
|
+
"i32.atomic.rmw16.xor_u",
|
|
1096
|
+
"i64.atomic.rmw8.xor_u",
|
|
1097
|
+
"i64.atomic.rmw16.xor_u",
|
|
1098
|
+
"i64.atomic.rmw32.xor_u",
|
|
1099
|
+
"i32.atomic.rmw.xchg",
|
|
1100
|
+
"i64.atomic.rmw.xchg",
|
|
1101
|
+
"i32.atomic.rmw8.xchg_u",
|
|
1102
|
+
"i32.atomic.rmw16.xchg_u",
|
|
1103
|
+
"i64.atomic.rmw8.xchg_u",
|
|
1104
|
+
"i64.atomic.rmw16.xchg_u",
|
|
1105
|
+
"i64.atomic.rmw32.xchg_u",
|
|
1106
|
+
"i32.atomic.rmw.cmpxchg",
|
|
1107
|
+
"i64.atomic.rmw.cmpxchg",
|
|
1108
|
+
"i32.atomic.rmw8.cmpxchg_u",
|
|
1109
|
+
"i32.atomic.rmw16.cmpxchg_u",
|
|
1110
|
+
"i64.atomic.rmw8.cmpxchg_u",
|
|
1111
|
+
"i64.atomic.rmw16.cmpxchg_u",
|
|
1112
|
+
"i64.atomic.rmw32.cmpxchg_u",
|
|
1113
|
+
].forEach((s, i) => {
|
|
1114
|
+
OperatorCodeNames[0xfe00 | i] = s;
|
|
1115
|
+
});
|
|
1116
|
+
export var ExternalKind;
|
|
1117
|
+
(function (ExternalKind) {
|
|
1118
|
+
ExternalKind[ExternalKind["Function"] = 0] = "Function";
|
|
1119
|
+
ExternalKind[ExternalKind["Table"] = 1] = "Table";
|
|
1120
|
+
ExternalKind[ExternalKind["Memory"] = 2] = "Memory";
|
|
1121
|
+
ExternalKind[ExternalKind["Global"] = 3] = "Global";
|
|
1122
|
+
})(ExternalKind || (ExternalKind = {}));
|
|
1123
|
+
export var Type;
|
|
1124
|
+
(function (Type) {
|
|
1125
|
+
Type[Type["unspecified"] = 0] = "unspecified";
|
|
1126
|
+
Type[Type["i32"] = -1] = "i32";
|
|
1127
|
+
Type[Type["i64"] = -2] = "i64";
|
|
1128
|
+
Type[Type["f32"] = -3] = "f32";
|
|
1129
|
+
Type[Type["f64"] = -4] = "f64";
|
|
1130
|
+
Type[Type["v128"] = -5] = "v128";
|
|
1131
|
+
Type[Type["funcref"] = -16] = "funcref";
|
|
1132
|
+
Type[Type["externref"] = -17] = "externref";
|
|
1133
|
+
Type[Type["func"] = -32] = "func";
|
|
1134
|
+
Type[Type["empty_block_type"] = -64] = "empty_block_type";
|
|
1135
|
+
})(Type || (Type = {}));
|
|
1136
|
+
export var RelocType;
|
|
1137
|
+
(function (RelocType) {
|
|
1138
|
+
RelocType[RelocType["FunctionIndex_LEB"] = 0] = "FunctionIndex_LEB";
|
|
1139
|
+
RelocType[RelocType["TableIndex_SLEB"] = 1] = "TableIndex_SLEB";
|
|
1140
|
+
RelocType[RelocType["TableIndex_I32"] = 2] = "TableIndex_I32";
|
|
1141
|
+
RelocType[RelocType["GlobalAddr_LEB"] = 3] = "GlobalAddr_LEB";
|
|
1142
|
+
RelocType[RelocType["GlobalAddr_SLEB"] = 4] = "GlobalAddr_SLEB";
|
|
1143
|
+
RelocType[RelocType["GlobalAddr_I32"] = 5] = "GlobalAddr_I32";
|
|
1144
|
+
RelocType[RelocType["TypeIndex_LEB"] = 6] = "TypeIndex_LEB";
|
|
1145
|
+
RelocType[RelocType["GlobalIndex_LEB"] = 7] = "GlobalIndex_LEB";
|
|
1146
|
+
})(RelocType || (RelocType = {}));
|
|
1147
|
+
export var LinkingType;
|
|
1148
|
+
(function (LinkingType) {
|
|
1149
|
+
LinkingType[LinkingType["StackPointer"] = 1] = "StackPointer";
|
|
1150
|
+
})(LinkingType || (LinkingType = {}));
|
|
1151
|
+
export var NameType;
|
|
1152
|
+
(function (NameType) {
|
|
1153
|
+
NameType[NameType["Module"] = 0] = "Module";
|
|
1154
|
+
NameType[NameType["Function"] = 1] = "Function";
|
|
1155
|
+
NameType[NameType["Local"] = 2] = "Local";
|
|
1156
|
+
NameType[NameType["Type"] = 4] = "Type";
|
|
1157
|
+
NameType[NameType["Table"] = 5] = "Table";
|
|
1158
|
+
NameType[NameType["Memory"] = 6] = "Memory";
|
|
1159
|
+
NameType[NameType["Global"] = 7] = "Global";
|
|
1160
|
+
})(NameType || (NameType = {}));
|
|
1161
|
+
export var BinaryReaderState;
|
|
1162
|
+
(function (BinaryReaderState) {
|
|
1163
|
+
BinaryReaderState[BinaryReaderState["ERROR"] = -1] = "ERROR";
|
|
1164
|
+
BinaryReaderState[BinaryReaderState["INITIAL"] = 0] = "INITIAL";
|
|
1165
|
+
BinaryReaderState[BinaryReaderState["BEGIN_WASM"] = 1] = "BEGIN_WASM";
|
|
1166
|
+
BinaryReaderState[BinaryReaderState["END_WASM"] = 2] = "END_WASM";
|
|
1167
|
+
BinaryReaderState[BinaryReaderState["BEGIN_SECTION"] = 3] = "BEGIN_SECTION";
|
|
1168
|
+
BinaryReaderState[BinaryReaderState["END_SECTION"] = 4] = "END_SECTION";
|
|
1169
|
+
BinaryReaderState[BinaryReaderState["SKIPPING_SECTION"] = 5] = "SKIPPING_SECTION";
|
|
1170
|
+
BinaryReaderState[BinaryReaderState["READING_SECTION_RAW_DATA"] = 6] = "READING_SECTION_RAW_DATA";
|
|
1171
|
+
BinaryReaderState[BinaryReaderState["SECTION_RAW_DATA"] = 7] = "SECTION_RAW_DATA";
|
|
1172
|
+
BinaryReaderState[BinaryReaderState["TYPE_SECTION_ENTRY"] = 11] = "TYPE_SECTION_ENTRY";
|
|
1173
|
+
BinaryReaderState[BinaryReaderState["IMPORT_SECTION_ENTRY"] = 12] = "IMPORT_SECTION_ENTRY";
|
|
1174
|
+
BinaryReaderState[BinaryReaderState["FUNCTION_SECTION_ENTRY"] = 13] = "FUNCTION_SECTION_ENTRY";
|
|
1175
|
+
BinaryReaderState[BinaryReaderState["TABLE_SECTION_ENTRY"] = 14] = "TABLE_SECTION_ENTRY";
|
|
1176
|
+
BinaryReaderState[BinaryReaderState["MEMORY_SECTION_ENTRY"] = 15] = "MEMORY_SECTION_ENTRY";
|
|
1177
|
+
BinaryReaderState[BinaryReaderState["GLOBAL_SECTION_ENTRY"] = 16] = "GLOBAL_SECTION_ENTRY";
|
|
1178
|
+
BinaryReaderState[BinaryReaderState["EXPORT_SECTION_ENTRY"] = 17] = "EXPORT_SECTION_ENTRY";
|
|
1179
|
+
BinaryReaderState[BinaryReaderState["DATA_SECTION_ENTRY"] = 18] = "DATA_SECTION_ENTRY";
|
|
1180
|
+
BinaryReaderState[BinaryReaderState["NAME_SECTION_ENTRY"] = 19] = "NAME_SECTION_ENTRY";
|
|
1181
|
+
BinaryReaderState[BinaryReaderState["ELEMENT_SECTION_ENTRY"] = 20] = "ELEMENT_SECTION_ENTRY";
|
|
1182
|
+
BinaryReaderState[BinaryReaderState["LINKING_SECTION_ENTRY"] = 21] = "LINKING_SECTION_ENTRY";
|
|
1183
|
+
BinaryReaderState[BinaryReaderState["START_SECTION_ENTRY"] = 22] = "START_SECTION_ENTRY";
|
|
1184
|
+
BinaryReaderState[BinaryReaderState["BEGIN_INIT_EXPRESSION_BODY"] = 25] = "BEGIN_INIT_EXPRESSION_BODY";
|
|
1185
|
+
BinaryReaderState[BinaryReaderState["INIT_EXPRESSION_OPERATOR"] = 26] = "INIT_EXPRESSION_OPERATOR";
|
|
1186
|
+
BinaryReaderState[BinaryReaderState["END_INIT_EXPRESSION_BODY"] = 27] = "END_INIT_EXPRESSION_BODY";
|
|
1187
|
+
BinaryReaderState[BinaryReaderState["BEGIN_FUNCTION_BODY"] = 28] = "BEGIN_FUNCTION_BODY";
|
|
1188
|
+
BinaryReaderState[BinaryReaderState["READING_FUNCTION_HEADER"] = 29] = "READING_FUNCTION_HEADER";
|
|
1189
|
+
BinaryReaderState[BinaryReaderState["CODE_OPERATOR"] = 30] = "CODE_OPERATOR";
|
|
1190
|
+
BinaryReaderState[BinaryReaderState["END_FUNCTION_BODY"] = 31] = "END_FUNCTION_BODY";
|
|
1191
|
+
BinaryReaderState[BinaryReaderState["SKIPPING_FUNCTION_BODY"] = 32] = "SKIPPING_FUNCTION_BODY";
|
|
1192
|
+
BinaryReaderState[BinaryReaderState["BEGIN_ELEMENT_SECTION_ENTRY"] = 33] = "BEGIN_ELEMENT_SECTION_ENTRY";
|
|
1193
|
+
BinaryReaderState[BinaryReaderState["ELEMENT_SECTION_ENTRY_BODY"] = 34] = "ELEMENT_SECTION_ENTRY_BODY";
|
|
1194
|
+
BinaryReaderState[BinaryReaderState["END_ELEMENT_SECTION_ENTRY"] = 35] = "END_ELEMENT_SECTION_ENTRY";
|
|
1195
|
+
BinaryReaderState[BinaryReaderState["BEGIN_DATA_SECTION_ENTRY"] = 36] = "BEGIN_DATA_SECTION_ENTRY";
|
|
1196
|
+
BinaryReaderState[BinaryReaderState["DATA_SECTION_ENTRY_BODY"] = 37] = "DATA_SECTION_ENTRY_BODY";
|
|
1197
|
+
BinaryReaderState[BinaryReaderState["END_DATA_SECTION_ENTRY"] = 38] = "END_DATA_SECTION_ENTRY";
|
|
1198
|
+
BinaryReaderState[BinaryReaderState["BEGIN_GLOBAL_SECTION_ENTRY"] = 39] = "BEGIN_GLOBAL_SECTION_ENTRY";
|
|
1199
|
+
BinaryReaderState[BinaryReaderState["END_GLOBAL_SECTION_ENTRY"] = 40] = "END_GLOBAL_SECTION_ENTRY";
|
|
1200
|
+
BinaryReaderState[BinaryReaderState["RELOC_SECTION_HEADER"] = 41] = "RELOC_SECTION_HEADER";
|
|
1201
|
+
BinaryReaderState[BinaryReaderState["RELOC_SECTION_ENTRY"] = 42] = "RELOC_SECTION_ENTRY";
|
|
1202
|
+
BinaryReaderState[BinaryReaderState["SOURCE_MAPPING_URL"] = 43] = "SOURCE_MAPPING_URL";
|
|
1203
|
+
BinaryReaderState[BinaryReaderState["BEGIN_OFFSET_EXPRESSION_BODY"] = 44] = "BEGIN_OFFSET_EXPRESSION_BODY";
|
|
1204
|
+
BinaryReaderState[BinaryReaderState["OFFSET_EXPRESSION_OPERATOR"] = 45] = "OFFSET_EXPRESSION_OPERATOR";
|
|
1205
|
+
BinaryReaderState[BinaryReaderState["END_OFFSET_EXPRESSION_BODY"] = 46] = "END_OFFSET_EXPRESSION_BODY";
|
|
1206
|
+
})(BinaryReaderState || (BinaryReaderState = {}));
|
|
1207
|
+
var DataSegmentType;
|
|
1208
|
+
(function (DataSegmentType) {
|
|
1209
|
+
DataSegmentType[DataSegmentType["Active"] = 0] = "Active";
|
|
1210
|
+
DataSegmentType[DataSegmentType["Passive"] = 1] = "Passive";
|
|
1211
|
+
DataSegmentType[DataSegmentType["ActiveWithMemoryIndex"] = 2] = "ActiveWithMemoryIndex";
|
|
1212
|
+
})(DataSegmentType || (DataSegmentType = {}));
|
|
1213
|
+
function isActiveDataSegmentType(segmentType) {
|
|
1214
|
+
switch (segmentType) {
|
|
1215
|
+
case 0 /* Active */:
|
|
1216
|
+
case 2 /* ActiveWithMemoryIndex */:
|
|
1217
|
+
return true;
|
|
1218
|
+
default:
|
|
1219
|
+
return false;
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
export var DataMode;
|
|
1223
|
+
(function (DataMode) {
|
|
1224
|
+
DataMode[DataMode["Active"] = 0] = "Active";
|
|
1225
|
+
DataMode[DataMode["Passive"] = 1] = "Passive";
|
|
1226
|
+
})(DataMode || (DataMode = {}));
|
|
1227
|
+
var ElementSegmentType;
|
|
1228
|
+
(function (ElementSegmentType) {
|
|
1229
|
+
ElementSegmentType[ElementSegmentType["LegacyActiveFuncrefExternval"] = 0] = "LegacyActiveFuncrefExternval";
|
|
1230
|
+
ElementSegmentType[ElementSegmentType["PassiveExternval"] = 1] = "PassiveExternval";
|
|
1231
|
+
ElementSegmentType[ElementSegmentType["ActiveExternval"] = 2] = "ActiveExternval";
|
|
1232
|
+
ElementSegmentType[ElementSegmentType["DeclaredExternval"] = 3] = "DeclaredExternval";
|
|
1233
|
+
ElementSegmentType[ElementSegmentType["LegacyActiveFuncrefElemexpr"] = 4] = "LegacyActiveFuncrefElemexpr";
|
|
1234
|
+
ElementSegmentType[ElementSegmentType["PassiveElemexpr"] = 5] = "PassiveElemexpr";
|
|
1235
|
+
ElementSegmentType[ElementSegmentType["ActiveElemexpr"] = 6] = "ActiveElemexpr";
|
|
1236
|
+
ElementSegmentType[ElementSegmentType["DeclaredElemexpr"] = 7] = "DeclaredElemexpr";
|
|
1237
|
+
})(ElementSegmentType || (ElementSegmentType = {}));
|
|
1238
|
+
function isActiveElementSegmentType(segmentType) {
|
|
1239
|
+
switch (segmentType) {
|
|
1240
|
+
case 0 /* LegacyActiveFuncrefExternval */:
|
|
1241
|
+
case 2 /* ActiveExternval */:
|
|
1242
|
+
case 4 /* LegacyActiveFuncrefElemexpr */:
|
|
1243
|
+
case 6 /* ActiveElemexpr */:
|
|
1244
|
+
return true;
|
|
1245
|
+
default:
|
|
1246
|
+
return false;
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
function isExternvalElementSegmentType(segmentType) {
|
|
1250
|
+
switch (segmentType) {
|
|
1251
|
+
case 0 /* LegacyActiveFuncrefExternval */:
|
|
1252
|
+
case 1 /* PassiveExternval */:
|
|
1253
|
+
case 2 /* ActiveExternval */:
|
|
1254
|
+
case 3 /* DeclaredExternval */:
|
|
1255
|
+
return true;
|
|
1256
|
+
default:
|
|
1257
|
+
return false;
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
export var ElementMode;
|
|
1261
|
+
(function (ElementMode) {
|
|
1262
|
+
ElementMode[ElementMode["Active"] = 0] = "Active";
|
|
1263
|
+
ElementMode[ElementMode["Passive"] = 1] = "Passive";
|
|
1264
|
+
ElementMode[ElementMode["Declarative"] = 2] = "Declarative";
|
|
1265
|
+
})(ElementMode || (ElementMode = {}));
|
|
1266
|
+
class DataRange {
|
|
1267
|
+
constructor(start, end) {
|
|
1268
|
+
this.start = start;
|
|
1269
|
+
this.end = end;
|
|
1270
|
+
}
|
|
1271
|
+
offset(delta) {
|
|
1272
|
+
this.start += delta;
|
|
1273
|
+
this.end += delta;
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
export class Int64 {
|
|
1277
|
+
constructor(data) {
|
|
1278
|
+
this._data = data || new Uint8Array(8);
|
|
1279
|
+
}
|
|
1280
|
+
toInt32() {
|
|
1281
|
+
return (this._data[0] |
|
|
1282
|
+
(this._data[1] << 8) |
|
|
1283
|
+
(this._data[2] << 16) |
|
|
1284
|
+
(this._data[3] << 24));
|
|
1285
|
+
}
|
|
1286
|
+
toDouble() {
|
|
1287
|
+
var power = 1;
|
|
1288
|
+
var sum;
|
|
1289
|
+
if (this._data[7] & 0x80) {
|
|
1290
|
+
sum = -1;
|
|
1291
|
+
for (var i = 0; i < 8; i++, power *= 256)
|
|
1292
|
+
sum -= power * (0xff ^ this._data[i]);
|
|
1293
|
+
}
|
|
1294
|
+
else {
|
|
1295
|
+
sum = 0;
|
|
1296
|
+
for (var i = 0; i < 8; i++, power *= 256)
|
|
1297
|
+
sum += power * this._data[i];
|
|
1298
|
+
}
|
|
1299
|
+
return sum;
|
|
1300
|
+
}
|
|
1301
|
+
toString() {
|
|
1302
|
+
var low = (this._data[0] |
|
|
1303
|
+
(this._data[1] << 8) |
|
|
1304
|
+
(this._data[2] << 16) |
|
|
1305
|
+
(this._data[3] << 24)) >>>
|
|
1306
|
+
0;
|
|
1307
|
+
var high = (this._data[4] |
|
|
1308
|
+
(this._data[5] << 8) |
|
|
1309
|
+
(this._data[6] << 16) |
|
|
1310
|
+
(this._data[7] << 24)) >>>
|
|
1311
|
+
0;
|
|
1312
|
+
if (low === 0 && high === 0) {
|
|
1313
|
+
return "0";
|
|
1314
|
+
}
|
|
1315
|
+
var sign = false;
|
|
1316
|
+
if (high >> 31) {
|
|
1317
|
+
high = 4294967296 - high;
|
|
1318
|
+
if (low > 0) {
|
|
1319
|
+
high--;
|
|
1320
|
+
low = 4294967296 - low;
|
|
1321
|
+
}
|
|
1322
|
+
sign = true;
|
|
1323
|
+
}
|
|
1324
|
+
var buf = [];
|
|
1325
|
+
while (high > 0) {
|
|
1326
|
+
var t = (high % 10) * 4294967296 + low;
|
|
1327
|
+
high = Math.floor(high / 10);
|
|
1328
|
+
buf.unshift((t % 10).toString());
|
|
1329
|
+
low = Math.floor(t / 10);
|
|
1330
|
+
}
|
|
1331
|
+
while (low > 0) {
|
|
1332
|
+
buf.unshift((low % 10).toString());
|
|
1333
|
+
low = Math.floor(low / 10);
|
|
1334
|
+
}
|
|
1335
|
+
if (sign)
|
|
1336
|
+
buf.unshift("-");
|
|
1337
|
+
return buf.join("");
|
|
1338
|
+
}
|
|
1339
|
+
get data() {
|
|
1340
|
+
return this._data;
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
export class BinaryReader {
|
|
1344
|
+
constructor() {
|
|
1345
|
+
this._data = null;
|
|
1346
|
+
this._pos = 0;
|
|
1347
|
+
this._length = 0;
|
|
1348
|
+
this._eof = false;
|
|
1349
|
+
this.state = 0 /* INITIAL */;
|
|
1350
|
+
this.result = null;
|
|
1351
|
+
this.error = null;
|
|
1352
|
+
this._sectionEntriesLeft = 0;
|
|
1353
|
+
this._sectionId = -1 /* Unknown */;
|
|
1354
|
+
this._sectionRange = null;
|
|
1355
|
+
this._functionRange = null;
|
|
1356
|
+
this._segmentType = 0;
|
|
1357
|
+
this._segmentEntriesLeft = 0;
|
|
1358
|
+
}
|
|
1359
|
+
get data() {
|
|
1360
|
+
return this._data;
|
|
1361
|
+
}
|
|
1362
|
+
get position() {
|
|
1363
|
+
return this._pos;
|
|
1364
|
+
}
|
|
1365
|
+
get length() {
|
|
1366
|
+
return this._length;
|
|
1367
|
+
}
|
|
1368
|
+
setData(buffer, pos, length, eof) {
|
|
1369
|
+
var posDelta = pos - this._pos;
|
|
1370
|
+
this._data = new Uint8Array(buffer);
|
|
1371
|
+
this._pos = pos;
|
|
1372
|
+
this._length = length;
|
|
1373
|
+
this._eof = eof === undefined ? true : eof;
|
|
1374
|
+
if (this._sectionRange)
|
|
1375
|
+
this._sectionRange.offset(posDelta);
|
|
1376
|
+
if (this._functionRange)
|
|
1377
|
+
this._functionRange.offset(posDelta);
|
|
1378
|
+
}
|
|
1379
|
+
hasBytes(n) {
|
|
1380
|
+
return this._pos + n <= this._length;
|
|
1381
|
+
}
|
|
1382
|
+
hasMoreBytes() {
|
|
1383
|
+
return this.hasBytes(1);
|
|
1384
|
+
}
|
|
1385
|
+
readUint8() {
|
|
1386
|
+
return this._data[this._pos++];
|
|
1387
|
+
}
|
|
1388
|
+
readInt32() {
|
|
1389
|
+
var b1 = this._data[this._pos++];
|
|
1390
|
+
var b2 = this._data[this._pos++];
|
|
1391
|
+
var b3 = this._data[this._pos++];
|
|
1392
|
+
var b4 = this._data[this._pos++];
|
|
1393
|
+
return b1 | (b2 << 8) | (b3 << 16) | (b4 << 24);
|
|
1394
|
+
}
|
|
1395
|
+
readUint32() {
|
|
1396
|
+
return this.readInt32();
|
|
1397
|
+
}
|
|
1398
|
+
peekInt32() {
|
|
1399
|
+
var b1 = this._data[this._pos];
|
|
1400
|
+
var b2 = this._data[this._pos + 1];
|
|
1401
|
+
var b3 = this._data[this._pos + 2];
|
|
1402
|
+
var b4 = this._data[this._pos + 3];
|
|
1403
|
+
return b1 | (b2 << 8) | (b3 << 16) | (b4 << 24);
|
|
1404
|
+
}
|
|
1405
|
+
hasVarIntBytes() {
|
|
1406
|
+
var pos = this._pos;
|
|
1407
|
+
while (pos < this._length) {
|
|
1408
|
+
if ((this._data[pos++] & 0x80) == 0)
|
|
1409
|
+
return true;
|
|
1410
|
+
}
|
|
1411
|
+
return false;
|
|
1412
|
+
}
|
|
1413
|
+
readVarUint1() {
|
|
1414
|
+
return this.readUint8();
|
|
1415
|
+
}
|
|
1416
|
+
readVarInt7() {
|
|
1417
|
+
return (this.readUint8() << 25) >> 25;
|
|
1418
|
+
}
|
|
1419
|
+
readVarUint7() {
|
|
1420
|
+
return this.readUint8();
|
|
1421
|
+
}
|
|
1422
|
+
readVarInt32() {
|
|
1423
|
+
var result = 0;
|
|
1424
|
+
var shift = 0;
|
|
1425
|
+
while (true) {
|
|
1426
|
+
var byte = this.readUint8();
|
|
1427
|
+
result |= (byte & 0x7f) << shift;
|
|
1428
|
+
shift += 7;
|
|
1429
|
+
if ((byte & 0x80) === 0)
|
|
1430
|
+
break;
|
|
1431
|
+
}
|
|
1432
|
+
if (shift >= 32)
|
|
1433
|
+
return result;
|
|
1434
|
+
var ashift = 32 - shift;
|
|
1435
|
+
return (result << ashift) >> ashift;
|
|
1436
|
+
}
|
|
1437
|
+
readVarUint32() {
|
|
1438
|
+
var result = 0;
|
|
1439
|
+
var shift = 0;
|
|
1440
|
+
while (true) {
|
|
1441
|
+
var byte = this.readUint8();
|
|
1442
|
+
result |= (byte & 0x7f) << shift;
|
|
1443
|
+
shift += 7;
|
|
1444
|
+
if ((byte & 0x80) === 0)
|
|
1445
|
+
break;
|
|
1446
|
+
}
|
|
1447
|
+
return result;
|
|
1448
|
+
}
|
|
1449
|
+
readVarInt64() {
|
|
1450
|
+
var result = new Uint8Array(8);
|
|
1451
|
+
var i = 0;
|
|
1452
|
+
var c = 0;
|
|
1453
|
+
var shift = 0;
|
|
1454
|
+
while (true) {
|
|
1455
|
+
var byte = this.readUint8();
|
|
1456
|
+
c |= (byte & 0x7f) << shift;
|
|
1457
|
+
shift += 7;
|
|
1458
|
+
if (shift > 8) {
|
|
1459
|
+
result[i++] = c & 0xff;
|
|
1460
|
+
c >>= 8;
|
|
1461
|
+
shift -= 8;
|
|
1462
|
+
}
|
|
1463
|
+
if ((byte & 0x80) === 0)
|
|
1464
|
+
break;
|
|
1465
|
+
}
|
|
1466
|
+
var ashift = 32 - shift;
|
|
1467
|
+
c = (c << ashift) >> ashift;
|
|
1468
|
+
while (i < 8) {
|
|
1469
|
+
result[i++] = c & 0xff;
|
|
1470
|
+
c >>= 8;
|
|
1471
|
+
}
|
|
1472
|
+
return new Int64(result);
|
|
1473
|
+
}
|
|
1474
|
+
readStringBytes() {
|
|
1475
|
+
var length = this.readVarUint32() >>> 0;
|
|
1476
|
+
return this.readBytes(length);
|
|
1477
|
+
}
|
|
1478
|
+
readBytes(length) {
|
|
1479
|
+
var result = this._data.subarray(this._pos, this._pos + length);
|
|
1480
|
+
this._pos += length;
|
|
1481
|
+
return new Uint8Array(result); // making a clone of the data
|
|
1482
|
+
}
|
|
1483
|
+
skipBytes(length) {
|
|
1484
|
+
this._pos += length;
|
|
1485
|
+
}
|
|
1486
|
+
hasStringBytes() {
|
|
1487
|
+
if (!this.hasVarIntBytes())
|
|
1488
|
+
return false;
|
|
1489
|
+
var pos = this._pos;
|
|
1490
|
+
var length = this.readVarUint32() >>> 0;
|
|
1491
|
+
var result = this.hasBytes(length);
|
|
1492
|
+
this._pos = pos;
|
|
1493
|
+
return result;
|
|
1494
|
+
}
|
|
1495
|
+
hasSectionPayload() {
|
|
1496
|
+
return this.hasBytes(this._sectionRange.end - this._pos);
|
|
1497
|
+
}
|
|
1498
|
+
readFuncType() {
|
|
1499
|
+
var form = this.readVarInt7();
|
|
1500
|
+
var paramCount = this.readVarUint32() >>> 0;
|
|
1501
|
+
var paramTypes = new Int8Array(paramCount);
|
|
1502
|
+
for (var i = 0; i < paramCount; i++)
|
|
1503
|
+
paramTypes[i] = this.readVarInt7();
|
|
1504
|
+
var returnCount = this.readVarUint1();
|
|
1505
|
+
var returnTypes = new Int8Array(returnCount);
|
|
1506
|
+
for (var i = 0; i < returnCount; i++)
|
|
1507
|
+
returnTypes[i] = this.readVarInt7();
|
|
1508
|
+
return {
|
|
1509
|
+
form: form,
|
|
1510
|
+
params: paramTypes,
|
|
1511
|
+
returns: returnTypes,
|
|
1512
|
+
};
|
|
1513
|
+
}
|
|
1514
|
+
readResizableLimits(maxPresent) {
|
|
1515
|
+
var initial = this.readVarUint32() >>> 0;
|
|
1516
|
+
var maximum;
|
|
1517
|
+
if (maxPresent) {
|
|
1518
|
+
maximum = this.readVarUint32() >>> 0;
|
|
1519
|
+
}
|
|
1520
|
+
return { initial: initial, maximum: maximum };
|
|
1521
|
+
}
|
|
1522
|
+
readTableType() {
|
|
1523
|
+
var elementType = this.readVarInt7();
|
|
1524
|
+
var flags = this.readVarUint32() >>> 0;
|
|
1525
|
+
var limits = this.readResizableLimits(!!(flags & 0x01));
|
|
1526
|
+
return { elementType: elementType, limits: limits };
|
|
1527
|
+
}
|
|
1528
|
+
readMemoryType() {
|
|
1529
|
+
var flags = this.readVarUint32() >>> 0;
|
|
1530
|
+
var shared = !!(flags & 0x02);
|
|
1531
|
+
return {
|
|
1532
|
+
limits: this.readResizableLimits(!!(flags & 0x01)),
|
|
1533
|
+
shared: shared,
|
|
1534
|
+
};
|
|
1535
|
+
}
|
|
1536
|
+
readGlobalType() {
|
|
1537
|
+
if (!this.hasVarIntBytes()) {
|
|
1538
|
+
return null;
|
|
1539
|
+
}
|
|
1540
|
+
var pos = this._pos;
|
|
1541
|
+
var contentType = this.readVarInt7();
|
|
1542
|
+
if (!this.hasVarIntBytes()) {
|
|
1543
|
+
this._pos = pos;
|
|
1544
|
+
return null;
|
|
1545
|
+
}
|
|
1546
|
+
var mutability = this.readVarUint1();
|
|
1547
|
+
return { contentType: contentType, mutability: mutability };
|
|
1548
|
+
}
|
|
1549
|
+
readTypeEntry() {
|
|
1550
|
+
if (this._sectionEntriesLeft === 0) {
|
|
1551
|
+
this.skipSection();
|
|
1552
|
+
return this.read();
|
|
1553
|
+
}
|
|
1554
|
+
this.state = 11 /* TYPE_SECTION_ENTRY */;
|
|
1555
|
+
this.result = this.readFuncType();
|
|
1556
|
+
this._sectionEntriesLeft--;
|
|
1557
|
+
return true;
|
|
1558
|
+
}
|
|
1559
|
+
readImportEntry() {
|
|
1560
|
+
if (this._sectionEntriesLeft === 0) {
|
|
1561
|
+
this.skipSection();
|
|
1562
|
+
return this.read();
|
|
1563
|
+
}
|
|
1564
|
+
this.state = 12 /* IMPORT_SECTION_ENTRY */;
|
|
1565
|
+
var module = this.readStringBytes();
|
|
1566
|
+
var field = this.readStringBytes();
|
|
1567
|
+
var kind = this.readUint8();
|
|
1568
|
+
var funcTypeIndex;
|
|
1569
|
+
var type;
|
|
1570
|
+
switch (kind) {
|
|
1571
|
+
case 0 /* Function */:
|
|
1572
|
+
funcTypeIndex = this.readVarUint32() >>> 0;
|
|
1573
|
+
break;
|
|
1574
|
+
case 1 /* Table */:
|
|
1575
|
+
type = this.readTableType();
|
|
1576
|
+
break;
|
|
1577
|
+
case 2 /* Memory */:
|
|
1578
|
+
type = this.readMemoryType();
|
|
1579
|
+
break;
|
|
1580
|
+
case 3 /* Global */:
|
|
1581
|
+
type = this.readGlobalType();
|
|
1582
|
+
break;
|
|
1583
|
+
}
|
|
1584
|
+
this.result = {
|
|
1585
|
+
module: module,
|
|
1586
|
+
field: field,
|
|
1587
|
+
kind: kind,
|
|
1588
|
+
funcTypeIndex: funcTypeIndex,
|
|
1589
|
+
type: type,
|
|
1590
|
+
};
|
|
1591
|
+
this._sectionEntriesLeft--;
|
|
1592
|
+
return true;
|
|
1593
|
+
}
|
|
1594
|
+
readExportEntry() {
|
|
1595
|
+
if (this._sectionEntriesLeft === 0) {
|
|
1596
|
+
this.skipSection();
|
|
1597
|
+
return this.read();
|
|
1598
|
+
}
|
|
1599
|
+
var field = this.readStringBytes();
|
|
1600
|
+
var kind = this.readUint8();
|
|
1601
|
+
var index = this.readVarUint32() >>> 0;
|
|
1602
|
+
this.state = 17 /* EXPORT_SECTION_ENTRY */;
|
|
1603
|
+
this.result = { field: field, kind: kind, index: index };
|
|
1604
|
+
this._sectionEntriesLeft--;
|
|
1605
|
+
return true;
|
|
1606
|
+
}
|
|
1607
|
+
readFunctionEntry() {
|
|
1608
|
+
if (this._sectionEntriesLeft === 0) {
|
|
1609
|
+
this.skipSection();
|
|
1610
|
+
return this.read();
|
|
1611
|
+
}
|
|
1612
|
+
var typeIndex = this.readVarUint32() >>> 0;
|
|
1613
|
+
this.state = 13 /* FUNCTION_SECTION_ENTRY */;
|
|
1614
|
+
this.result = { typeIndex: typeIndex };
|
|
1615
|
+
this._sectionEntriesLeft--;
|
|
1616
|
+
return true;
|
|
1617
|
+
}
|
|
1618
|
+
readTableEntry() {
|
|
1619
|
+
if (this._sectionEntriesLeft === 0) {
|
|
1620
|
+
this.skipSection();
|
|
1621
|
+
return this.read();
|
|
1622
|
+
}
|
|
1623
|
+
this.state = 14 /* TABLE_SECTION_ENTRY */;
|
|
1624
|
+
this.result = this.readTableType();
|
|
1625
|
+
this._sectionEntriesLeft--;
|
|
1626
|
+
return true;
|
|
1627
|
+
}
|
|
1628
|
+
readMemoryEntry() {
|
|
1629
|
+
if (this._sectionEntriesLeft === 0) {
|
|
1630
|
+
this.skipSection();
|
|
1631
|
+
return this.read();
|
|
1632
|
+
}
|
|
1633
|
+
this.state = 15 /* MEMORY_SECTION_ENTRY */;
|
|
1634
|
+
this.result = this.readMemoryType();
|
|
1635
|
+
this._sectionEntriesLeft--;
|
|
1636
|
+
return true;
|
|
1637
|
+
}
|
|
1638
|
+
readGlobalEntry() {
|
|
1639
|
+
if (this._sectionEntriesLeft === 0) {
|
|
1640
|
+
this.skipSection();
|
|
1641
|
+
return this.read();
|
|
1642
|
+
}
|
|
1643
|
+
var globalType = this.readGlobalType();
|
|
1644
|
+
if (!globalType) {
|
|
1645
|
+
this.state = 16 /* GLOBAL_SECTION_ENTRY */;
|
|
1646
|
+
return false;
|
|
1647
|
+
}
|
|
1648
|
+
this.state = 39 /* BEGIN_GLOBAL_SECTION_ENTRY */;
|
|
1649
|
+
this.result = {
|
|
1650
|
+
type: globalType,
|
|
1651
|
+
};
|
|
1652
|
+
this._sectionEntriesLeft--;
|
|
1653
|
+
return true;
|
|
1654
|
+
}
|
|
1655
|
+
readElementEntry() {
|
|
1656
|
+
if (this._sectionEntriesLeft === 0) {
|
|
1657
|
+
this.skipSection();
|
|
1658
|
+
return this.read();
|
|
1659
|
+
}
|
|
1660
|
+
const pos = this._pos;
|
|
1661
|
+
if (!this.hasMoreBytes()) {
|
|
1662
|
+
this.state = 20 /* ELEMENT_SECTION_ENTRY */;
|
|
1663
|
+
return false;
|
|
1664
|
+
}
|
|
1665
|
+
const segmentType = this.readUint8();
|
|
1666
|
+
let mode, tableIndex;
|
|
1667
|
+
switch (segmentType) {
|
|
1668
|
+
case 0 /* LegacyActiveFuncrefExternval */:
|
|
1669
|
+
case 4 /* LegacyActiveFuncrefElemexpr */:
|
|
1670
|
+
mode = 0 /* Active */;
|
|
1671
|
+
tableIndex = 0;
|
|
1672
|
+
break;
|
|
1673
|
+
case 1 /* PassiveExternval */:
|
|
1674
|
+
case 5 /* PassiveElemexpr */:
|
|
1675
|
+
mode = 1 /* Passive */;
|
|
1676
|
+
break;
|
|
1677
|
+
case 2 /* ActiveExternval */:
|
|
1678
|
+
case 6 /* ActiveElemexpr */:
|
|
1679
|
+
mode = 0 /* Active */;
|
|
1680
|
+
if (!this.hasVarIntBytes()) {
|
|
1681
|
+
this.state = 20 /* ELEMENT_SECTION_ENTRY */;
|
|
1682
|
+
this._pos = pos;
|
|
1683
|
+
return false;
|
|
1684
|
+
}
|
|
1685
|
+
tableIndex = this.readVarUint32();
|
|
1686
|
+
break;
|
|
1687
|
+
case 3 /* DeclaredExternval */:
|
|
1688
|
+
case 7 /* DeclaredElemexpr */:
|
|
1689
|
+
mode = 2 /* Declarative */;
|
|
1690
|
+
break;
|
|
1691
|
+
default:
|
|
1692
|
+
throw new Error(`Unsupported element segment type ${segmentType}`);
|
|
1693
|
+
}
|
|
1694
|
+
this.state = 33 /* BEGIN_ELEMENT_SECTION_ENTRY */;
|
|
1695
|
+
this.result = { mode, tableIndex };
|
|
1696
|
+
this._sectionEntriesLeft--;
|
|
1697
|
+
this._segmentType = segmentType;
|
|
1698
|
+
return true;
|
|
1699
|
+
}
|
|
1700
|
+
readElementEntryBody() {
|
|
1701
|
+
let elementType = -16 /* funcref */;
|
|
1702
|
+
switch (this._segmentType) {
|
|
1703
|
+
case 1 /* PassiveExternval */:
|
|
1704
|
+
case 2 /* ActiveExternval */:
|
|
1705
|
+
case 3 /* DeclaredExternval */:
|
|
1706
|
+
if (!this.hasMoreBytes())
|
|
1707
|
+
return false;
|
|
1708
|
+
// We just skip the 0x00 byte, the `elemkind` byte
|
|
1709
|
+
// is reserved for future versions of WebAssembly.
|
|
1710
|
+
this.skipBytes(1);
|
|
1711
|
+
break;
|
|
1712
|
+
case 5 /* PassiveElemexpr */:
|
|
1713
|
+
case 6 /* ActiveElemexpr */:
|
|
1714
|
+
case 7 /* DeclaredElemexpr */:
|
|
1715
|
+
if (!this.hasMoreBytes())
|
|
1716
|
+
return false;
|
|
1717
|
+
elementType = this.readVarInt7();
|
|
1718
|
+
break;
|
|
1719
|
+
case 0 /* LegacyActiveFuncrefExternval */:
|
|
1720
|
+
case 4 /* LegacyActiveFuncrefElemexpr */:
|
|
1721
|
+
// The element type is implicitly `funcref`.
|
|
1722
|
+
break;
|
|
1723
|
+
default:
|
|
1724
|
+
throw new Error(`Unsupported element segment type ${this._segmentType}`);
|
|
1725
|
+
}
|
|
1726
|
+
this.state = 34 /* ELEMENT_SECTION_ENTRY_BODY */;
|
|
1727
|
+
this.result = { elementType };
|
|
1728
|
+
return true;
|
|
1729
|
+
}
|
|
1730
|
+
readDataEntry() {
|
|
1731
|
+
if (this._sectionEntriesLeft === 0) {
|
|
1732
|
+
this.skipSection();
|
|
1733
|
+
return this.read();
|
|
1734
|
+
}
|
|
1735
|
+
const pos = this._pos;
|
|
1736
|
+
if (!this.hasVarIntBytes()) {
|
|
1737
|
+
this.state = 18 /* DATA_SECTION_ENTRY */;
|
|
1738
|
+
return false;
|
|
1739
|
+
}
|
|
1740
|
+
const segmentType = this.readVarUint32();
|
|
1741
|
+
let mode, memoryIndex;
|
|
1742
|
+
switch (segmentType) {
|
|
1743
|
+
case 0 /* Active */:
|
|
1744
|
+
mode = 0 /* Active */;
|
|
1745
|
+
memoryIndex = 0;
|
|
1746
|
+
break;
|
|
1747
|
+
case 1 /* Passive */:
|
|
1748
|
+
mode = 1 /* Passive */;
|
|
1749
|
+
break;
|
|
1750
|
+
case 2 /* ActiveWithMemoryIndex */:
|
|
1751
|
+
mode = 0 /* Active */;
|
|
1752
|
+
if (!this.hasVarIntBytes()) {
|
|
1753
|
+
this._pos = pos;
|
|
1754
|
+
this.state = 18 /* DATA_SECTION_ENTRY */;
|
|
1755
|
+
return false;
|
|
1756
|
+
}
|
|
1757
|
+
memoryIndex = this.readVarUint32();
|
|
1758
|
+
break;
|
|
1759
|
+
default:
|
|
1760
|
+
throw new Error(`Unsupported data segment type ${segmentType}`);
|
|
1761
|
+
}
|
|
1762
|
+
this.state = 36 /* BEGIN_DATA_SECTION_ENTRY */;
|
|
1763
|
+
this.result = { mode, memoryIndex };
|
|
1764
|
+
this._sectionEntriesLeft--;
|
|
1765
|
+
this._segmentType = segmentType;
|
|
1766
|
+
return true;
|
|
1767
|
+
}
|
|
1768
|
+
readDataEntryBody() {
|
|
1769
|
+
if (!this.hasStringBytes()) {
|
|
1770
|
+
return false;
|
|
1771
|
+
}
|
|
1772
|
+
this.state = 37 /* DATA_SECTION_ENTRY_BODY */;
|
|
1773
|
+
this.result = {
|
|
1774
|
+
data: this.readStringBytes(),
|
|
1775
|
+
};
|
|
1776
|
+
return true;
|
|
1777
|
+
}
|
|
1778
|
+
readInitExpressionBody() {
|
|
1779
|
+
this.state = 25 /* BEGIN_INIT_EXPRESSION_BODY */;
|
|
1780
|
+
this.result = null;
|
|
1781
|
+
return true;
|
|
1782
|
+
}
|
|
1783
|
+
readOffsetExpressionBody() {
|
|
1784
|
+
this.state = 44 /* BEGIN_OFFSET_EXPRESSION_BODY */;
|
|
1785
|
+
this.result = null;
|
|
1786
|
+
return true;
|
|
1787
|
+
}
|
|
1788
|
+
readMemoryImmediate() {
|
|
1789
|
+
var flags = this.readVarUint32() >>> 0;
|
|
1790
|
+
var offset = this.readVarUint32() >>> 0;
|
|
1791
|
+
return { flags: flags, offset: offset };
|
|
1792
|
+
}
|
|
1793
|
+
readNameMap() {
|
|
1794
|
+
var count = this.readVarUint32();
|
|
1795
|
+
var result = [];
|
|
1796
|
+
for (var i = 0; i < count; i++) {
|
|
1797
|
+
var index = this.readVarUint32();
|
|
1798
|
+
var name = this.readStringBytes();
|
|
1799
|
+
result.push({ index: index, name: name });
|
|
1800
|
+
}
|
|
1801
|
+
return result;
|
|
1802
|
+
}
|
|
1803
|
+
readNameEntry() {
|
|
1804
|
+
var pos = this._pos;
|
|
1805
|
+
if (pos >= this._sectionRange.end) {
|
|
1806
|
+
this.skipSection();
|
|
1807
|
+
return this.read();
|
|
1808
|
+
}
|
|
1809
|
+
if (!this.hasVarIntBytes())
|
|
1810
|
+
return false;
|
|
1811
|
+
var type = this.readVarUint7();
|
|
1812
|
+
if (!this.hasVarIntBytes()) {
|
|
1813
|
+
this._pos = pos;
|
|
1814
|
+
return false;
|
|
1815
|
+
}
|
|
1816
|
+
var payloadLength = this.readVarUint32();
|
|
1817
|
+
if (!this.hasBytes(payloadLength)) {
|
|
1818
|
+
this._pos = pos;
|
|
1819
|
+
return false;
|
|
1820
|
+
}
|
|
1821
|
+
var result;
|
|
1822
|
+
switch (type) {
|
|
1823
|
+
case 0 /* Module */:
|
|
1824
|
+
result = {
|
|
1825
|
+
type,
|
|
1826
|
+
moduleName: this.readStringBytes(),
|
|
1827
|
+
};
|
|
1828
|
+
break;
|
|
1829
|
+
case 1 /* Function */:
|
|
1830
|
+
case 4 /* Type */:
|
|
1831
|
+
case 5 /* Table */:
|
|
1832
|
+
case 6 /* Memory */:
|
|
1833
|
+
case 7 /* Global */:
|
|
1834
|
+
result = {
|
|
1835
|
+
type,
|
|
1836
|
+
names: this.readNameMap(),
|
|
1837
|
+
};
|
|
1838
|
+
break;
|
|
1839
|
+
case 2 /* Local */:
|
|
1840
|
+
var funcsLength = this.readVarUint32();
|
|
1841
|
+
var funcs = [];
|
|
1842
|
+
for (var i = 0; i < funcsLength; i++) {
|
|
1843
|
+
var funcIndex = this.readVarUint32();
|
|
1844
|
+
funcs.push({
|
|
1845
|
+
index: funcIndex,
|
|
1846
|
+
locals: this.readNameMap(),
|
|
1847
|
+
});
|
|
1848
|
+
}
|
|
1849
|
+
result = {
|
|
1850
|
+
type,
|
|
1851
|
+
funcs: funcs,
|
|
1852
|
+
};
|
|
1853
|
+
break;
|
|
1854
|
+
default:
|
|
1855
|
+
// Skip this unknown name subsection (as per specification,
|
|
1856
|
+
// custom section errors shouldn't cause Wasm parsing to fail).
|
|
1857
|
+
this.skipBytes(payloadLength);
|
|
1858
|
+
return this.read();
|
|
1859
|
+
}
|
|
1860
|
+
this.state = 19 /* NAME_SECTION_ENTRY */;
|
|
1861
|
+
this.result = result;
|
|
1862
|
+
return true;
|
|
1863
|
+
}
|
|
1864
|
+
readRelocHeader() {
|
|
1865
|
+
// See https://github.com/WebAssembly/tool-conventions/blob/master/Linking.md
|
|
1866
|
+
if (!this.hasVarIntBytes()) {
|
|
1867
|
+
return false;
|
|
1868
|
+
}
|
|
1869
|
+
var pos = this._pos;
|
|
1870
|
+
var sectionId = this.readVarUint7();
|
|
1871
|
+
var sectionName;
|
|
1872
|
+
if (sectionId === 0 /* Custom */) {
|
|
1873
|
+
if (!this.hasStringBytes()) {
|
|
1874
|
+
this._pos = pos;
|
|
1875
|
+
return false;
|
|
1876
|
+
}
|
|
1877
|
+
sectionName = this.readStringBytes();
|
|
1878
|
+
}
|
|
1879
|
+
this.state = 41 /* RELOC_SECTION_HEADER */;
|
|
1880
|
+
this.result = {
|
|
1881
|
+
id: sectionId,
|
|
1882
|
+
name: sectionName,
|
|
1883
|
+
};
|
|
1884
|
+
return true;
|
|
1885
|
+
}
|
|
1886
|
+
readLinkingEntry() {
|
|
1887
|
+
if (this._sectionEntriesLeft === 0) {
|
|
1888
|
+
this.skipSection();
|
|
1889
|
+
return this.read();
|
|
1890
|
+
}
|
|
1891
|
+
if (!this.hasVarIntBytes())
|
|
1892
|
+
return false;
|
|
1893
|
+
var pos = this._pos;
|
|
1894
|
+
var type = this.readVarUint32() >>> 0;
|
|
1895
|
+
var index;
|
|
1896
|
+
switch (type) {
|
|
1897
|
+
case 1 /* StackPointer */:
|
|
1898
|
+
if (!this.hasVarIntBytes()) {
|
|
1899
|
+
this._pos = pos;
|
|
1900
|
+
return false;
|
|
1901
|
+
}
|
|
1902
|
+
index = this.readVarUint32();
|
|
1903
|
+
break;
|
|
1904
|
+
default:
|
|
1905
|
+
this.error = new Error(`Bad linking type: ${type}`);
|
|
1906
|
+
this.state = -1 /* ERROR */;
|
|
1907
|
+
return true;
|
|
1908
|
+
}
|
|
1909
|
+
this.state = 21 /* LINKING_SECTION_ENTRY */;
|
|
1910
|
+
this.result = { type: type, index: index };
|
|
1911
|
+
this._sectionEntriesLeft--;
|
|
1912
|
+
return true;
|
|
1913
|
+
}
|
|
1914
|
+
readSourceMappingURL() {
|
|
1915
|
+
if (!this.hasStringBytes())
|
|
1916
|
+
return false;
|
|
1917
|
+
var url = this.readStringBytes();
|
|
1918
|
+
this.state = 43 /* SOURCE_MAPPING_URL */;
|
|
1919
|
+
this.result = { url: url };
|
|
1920
|
+
return true;
|
|
1921
|
+
}
|
|
1922
|
+
readRelocEntry() {
|
|
1923
|
+
if (this._sectionEntriesLeft === 0) {
|
|
1924
|
+
this.skipSection();
|
|
1925
|
+
return this.read();
|
|
1926
|
+
}
|
|
1927
|
+
if (!this.hasVarIntBytes())
|
|
1928
|
+
return false;
|
|
1929
|
+
var pos = this._pos;
|
|
1930
|
+
var type = this.readVarUint7();
|
|
1931
|
+
if (!this.hasVarIntBytes()) {
|
|
1932
|
+
this._pos = pos;
|
|
1933
|
+
return false;
|
|
1934
|
+
}
|
|
1935
|
+
var offset = this.readVarUint32();
|
|
1936
|
+
if (!this.hasVarIntBytes()) {
|
|
1937
|
+
this._pos = pos;
|
|
1938
|
+
return false;
|
|
1939
|
+
}
|
|
1940
|
+
var index = this.readVarUint32();
|
|
1941
|
+
var addend;
|
|
1942
|
+
switch (type) {
|
|
1943
|
+
case 0 /* FunctionIndex_LEB */:
|
|
1944
|
+
case 1 /* TableIndex_SLEB */:
|
|
1945
|
+
case 2 /* TableIndex_I32 */:
|
|
1946
|
+
case 6 /* TypeIndex_LEB */:
|
|
1947
|
+
case 7 /* GlobalIndex_LEB */:
|
|
1948
|
+
break;
|
|
1949
|
+
case 3 /* GlobalAddr_LEB */:
|
|
1950
|
+
case 4 /* GlobalAddr_SLEB */:
|
|
1951
|
+
case 5 /* GlobalAddr_I32 */:
|
|
1952
|
+
if (!this.hasVarIntBytes()) {
|
|
1953
|
+
this._pos = pos;
|
|
1954
|
+
return false;
|
|
1955
|
+
}
|
|
1956
|
+
addend = this.readVarUint32();
|
|
1957
|
+
break;
|
|
1958
|
+
default:
|
|
1959
|
+
this.error = new Error(`Bad relocation type: ${type}`);
|
|
1960
|
+
this.state = -1 /* ERROR */;
|
|
1961
|
+
return true;
|
|
1962
|
+
}
|
|
1963
|
+
this.state = 42 /* RELOC_SECTION_ENTRY */;
|
|
1964
|
+
this.result = {
|
|
1965
|
+
type: type,
|
|
1966
|
+
offset: offset,
|
|
1967
|
+
index: index,
|
|
1968
|
+
addend: addend,
|
|
1969
|
+
};
|
|
1970
|
+
this._sectionEntriesLeft--;
|
|
1971
|
+
return true;
|
|
1972
|
+
}
|
|
1973
|
+
readCodeOperator_0xfc() {
|
|
1974
|
+
if (!this.hasVarIntBytes()) {
|
|
1975
|
+
return false;
|
|
1976
|
+
}
|
|
1977
|
+
var code = this.readVarUint32() | 0xfc00;
|
|
1978
|
+
var reserved, segmentIndex, destinationIndex, tableIndex;
|
|
1979
|
+
switch (code) {
|
|
1980
|
+
case 64512 /* i32_trunc_sat_f32_s */:
|
|
1981
|
+
case 64513 /* i32_trunc_sat_f32_u */:
|
|
1982
|
+
case 64514 /* i32_trunc_sat_f64_s */:
|
|
1983
|
+
case 64515 /* i32_trunc_sat_f64_u */:
|
|
1984
|
+
case 64516 /* i64_trunc_sat_f32_s */:
|
|
1985
|
+
case 64517 /* i64_trunc_sat_f32_u */:
|
|
1986
|
+
case 64518 /* i64_trunc_sat_f64_s */:
|
|
1987
|
+
case 64519 /* i64_trunc_sat_f64_u */:
|
|
1988
|
+
break;
|
|
1989
|
+
case 64522 /* memory_copy */:
|
|
1990
|
+
// Currently memory index must be zero.
|
|
1991
|
+
reserved = this.readVarUint1();
|
|
1992
|
+
reserved = this.readVarUint1();
|
|
1993
|
+
break;
|
|
1994
|
+
case 64523 /* memory_fill */:
|
|
1995
|
+
reserved = this.readVarUint1();
|
|
1996
|
+
break;
|
|
1997
|
+
case 64524 /* table_init */:
|
|
1998
|
+
segmentIndex = this.readVarUint32() >>> 0;
|
|
1999
|
+
tableIndex = this.readVarUint32() >>> 0;
|
|
2000
|
+
break;
|
|
2001
|
+
case 64526 /* table_copy */:
|
|
2002
|
+
tableIndex = this.readVarUint32() >>> 0;
|
|
2003
|
+
destinationIndex = this.readVarUint32() >>> 0;
|
|
2004
|
+
break;
|
|
2005
|
+
case 64527 /* table_grow */:
|
|
2006
|
+
case 64528 /* table_size */:
|
|
2007
|
+
case 64529 /* table_fill */:
|
|
2008
|
+
tableIndex = this.readVarUint32() >>> 0;
|
|
2009
|
+
break;
|
|
2010
|
+
case 64520 /* memory_init */:
|
|
2011
|
+
segmentIndex = this.readVarUint32() >>> 0;
|
|
2012
|
+
reserved = this.readVarUint1();
|
|
2013
|
+
break;
|
|
2014
|
+
case 64521 /* data_drop */:
|
|
2015
|
+
case 64525 /* elem_drop */:
|
|
2016
|
+
segmentIndex = this.readVarUint32() >>> 0;
|
|
2017
|
+
break;
|
|
2018
|
+
default:
|
|
2019
|
+
this.error = new Error(`Unknown operator: 0x${code.toString(16).padStart(4, "0")}`);
|
|
2020
|
+
this.state = -1 /* ERROR */;
|
|
2021
|
+
return true;
|
|
2022
|
+
}
|
|
2023
|
+
this.result = {
|
|
2024
|
+
code: code,
|
|
2025
|
+
blockType: undefined,
|
|
2026
|
+
brDepth: undefined,
|
|
2027
|
+
brTable: undefined,
|
|
2028
|
+
funcIndex: undefined,
|
|
2029
|
+
typeIndex: undefined,
|
|
2030
|
+
tableIndex: tableIndex,
|
|
2031
|
+
localIndex: undefined,
|
|
2032
|
+
globalIndex: undefined,
|
|
2033
|
+
memoryAddress: undefined,
|
|
2034
|
+
literal: undefined,
|
|
2035
|
+
segmentIndex: segmentIndex,
|
|
2036
|
+
destinationIndex: destinationIndex,
|
|
2037
|
+
lines: undefined,
|
|
2038
|
+
lineIndex: undefined,
|
|
2039
|
+
};
|
|
2040
|
+
return true;
|
|
2041
|
+
}
|
|
2042
|
+
readCodeOperator_0xfd() {
|
|
2043
|
+
const MAX_CODE_OPERATOR_0XFD_SIZE = 17;
|
|
2044
|
+
var pos = this._pos;
|
|
2045
|
+
if (!this._eof && pos + MAX_CODE_OPERATOR_0XFD_SIZE > this._length) {
|
|
2046
|
+
return false;
|
|
2047
|
+
}
|
|
2048
|
+
if (!this.hasVarIntBytes()) {
|
|
2049
|
+
return false;
|
|
2050
|
+
}
|
|
2051
|
+
var code = this.readVarUint32() | 0xfd00;
|
|
2052
|
+
var memoryAddress;
|
|
2053
|
+
var literal;
|
|
2054
|
+
var lineIndex;
|
|
2055
|
+
var lines;
|
|
2056
|
+
switch (code) {
|
|
2057
|
+
case 64768 /* v128_load */:
|
|
2058
|
+
case 64769 /* i16x8_load8x8_s */:
|
|
2059
|
+
case 64770 /* i16x8_load8x8_u */:
|
|
2060
|
+
case 64771 /* i32x4_load16x4_s */:
|
|
2061
|
+
case 64772 /* i32x4_load16x4_u */:
|
|
2062
|
+
case 64773 /* i64x2_load32x2_s */:
|
|
2063
|
+
case 64774 /* i64x2_load32x2_u */:
|
|
2064
|
+
case 64775 /* v8x16_load_splat */:
|
|
2065
|
+
case 64776 /* v16x8_load_splat */:
|
|
2066
|
+
case 64777 /* v32x4_load_splat */:
|
|
2067
|
+
case 64778 /* v64x2_load_splat */:
|
|
2068
|
+
case 64779 /* v128_store */:
|
|
2069
|
+
case 65020 /* v128_load32_zero */:
|
|
2070
|
+
case 65021 /* v128_load64_zero */:
|
|
2071
|
+
memoryAddress = this.readMemoryImmediate();
|
|
2072
|
+
break;
|
|
2073
|
+
case 64780 /* v128_const */:
|
|
2074
|
+
literal = this.readBytes(16);
|
|
2075
|
+
break;
|
|
2076
|
+
case 64781 /* i8x16_shuffle */:
|
|
2077
|
+
lines = new Uint8Array(16);
|
|
2078
|
+
for (var i = 0; i < lines.length; i++) {
|
|
2079
|
+
lines[i] = this.readUint8();
|
|
2080
|
+
}
|
|
2081
|
+
break;
|
|
2082
|
+
case 64789 /* i8x16_extract_lane_s */:
|
|
2083
|
+
case 64790 /* i8x16_extract_lane_u */:
|
|
2084
|
+
case 64791 /* i8x16_replace_lane */:
|
|
2085
|
+
case 64792 /* i16x8_extract_lane_s */:
|
|
2086
|
+
case 64793 /* i16x8_extract_lane_u */:
|
|
2087
|
+
case 64794 /* i16x8_replace_lane */:
|
|
2088
|
+
case 64795 /* i32x4_extract_lane */:
|
|
2089
|
+
case 64796 /* i32x4_replace_lane */:
|
|
2090
|
+
case 64797 /* i64x2_extract_lane */:
|
|
2091
|
+
case 64798 /* i64x2_replace_lane */:
|
|
2092
|
+
case 64799 /* f32x4_extract_lane */:
|
|
2093
|
+
case 64800 /* f32x4_replace_lane */:
|
|
2094
|
+
case 64801 /* f64x2_extract_lane */:
|
|
2095
|
+
case 64802 /* f64x2_replace_lane */:
|
|
2096
|
+
lineIndex = this.readUint8();
|
|
2097
|
+
break;
|
|
2098
|
+
case 64782 /* i8x16_swizzle */:
|
|
2099
|
+
case 64783 /* i8x16_splat */:
|
|
2100
|
+
case 64784 /* i16x8_splat */:
|
|
2101
|
+
case 64785 /* i32x4_splat */:
|
|
2102
|
+
case 64786 /* i64x2_splat */:
|
|
2103
|
+
case 64787 /* f32x4_splat */:
|
|
2104
|
+
case 64788 /* f64x2_splat */:
|
|
2105
|
+
case 64803 /* i8x16_eq */:
|
|
2106
|
+
case 64804 /* i8x16_ne */:
|
|
2107
|
+
case 64805 /* i8x16_lt_s */:
|
|
2108
|
+
case 64806 /* i8x16_lt_u */:
|
|
2109
|
+
case 64807 /* i8x16_gt_s */:
|
|
2110
|
+
case 64808 /* i8x16_gt_u */:
|
|
2111
|
+
case 64809 /* i8x16_le_s */:
|
|
2112
|
+
case 64810 /* i8x16_le_u */:
|
|
2113
|
+
case 64811 /* i8x16_ge_s */:
|
|
2114
|
+
case 64812 /* i8x16_ge_u */:
|
|
2115
|
+
case 64813 /* i16x8_eq */:
|
|
2116
|
+
case 64814 /* i16x8_ne */:
|
|
2117
|
+
case 64815 /* i16x8_lt_s */:
|
|
2118
|
+
case 64816 /* i16x8_lt_u */:
|
|
2119
|
+
case 64817 /* i16x8_gt_s */:
|
|
2120
|
+
case 64818 /* i16x8_gt_u */:
|
|
2121
|
+
case 64819 /* i16x8_le_s */:
|
|
2122
|
+
case 64820 /* i16x8_le_u */:
|
|
2123
|
+
case 64821 /* i16x8_ge_s */:
|
|
2124
|
+
case 64822 /* i16x8_ge_u */:
|
|
2125
|
+
case 64823 /* i32x4_eq */:
|
|
2126
|
+
case 64824 /* i32x4_ne */:
|
|
2127
|
+
case 64825 /* i32x4_lt_s */:
|
|
2128
|
+
case 64826 /* i32x4_lt_u */:
|
|
2129
|
+
case 64827 /* i32x4_gt_s */:
|
|
2130
|
+
case 64828 /* i32x4_gt_u */:
|
|
2131
|
+
case 64829 /* i32x4_le_s */:
|
|
2132
|
+
case 64830 /* i32x4_le_u */:
|
|
2133
|
+
case 64831 /* i32x4_ge_s */:
|
|
2134
|
+
case 64832 /* i32x4_ge_u */:
|
|
2135
|
+
case 64833 /* f32x4_eq */:
|
|
2136
|
+
case 64834 /* f32x4_ne */:
|
|
2137
|
+
case 64835 /* f32x4_lt */:
|
|
2138
|
+
case 64836 /* f32x4_gt */:
|
|
2139
|
+
case 64837 /* f32x4_le */:
|
|
2140
|
+
case 64838 /* f32x4_ge */:
|
|
2141
|
+
case 64839 /* f64x2_eq */:
|
|
2142
|
+
case 64840 /* f64x2_ne */:
|
|
2143
|
+
case 64841 /* f64x2_lt */:
|
|
2144
|
+
case 64842 /* f64x2_gt */:
|
|
2145
|
+
case 64843 /* f64x2_le */:
|
|
2146
|
+
case 64844 /* f64x2_ge */:
|
|
2147
|
+
case 64845 /* v128_not */:
|
|
2148
|
+
case 64846 /* v128_and */:
|
|
2149
|
+
case 64847 /* v128_andnot */:
|
|
2150
|
+
case 64848 /* v128_or */:
|
|
2151
|
+
case 64849 /* v128_xor */:
|
|
2152
|
+
case 64850 /* v128_bitselect */:
|
|
2153
|
+
case 64864 /* i8x16_abs */:
|
|
2154
|
+
case 64865 /* i8x16_neg */:
|
|
2155
|
+
case 64866 /* i8x16_any_true */:
|
|
2156
|
+
case 64867 /* i8x16_all_true */:
|
|
2157
|
+
case 64868 /* i8x16_bitmask */:
|
|
2158
|
+
case 64869 /* i8x16_narrow_i16x8_s */:
|
|
2159
|
+
case 64870 /* i8x16_narrow_i16x8_u */:
|
|
2160
|
+
case 64875 /* i8x16_shl */:
|
|
2161
|
+
case 64876 /* i8x16_shr_s */:
|
|
2162
|
+
case 64877 /* i8x16_shr_u */:
|
|
2163
|
+
case 64878 /* i8x16_add */:
|
|
2164
|
+
case 64879 /* i8x16_add_sat_s */:
|
|
2165
|
+
case 64880 /* i8x16_add_sat_u */:
|
|
2166
|
+
case 64881 /* i8x16_sub */:
|
|
2167
|
+
case 64882 /* i8x16_sub_sat_s */:
|
|
2168
|
+
case 64883 /* i8x16_sub_sat_u */:
|
|
2169
|
+
case 64886 /* i8x16_min_s */:
|
|
2170
|
+
case 64887 /* i8x16_min_u */:
|
|
2171
|
+
case 64888 /* i8x16_max_s */:
|
|
2172
|
+
case 64889 /* i8x16_max_u */:
|
|
2173
|
+
case 64891 /* i8x16_avgr_u */:
|
|
2174
|
+
case 64896 /* i16x8_abs */:
|
|
2175
|
+
case 64897 /* i16x8_neg */:
|
|
2176
|
+
case 64898 /* i16x8_any_true */:
|
|
2177
|
+
case 64899 /* i16x8_all_true */:
|
|
2178
|
+
case 64900 /* i16x8_bitmask */:
|
|
2179
|
+
case 64901 /* i16x8_narrow_i32x4_s */:
|
|
2180
|
+
case 64902 /* i16x8_narrow_i32x4_u */:
|
|
2181
|
+
case 64903 /* i16x8_widen_low_i8x16_s */:
|
|
2182
|
+
case 64904 /* i16x8_widen_high_i8x16_s */:
|
|
2183
|
+
case 64905 /* i16x8_widen_low_i8x16_u */:
|
|
2184
|
+
case 64906 /* i16x8_widen_high_i8x16_u */:
|
|
2185
|
+
case 64907 /* i16x8_shl */:
|
|
2186
|
+
case 64908 /* i16x8_shr_s */:
|
|
2187
|
+
case 64909 /* i16x8_shr_u */:
|
|
2188
|
+
case 64910 /* i16x8_add */:
|
|
2189
|
+
case 64911 /* i16x8_add_sat_s */:
|
|
2190
|
+
case 64912 /* i16x8_add_sat_u */:
|
|
2191
|
+
case 64913 /* i16x8_sub */:
|
|
2192
|
+
case 64914 /* i16x8_sub_sat_s */:
|
|
2193
|
+
case 64915 /* i16x8_sub_sat_u */:
|
|
2194
|
+
case 64917 /* i16x8_mul */:
|
|
2195
|
+
case 64918 /* i16x8_min_s */:
|
|
2196
|
+
case 64919 /* i16x8_min_u */:
|
|
2197
|
+
case 64920 /* i16x8_max_s */:
|
|
2198
|
+
case 64921 /* i16x8_max_u */:
|
|
2199
|
+
case 64923 /* i16x8_avgr_u */:
|
|
2200
|
+
case 64928 /* i32x4_abs */:
|
|
2201
|
+
case 64929 /* i32x4_neg */:
|
|
2202
|
+
case 64930 /* i32x4_any_true */:
|
|
2203
|
+
case 64931 /* i32x4_all_true */:
|
|
2204
|
+
case 64932 /* i32x4_bitmask */:
|
|
2205
|
+
case 64935 /* i32x4_widen_low_i16x8_s */:
|
|
2206
|
+
case 64936 /* i32x4_widen_high_i16x8_s */:
|
|
2207
|
+
case 64937 /* i32x4_widen_low_i16x8_u */:
|
|
2208
|
+
case 64938 /* i32x4_widen_high_i16x8_u */:
|
|
2209
|
+
case 64939 /* i32x4_shl */:
|
|
2210
|
+
case 64940 /* i32x4_shr_s */:
|
|
2211
|
+
case 64941 /* i32x4_shr_u */:
|
|
2212
|
+
case 64942 /* i32x4_add */:
|
|
2213
|
+
case 64945 /* i32x4_sub */:
|
|
2214
|
+
case 64949 /* i32x4_mul */:
|
|
2215
|
+
case 64950 /* i32x4_min_s */:
|
|
2216
|
+
case 64951 /* i32x4_min_u */:
|
|
2217
|
+
case 64952 /* i32x4_max_s */:
|
|
2218
|
+
case 64953 /* i32x4_max_u */:
|
|
2219
|
+
case 64954 /* i32x4_dot_i16x8_s */:
|
|
2220
|
+
case 64961 /* i64x2_neg */:
|
|
2221
|
+
case 64971 /* i64x2_shl */:
|
|
2222
|
+
case 64972 /* i64x2_shr_s */:
|
|
2223
|
+
case 64973 /* i64x2_shr_u */:
|
|
2224
|
+
case 64974 /* i64x2_add */:
|
|
2225
|
+
case 64977 /* i64x2_sub */:
|
|
2226
|
+
case 64981 /* i64x2_mul */:
|
|
2227
|
+
case 64992 /* f32x4_abs */:
|
|
2228
|
+
case 64992 /* f32x4_abs */:
|
|
2229
|
+
case 64993 /* f32x4_neg */:
|
|
2230
|
+
case 64995 /* f32x4_sqrt */:
|
|
2231
|
+
case 64996 /* f32x4_add */:
|
|
2232
|
+
case 64997 /* f32x4_sub */:
|
|
2233
|
+
case 64998 /* f32x4_mul */:
|
|
2234
|
+
case 64999 /* f32x4_div */:
|
|
2235
|
+
case 65000 /* f32x4_min */:
|
|
2236
|
+
case 65001 /* f32x4_max */:
|
|
2237
|
+
case 65002 /* f32x4_pmin */:
|
|
2238
|
+
case 65003 /* f32x4_pmax */:
|
|
2239
|
+
case 65004 /* f64x2_abs */:
|
|
2240
|
+
case 65005 /* f64x2_neg */:
|
|
2241
|
+
case 65007 /* f64x2_sqrt */:
|
|
2242
|
+
case 65008 /* f64x2_add */:
|
|
2243
|
+
case 65009 /* f64x2_sub */:
|
|
2244
|
+
case 65010 /* f64x2_mul */:
|
|
2245
|
+
case 65011 /* f64x2_div */:
|
|
2246
|
+
case 65012 /* f64x2_min */:
|
|
2247
|
+
case 65013 /* f64x2_max */:
|
|
2248
|
+
case 65014 /* f64x2_pmin */:
|
|
2249
|
+
case 65015 /* f64x2_pmax */:
|
|
2250
|
+
case 65016 /* i32x4_trunc_sat_f32x4_s */:
|
|
2251
|
+
case 65017 /* i32x4_trunc_sat_f32x4_u */:
|
|
2252
|
+
case 65018 /* f32x4_convert_i32x4_s */:
|
|
2253
|
+
case 65019 /* f32x4_convert_i32x4_u */:
|
|
2254
|
+
break;
|
|
2255
|
+
default:
|
|
2256
|
+
this.error = new Error(`Unknown operator: 0x${code.toString(16).padStart(4, "0")}`);
|
|
2257
|
+
this.state = -1 /* ERROR */;
|
|
2258
|
+
return true;
|
|
2259
|
+
}
|
|
2260
|
+
this.result = {
|
|
2261
|
+
code: code,
|
|
2262
|
+
blockType: undefined,
|
|
2263
|
+
brDepth: undefined,
|
|
2264
|
+
brTable: undefined,
|
|
2265
|
+
funcIndex: undefined,
|
|
2266
|
+
typeIndex: undefined,
|
|
2267
|
+
localIndex: undefined,
|
|
2268
|
+
globalIndex: undefined,
|
|
2269
|
+
memoryAddress: memoryAddress,
|
|
2270
|
+
literal: literal,
|
|
2271
|
+
segmentIndex: undefined,
|
|
2272
|
+
destinationIndex: undefined,
|
|
2273
|
+
lines: lines,
|
|
2274
|
+
lineIndex: lineIndex,
|
|
2275
|
+
};
|
|
2276
|
+
return true;
|
|
2277
|
+
}
|
|
2278
|
+
readCodeOperator_0xfe() {
|
|
2279
|
+
const MAX_CODE_OPERATOR_0XFE_SIZE = 11;
|
|
2280
|
+
var pos = this._pos;
|
|
2281
|
+
if (!this._eof && pos + MAX_CODE_OPERATOR_0XFE_SIZE > this._length) {
|
|
2282
|
+
return false;
|
|
2283
|
+
}
|
|
2284
|
+
if (!this.hasVarIntBytes()) {
|
|
2285
|
+
return false;
|
|
2286
|
+
}
|
|
2287
|
+
var code = this.readVarUint32() | 0xfe00;
|
|
2288
|
+
var memoryAddress;
|
|
2289
|
+
switch (code) {
|
|
2290
|
+
case 65024 /* atomic_notify */:
|
|
2291
|
+
case 65025 /* i32_atomic_wait */:
|
|
2292
|
+
case 65026 /* i64_atomic_wait */:
|
|
2293
|
+
case 65040 /* i32_atomic_load */:
|
|
2294
|
+
case 65041 /* i64_atomic_load */:
|
|
2295
|
+
case 65042 /* i32_atomic_load8_u */:
|
|
2296
|
+
case 65043 /* i32_atomic_load16_u */:
|
|
2297
|
+
case 65044 /* i64_atomic_load8_u */:
|
|
2298
|
+
case 65045 /* i64_atomic_load16_u */:
|
|
2299
|
+
case 65046 /* i64_atomic_load32_u */:
|
|
2300
|
+
case 65047 /* i32_atomic_store */:
|
|
2301
|
+
case 65048 /* i64_atomic_store */:
|
|
2302
|
+
case 65049 /* i32_atomic_store8 */:
|
|
2303
|
+
case 65050 /* i32_atomic_store16 */:
|
|
2304
|
+
case 65051 /* i64_atomic_store8 */:
|
|
2305
|
+
case 65052 /* i64_atomic_store16 */:
|
|
2306
|
+
case 65053 /* i64_atomic_store32 */:
|
|
2307
|
+
case 65054 /* i32_atomic_rmw_add */:
|
|
2308
|
+
case 65055 /* i64_atomic_rmw_add */:
|
|
2309
|
+
case 65056 /* i32_atomic_rmw8_add_u */:
|
|
2310
|
+
case 65057 /* i32_atomic_rmw16_add_u */:
|
|
2311
|
+
case 65058 /* i64_atomic_rmw8_add_u */:
|
|
2312
|
+
case 65059 /* i64_atomic_rmw16_add_u */:
|
|
2313
|
+
case 65060 /* i64_atomic_rmw32_add_u */:
|
|
2314
|
+
case 65061 /* i32_atomic_rmw_sub */:
|
|
2315
|
+
case 65062 /* i64_atomic_rmw_sub */:
|
|
2316
|
+
case 65063 /* i32_atomic_rmw8_sub_u */:
|
|
2317
|
+
case 65064 /* i32_atomic_rmw16_sub_u */:
|
|
2318
|
+
case 65065 /* i64_atomic_rmw8_sub_u */:
|
|
2319
|
+
case 65066 /* i64_atomic_rmw16_sub_u */:
|
|
2320
|
+
case 65067 /* i64_atomic_rmw32_sub_u */:
|
|
2321
|
+
case 65068 /* i32_atomic_rmw_and */:
|
|
2322
|
+
case 65069 /* i64_atomic_rmw_and */:
|
|
2323
|
+
case 65070 /* i32_atomic_rmw8_and_u */:
|
|
2324
|
+
case 65071 /* i32_atomic_rmw16_and_u */:
|
|
2325
|
+
case 65072 /* i64_atomic_rmw8_and_u */:
|
|
2326
|
+
case 65073 /* i64_atomic_rmw16_and_u */:
|
|
2327
|
+
case 65074 /* i64_atomic_rmw32_and_u */:
|
|
2328
|
+
case 65075 /* i32_atomic_rmw_or */:
|
|
2329
|
+
case 65076 /* i64_atomic_rmw_or */:
|
|
2330
|
+
case 65077 /* i32_atomic_rmw8_or_u */:
|
|
2331
|
+
case 65078 /* i32_atomic_rmw16_or_u */:
|
|
2332
|
+
case 65079 /* i64_atomic_rmw8_or_u */:
|
|
2333
|
+
case 65080 /* i64_atomic_rmw16_or_u */:
|
|
2334
|
+
case 65081 /* i64_atomic_rmw32_or_u */:
|
|
2335
|
+
case 65082 /* i32_atomic_rmw_xor */:
|
|
2336
|
+
case 65083 /* i64_atomic_rmw_xor */:
|
|
2337
|
+
case 65084 /* i32_atomic_rmw8_xor_u */:
|
|
2338
|
+
case 65085 /* i32_atomic_rmw16_xor_u */:
|
|
2339
|
+
case 65086 /* i64_atomic_rmw8_xor_u */:
|
|
2340
|
+
case 65087 /* i64_atomic_rmw16_xor_u */:
|
|
2341
|
+
case 65088 /* i64_atomic_rmw32_xor_u */:
|
|
2342
|
+
case 65089 /* i32_atomic_rmw_xchg */:
|
|
2343
|
+
case 65090 /* i64_atomic_rmw_xchg */:
|
|
2344
|
+
case 65091 /* i32_atomic_rmw8_xchg_u */:
|
|
2345
|
+
case 65092 /* i32_atomic_rmw16_xchg_u */:
|
|
2346
|
+
case 65093 /* i64_atomic_rmw8_xchg_u */:
|
|
2347
|
+
case 65094 /* i64_atomic_rmw16_xchg_u */:
|
|
2348
|
+
case 65095 /* i64_atomic_rmw32_xchg_u */:
|
|
2349
|
+
case 65096 /* i32_atomic_rmw_cmpxchg */:
|
|
2350
|
+
case 65097 /* i64_atomic_rmw_cmpxchg */:
|
|
2351
|
+
case 65098 /* i32_atomic_rmw8_cmpxchg_u */:
|
|
2352
|
+
case 65099 /* i32_atomic_rmw16_cmpxchg_u */:
|
|
2353
|
+
case 65100 /* i64_atomic_rmw8_cmpxchg_u */:
|
|
2354
|
+
case 65101 /* i64_atomic_rmw16_cmpxchg_u */:
|
|
2355
|
+
case 65102 /* i64_atomic_rmw32_cmpxchg_u */:
|
|
2356
|
+
memoryAddress = this.readMemoryImmediate();
|
|
2357
|
+
break;
|
|
2358
|
+
case 65027 /* atomic_fence */: {
|
|
2359
|
+
var consistency_model = this.readUint8();
|
|
2360
|
+
if (consistency_model != 0) {
|
|
2361
|
+
this.error = new Error("atomic.fence consistency model must be 0");
|
|
2362
|
+
this.state = -1 /* ERROR */;
|
|
2363
|
+
return true;
|
|
2364
|
+
}
|
|
2365
|
+
break;
|
|
2366
|
+
}
|
|
2367
|
+
default:
|
|
2368
|
+
this.error = new Error(`Unknown operator: 0x${code.toString(16).padStart(4, "0")}`);
|
|
2369
|
+
this.state = -1 /* ERROR */;
|
|
2370
|
+
return true;
|
|
2371
|
+
}
|
|
2372
|
+
this.result = {
|
|
2373
|
+
code: code,
|
|
2374
|
+
blockType: undefined,
|
|
2375
|
+
brDepth: undefined,
|
|
2376
|
+
brTable: undefined,
|
|
2377
|
+
funcIndex: undefined,
|
|
2378
|
+
typeIndex: undefined,
|
|
2379
|
+
localIndex: undefined,
|
|
2380
|
+
globalIndex: undefined,
|
|
2381
|
+
memoryAddress: memoryAddress,
|
|
2382
|
+
literal: undefined,
|
|
2383
|
+
segmentIndex: undefined,
|
|
2384
|
+
destinationIndex: undefined,
|
|
2385
|
+
lines: undefined,
|
|
2386
|
+
lineIndex: undefined,
|
|
2387
|
+
};
|
|
2388
|
+
return true;
|
|
2389
|
+
}
|
|
2390
|
+
readCodeOperator() {
|
|
2391
|
+
switch (this.state) {
|
|
2392
|
+
case 30 /* CODE_OPERATOR */:
|
|
2393
|
+
if (this._pos >= this._functionRange.end) {
|
|
2394
|
+
this.skipFunctionBody();
|
|
2395
|
+
return this.read();
|
|
2396
|
+
}
|
|
2397
|
+
break;
|
|
2398
|
+
case 26 /* INIT_EXPRESSION_OPERATOR */:
|
|
2399
|
+
if (this.result &&
|
|
2400
|
+
this.result.code === 11 /* end */) {
|
|
2401
|
+
this.state = 27 /* END_INIT_EXPRESSION_BODY */;
|
|
2402
|
+
this.result = null;
|
|
2403
|
+
return true;
|
|
2404
|
+
}
|
|
2405
|
+
break;
|
|
2406
|
+
case 45 /* OFFSET_EXPRESSION_OPERATOR */:
|
|
2407
|
+
if (this.result &&
|
|
2408
|
+
this.result.code === 11 /* end */) {
|
|
2409
|
+
this.state = 46 /* END_OFFSET_EXPRESSION_BODY */;
|
|
2410
|
+
this.result = null;
|
|
2411
|
+
return true;
|
|
2412
|
+
}
|
|
2413
|
+
break;
|
|
2414
|
+
}
|
|
2415
|
+
var code, blockType, refType, brDepth, brTable, funcIndex, typeIndex, tableIndex, localIndex, globalIndex, memoryAddress, literal, reserved;
|
|
2416
|
+
if (this.state === 26 /* INIT_EXPRESSION_OPERATOR */ &&
|
|
2417
|
+
this._sectionId === 9 /* Element */ &&
|
|
2418
|
+
isExternvalElementSegmentType(this._segmentType)) {
|
|
2419
|
+
// We are reading a `vec(funcidx)` here, which is a dense encoding
|
|
2420
|
+
// for a sequence of `((ref.func y) end)` instructions.
|
|
2421
|
+
if (this.result &&
|
|
2422
|
+
this.result.code === 210 /* ref_func */) {
|
|
2423
|
+
code = 11 /* end */;
|
|
2424
|
+
}
|
|
2425
|
+
else {
|
|
2426
|
+
if (!this.hasVarIntBytes())
|
|
2427
|
+
return false;
|
|
2428
|
+
code = 210 /* ref_func */;
|
|
2429
|
+
funcIndex = this.readVarUint32();
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2432
|
+
else {
|
|
2433
|
+
const MAX_CODE_OPERATOR_SIZE = 11; // i64.const or load/store
|
|
2434
|
+
var pos = this._pos;
|
|
2435
|
+
if (!this._eof && pos + MAX_CODE_OPERATOR_SIZE > this._length) {
|
|
2436
|
+
return false;
|
|
2437
|
+
}
|
|
2438
|
+
code = this._data[this._pos++];
|
|
2439
|
+
switch (code) {
|
|
2440
|
+
case 2 /* block */:
|
|
2441
|
+
case 3 /* loop */:
|
|
2442
|
+
case 4 /* if */:
|
|
2443
|
+
blockType = this.readVarInt7();
|
|
2444
|
+
break;
|
|
2445
|
+
case 12 /* br */:
|
|
2446
|
+
case 13 /* br_if */:
|
|
2447
|
+
brDepth = this.readVarUint32() >>> 0;
|
|
2448
|
+
break;
|
|
2449
|
+
case 14 /* br_table */:
|
|
2450
|
+
var tableCount = this.readVarUint32() >>> 0;
|
|
2451
|
+
if (!this.hasBytes(tableCount + 1)) {
|
|
2452
|
+
// We need at least (tableCount + 1) bytes
|
|
2453
|
+
this._pos = pos;
|
|
2454
|
+
return false;
|
|
2455
|
+
}
|
|
2456
|
+
brTable = [];
|
|
2457
|
+
for (var i = 0; i <= tableCount; i++) {
|
|
2458
|
+
// including default
|
|
2459
|
+
if (!this.hasVarIntBytes()) {
|
|
2460
|
+
this._pos = pos;
|
|
2461
|
+
return false;
|
|
2462
|
+
}
|
|
2463
|
+
brTable.push(this.readVarUint32() >>> 0);
|
|
2464
|
+
}
|
|
2465
|
+
break;
|
|
2466
|
+
case 208 /* ref_null */:
|
|
2467
|
+
refType = this.readVarInt7();
|
|
2468
|
+
break;
|
|
2469
|
+
case 16 /* call */:
|
|
2470
|
+
case 18 /* return_call */:
|
|
2471
|
+
case 210 /* ref_func */:
|
|
2472
|
+
funcIndex = this.readVarUint32() >>> 0;
|
|
2473
|
+
break;
|
|
2474
|
+
case 17 /* call_indirect */:
|
|
2475
|
+
case 19 /* return_call_indirect */:
|
|
2476
|
+
typeIndex = this.readVarUint32() >>> 0;
|
|
2477
|
+
reserved = this.readVarUint1();
|
|
2478
|
+
break;
|
|
2479
|
+
case 32 /* local_get */:
|
|
2480
|
+
case 33 /* local_set */:
|
|
2481
|
+
case 34 /* local_tee */:
|
|
2482
|
+
localIndex = this.readVarUint32() >>> 0;
|
|
2483
|
+
break;
|
|
2484
|
+
case 35 /* global_get */:
|
|
2485
|
+
case 36 /* global_set */:
|
|
2486
|
+
globalIndex = this.readVarUint32() >>> 0;
|
|
2487
|
+
break;
|
|
2488
|
+
case 37 /* table_get */:
|
|
2489
|
+
case 38 /* table_set */:
|
|
2490
|
+
tableIndex = this.readVarUint32() >>> 0;
|
|
2491
|
+
break;
|
|
2492
|
+
case 40 /* i32_load */:
|
|
2493
|
+
case 41 /* i64_load */:
|
|
2494
|
+
case 42 /* f32_load */:
|
|
2495
|
+
case 43 /* f64_load */:
|
|
2496
|
+
case 44 /* i32_load8_s */:
|
|
2497
|
+
case 45 /* i32_load8_u */:
|
|
2498
|
+
case 46 /* i32_load16_s */:
|
|
2499
|
+
case 47 /* i32_load16_u */:
|
|
2500
|
+
case 48 /* i64_load8_s */:
|
|
2501
|
+
case 49 /* i64_load8_u */:
|
|
2502
|
+
case 50 /* i64_load16_s */:
|
|
2503
|
+
case 51 /* i64_load16_u */:
|
|
2504
|
+
case 52 /* i64_load32_s */:
|
|
2505
|
+
case 53 /* i64_load32_u */:
|
|
2506
|
+
case 54 /* i32_store */:
|
|
2507
|
+
case 55 /* i64_store */:
|
|
2508
|
+
case 56 /* f32_store */:
|
|
2509
|
+
case 57 /* f64_store */:
|
|
2510
|
+
case 58 /* i32_store8 */:
|
|
2511
|
+
case 59 /* i32_store16 */:
|
|
2512
|
+
case 60 /* i64_store8 */:
|
|
2513
|
+
case 61 /* i64_store16 */:
|
|
2514
|
+
case 62 /* i64_store32 */:
|
|
2515
|
+
memoryAddress = this.readMemoryImmediate();
|
|
2516
|
+
break;
|
|
2517
|
+
case 63 /* current_memory */:
|
|
2518
|
+
case 64 /* grow_memory */:
|
|
2519
|
+
reserved = this.readVarUint1();
|
|
2520
|
+
break;
|
|
2521
|
+
case 65 /* i32_const */:
|
|
2522
|
+
literal = this.readVarInt32();
|
|
2523
|
+
break;
|
|
2524
|
+
case 66 /* i64_const */:
|
|
2525
|
+
literal = this.readVarInt64();
|
|
2526
|
+
break;
|
|
2527
|
+
case 67 /* f32_const */:
|
|
2528
|
+
literal = new DataView(this._data.buffer, this._data.byteOffset).getFloat32(this._pos, true);
|
|
2529
|
+
this._pos += 4;
|
|
2530
|
+
break;
|
|
2531
|
+
case 68 /* f64_const */:
|
|
2532
|
+
literal = new DataView(this._data.buffer, this._data.byteOffset).getFloat64(this._pos, true);
|
|
2533
|
+
this._pos += 8;
|
|
2534
|
+
break;
|
|
2535
|
+
case 252 /* prefix_0xfc */:
|
|
2536
|
+
if (this.readCodeOperator_0xfc()) {
|
|
2537
|
+
return true;
|
|
2538
|
+
}
|
|
2539
|
+
this._pos = pos;
|
|
2540
|
+
return false;
|
|
2541
|
+
case 253 /* prefix_0xfd */:
|
|
2542
|
+
if (this.readCodeOperator_0xfd()) {
|
|
2543
|
+
return true;
|
|
2544
|
+
}
|
|
2545
|
+
this._pos = pos;
|
|
2546
|
+
return false;
|
|
2547
|
+
case 254 /* prefix_0xfe */:
|
|
2548
|
+
if (this.readCodeOperator_0xfe()) {
|
|
2549
|
+
return true;
|
|
2550
|
+
}
|
|
2551
|
+
this._pos = pos;
|
|
2552
|
+
return false;
|
|
2553
|
+
case 0 /* unreachable */:
|
|
2554
|
+
case 1 /* nop */:
|
|
2555
|
+
case 5 /* else */:
|
|
2556
|
+
case 11 /* end */:
|
|
2557
|
+
case 15 /* return */:
|
|
2558
|
+
case 26 /* drop */:
|
|
2559
|
+
case 27 /* select */:
|
|
2560
|
+
case 69 /* i32_eqz */:
|
|
2561
|
+
case 70 /* i32_eq */:
|
|
2562
|
+
case 71 /* i32_ne */:
|
|
2563
|
+
case 72 /* i32_lt_s */:
|
|
2564
|
+
case 73 /* i32_lt_u */:
|
|
2565
|
+
case 74 /* i32_gt_s */:
|
|
2566
|
+
case 75 /* i32_gt_u */:
|
|
2567
|
+
case 76 /* i32_le_s */:
|
|
2568
|
+
case 77 /* i32_le_u */:
|
|
2569
|
+
case 78 /* i32_ge_s */:
|
|
2570
|
+
case 79 /* i32_ge_u */:
|
|
2571
|
+
case 80 /* i64_eqz */:
|
|
2572
|
+
case 81 /* i64_eq */:
|
|
2573
|
+
case 82 /* i64_ne */:
|
|
2574
|
+
case 83 /* i64_lt_s */:
|
|
2575
|
+
case 84 /* i64_lt_u */:
|
|
2576
|
+
case 85 /* i64_gt_s */:
|
|
2577
|
+
case 86 /* i64_gt_u */:
|
|
2578
|
+
case 87 /* i64_le_s */:
|
|
2579
|
+
case 88 /* i64_le_u */:
|
|
2580
|
+
case 89 /* i64_ge_s */:
|
|
2581
|
+
case 90 /* i64_ge_u */:
|
|
2582
|
+
case 91 /* f32_eq */:
|
|
2583
|
+
case 92 /* f32_ne */:
|
|
2584
|
+
case 93 /* f32_lt */:
|
|
2585
|
+
case 94 /* f32_gt */:
|
|
2586
|
+
case 95 /* f32_le */:
|
|
2587
|
+
case 96 /* f32_ge */:
|
|
2588
|
+
case 97 /* f64_eq */:
|
|
2589
|
+
case 98 /* f64_ne */:
|
|
2590
|
+
case 99 /* f64_lt */:
|
|
2591
|
+
case 100 /* f64_gt */:
|
|
2592
|
+
case 101 /* f64_le */:
|
|
2593
|
+
case 102 /* f64_ge */:
|
|
2594
|
+
case 103 /* i32_clz */:
|
|
2595
|
+
case 104 /* i32_ctz */:
|
|
2596
|
+
case 105 /* i32_popcnt */:
|
|
2597
|
+
case 106 /* i32_add */:
|
|
2598
|
+
case 107 /* i32_sub */:
|
|
2599
|
+
case 108 /* i32_mul */:
|
|
2600
|
+
case 109 /* i32_div_s */:
|
|
2601
|
+
case 110 /* i32_div_u */:
|
|
2602
|
+
case 111 /* i32_rem_s */:
|
|
2603
|
+
case 112 /* i32_rem_u */:
|
|
2604
|
+
case 113 /* i32_and */:
|
|
2605
|
+
case 114 /* i32_or */:
|
|
2606
|
+
case 115 /* i32_xor */:
|
|
2607
|
+
case 116 /* i32_shl */:
|
|
2608
|
+
case 117 /* i32_shr_s */:
|
|
2609
|
+
case 118 /* i32_shr_u */:
|
|
2610
|
+
case 119 /* i32_rotl */:
|
|
2611
|
+
case 120 /* i32_rotr */:
|
|
2612
|
+
case 121 /* i64_clz */:
|
|
2613
|
+
case 122 /* i64_ctz */:
|
|
2614
|
+
case 123 /* i64_popcnt */:
|
|
2615
|
+
case 124 /* i64_add */:
|
|
2616
|
+
case 125 /* i64_sub */:
|
|
2617
|
+
case 126 /* i64_mul */:
|
|
2618
|
+
case 127 /* i64_div_s */:
|
|
2619
|
+
case 128 /* i64_div_u */:
|
|
2620
|
+
case 129 /* i64_rem_s */:
|
|
2621
|
+
case 130 /* i64_rem_u */:
|
|
2622
|
+
case 131 /* i64_and */:
|
|
2623
|
+
case 132 /* i64_or */:
|
|
2624
|
+
case 133 /* i64_xor */:
|
|
2625
|
+
case 134 /* i64_shl */:
|
|
2626
|
+
case 135 /* i64_shr_s */:
|
|
2627
|
+
case 136 /* i64_shr_u */:
|
|
2628
|
+
case 137 /* i64_rotl */:
|
|
2629
|
+
case 138 /* i64_rotr */:
|
|
2630
|
+
case 139 /* f32_abs */:
|
|
2631
|
+
case 140 /* f32_neg */:
|
|
2632
|
+
case 141 /* f32_ceil */:
|
|
2633
|
+
case 142 /* f32_floor */:
|
|
2634
|
+
case 143 /* f32_trunc */:
|
|
2635
|
+
case 144 /* f32_nearest */:
|
|
2636
|
+
case 145 /* f32_sqrt */:
|
|
2637
|
+
case 146 /* f32_add */:
|
|
2638
|
+
case 147 /* f32_sub */:
|
|
2639
|
+
case 148 /* f32_mul */:
|
|
2640
|
+
case 149 /* f32_div */:
|
|
2641
|
+
case 150 /* f32_min */:
|
|
2642
|
+
case 151 /* f32_max */:
|
|
2643
|
+
case 152 /* f32_copysign */:
|
|
2644
|
+
case 153 /* f64_abs */:
|
|
2645
|
+
case 154 /* f64_neg */:
|
|
2646
|
+
case 155 /* f64_ceil */:
|
|
2647
|
+
case 156 /* f64_floor */:
|
|
2648
|
+
case 157 /* f64_trunc */:
|
|
2649
|
+
case 158 /* f64_nearest */:
|
|
2650
|
+
case 159 /* f64_sqrt */:
|
|
2651
|
+
case 160 /* f64_add */:
|
|
2652
|
+
case 161 /* f64_sub */:
|
|
2653
|
+
case 162 /* f64_mul */:
|
|
2654
|
+
case 163 /* f64_div */:
|
|
2655
|
+
case 164 /* f64_min */:
|
|
2656
|
+
case 165 /* f64_max */:
|
|
2657
|
+
case 166 /* f64_copysign */:
|
|
2658
|
+
case 167 /* i32_wrap_i64 */:
|
|
2659
|
+
case 168 /* i32_trunc_f32_s */:
|
|
2660
|
+
case 169 /* i32_trunc_f32_u */:
|
|
2661
|
+
case 170 /* i32_trunc_f64_s */:
|
|
2662
|
+
case 171 /* i32_trunc_f64_u */:
|
|
2663
|
+
case 172 /* i64_extend_i32_s */:
|
|
2664
|
+
case 173 /* i64_extend_i32_u */:
|
|
2665
|
+
case 174 /* i64_trunc_f32_s */:
|
|
2666
|
+
case 175 /* i64_trunc_f32_u */:
|
|
2667
|
+
case 176 /* i64_trunc_f64_s */:
|
|
2668
|
+
case 177 /* i64_trunc_f64_u */:
|
|
2669
|
+
case 178 /* f32_convert_i32_s */:
|
|
2670
|
+
case 179 /* f32_convert_i32_u */:
|
|
2671
|
+
case 180 /* f32_convert_i64_s */:
|
|
2672
|
+
case 181 /* f32_convert_i64_u */:
|
|
2673
|
+
case 182 /* f32_demote_f64 */:
|
|
2674
|
+
case 183 /* f64_convert_i32_s */:
|
|
2675
|
+
case 184 /* f64_convert_i32_u */:
|
|
2676
|
+
case 185 /* f64_convert_i64_s */:
|
|
2677
|
+
case 186 /* f64_convert_i64_u */:
|
|
2678
|
+
case 187 /* f64_promote_f32 */:
|
|
2679
|
+
case 188 /* i32_reinterpret_f32 */:
|
|
2680
|
+
case 189 /* i64_reinterpret_f64 */:
|
|
2681
|
+
case 190 /* f32_reinterpret_i32 */:
|
|
2682
|
+
case 191 /* f64_reinterpret_i64 */:
|
|
2683
|
+
case 192 /* i32_extend8_s */:
|
|
2684
|
+
case 193 /* i32_extend16_s */:
|
|
2685
|
+
case 194 /* i64_extend8_s */:
|
|
2686
|
+
case 195 /* i64_extend16_s */:
|
|
2687
|
+
case 196 /* i64_extend32_s */:
|
|
2688
|
+
case 209 /* ref_is_null */:
|
|
2689
|
+
case 208 /* ref_null */:
|
|
2690
|
+
break;
|
|
2691
|
+
default:
|
|
2692
|
+
this.error = new Error(`Unknown operator: ${code}`);
|
|
2693
|
+
this.state = -1 /* ERROR */;
|
|
2694
|
+
return true;
|
|
2695
|
+
}
|
|
2696
|
+
}
|
|
2697
|
+
this.result = {
|
|
2698
|
+
code,
|
|
2699
|
+
blockType,
|
|
2700
|
+
refType,
|
|
2701
|
+
brDepth,
|
|
2702
|
+
brTable,
|
|
2703
|
+
tableIndex,
|
|
2704
|
+
funcIndex,
|
|
2705
|
+
typeIndex,
|
|
2706
|
+
localIndex,
|
|
2707
|
+
globalIndex,
|
|
2708
|
+
memoryAddress,
|
|
2709
|
+
literal,
|
|
2710
|
+
segmentIndex: undefined,
|
|
2711
|
+
destinationIndex: undefined,
|
|
2712
|
+
lines: undefined,
|
|
2713
|
+
lineIndex: undefined,
|
|
2714
|
+
};
|
|
2715
|
+
return true;
|
|
2716
|
+
}
|
|
2717
|
+
readFunctionBody() {
|
|
2718
|
+
if (this._sectionEntriesLeft === 0) {
|
|
2719
|
+
this.skipSection();
|
|
2720
|
+
return this.read();
|
|
2721
|
+
}
|
|
2722
|
+
if (!this.hasVarIntBytes())
|
|
2723
|
+
return false;
|
|
2724
|
+
var pos = this._pos;
|
|
2725
|
+
var size = this.readVarUint32() >>> 0;
|
|
2726
|
+
var bodyEnd = this._pos + size;
|
|
2727
|
+
if (!this.hasVarIntBytes()) {
|
|
2728
|
+
this._pos = pos;
|
|
2729
|
+
return false;
|
|
2730
|
+
}
|
|
2731
|
+
var localCount = this.readVarUint32() >>> 0;
|
|
2732
|
+
var locals = [];
|
|
2733
|
+
for (var i = 0; i < localCount; i++) {
|
|
2734
|
+
if (!this.hasVarIntBytes()) {
|
|
2735
|
+
this._pos = pos;
|
|
2736
|
+
return false;
|
|
2737
|
+
}
|
|
2738
|
+
var count = this.readVarUint32() >>> 0;
|
|
2739
|
+
if (!this.hasVarIntBytes()) {
|
|
2740
|
+
this._pos = pos;
|
|
2741
|
+
return false;
|
|
2742
|
+
}
|
|
2743
|
+
var type = this.readVarInt7();
|
|
2744
|
+
locals.push({ count: count, type: type });
|
|
2745
|
+
}
|
|
2746
|
+
var bodyStart = this._pos;
|
|
2747
|
+
this.state = 28 /* BEGIN_FUNCTION_BODY */;
|
|
2748
|
+
this.result = {
|
|
2749
|
+
locals: locals,
|
|
2750
|
+
};
|
|
2751
|
+
this._functionRange = new DataRange(bodyStart, bodyEnd);
|
|
2752
|
+
this._sectionEntriesLeft--;
|
|
2753
|
+
return true;
|
|
2754
|
+
}
|
|
2755
|
+
readSectionHeader() {
|
|
2756
|
+
if (this._pos >= this._length && this._eof) {
|
|
2757
|
+
this._sectionId = -1 /* Unknown */;
|
|
2758
|
+
this._sectionRange = null;
|
|
2759
|
+
this.result = null;
|
|
2760
|
+
this.state = 2 /* END_WASM */;
|
|
2761
|
+
return true;
|
|
2762
|
+
}
|
|
2763
|
+
// TODO: Handle _eof.
|
|
2764
|
+
if (this._pos < this._length - 4) {
|
|
2765
|
+
var magicNumber = this.peekInt32();
|
|
2766
|
+
if (magicNumber === WASM_MAGIC_NUMBER) {
|
|
2767
|
+
this._sectionId = -1 /* Unknown */;
|
|
2768
|
+
this._sectionRange = null;
|
|
2769
|
+
this.result = null;
|
|
2770
|
+
this.state = 2 /* END_WASM */;
|
|
2771
|
+
return true;
|
|
2772
|
+
}
|
|
2773
|
+
}
|
|
2774
|
+
if (!this.hasVarIntBytes())
|
|
2775
|
+
return false;
|
|
2776
|
+
var sectionStart = this._pos;
|
|
2777
|
+
var id = this.readVarUint7();
|
|
2778
|
+
if (!this.hasVarIntBytes()) {
|
|
2779
|
+
this._pos = sectionStart;
|
|
2780
|
+
return false;
|
|
2781
|
+
}
|
|
2782
|
+
var payloadLength = this.readVarUint32() >>> 0;
|
|
2783
|
+
var name = null;
|
|
2784
|
+
var payloadEnd = this._pos + payloadLength;
|
|
2785
|
+
if (id == 0) {
|
|
2786
|
+
if (!this.hasStringBytes()) {
|
|
2787
|
+
this._pos = sectionStart;
|
|
2788
|
+
return false;
|
|
2789
|
+
}
|
|
2790
|
+
name = this.readStringBytes();
|
|
2791
|
+
}
|
|
2792
|
+
this.result = { id: id, name: name };
|
|
2793
|
+
this._sectionId = id;
|
|
2794
|
+
this._sectionRange = new DataRange(this._pos, payloadEnd);
|
|
2795
|
+
this.state = 3 /* BEGIN_SECTION */;
|
|
2796
|
+
return true;
|
|
2797
|
+
}
|
|
2798
|
+
readSectionRawData() {
|
|
2799
|
+
var payloadLength = this._sectionRange.end - this._sectionRange.start;
|
|
2800
|
+
if (!this.hasBytes(payloadLength)) {
|
|
2801
|
+
return false;
|
|
2802
|
+
}
|
|
2803
|
+
this.state = 7 /* SECTION_RAW_DATA */;
|
|
2804
|
+
this.result = this.readBytes(payloadLength);
|
|
2805
|
+
return true;
|
|
2806
|
+
}
|
|
2807
|
+
readSectionBody() {
|
|
2808
|
+
if (this._pos >= this._sectionRange.end) {
|
|
2809
|
+
this.result = null;
|
|
2810
|
+
this.state = 4 /* END_SECTION */;
|
|
2811
|
+
this._sectionId = -1 /* Unknown */;
|
|
2812
|
+
this._sectionRange = null;
|
|
2813
|
+
return true;
|
|
2814
|
+
}
|
|
2815
|
+
var currentSection = this.result;
|
|
2816
|
+
switch (currentSection.id) {
|
|
2817
|
+
case 1 /* Type */:
|
|
2818
|
+
if (!this.hasSectionPayload())
|
|
2819
|
+
return false;
|
|
2820
|
+
this._sectionEntriesLeft = this.readVarUint32() >>> 0;
|
|
2821
|
+
return this.readTypeEntry();
|
|
2822
|
+
case 2 /* Import */:
|
|
2823
|
+
if (!this.hasSectionPayload())
|
|
2824
|
+
return false;
|
|
2825
|
+
this._sectionEntriesLeft = this.readVarUint32() >>> 0;
|
|
2826
|
+
return this.readImportEntry();
|
|
2827
|
+
case 7 /* Export */:
|
|
2828
|
+
if (!this.hasSectionPayload())
|
|
2829
|
+
return false;
|
|
2830
|
+
this._sectionEntriesLeft = this.readVarUint32() >>> 0;
|
|
2831
|
+
return this.readExportEntry();
|
|
2832
|
+
case 3 /* Function */:
|
|
2833
|
+
if (!this.hasSectionPayload())
|
|
2834
|
+
return false;
|
|
2835
|
+
this._sectionEntriesLeft = this.readVarUint32() >>> 0;
|
|
2836
|
+
return this.readFunctionEntry();
|
|
2837
|
+
case 4 /* Table */:
|
|
2838
|
+
if (!this.hasSectionPayload())
|
|
2839
|
+
return false;
|
|
2840
|
+
this._sectionEntriesLeft = this.readVarUint32() >>> 0;
|
|
2841
|
+
return this.readTableEntry();
|
|
2842
|
+
case 5 /* Memory */:
|
|
2843
|
+
if (!this.hasSectionPayload())
|
|
2844
|
+
return false;
|
|
2845
|
+
this._sectionEntriesLeft = this.readVarUint32() >>> 0;
|
|
2846
|
+
return this.readMemoryEntry();
|
|
2847
|
+
case 6 /* Global */:
|
|
2848
|
+
if (!this.hasVarIntBytes())
|
|
2849
|
+
return false;
|
|
2850
|
+
this._sectionEntriesLeft = this.readVarUint32() >>> 0;
|
|
2851
|
+
return this.readGlobalEntry();
|
|
2852
|
+
case 8 /* Start */:
|
|
2853
|
+
if (!this.hasVarIntBytes())
|
|
2854
|
+
return false;
|
|
2855
|
+
this.state = 22 /* START_SECTION_ENTRY */;
|
|
2856
|
+
this.result = { index: this.readVarUint32() };
|
|
2857
|
+
return true;
|
|
2858
|
+
case 10 /* Code */:
|
|
2859
|
+
if (!this.hasVarIntBytes())
|
|
2860
|
+
return false;
|
|
2861
|
+
this._sectionEntriesLeft = this.readVarUint32() >>> 0;
|
|
2862
|
+
this.state = 29 /* READING_FUNCTION_HEADER */;
|
|
2863
|
+
return this.readFunctionBody();
|
|
2864
|
+
case 9 /* Element */:
|
|
2865
|
+
if (!this.hasVarIntBytes())
|
|
2866
|
+
return false;
|
|
2867
|
+
this._sectionEntriesLeft = this.readVarUint32() >>> 0;
|
|
2868
|
+
return this.readElementEntry();
|
|
2869
|
+
case 11 /* Data */:
|
|
2870
|
+
if (!this.hasVarIntBytes())
|
|
2871
|
+
return false;
|
|
2872
|
+
this._sectionEntriesLeft = this.readVarUint32() >>> 0;
|
|
2873
|
+
return this.readDataEntry();
|
|
2874
|
+
case 0 /* Custom */:
|
|
2875
|
+
var customSectionName = bytesToString(currentSection.name);
|
|
2876
|
+
if (customSectionName === "name") {
|
|
2877
|
+
return this.readNameEntry();
|
|
2878
|
+
}
|
|
2879
|
+
if (customSectionName.indexOf("reloc.") === 0) {
|
|
2880
|
+
return this.readRelocHeader();
|
|
2881
|
+
}
|
|
2882
|
+
if (customSectionName === "linking") {
|
|
2883
|
+
if (!this.hasVarIntBytes())
|
|
2884
|
+
return false;
|
|
2885
|
+
this._sectionEntriesLeft = this.readVarUint32() >>> 0;
|
|
2886
|
+
return this.readLinkingEntry();
|
|
2887
|
+
}
|
|
2888
|
+
if (customSectionName === "sourceMappingURL") {
|
|
2889
|
+
return this.readSourceMappingURL();
|
|
2890
|
+
}
|
|
2891
|
+
return this.readSectionRawData();
|
|
2892
|
+
default:
|
|
2893
|
+
this.error = new Error(`Unsupported section: ${this._sectionId}`);
|
|
2894
|
+
this.state = -1 /* ERROR */;
|
|
2895
|
+
return true;
|
|
2896
|
+
}
|
|
2897
|
+
}
|
|
2898
|
+
read() {
|
|
2899
|
+
switch (this.state) {
|
|
2900
|
+
case 0 /* INITIAL */:
|
|
2901
|
+
if (!this.hasBytes(8))
|
|
2902
|
+
return false;
|
|
2903
|
+
var magicNumber = this.readUint32();
|
|
2904
|
+
if (magicNumber != WASM_MAGIC_NUMBER) {
|
|
2905
|
+
this.error = new Error("Bad magic number");
|
|
2906
|
+
this.state = -1 /* ERROR */;
|
|
2907
|
+
return true;
|
|
2908
|
+
}
|
|
2909
|
+
var version = this.readUint32();
|
|
2910
|
+
if (version != WASM_SUPPORTED_VERSION &&
|
|
2911
|
+
version != WASM_SUPPORTED_EXPERIMENTAL_VERSION) {
|
|
2912
|
+
this.error = new Error(`Bad version number ${version}`);
|
|
2913
|
+
this.state = -1 /* ERROR */;
|
|
2914
|
+
return true;
|
|
2915
|
+
}
|
|
2916
|
+
this.result = { magicNumber: magicNumber, version: version };
|
|
2917
|
+
this.state = 1 /* BEGIN_WASM */;
|
|
2918
|
+
return true;
|
|
2919
|
+
case 2 /* END_WASM */:
|
|
2920
|
+
this.result = null;
|
|
2921
|
+
this.state = 1 /* BEGIN_WASM */;
|
|
2922
|
+
if (this.hasMoreBytes()) {
|
|
2923
|
+
this.state = 0 /* INITIAL */;
|
|
2924
|
+
return this.read();
|
|
2925
|
+
}
|
|
2926
|
+
return false;
|
|
2927
|
+
case -1 /* ERROR */:
|
|
2928
|
+
return true;
|
|
2929
|
+
case 1 /* BEGIN_WASM */:
|
|
2930
|
+
case 4 /* END_SECTION */:
|
|
2931
|
+
return this.readSectionHeader();
|
|
2932
|
+
case 3 /* BEGIN_SECTION */:
|
|
2933
|
+
return this.readSectionBody();
|
|
2934
|
+
case 5 /* SKIPPING_SECTION */:
|
|
2935
|
+
if (!this.hasSectionPayload()) {
|
|
2936
|
+
return false;
|
|
2937
|
+
}
|
|
2938
|
+
this.state = 4 /* END_SECTION */;
|
|
2939
|
+
this._pos = this._sectionRange.end;
|
|
2940
|
+
this._sectionId = -1 /* Unknown */;
|
|
2941
|
+
this._sectionRange = null;
|
|
2942
|
+
this.result = null;
|
|
2943
|
+
return true;
|
|
2944
|
+
case 32 /* SKIPPING_FUNCTION_BODY */:
|
|
2945
|
+
this.state = 31 /* END_FUNCTION_BODY */;
|
|
2946
|
+
this._pos = this._functionRange.end;
|
|
2947
|
+
this._functionRange = null;
|
|
2948
|
+
this.result = null;
|
|
2949
|
+
return true;
|
|
2950
|
+
case 11 /* TYPE_SECTION_ENTRY */:
|
|
2951
|
+
return this.readTypeEntry();
|
|
2952
|
+
case 12 /* IMPORT_SECTION_ENTRY */:
|
|
2953
|
+
return this.readImportEntry();
|
|
2954
|
+
case 17 /* EXPORT_SECTION_ENTRY */:
|
|
2955
|
+
return this.readExportEntry();
|
|
2956
|
+
case 13 /* FUNCTION_SECTION_ENTRY */:
|
|
2957
|
+
return this.readFunctionEntry();
|
|
2958
|
+
case 14 /* TABLE_SECTION_ENTRY */:
|
|
2959
|
+
return this.readTableEntry();
|
|
2960
|
+
case 15 /* MEMORY_SECTION_ENTRY */:
|
|
2961
|
+
return this.readMemoryEntry();
|
|
2962
|
+
case 16 /* GLOBAL_SECTION_ENTRY */:
|
|
2963
|
+
case 40 /* END_GLOBAL_SECTION_ENTRY */:
|
|
2964
|
+
return this.readGlobalEntry();
|
|
2965
|
+
case 39 /* BEGIN_GLOBAL_SECTION_ENTRY */:
|
|
2966
|
+
return this.readInitExpressionBody();
|
|
2967
|
+
case 20 /* ELEMENT_SECTION_ENTRY */:
|
|
2968
|
+
case 35 /* END_ELEMENT_SECTION_ENTRY */:
|
|
2969
|
+
return this.readElementEntry();
|
|
2970
|
+
case 33 /* BEGIN_ELEMENT_SECTION_ENTRY */:
|
|
2971
|
+
if (isActiveElementSegmentType(this._segmentType)) {
|
|
2972
|
+
return this.readOffsetExpressionBody();
|
|
2973
|
+
}
|
|
2974
|
+
else {
|
|
2975
|
+
// passive or declared element segment
|
|
2976
|
+
return this.readElementEntryBody();
|
|
2977
|
+
}
|
|
2978
|
+
case 34 /* ELEMENT_SECTION_ENTRY_BODY */:
|
|
2979
|
+
if (!this.hasVarIntBytes())
|
|
2980
|
+
return false;
|
|
2981
|
+
this._segmentEntriesLeft = this.readVarUint32();
|
|
2982
|
+
if (this._segmentEntriesLeft === 0) {
|
|
2983
|
+
this.state = 35 /* END_ELEMENT_SECTION_ENTRY */;
|
|
2984
|
+
this.result = null;
|
|
2985
|
+
return true;
|
|
2986
|
+
}
|
|
2987
|
+
return this.readInitExpressionBody();
|
|
2988
|
+
case 18 /* DATA_SECTION_ENTRY */:
|
|
2989
|
+
case 38 /* END_DATA_SECTION_ENTRY */:
|
|
2990
|
+
return this.readDataEntry();
|
|
2991
|
+
case 36 /* BEGIN_DATA_SECTION_ENTRY */:
|
|
2992
|
+
if (isActiveDataSegmentType(this._segmentType)) {
|
|
2993
|
+
return this.readOffsetExpressionBody();
|
|
2994
|
+
}
|
|
2995
|
+
else {
|
|
2996
|
+
// passive data segment
|
|
2997
|
+
return this.readDataEntryBody();
|
|
2998
|
+
}
|
|
2999
|
+
case 37 /* DATA_SECTION_ENTRY_BODY */:
|
|
3000
|
+
this.state = 38 /* END_DATA_SECTION_ENTRY */;
|
|
3001
|
+
this.result = null;
|
|
3002
|
+
return true;
|
|
3003
|
+
case 27 /* END_INIT_EXPRESSION_BODY */:
|
|
3004
|
+
switch (this._sectionId) {
|
|
3005
|
+
case 6 /* Global */:
|
|
3006
|
+
this.state = 40 /* END_GLOBAL_SECTION_ENTRY */;
|
|
3007
|
+
return true;
|
|
3008
|
+
case 9 /* Element */:
|
|
3009
|
+
if (--this._segmentEntriesLeft > 0) {
|
|
3010
|
+
return this.readInitExpressionBody();
|
|
3011
|
+
}
|
|
3012
|
+
this.state = 35 /* END_ELEMENT_SECTION_ENTRY */;
|
|
3013
|
+
this.result = null;
|
|
3014
|
+
return true;
|
|
3015
|
+
}
|
|
3016
|
+
this.error = new Error(`Unexpected section type: ${this._sectionId}`);
|
|
3017
|
+
this.state = -1 /* ERROR */;
|
|
3018
|
+
return true;
|
|
3019
|
+
case 46 /* END_OFFSET_EXPRESSION_BODY */:
|
|
3020
|
+
if (this._sectionId === 11 /* Data */) {
|
|
3021
|
+
return this.readDataEntryBody();
|
|
3022
|
+
}
|
|
3023
|
+
else {
|
|
3024
|
+
return this.readElementEntryBody();
|
|
3025
|
+
}
|
|
3026
|
+
case 19 /* NAME_SECTION_ENTRY */:
|
|
3027
|
+
return this.readNameEntry();
|
|
3028
|
+
case 41 /* RELOC_SECTION_HEADER */:
|
|
3029
|
+
if (!this.hasVarIntBytes())
|
|
3030
|
+
return false;
|
|
3031
|
+
this._sectionEntriesLeft = this.readVarUint32() >>> 0;
|
|
3032
|
+
return this.readRelocEntry();
|
|
3033
|
+
case 21 /* LINKING_SECTION_ENTRY */:
|
|
3034
|
+
return this.readLinkingEntry();
|
|
3035
|
+
case 43 /* SOURCE_MAPPING_URL */:
|
|
3036
|
+
this.state = 4 /* END_SECTION */;
|
|
3037
|
+
this.result = null;
|
|
3038
|
+
return true;
|
|
3039
|
+
case 42 /* RELOC_SECTION_ENTRY */:
|
|
3040
|
+
return this.readRelocEntry();
|
|
3041
|
+
case 29 /* READING_FUNCTION_HEADER */:
|
|
3042
|
+
case 31 /* END_FUNCTION_BODY */:
|
|
3043
|
+
return this.readFunctionBody();
|
|
3044
|
+
case 28 /* BEGIN_FUNCTION_BODY */:
|
|
3045
|
+
this.state = 30 /* CODE_OPERATOR */;
|
|
3046
|
+
return this.readCodeOperator();
|
|
3047
|
+
case 25 /* BEGIN_INIT_EXPRESSION_BODY */:
|
|
3048
|
+
this.state = 26 /* INIT_EXPRESSION_OPERATOR */;
|
|
3049
|
+
return this.readCodeOperator();
|
|
3050
|
+
case 44 /* BEGIN_OFFSET_EXPRESSION_BODY */:
|
|
3051
|
+
this.state = 45 /* OFFSET_EXPRESSION_OPERATOR */;
|
|
3052
|
+
return this.readCodeOperator();
|
|
3053
|
+
case 30 /* CODE_OPERATOR */:
|
|
3054
|
+
case 26 /* INIT_EXPRESSION_OPERATOR */:
|
|
3055
|
+
case 45 /* OFFSET_EXPRESSION_OPERATOR */:
|
|
3056
|
+
return this.readCodeOperator();
|
|
3057
|
+
case 6 /* READING_SECTION_RAW_DATA */:
|
|
3058
|
+
return this.readSectionRawData();
|
|
3059
|
+
case 22 /* START_SECTION_ENTRY */:
|
|
3060
|
+
case 7 /* SECTION_RAW_DATA */:
|
|
3061
|
+
this.state = 4 /* END_SECTION */;
|
|
3062
|
+
this.result = null;
|
|
3063
|
+
return true;
|
|
3064
|
+
default:
|
|
3065
|
+
this.error = new Error(`Unsupported state: ${this.state}`);
|
|
3066
|
+
this.state = -1 /* ERROR */;
|
|
3067
|
+
return true;
|
|
3068
|
+
}
|
|
3069
|
+
}
|
|
3070
|
+
skipSection() {
|
|
3071
|
+
if (this.state === -1 /* ERROR */ ||
|
|
3072
|
+
this.state === 0 /* INITIAL */ ||
|
|
3073
|
+
this.state === 4 /* END_SECTION */ ||
|
|
3074
|
+
this.state === 1 /* BEGIN_WASM */ ||
|
|
3075
|
+
this.state === 2 /* END_WASM */)
|
|
3076
|
+
return;
|
|
3077
|
+
this.state = 5 /* SKIPPING_SECTION */;
|
|
3078
|
+
}
|
|
3079
|
+
skipFunctionBody() {
|
|
3080
|
+
if (this.state !== 28 /* BEGIN_FUNCTION_BODY */ &&
|
|
3081
|
+
this.state !== 30 /* CODE_OPERATOR */)
|
|
3082
|
+
return;
|
|
3083
|
+
this.state = 32 /* SKIPPING_FUNCTION_BODY */;
|
|
3084
|
+
}
|
|
3085
|
+
skipInitExpression() {
|
|
3086
|
+
while (this.state === 26 /* INIT_EXPRESSION_OPERATOR */)
|
|
3087
|
+
this.readCodeOperator();
|
|
3088
|
+
}
|
|
3089
|
+
fetchSectionRawData() {
|
|
3090
|
+
if (this.state !== 3 /* BEGIN_SECTION */) {
|
|
3091
|
+
this.error = new Error(`Unsupported state: ${this.state}`);
|
|
3092
|
+
this.state = -1 /* ERROR */;
|
|
3093
|
+
return;
|
|
3094
|
+
}
|
|
3095
|
+
this.state = 6 /* READING_SECTION_RAW_DATA */;
|
|
3096
|
+
}
|
|
3097
|
+
}
|
|
3098
|
+
export function isTypeIndex(type) {
|
|
3099
|
+
return type >= 0;
|
|
3100
|
+
}
|
|
3101
|
+
export var bytesToString;
|
|
3102
|
+
if (typeof TextDecoder !== "undefined") {
|
|
3103
|
+
try {
|
|
3104
|
+
bytesToString = (function () {
|
|
3105
|
+
var utf8Decoder = new TextDecoder("utf-8");
|
|
3106
|
+
utf8Decoder.decode(new Uint8Array([97, 208, 144]));
|
|
3107
|
+
return (b) => utf8Decoder.decode(b);
|
|
3108
|
+
})();
|
|
3109
|
+
}
|
|
3110
|
+
catch (_) {
|
|
3111
|
+
/* ignore */
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
if (!bytesToString) {
|
|
3115
|
+
bytesToString = (b) => {
|
|
3116
|
+
var str = String.fromCharCode.apply(null, b);
|
|
3117
|
+
return decodeURIComponent(escape(str));
|
|
3118
|
+
};
|
|
3119
|
+
}
|
|
3120
|
+
//# sourceMappingURL=WasmParser.js.map
|