comparison: js/src/jit-test/tests/ion/getprop-idempotent-cache-1.js
js/src/jit-test/tests/ion/getprop-idempotent-cache-1.js
- changeset 0
- 6474c204b198
equal
deleted
inserted
replaced
|
1 function f(o) { |
|
2 var res = 0; |
|
3 for (var i=0; i<11000; i++) { |
|
4 res += o.x; |
|
5 } |
|
6 return res; |
|
7 } |
|
8 |
|
9 function O(x) { |
|
10 if (x) |
|
11 this.x = 10; |
|
12 } |
|
13 |
|
14 f(new O(true)); |
|
15 |
|
16 // "o.x" is now missing so the idempotent cache should invalidate f. |
|
17 f(new O(false)); |