aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-06-16 20:54:18 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-06-16 20:54:18 -0700
commit65837a5c0329358763c2f880e94db25160f26cfb (patch)
treeb5682126417aca6106192a8f16f03996fc132532
parent2664b875614f188cc4f14fcb28b125dbb274d4e3 (diff)
disable typed arrays in python demo - needs recompilation
-rw-r--r--demos/python.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/python.js b/demos/python.js
index a7f61fef..75f36772 100644
--- a/demos/python.js
+++ b/demos/python.js
@@ -15,7 +15,7 @@ return!Runtime.f(c)&&c[0]=="%"},j:{i1:0,i8:0,i16:0,i32:0,i64:0},i:{"float":0,"do
e){c.c=0;var b=[],d=-1,f=-1;c.m=c.t.map(function(g){var h;if(Runtime.f(g)||Runtime.o(g)){h=Runtime.n(g,ca);f=Math.max(f,h)}else if(Runtime.p(g)){h=e[g].c;f=Math.max(f,4)}else{dprint("Unclear type in struct: "+g+", in "+c.u);ia(0)}g=Runtime.d(c.c,Math.min(4,h));c.c=g+h;d>=0&&b.push(g-d);return d=g});c.c=Runtime.d(c.c,f);if(b.length==0)c.e=c.c;else if(Runtime.l(b).length==1)c.e=b[0];c.v=c.e!=1;return c.m},r:0};var n=[],ja=[];
function ia(c,e){if(!c){var b="Assertion failed: "+e;print(b+":\n"+Error().stack);aa("Assertion: "+b)}}var o=1,t=2;function u(c,e,b){e=e?e:0;ia(e===0);if(c===ka)return e;e=c.length;var d;for(d=0;d<e;d++)if(c[d]===undefined)aa("Invalid element in slab at "+Error().stack);b=[la,Runtime.q,Runtime.h][b?b:t](Math.max(e,1));for(d=0;d<e;d++){var f=c[d];if(typeof f==="function")f=Runtime.a(f);i[b+d]=f;j[b+d]=f}return b}Module.Pointer_make=u;
function ma(c){for(var e="",b=0,d;;){d=String.fromCharCode(i[c+b]);if(d=="\u0000")break;e+=d;b+=1}return e}var oa=4096,ka,i,j,qa,a,ra,ha,la,w,aaa=ea,sa=52428800;
-function baa(){Module._malloc=la=Module._malloc?Module._malloc:Runtime.h;Module._calloc=Module._calloc?Module._calloc:function(b,d){return la(b*d)};Module._free=w=Module._free?Module._free:fa();if(aaa=this.Int32Array&&this.Float64Array){ka=i=new Int32Array(sa);j=new Float64Array(sa)}else{var c=sa/32;i=j=ka=Array(c);for(var e=0;e<c;e++)i[e]=j[e]=0}c=ta("(null)").concat(0);for(e=0;e<c.length;e++)i[e]=c[e];Module.HEAP=ka;Module.IHEAP=i;Module.FHEAP=j;qa=a=Math.ceil(10/oa)*oa;this.TOTAL_STACK||(TOTAL_STACK=
+function baa(){Module._malloc=la=Module._malloc?Module._malloc:Runtime.h;Module._calloc=Module._calloc?Module._calloc:function(b,d){return la(b*d)};Module._free=w=Module._free?Module._free:fa();if(aaa=0&&this.Int32Array&&this.Float64Array){ka=i=new Int32Array(sa);j=new Float64Array(sa)}else{var c=sa/32;i=j=ka=Array(c);for(var e=0;e<c;e++)i[e]=j[e]=0}c=ta("(null)").concat(0);for(e=0;e<c.length;e++)i[e]=c[e];Module.HEAP=ka;Module.IHEAP=i;Module.FHEAP=j;qa=a=Math.ceil(10/oa)*oa;this.TOTAL_STACK||(TOTAL_STACK=
1048576);ra=qa+TOTAL_STACK;ha=Math.ceil(ra/oa)*oa}function caa(){for(;ja.length>0;){var c=ja.pop();if(typeof c==="number")c=n[c];c()}}
function ua(){function c(r){return String.fromCharCode(r)in Runtime.g("f","e","g")}function e(r){var q;if(b){q=c(r)?j[f]:i[f];f+=r==="l".charCodeAt(0)?8:4}else{q=g[f];f++}return q}var b=ea,d=arguments[0],f=1;if(d<0){b=ca;d=-d;slab=da;f=arguments[1]}else var g=arguments;for(var h=[],k,l,m;;){k=i[d];if(k===0)break;l=i[d+1];if(k=="%".charCodeAt(0)){k=-1;if(l==".".charCodeAt(0)){d++;for(k=0;;){l=i[d+1];if(!(l>="0".charCodeAt(0)&&l<="9".charCodeAt(0)))break;k*=10;k+=l-"0".charCodeAt(0);d++}l=i[d+1]}if(l==
"l".charCodeAt(0)){d++;l=i[d+1]}if(c(l))l="f".charCodeAt(0);if(["d","i","u","p","f"].indexOf(String.fromCharCode(l))!=-1){var p;m=e(l);p=String(+m);p=l=="u".charCodeAt(0)?String(x(m,32)):l=="p".charCodeAt(0)?"0x"+m.toString(16):String(+m);if(k>=0)if(c(l)){m=p.indexOf(".");if(m==-1&&l=="f".charCodeAt(0)){m=p.length;p+="."}p+="00000000000";p=p.substr(0,m+1+k)}else for(;p.length<k;)p="0"+p;p.split("").forEach(function(r){h.push(r.charCodeAt(0))})}else if(l=="s".charCodeAt(0))h=h.concat(va(e(l)));else if(l==