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

Unified Diff: test/mjsunit/regress/wasm/regression-647649.js

Issue 2347333002: [wasm] Fix for cloning module heap size value (Closed)
Patch Set: the fix Created 4 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 | « src/wasm/wasm-module.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/wasm/regression-647649.js
diff --git a/test/mjsunit/regress/wasm/regression-647649.js b/test/mjsunit/regress/wasm/regression-647649.js
new file mode 100644
index 0000000000000000000000000000000000000000..fc228d4b10a665ac5740d9a0b2fbce01238ce5d3
--- /dev/null
+++ b/test/mjsunit/regress/wasm/regression-647649.js
@@ -0,0 +1,43 @@
+// Copyright 2016 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Flags: --nostress-opt --expose-gc --invoke-weak-callbacks --validate-asm
+// Flags: --noalways-opt --invoke-weak-callbacks
+
+// This test was generated by the fuzzer.
+
+function getRandomProperty(v, rand) {
+ var properties = Object.getOwnPropertyNames(v);
+ var proto = Object.getPrototypeOf(v);
+ if (proto) {; }
+ if ("constructor" && v.constructor.hasOwnProperty()) {; }
+ if (properties.length == 0) { return "0"; }
+ return properties[rand % properties.length];
+}
+
+var __v_11 = {};
+
+function __f_1(stdlib, foreign, buffer) {
+ "use asm";
+ var __v_3 = new stdlib.Float64Array(buffer);
+ function __f_0() {
+ var __v_1 = 6.0;
+ __v_3[2] = __v_1 + 1.0;
+ }
+ return {__f_0: __f_0};
+}
+try {
+ var __v_0 = new ArrayBuffer(207222809);
+ var module = __f_1(this, null, __v_0);
+( {
+})();
+} catch(e) {; }
+__v_13 = '@3'
+Array.prototype.__proto__ = {3: __v_13};
+Array.prototype.__proto__.__proto__ = {7: __v_11};
+__v_9 = [0, 1, , , 4, 5, , , , 9]
+__v_12 = __v_9.splice(4, 1)
+__v_9.__defineGetter__(getRandomProperty(__v_9, 1689439720), function() {; return __f_1(); });
+ __v_9[8]
+gc();
« no previous file with comments | « src/wasm/wasm-module.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698