2018-02-17 00:16:08 +01:00
|
|
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("binaryen")):"function"==typeof define&&define.amd?define(["binaryen"],t):"object"==typeof exports?exports.assemblyscript=t(require("binaryen")):e.assemblyscript=t(e.binaryen)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=11)}([function(e,t,r){"use strict";function n(e){if(!e)return 0;for(var t=allocate_memory(e.length),r=t,n=0,i=e.length;n<i;++n)store(r++,e[n]);return t}function i(e){if(!e)return 0;for(var t=allocate_memory(e.length<<2),r=t,n=0,i=e.length;n<i;++n){var a=e[n];store(r,255&a),store(r+1,a>>8&255),store(r+2,a>>16&255),store(r+3,a>>>24),r+=4}return t}function a(e){for(var t=0,r=0,n=e.length;r<n;++r){var i=e.charCodeAt(r);i>=55296&&i<=57343&&r+1<n&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++r)),i<=127?++t:t+=i<=2047?2:i<=65535?3:i<=2097151?4:i<=67108863?5:6}return t}function o(e){if(null==e)return 0;for(var t=allocate_memory(a(e)+1),r=t,n=0,i=e.length;n<i;++n){var o=e.charCodeAt(n);o>=55296&&o<=57343&&n+1<i&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++n)),o<=127?store(r++,o):o<=2047?(store(r++,192|o>>>6),store(r++,128|63&o)):o<=65535?(store(r++,224|o>>>12),store(r++,128|o>>>6&63),store(r++,128|63&o)):o<=2097151?(store(r++,240|o>>>18),store(r++,128|o>>>12&63),store(r++,128|o>>>6&63),store(r++,128|63&o)):o<=67108863?(store(r++,248|o>>>24),store(r++,128|o>>>18&63),store(r++,128|o>>>12&63),store(r++,128|o>>>6&63),store(r++,128|63&o)):(store(r++,252|o>>>30),store(r++,128|o>>>24&63),store(r++,128|o>>>18&63),store(r++,128|o>>>12&63),store(r++,128|o>>>6&63),store(r++,128|63&o))}return store(r,0),t}function s(e){return load(e)|load(e+1)<<8|load(e+2)<<16|load(e+3)<<24}function c(e,t){for(var r=new Uint8Array(t),n=0;n<t;++n)r[n]=load(e+n);return r}function p(e){if(!e)return null;for(var t,r,n,i,a,o,s=new Array;t=load(e++);)128&t?(r=63&load(e++),192!=(224&t)?(n=63&load(e++),224==(240&t)?t=(15&t)<<12|r<<6|n:(i=63&load(e++),240==(248&t)?t=(7&t)<<18|r<<12|n<<6|i:(a=63&load(e++),248==(252&t)?t=(3&t)<<24|r<<18|n<<12|i<<6|a:(o=63&load(e++),t=(1&t)<<30|r<<24|n<<18|i<<12|a<<6|o)))):s.push((31&t)<<6|r)):s.push(t);return String.fromCodePoints(s)}Object.defineProperty(t,"__esModule",{value:!0});var u,l=r(4);!function(e){e[e.None=_BinaryenTypeNone()]="None",e[e.I32=_BinaryenTypeInt32()]="I32",e[e.I64=_BinaryenTypeInt64()]="I64",e[e.F32=_BinaryenTypeFloat32()]="F32",e[e.F64=_BinaryenTypeFloat64()]="F64",e[e.Unreachable=_BinaryenTypeUnreachable()]="Unreachable",e[e.Auto=_BinaryenTypeAuto()]="Auto"}(u=t.NativeType||(t.NativeType={}));var h;!function(e){e[e.Invalid=_BinaryenInvalidId()]="Invalid",e[e.Block=_BinaryenBlockId()]="Block",e[e.If=_BinaryenIfId()]="If",e[e.Loop=_BinaryenLoopId()]="Loop",e[e.Break=_BinaryenBreakId()]="Break",e[e.Switch=_BinaryenSwitchId()]="Switch",e[e.Call=_BinaryenCallId()]="Call",e[e.CallImport=_BinaryenCallImportId()]="CallImport",e[e.CallIndirect=_BinaryenCallIndirectId()]="CallIndirect",e[e.GetLocal=_BinaryenGetLocalId()]="GetLocal",e[e.SetLocal=_BinaryenSetLocalId()]="SetLocal",e[e.GetGlobal=_BinaryenGetGlobalId()]="GetGlobal",e[e.SetGlobal=_BinaryenSetGlobalId()]="SetGlobal",e[e.Load=_BinaryenLoadId()]="Load",e[e.Store=_BinaryenStoreId()]="Store",e[e.Const=_BinaryenConstId()]="Const",e[e.Unary=_BinaryenUnaryId()]="Unary",e[e.Binary=_BinaryenBinaryId()]="Binary",e[e.Select=_BinaryenSelectId()]="Select",e[e.Drop=_BinaryenDropId()]="Drop",e[e.Return=_BinaryenReturnId()]="Return",e[e.Host=_BinaryenHostId()]="Host",e[e.Nop=_BinaryenNopId()]="Nop",e[e.Unreachable=_BinaryenUnreachableId()]="Unreachable",e[e.AtomicCmpxchg=_BinaryenAtomicCmpxchgId()]="AtomicCmp
|