repo.or.cz
/
qtwebkit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Update ReadMe.md
[qtwebkit.git]
/
JSTests
/
microbenchmarks
/
megamorphic-load.js
blob
df011cda276b2305e76cfd665097a13072c9c302
1
(function() {
2
var array = [];
3
for (var i = 0; i < 1000; ++i) {
4
var o = {};
5
o["i" + i] = i;
6
o.f = 42;
7
array.push(o);
8
}
9
10
for (var i = 0; i < 1000000; ++i) {
11
var result = array[i % array.length].f;
12
if (result != 42)
13
throw "Error: bad result: " + result;
14
}
15
})();