2015-05-19 10:14:49 +00:00
|
|
|
// Copyright 2015 the V8 project authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
var _oldLoad = load;
|
|
|
|
|
|
|
|
// Filter load paths in the ecmascript_simd tests that
|
|
|
|
// assume the test is run with a current working directory
|
|
|
|
// set to the directory containing the test.
|
|
|
|
load = function(filename) {
|
|
|
|
// Decide if this is the compliance test or the benchmarks.
|
|
|
|
if (filename === 'ecmascript_simd.js' ||
|
|
|
|
filename === 'ecmascript_simd_tests.js') {
|
|
|
|
_oldLoad('test/simdjs/data/src/' + filename);
|
|
|
|
} else {
|
|
|
|
_oldLoad('test/simdjs/data/src/benchmarks/' + filename);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2015-09-01 22:24:49 +00:00
|
|
|
// To enable SIMD polyfill, load ecmascript_simd.js here,
|
|
|
|
// add to resources in SimdJs.json as well as the script
|
|
|
|
// to re-generate SimdJs.json.
|
2015-05-19 10:14:49 +00:00
|
|
|
|
|
|
|
load('base.js');
|
|
|
|
|
|
|
|
})();
|
2015-07-16 19:43:21 +00:00
|
|
|
|
|
|
|
// ecmascript_simd_tests logs errors to the console.
|
|
|
|
var console = {
|
|
|
|
log: function(x) { print(x); },
|
|
|
|
};
|
2015-07-22 03:13:53 +00:00
|
|
|
|
2015-08-03 13:02:39 +00:00
|
|
|
|
|
|
|
// Disable value type tests for now. The value semantics tests are incorrect.
|
|
|
|
// TODO(bbudge): Drop when tests are fixed.
|
2015-07-22 03:13:53 +00:00
|
|
|
var skipValueTests = true;
|