| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 (function Module(stdlib, foreign, heap) { | 5 (function Module(stdlib, foreign, heap) { |
| 6 "use asm"; | 6 "use asm"; |
| 7 // This is not valid asm.js, but should nevertheless work. | 7 // This is not valid asm.js, but should nevertheless work. |
| 8 var MEM = new Uint8ClampedArray(heap); | 8 var MEM = new Uint8ClampedArray(heap); |
| 9 function foo(i) { MEM[0] = 1; } | 9 function foo( ) { MEM[0] ^= 1; } |
| 10 return {foo: foo}; | 10 return {foo: foo}; |
| 11 })(this, {}, new ArrayBuffer(64 * 1024)).foo(); | 11 })(this, {}, new ArrayBuffer( ) ).foo(); |
| OLD | NEW |