summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/unboxed-object-getelem.js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-06-25 20:18:14 +0000
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-06-25 20:18:14 +0000
commit083d840f32e6cee08c709408160dcbc802b600fc (patch)
tree4f77e7a71fff3b2999de947b0851c9601a428742 /js/src/jit-test/tests/basic/unboxed-object-getelem.js
parent1cf7e63d993b0f41aecc3af7e0cd759c8b067df4 (diff)
downloadUXP-083d840f32e6cee08c709408160dcbc802b600fc.tar
UXP-083d840f32e6cee08c709408160dcbc802b600fc.tar.gz
UXP-083d840f32e6cee08c709408160dcbc802b600fc.tar.lz
UXP-083d840f32e6cee08c709408160dcbc802b600fc.tar.xz
UXP-083d840f32e6cee08c709408160dcbc802b600fc.zip
Remove unboxed object tests.
Diffstat (limited to 'js/src/jit-test/tests/basic/unboxed-object-getelem.js')
-rw-r--r--js/src/jit-test/tests/basic/unboxed-object-getelem.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/js/src/jit-test/tests/basic/unboxed-object-getelem.js b/js/src/jit-test/tests/basic/unboxed-object-getelem.js
deleted file mode 100644
index b30b8325a..000000000
--- a/js/src/jit-test/tests/basic/unboxed-object-getelem.js
+++ /dev/null
@@ -1,20 +0,0 @@
-
-function f() {
- var propNames = ["a","b","c","d","e","f","g","h","i","j","x","y"];
- var arr = [];
- for (var i=0; i<64; i++)
- arr.push({x:1, y:2});
- for (var i=0; i<64; i++) {
- // Make sure there are expandos with dynamic slots for each object.
- for (var j = 0; j < propNames.length; j++)
- arr[i][propNames[j]] = j;
- }
- var res = 0;
- for (var i=0; i<100000; i++) {
- var o = arr[i % 64];
- var p = propNames[i % propNames.length];
- res += o[p];
- }
- assertEq(res, 549984);
-}
-f();