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 233277 58f5bf899265f9055f7b78dfc46538504ffbcd5f
parent 233276 119a19ebe6d3e927c58d8807bf56f719e3832ab2
child 233278 fdbabd7946abf3e56d7e1ff7a4f4e20331937796
push id4187
push userbhearsum@mozilla.com
push dateFri, 28 Nov 2014 15:29:12 +0000
treeherdermozilla-beta@f23cc6a30c11 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink
bugs1009952
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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();