11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ciconst common = require('../common');
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_ci// TODO(mhdawson) Currently the test-tick-processor functionality in V8
51cb0ef41Sopenharmony_ci// depends on addresses being smaller than a full 64 bits.  AIX supports
61cb0ef41Sopenharmony_ci// the full 64 bits and the result is that it does not process the
71cb0ef41Sopenharmony_ci// addresses correctly and runs out of memory
81cb0ef41Sopenharmony_ci// Disabling until we get a fix upstreamed into V8
91cb0ef41Sopenharmony_ciif (common.isAIX)
101cb0ef41Sopenharmony_ci  common.skip('AIX address range too big for scripts.');
111cb0ef41Sopenharmony_ci
121cb0ef41Sopenharmony_ciconst base = require('./tick-processor-base.js');
131cb0ef41Sopenharmony_ci
141cb0ef41Sopenharmony_ci// Unknown checked for to prevent flakiness, if pattern is not found,
151cb0ef41Sopenharmony_ci// then a large number of unknown ticks should be present
161cb0ef41Sopenharmony_cibase.runTest({
171cb0ef41Sopenharmony_ci  pattern: /LazyCompile.*\[eval]:1|.*% {2}UNKNOWN/,
181cb0ef41Sopenharmony_ci  code: `function f() {
191cb0ef41Sopenharmony_ci           for (let i = 0; i < 1000000; i++) {
201cb0ef41Sopenharmony_ci             i++;
211cb0ef41Sopenharmony_ci           }
221cb0ef41Sopenharmony_ci           setImmediate(function() { f(); });
231cb0ef41Sopenharmony_ci         };
241cb0ef41Sopenharmony_ci         f();`,
251cb0ef41Sopenharmony_ci});
26