]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/controlFlowProfiler/driver/driver.js
1 function assert(condition
, reason
) {
3 throw new Error(reason
);
6 var ShouldHaveExecuted
= true;
7 var ShouldNotHaveExecuted
= false;
9 function checkBasicBlock(func
, expr
, expectation
) {
10 if (expectation
=== ShouldHaveExecuted
)
11 assert(hasBasicBlockExecuted(func
, expr
, "should have executed"));
13 assert(!hasBasicBlockExecuted(func
, expr
, "should not have executed"));