Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Unified Diff: test/simdjs/harness-adapt.js

Issue 2691903003: Revert of Remove SIMD.js from V8. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/simdjs/generate.py ('k') | test/simdjs/harness-finish.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/simdjs/harness-adapt.js
diff --git a/test/simdjs/harness-adapt.js b/test/simdjs/harness-adapt.js
new file mode 100644
index 0000000000000000000000000000000000000000..252eb41ba5d0e1e77de1268388d4343fcd9c957b
--- /dev/null
+++ b/test/simdjs/harness-adapt.js
@@ -0,0 +1,40 @@
+// 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;
« no previous file with comments | « test/simdjs/generate.py ('k') | test/simdjs/harness-finish.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698