summaryrefslogtreecommitdiff
path: root/test/tick-processor/test-tick-processor-unknown.js
blob: f894ae919acf669facd8c45a0d1e297af3fe2a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
'use strict';
const common = require('../common');

// TODO(mhdawson) Currently the test-tick-processor functionality in V8
// depends on addresses being smaller than a full 64 bits.  AIX supports
// the full 64 bits and the result is that it does not process the
// addresses correctly and runs out of memory
// Disabling until we get a fix upstreamed into V8
if (common.isAIX)
  common.skip('AIX address range too big for scripts.');

if (!common.enoughTestCpu)
  common.skip('test is CPU-intensive');

const base = require('./tick-processor-base.js');

// Unknown checked for to prevent flakiness, if pattern is not found,
// then a large number of unknown ticks should be present
base.runTest({
  pattern: /LazyCompile.*\[eval]:1|.*%  UNKNOWN/,
  code: `function f() {
           for (let i = 0; i < 1000000; i++) {
             i++;
           }
           setImmediate(function() { f(); });
         };
         f();`
});