v8/test/simdjs/harness-adapt.js
gdeepti c97069e4a4 [simd.js] Disable SIMD polyfill.
Disable the polyfill in simd.js tests as the functions for Phase 1 have been implemented.

BUG=v8:4124
LOG=N

R=bbudge@chromium.org, bmeurer@chromium.org, littledan@chromium.org

Committed: https://crrev.com/749ba3a13558cb018a2ec783e5dfb56d2f8528d8
Cr-Commit-Position: refs/heads/master@{#30452}

Review URL: https://codereview.chromium.org/1305923005

Cr-Commit-Position: refs/heads/master@{#30527}
2015-09-01 22:24:57 +00:00

41 lines
1.1 KiB
JavaScript

// 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);
}
};
// 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.
load('base.js');
})();
// ecmascript_simd_tests logs errors to the console.
var console = {
log: function(x) { print(x); },
};
// Disable value type tests for now. The value semantics tests are incorrect.
// TODO(bbudge): Drop when tests are fixed.
var skipValueTests = true;