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

Unified Diff: test/mjsunit/asm/atomics-load.js

Issue 1318713007: [Atomics] Remove support for atomic accesses on floating-point values. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: feedback Created 5 years, 3 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/atomics-compareexchange.js ('k') | test/mjsunit/asm/atomics-store.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/asm/atomics-load.js
diff --git a/test/mjsunit/asm/atomics-load.js b/test/mjsunit/asm/atomics-load.js
index 7d27aa8d6e14ad4d5cea3ecbb58f575a113c5288..4234d22c4e6cc5ae53779ecb153865f097d39501 100644
--- a/test/mjsunit/asm/atomics-load.js
+++ b/test/mjsunit/asm/atomics-load.js
@@ -12,8 +12,6 @@ function Module(stdlib, foreign, heap) {
var MEMU8 = new stdlib.Uint8Array(heap);
var MEMU16 = new stdlib.Uint16Array(heap);
var MEMU32 = new stdlib.Uint32Array(heap);
- var MEMF32 = new stdlib.Float32Array(heap);
- var MEMF64 = new stdlib.Float64Array(heap);
var load = stdlib.Atomics.load;
var fround = stdlib.Math.fround;
@@ -47,16 +45,6 @@ function Module(stdlib, foreign, heap) {
return load(MEMU32, i)>>>0;
}
- function loadf32(i) {
- i = i | 0;
- return fround(load(MEMF32, i));
- }
-
- function loadf64(i) {
- i = i | 0;
- return +load(MEMF64, i);
- }
-
return {
loadi8: loadi8,
loadi16: loadi16,
@@ -64,8 +52,6 @@ function Module(stdlib, foreign, heap) {
loadu8: loadu8,
loadu16: loadu16,
loadu32: loadu32,
- loadf32: loadf32,
- loadf64: loadf64
};
}
@@ -98,5 +84,3 @@ testElementType(Int32Array, m.loadi32, 0);
testElementType(Uint8Array, m.loadu8, 0);
testElementType(Uint16Array, m.loadu16, 0);
testElementType(Uint32Array, m.loadu32, 0);
-testElementType(Float32Array, m.loadf32, NaN);
-testElementType(Float64Array, m.loadf64, NaN);
« no previous file with comments | « test/mjsunit/asm/atomics-compareexchange.js ('k') | test/mjsunit/asm/atomics-store.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698