Bug 1009952 - Tests for {g,s}etElemTryTypedStatic failing to watch out for neutering. r=sfink
authorJeff Walden <jwalden@mit.edu>
Wed, 14 May 2014 10:31:43 -0700
changeset 210062 58f5bf899265f9055f7b78dfc46538504ffbcd5f
parent 210061 119a19ebe6d3e927c58d8807bf56f719e3832ab2
child 210063 fdbabd7946abf3e56d7e1ff7a4f4e20331937796
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerssfink
bugs1009952
milestone35.0a1
Bug 1009952 - Tests for {g,s}etElemTryTypedStatic failing to watch out for neutering. r=sfink
js/src/jit-test/tests/ion/typedarray-static-load.js
js/src/jit-test/tests/ion/typedarray-static-store.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/ion/typedarray-static-load.js
@@ -0,0 +1,12 @@
+var buffer = new ArrayBuffer(512 * 1024);
+var ta = new Uint8Array(buffer);
+
+function load() { return ta[0x1234]; }
+
+load();
+load();
+load();
+
+neuter(buffer, "change-data");
+
+load();
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/ion/typedarray-static-store.js
@@ -0,0 +1,12 @@
+var buffer = new ArrayBuffer(512 * 1024);
+var ta = new Uint8Array(buffer);
+
+function store() { ta[0x1234] = 42; }
+
+store();
+store();
+store();
+
+neuter(buffer, "change-data");
+
+store();