git://git.webkit.org
/
WebKit-https.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
DFG inlining block linking compares BlockIndex against bytecode index
[WebKit-https.git]
/
LayoutTests
/
fast
/
js
/
script-tests
/
dfg-inline-many-blocks.js
1
description("Tests that inlining many basic blocks does not trigger a bad assertion.");
2
3
function stuff(x) {
4
debug(x); // This needs to be a side-effect.
5
}
6
7
function foo(a, b) {
8
if (a) {
9
stuff(a);
10
return;
11
} else {
12
stuff(b);
13
return;
14
}
15
}
16
17
function fuzz(a, b) {
18
if (a + b)
19
foo(a, b);
20
if (a / b)
21
foo(b, a);
22
foo(a, b);
23
}
24
25
function baz(a, b) {
26
stuff(a);
27
if (a * b)
28
fuzz(a, b);
29
if (a - b)
30
fuzz(a, b);
31
fuzz(b, a);
32
}
33
34
function bar(a, b) {
35
stuff(a * b + a);
36
if (a + b)
37
baz(a, b);
38
stuff(a - b);
39
}
40
41
for (var i = 0; i < 1000; ++i)
42
bar(i, i + 1);
43