1'use strict'; 2const common = require('../common'); 3 4// TODO(mhdawson) Currently the test-tick-processor functionality in V8 5// depends on addresses being smaller than a full 64 bits. AIX supports 6// the full 64 bits and the result is that it does not process the 7// addresses correctly and runs out of memory 8// Disabling until we get a fix upstreamed into V8 9if (common.isAIX) 10 common.skip('AIX address range too big for scripts.'); 11 12if (!common.enoughTestCpu) 13 common.skip('test is CPU-intensive'); 14 15const base = require('./tick-processor-base.js'); 16 17// Unknown checked for to prevent flakiness, if pattern is not found, 18// then a large number of unknown ticks should be present 19base.runTest({ 20 pattern: /LazyCompile.*\[eval]:1|.*% UNKNOWN/, 21 code: `function f() { 22 for (let i = 0; i < 1000000; i++) { 23 i++; 24 } 25 setImmediate(function() { f(); }); 26 }; 27 f();` 28}); 29