| OLD | NEW |
| 1 // Copyright 2015 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 // Flags: --harmony-atomics --harmony-sharedarraybuffer | 5 // Flags: --harmony-sharedarraybuffer |
| 6 | 6 |
| 7 function Module(stdlib, foreign, heap) { | 7 function Module(stdlib, foreign, heap) { |
| 8 "use asm"; | 8 "use asm"; |
| 9 var MEM8 = new stdlib.Int8Array(heap); | 9 var MEM8 = new stdlib.Int8Array(heap); |
| 10 var MEM16 = new stdlib.Int16Array(heap); | 10 var MEM16 = new stdlib.Int16Array(heap); |
| 11 var MEM32 = new stdlib.Int32Array(heap); | 11 var MEM32 = new stdlib.Int32Array(heap); |
| 12 var MEMU8 = new stdlib.Uint8Array(heap); | 12 var MEMU8 = new stdlib.Uint8Array(heap); |
| 13 var MEMU16 = new stdlib.Uint16Array(heap); | 13 var MEMU16 = new stdlib.Uint16Array(heap); |
| 14 var MEMU32 = new stdlib.Uint32Array(heap); | 14 var MEMU32 = new stdlib.Uint32Array(heap); |
| 15 var MEMF32 = new stdlib.Float32Array(heap); | 15 var MEMF32 = new stdlib.Float32Array(heap); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 } | 112 } |
| 113 | 113 |
| 114 testElementType(Int8Array, m.compareExchangei8, 0); | 114 testElementType(Int8Array, m.compareExchangei8, 0); |
| 115 testElementType(Int16Array, m.compareExchangei16, 0); | 115 testElementType(Int16Array, m.compareExchangei16, 0); |
| 116 testElementType(Int32Array, m.compareExchangei32, 0); | 116 testElementType(Int32Array, m.compareExchangei32, 0); |
| 117 testElementType(Uint8Array, m.compareExchangeu8, 0); | 117 testElementType(Uint8Array, m.compareExchangeu8, 0); |
| 118 testElementType(Uint16Array, m.compareExchangeu16, 0); | 118 testElementType(Uint16Array, m.compareExchangeu16, 0); |
| 119 testElementType(Uint32Array, m.compareExchangeu32, 0); | 119 testElementType(Uint32Array, m.compareExchangeu32, 0); |
| 120 testElementType(Float32Array, m.compareExchangef32, NaN); | 120 testElementType(Float32Array, m.compareExchangef32, NaN); |
| 121 testElementType(Float64Array, m.compareExchangef64, NaN); | 121 testElementType(Float64Array, m.compareExchangef64, NaN); |
| OLD | NEW |