]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/multi-put-by-offset-multiple-transitions.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / multi-put-by-offset-multiple-transitions.js
CommitLineData
ed1e77d3
A
1function foo(o) {
2 o.x = 1;
3 o.y = 2;
4 o.a = 3;
5 o.b = 4;
6 o.c = 5;
7 o.d = 6;
8 o.e = 7;
9 o.f = 8;
10 o.g = 9;
11 o.h = 10;
12 o.i = 11;
13}
14
15noInline(foo);
16
17function Foo() {
18 foo(this);
19}
20
21var result = 0;
22
23for (var i = 0; i < 100000; ++i) {
24 foo({f:42});
25 result += (new Foo()).x;
26}
27
28if (result != 100000)
29 throw "Bad result: " + result;
30