| 41 | static STUBS_RE = /^(Stub: )/; |
| 42 | |
| 43 | constructor(separateIc, separateBytecodes, separateBuiltins, separateStubs, |
| 44 | separateSparkplugHandlers, useBigIntAddresses=false) { |
| 45 | super(useBigIntAddresses); |
| 46 | const regexps = []; |
| 47 | if (!separateIc) regexps.push(V8Profile.IC_RE); |
| 48 | if (!separateBytecodes) regexps.push(V8Profile.BYTECODES_RE); |
| 49 | if (!separateBuiltins) regexps.push(V8Profile.BUILTINS_RE); |
| 50 | if (!separateStubs) regexps.push(V8Profile.STUBS_RE); |
| 51 | if (regexps.length > 0) { |
| 52 | this.skipThisFunction = function(name) { |
| 53 | for (let i = 0; i < regexps.length; i++) { |
| 54 | if (regexps[i].test(name)) return true; |
| 55 | } |
| 56 | return false; |
| 57 | }; |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | class CppEntriesProvider { |