Bug 1587638: Add testcase to check GC barriers during XDR encoding/decoding r=tcampbell
authorIain Ireland <iireland@mozilla.com>
Thu, 31 Oct 2019 21:12:51 +0000
changeset 500398 145c009565f90cc2fdda8b3ba4c2e9eef562b675
parent 500397 8834ca679ef71dfa07a0b6842c07d895027c1893
child 500399 46a8774eed223bc230d8732882b51b9ac768b305
push id114164
push useraiakab@mozilla.com
push dateTue, 05 Nov 2019 10:06:15 +0000
treeherdermozilla-inbound@4d585c7edc76 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstcampbell
bugs1587638
milestone72.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 1587638: Add testcase to check GC barriers during XDR encoding/decoding r=tcampbell Depends on D48782 Differential Revision: https://phabricator.services.mozilla.com/D48783
js/src/jit-test/tests/xdr/bug1585158.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/xdr/bug1585158.js
@@ -0,0 +1,12 @@
+gczeal(4);
+evalWithCache(`
+  var obj = { a: 1, b: 2 };
+  obj.a++;
+  assertEq(obj.a, 2);
+`);
+function evalWithCache(code) {
+  code = cacheEntry(code);
+  ctx_save = Object.create({}, { saveIncrementalBytecode: { value: true } });
+  var res1 = evaluate(code, ctx_save);
+  var res2 = evaluate(code, Object.create(ctx_save, {}));
+}