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

Side by Side Diff: test/mjsunit/asm/regress-740325.js

Issue 2972353002: [wasm] Improve precision of slow DCHECK for WebAssembly-constructed internal objects. (Closed)
Patch Set: Fix compile error and add testcase. Created 3 years, 5 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/objects.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: --expose-gc
6
7 assertTrue = function assertTrue() { }
8 assertFalse = function assertFalse() { }
9
10 __v_3 = [];
11 __v_2 = [];
12 __v_0 = 0;
13 __v_2.__defineGetter__(0, function() {
14 if (__v_0++ > 2) return;
15 gc();
16 __v_3.concat(__v_2);
17 });
18 __v_2[0];
19
20
21 function __f_2() {
22 }
23
24 (function __f_1() {
25 print("1...");
26 function __f_5(stdlib, imports) {
27 "use asm";
28 var __f_2 = imports.__f_2;
29 function __f_3(a) {
30 a = a | 0;
31 }
32 return { __f_3:__f_3 };
33 }
34 var __v_2 = __f_5(this, { __f_2:__f_2 });
35 ;
36 })();
37
38 (function __f_10() {
39 print("2...");
40 function __f_5() {
41 "use asm";
42 function __f_3(a) {
43 }
44 }
45 var __v_2 = __f_5();
46 assertFalse();
47 })();
48
49 (function __f_11() {
50 print("3...");
51 let m = (function __f_6() {
52 function __f_5() {
53 "use asm";
54 function __f_3() {
55 }
56 return { __f_3:__f_3 };
57 }
58 var __v_2 = __f_5( { __f_2:__f_2 });
59 });
60 for (var i = 0; i < 30; i++) {
61 print(" i = " + i);
62 var x = m();
63 for (var j = 0; j < 200; j++) {
64 try {
65 __f_5;
66 } catch (e) {
67 }
68 }
69 x;
70 }
71 })();
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698