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

Unified Diff: test/mjsunit/double-intrinsics.js

Issue 2114613002: [intrinsics] Drop the now obsolete %_DoubleHi and %_DoubleLo intrinsics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/mjsunit/asm/double-lo.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/double-intrinsics.js
diff --git a/test/mjsunit/double-intrinsics.js b/test/mjsunit/double-intrinsics.js
deleted file mode 100644
index b50038e1e68c2249fd274b36e6e5cd8fff396c02..0000000000000000000000000000000000000000
--- a/test/mjsunit/double-intrinsics.js
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2014 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.
-
-// Flags: --allow-natives-syntax
-
-function assertDoubleBits(hi, lo, x) {
- hi = hi | 0;
- lo = lo | 0;
- assertEquals(x, %ConstructDouble(hi, lo));
- assertEquals(hi, %_DoubleHi(x));
- assertEquals(lo, %_DoubleLo(x));
- assertEquals(x, %ConstructDouble(%_DoubleHi(x), %_DoubleLo(x)));
-}
-
-
-var tests = [0x7ff00000, 0x00000000, Infinity,
- 0xfff00000, 0x00000000, -Infinity,
- 0x80000000, 0x00000000, -0,
- 0x400921fb, 0x54442d18, Math.PI,
- 0xc00921fb, 0x54442d18, -Math.PI,
- 0x4005bf0a, 0x8b145769, Math.E,
- 0xc005bf0a, 0x8b145769, -Math.E,
- 0xbfe80000, 0x00000000, -0.75];
-
-
-for (var i = 0; i < tests.length; i += 3) {
- assertDoubleBits(tests[i], tests[i + 1], tests[i + 2]);
-}
-
-%OptimizeFunctionOnNextCall(assertDoubleBits);
-
-for (var i = 0; i < tests.length; i += 3) {
- assertDoubleBits(tests[i], tests[i + 1], tests[i + 2]);
- assertOptimized(assertDoubleBits);
-}
« no previous file with comments | « test/mjsunit/asm/double-lo.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698