| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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: --validate-asm --allow-natives-syntax | 5 // Flags: --validate-asm --allow-natives-syntax --fast-validate-asm |
| 6 | 6 |
| 7 const stdlib = { | 7 const stdlib = { |
| 8 Math: Math, | 8 Math: Math, |
| 9 Int8Array: Int8Array, | 9 Int8Array: Int8Array, |
| 10 Int16Array: Int16Array, | 10 Int16Array: Int16Array, |
| 11 Int32Array: Int32Array, | 11 Int32Array: Int32Array, |
| 12 Uint8Array: Uint8Array, | 12 Uint8Array: Uint8Array, |
| 13 Uint16Array: Uint16Array, | 13 Uint16Array: Uint16Array, |
| 14 Uint32Array: Uint32Array, | 14 Uint32Array: Uint32Array, |
| 15 Float32Array: Float32Array, | 15 Float32Array: Float32Array, |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 | 227 |
| 228 RunAsmJsTest(LoadAt_f64, function(module) { | 228 RunAsmJsTest(LoadAt_f64, function(module) { |
| 229 var load = module.load; | 229 var load = module.load; |
| 230 for (index of OOB_INDEXES) assertEquals(NaN, load(index)); | 230 for (index of OOB_INDEXES) assertEquals(NaN, load(index)); |
| 231 checkView(new Float64Array(buffer), load, 3); | 231 checkView(new Float64Array(buffer), load, 3); |
| 232 }); | 232 }); |
| 233 | 233 |
| 234 // TODO(titzer): constant heap indexes | 234 // TODO(titzer): constant heap indexes |
| 235 // TODO(titzer): heap accesses with offsets and arithmetic | 235 // TODO(titzer): heap accesses with offsets and arithmetic |
| 236 // TODO(titzer): [i >> K] where K is greater than log(size) | 236 // TODO(titzer): [i >> K] where K is greater than log(size) |
| OLD | NEW |