1 // This is a great test for checking if OSR entry works at all. It's great for debugging
2 // fundamental OSR entry bugs.
4 function marsaglia(m_z, m_w, n) {
6 for (var i = 0; i < n; ++i) {
7 m_z = (36969 * (m_z & 65535) + (m_z >> 16)) | 0;
8 m_w = (18000 * (m_w & 65535) + (m_w >> 16)) | 0;
9 result = ((m_z << 16) + m_w) | 0;
14 var result = marsaglia(5, 7, 10000000);
16 if (result != -1047364056)
17 throw "Error: bad result: " + result;