blob: 4f486c06ef5eb88e2889420d40facf8d9d5eb13a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// |jit-test| skip-if: helperThreadCount() === 0
// Test that we don't crash while logging allocations and there is
// off-main-thread compilation. OMT compilation will allocate functions and
// regexps, but we just punt on measuring that accurately.
const root = newGlobal({newCompartment: true});
root.eval("this.dbg = new Debugger()");
root.dbg.addDebuggee(this);
root.dbg.memory.trackingAllocationSites = true;
offThreadCompileToStencil(
"function foo() {\n" +
" print('hello world');\n" +
"}"
);
|