| 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 (function() { | 5 (function() { |
| 6 | 6 |
| 7 "use strict"; | 7 "use strict"; |
| 8 | 8 |
| 9 var _oldLoad = load; | 9 var _oldLoad = load; |
| 10 | 10 |
| 11 // Filter load paths in the ecmascript_simd tests that | 11 // Filter load paths in the ecmascript_simd tests that |
| 12 // assume the test is run with a current working directory | 12 // assume the test is run with a current working directory |
| 13 // set to the directory containing the test. | 13 // set to the directory containing the test. |
| 14 load = function(filename) { | 14 load = function(filename) { |
| 15 // Decide if this is the compliance test or the benchmarks. | 15 // Decide if this is the compliance test or the benchmarks. |
| 16 if (filename === 'ecmascript_simd.js' || | 16 if (filename === 'ecmascript_simd.js' || |
| 17 filename === 'ecmascript_simd_tests.js') { | 17 filename === 'ecmascript_simd_tests.js') { |
| 18 _oldLoad('test/simdjs/data/src/' + filename); | 18 _oldLoad('test/simdjs/data/src/' + filename); |
| 19 } else { | 19 } else { |
| 20 _oldLoad('test/simdjs/data/src/benchmarks/' + filename); | 20 _oldLoad('test/simdjs/data/src/benchmarks/' + filename); |
| 21 } | 21 } |
| 22 }; | 22 }; |
| 23 | 23 |
| 24 // To enable SIMD polyfill, load ecmascript_simd.js here and | 24 // TODO(bbudge): Drop when polyfill is not needed. |
| 25 // add to resources in SimdJs.json as well as the script to | 25 load('ecmascript_simd.js'); |
| 26 // re-generate SimdJs.json. | |
| 27 | 26 |
| 28 load('base.js'); | 27 load('base.js'); |
| 29 | 28 |
| 30 })(); | 29 })(); |
| 31 | 30 |
| 32 // ecmascript_simd_tests logs errors to the console. | 31 // ecmascript_simd_tests logs errors to the console. |
| 33 var console = { | 32 var console = { |
| 34 log: function(x) { print(x); }, | 33 log: function(x) { print(x); }, |
| 35 }; | 34 }; |
| 36 | 35 |
| 37 | 36 |
| 38 // Disable value type tests for now. The value semantics tests are incorrect. | 37 // Disable value type tests for now. The value semantics tests are incorrect. |
| 39 // TODO(bbudge): Drop when tests are fixed. | 38 // TODO(bbudge): Drop when tests are fixed. |
| 40 var skipValueTests = true; | 39 var skipValueTests = true; |
| OLD | NEW |