MCPcopy Create free account
hub / github.com/nodejs/node / checkTopmostFrame

Function checkTopmostFrame

deps/v8/test/mjsunit/baseline/test-osr.js:31–35  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

29var expectedStatus = V8OptimizationStatus.kTopmostFrameIsInterpreted;
30
31function checkTopmostFrame(func) {
32 let opt_status = %GetOptimizationStatus(func);
33 assertTrue ((opt_status & expectedStatus) !== 0, "Expected flag " +
34 expectedStatus + " to be set in optimization status");
35}
36
37function g() {
38 for (var i = 0; i <= 20; i++) {

Callers 1

test-osr.jsFile · 0.70

Calls 1

assertTrueFunction · 0.50

Tested by

no test coverage detected