1 // Copyright 2014 the V8 project authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 var foo = (function Module(global, env, buffer) { 6 "use asm"; 7 var i8 = new global.Int8Array(buffer); 8 function foo() { i8[0] += 4294967295; } 9 return { foo: foo }; 10 })(this, {}, new ArrayBuffer(64 * 1024)).foo; 11 foo(); 12