Created
January 5, 2017 19:18
-
-
Save hackcasual/c0b8ae2c034397f29ffd5d6e0606ef79 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tab_mem_hand8 = { | |
set: function(obj, prop, value) { | |
if (prop > (22 << 3) && prop <= (23 << 3)) { | |
debugger; | |
} | |
obj[prop] = value; | |
} | |
}; | |
var tab_mem_hand16 = { | |
set: function(obj, prop, value) { | |
if (prop > (22 << 2) && prop <= (23 << 2)) { | |
debugger; | |
} | |
obj[prop] = value; | |
} | |
}; | |
var tab_mem_hand32 = { | |
set: function(obj, prop, value) { | |
if (prop > (22 << 1) && prop <= (23 << 1)) { | |
debugger; | |
} | |
obj[prop] = value; | |
} | |
}; | |
var tab_mem_hand64 = { | |
set: function(obj, prop, value) { | |
if (prop > 22 && prop <= 23) { | |
debugger; | |
} | |
obj[prop] = value; | |
} | |
}; | |
var asm=(function(global,env,buffer) { | |
"use asm"; | |
var a=new Proxy(new global.Int8Array(buffer), tab_mem_hand8); | |
var b=new Proxy(new global.Int16Array(buffer), tab_mem_hand16); | |
var c=new Proxy(new global.Int32Array(buffer), tab_mem_hand32); | |
var d=new Proxy(new global.Uint8Array(buffer), tab_mem_hand8); | |
var e=new Proxy(new global.Uint16Array(buffer), tab_mem_hand16); | |
var f=new Proxy(new global.Uint32Array(buffer), tab_mem_hand32); | |
var g=new Proxy(new global.Float32Array(buffer), tab_mem_hand32); | |
var h=new Proxy(new global.Float64Array(buffer), tab_mem_hand64); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment