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

Side by Side 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, 2 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 unified diff | Download patch
« no previous file with comments | « src/wasm/wasm-module.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Flags: --nostress-opt --expose-gc --invoke-weak-callbacks --validate-asm
6 // Flags: --noalways-opt --invoke-weak-callbacks
7
8 // This test was generated by the fuzzer.
9
10 function getRandomProperty(v, rand) {
11 var properties = Object.getOwnPropertyNames(v);
12 var proto = Object.getPrototypeOf(v);
13 if (proto) {; }
14 if ("constructor" && v.constructor.hasOwnProperty()) {; }
15 if (properties.length == 0) { return "0"; }
16 return properties[rand % properties.length];
17 }
18
19 var __v_11 = {};
20
21 function __f_1(stdlib, foreign, buffer) {
22 "use asm";
23 var __v_3 = new stdlib.Float64Array(buffer);
24 function __f_0() {
25 var __v_1 = 6.0;
26 __v_3[2] = __v_1 + 1.0;
27 }
28 return {__f_0: __f_0};
29 }
30 try {
31 var __v_0 = new ArrayBuffer(207222809);
32 var module = __f_1(this, null, __v_0);
33 ( {
34 })();
35 } catch(e) {; }
36 __v_13 = '@3'
37 Array.prototype.__proto__ = {3: __v_13};
38 Array.prototype.__proto__.__proto__ = {7: __v_11};
39 __v_9 = [0, 1, , , 4, 5, , , , 9]
40 __v_12 = __v_9.splice(4, 1)
41 __v_9.__defineGetter__(getRandomProperty(__v_9, 1689439720), function() {; retur n __f_1(); });
42 __v_9[8]
43 gc();
OLDNEW
« 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