diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-22 03:29:12 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-22 03:29:12 -0500 |
commit | 5eabab2e437054787a70dcef59f0b06de0c42659 (patch) | |
tree | 6e15554ec9f6c122aa8f5740fd2c437dbea434cb /teleterm | |
parent | d3fe70943c0957c977b44965fe300f6c1b101e32 (diff) | |
download | teleterm-5eabab2e437054787a70dcef59f0b06de0c42659.tar.gz teleterm-5eabab2e437054787a70dcef59f0b06de0c42659.zip |
refactor
Diffstat (limited to 'teleterm')
-rw-r--r-- | teleterm/static/teleterm_web.js | 108 | ||||
-rw-r--r-- | teleterm/static/teleterm_web_bg.wasm | bin | 386099 -> 388509 bytes |
2 files changed, 54 insertions, 54 deletions
diff --git a/teleterm/static/teleterm_web.js b/teleterm/static/teleterm_web.js index 45b691a..e8e2555 100644 --- a/teleterm/static/teleterm_web.js +++ b/teleterm/static/teleterm_web.js @@ -18,31 +18,31 @@ function addHeapObject(obj) { return idx; } function __wbg_elem_binding0(arg0, arg1, arg2) { - wasm.__wbg_function_table.get(40)(arg0, arg1, addHeapObject(arg2)); + wasm.__wbg_function_table.get(49)(arg0, arg1, addHeapObject(arg2)); } function __wbg_elem_binding1(arg0, arg1, arg2) { - wasm.__wbg_function_table.get(45)(arg0, arg1, arg2); + wasm.__wbg_function_table.get(49)(arg0, arg1, addHeapObject(arg2)); } function __wbg_elem_binding2(arg0, arg1, arg2) { - wasm.__wbg_function_table.get(240)(arg0, arg1, addHeapObject(arg2)); + wasm.__wbg_function_table.get(49)(arg0, arg1, addHeapObject(arg2)); } function __wbg_elem_binding3(arg0, arg1, arg2) { - wasm.__wbg_function_table.get(40)(arg0, arg1, addHeapObject(arg2)); + wasm.__wbg_function_table.get(49)(arg0, arg1, addHeapObject(arg2)); } function __wbg_elem_binding4(arg0, arg1, arg2) { - wasm.__wbg_function_table.get(40)(arg0, arg1, addHeapObject(arg2)); + wasm.__wbg_function_table.get(54)(arg0, arg1, arg2); } -function __wbg_elem_binding5(arg0, arg1) { - wasm.__wbg_function_table.get(170)(arg0, arg1); +function __wbg_elem_binding5(arg0, arg1, arg2) { + wasm.__wbg_function_table.get(242)(arg0, arg1, addHeapObject(arg2)); } -function __wbg_elem_binding6(arg0, arg1, arg2) { - wasm.__wbg_function_table.get(40)(arg0, arg1, addHeapObject(arg2)); +function __wbg_elem_binding6(arg0, arg1) { + wasm.__wbg_function_table.get(172)(arg0, arg1); } function __wbg_elem_binding7(arg0, arg1, arg2, arg3, arg4) { - wasm.__wbg_function_table.get(267)(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4)); + wasm.__wbg_function_table.get(269)(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4)); } function __wbg_elem_binding8(arg0, arg1, arg2, arg3) { - wasm.__wbg_function_table.get(271)(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); + wasm.__wbg_function_table.get(273)(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3)); } /** */ @@ -50,20 +50,6 @@ export function start() { wasm.start(); } -function getObject(idx) { return heap[idx]; } - -function dropObject(idx) { - if (idx < 36) return; - heap[idx] = heap_next; - heap_next = idx; -} - -function takeObject(idx) { - const ret = getObject(idx); - dropObject(idx); - return ret; -} - let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); cachedTextDecoder.decode(); @@ -80,6 +66,20 @@ function getStringFromWasm(ptr, len) { return cachedTextDecoder.decode(getUint8Memory().subarray(ptr, ptr + len)); } +function getObject(idx) { return heap[idx]; } + +function dropObject(idx) { + if (idx < 36) return; + heap[idx] = heap_next; + heap_next = idx; +} + +function takeObject(idx) { + const ret = getObject(idx); + dropObject(idx); + return ret; +} + let WASM_VECTOR_LEN = 0; let cachedTextEncoder = new TextEncoder('utf-8'); @@ -225,9 +225,16 @@ function init(module) { let result; const imports = {}; imports.wbg = {}; + imports.wbg.__wbindgen_string_new = function(arg0, arg1) { + const ret = getStringFromWasm(arg0, arg1); + return addHeapObject(ret); + }; imports.wbg.__wbindgen_object_drop_ref = function(arg0) { takeObject(arg0); }; + imports.wbg.__wbg_log_93d35dab6e237612 = function(arg0, arg1) { + console.log(getStringFromWasm(arg0, arg1)); + }; imports.wbg.__wbindgen_object_clone_ref = function(arg0) { const ret = getObject(arg0); return addHeapObject(ret); @@ -248,13 +255,6 @@ function init(module) { const ret = JSON.parse(getStringFromWasm(arg0, arg1)); return addHeapObject(ret); }; - imports.wbg.__wbg_log_93d35dab6e237612 = function(arg0, arg1) { - console.log(getStringFromWasm(arg0, arg1)); - }; - imports.wbg.__wbindgen_string_new = function(arg0, arg1) { - const ret = getStringFromWasm(arg0, arg1); - return addHeapObject(ret); - }; imports.wbg.__wbg_new_59cb74e423758ede = function() { const ret = new Error(); return addHeapObject(ret); @@ -864,16 +864,16 @@ function init(module) { imports.wbg.__wbindgen_throw = function(arg0, arg1) { throw new Error(getStringFromWasm(arg0, arg1)); }; - imports.wbg.__wbindgen_closure_wrapper208 = function(arg0, arg1, arg2) { + imports.wbg.__wbindgen_closure_wrapper218 = function(arg0, arg1, arg2) { const state = { a: arg0, b: arg1, cnt: 1 }; const real = (arg0) => { state.cnt++; const a = state.a; state.a = 0; try { - return __wbg_elem_binding6(a, state.b, arg0); + return __wbg_elem_binding2(a, state.b, arg0); } finally { - if (--state.cnt === 0) wasm.__wbg_function_table.get(41)(a, state.b); + if (--state.cnt === 0) wasm.__wbg_function_table.get(50)(a, state.b); else state.a = a; } } @@ -882,16 +882,16 @@ function init(module) { const ret = real; return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper214 = function(arg0, arg1, arg2) { + imports.wbg.__wbindgen_closure_wrapper501 = function(arg0, arg1, arg2) { const state = { a: arg0, b: arg1, cnt: 1 }; - const real = (arg0) => { + const real = () => { state.cnt++; const a = state.a; state.a = 0; try { - return __wbg_elem_binding4(a, state.b, arg0); + return __wbg_elem_binding6(a, state.b, ); } finally { - if (--state.cnt === 0) wasm.__wbg_function_table.get(41)(a, state.b); + if (--state.cnt === 0) wasm.__wbg_function_table.get(173)(a, state.b); else state.a = a; } } @@ -900,16 +900,16 @@ function init(module) { const ret = real; return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper497 = function(arg0, arg1, arg2) { + imports.wbg.__wbindgen_closure_wrapper903 = function(arg0, arg1, arg2) { const state = { a: arg0, b: arg1, cnt: 1 }; - const real = () => { + const real = (arg0) => { state.cnt++; const a = state.a; state.a = 0; try { - return __wbg_elem_binding5(a, state.b, ); + return __wbg_elem_binding5(a, state.b, arg0); } finally { - if (--state.cnt === 0) wasm.__wbg_function_table.get(171)(a, state.b); + if (--state.cnt === 0) wasm.__wbg_function_table.get(243)(a, state.b); else state.a = a; } } @@ -918,16 +918,16 @@ function init(module) { const ret = real; return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper210 = function(arg0, arg1, arg2) { + imports.wbg.__wbindgen_closure_wrapper212 = function(arg0, arg1, arg2) { const state = { a: arg0, b: arg1, cnt: 1 }; const real = (arg0) => { state.cnt++; const a = state.a; state.a = 0; try { - return __wbg_elem_binding1(a, state.b, arg0); + return __wbg_elem_binding0(a, state.b, arg0); } finally { - if (--state.cnt === 0) wasm.__wbg_function_table.get(41)(a, state.b); + if (--state.cnt === 0) wasm.__wbg_function_table.get(50)(a, state.b); else state.a = a; } } @@ -936,16 +936,16 @@ function init(module) { const ret = real; return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper899 = function(arg0, arg1, arg2) { + imports.wbg.__wbindgen_closure_wrapper220 = function(arg0, arg1, arg2) { const state = { a: arg0, b: arg1, cnt: 1 }; const real = (arg0) => { state.cnt++; const a = state.a; state.a = 0; try { - return __wbg_elem_binding2(a, state.b, arg0); + return __wbg_elem_binding1(a, state.b, arg0); } finally { - if (--state.cnt === 0) wasm.__wbg_function_table.get(241)(a, state.b); + if (--state.cnt === 0) wasm.__wbg_function_table.get(50)(a, state.b); else state.a = a; } } @@ -954,7 +954,7 @@ function init(module) { const ret = real; return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper206 = function(arg0, arg1, arg2) { + imports.wbg.__wbindgen_closure_wrapper214 = function(arg0, arg1, arg2) { const state = { a: arg0, b: arg1, cnt: 1 }; const real = (arg0) => { state.cnt++; @@ -963,7 +963,7 @@ function init(module) { try { return __wbg_elem_binding3(a, state.b, arg0); } finally { - if (--state.cnt === 0) wasm.__wbg_function_table.get(41)(a, state.b); + if (--state.cnt === 0) wasm.__wbg_function_table.get(50)(a, state.b); else state.a = a; } } @@ -972,16 +972,16 @@ function init(module) { const ret = real; return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper212 = function(arg0, arg1, arg2) { + imports.wbg.__wbindgen_closure_wrapper216 = function(arg0, arg1, arg2) { const state = { a: arg0, b: arg1, cnt: 1 }; const real = (arg0) => { state.cnt++; const a = state.a; state.a = 0; try { - return __wbg_elem_binding0(a, state.b, arg0); + return __wbg_elem_binding4(a, state.b, arg0); } finally { - if (--state.cnt === 0) wasm.__wbg_function_table.get(41)(a, state.b); + if (--state.cnt === 0) wasm.__wbg_function_table.get(50)(a, state.b); else state.a = a; } } diff --git a/teleterm/static/teleterm_web_bg.wasm b/teleterm/static/teleterm_web_bg.wasm Binary files differindex 7111b85..ec5717b 100644 --- a/teleterm/static/teleterm_web_bg.wasm +++ b/teleterm/static/teleterm_web_bg.wasm |