blob: 55bcac9c5ae1e8192bd8c50ac3af97267d0f8997 [file] [log] [blame]
//@ runDefault("--useLLInt=0", "--useDFGJIT=0")
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function jitCode1() {
return $vm.llintTrue();
}
function jitCode2() {
return $vm.baselineJITTrue();
}
if ($vm.useJIT()) {
shouldBe(jitCode1(), false);
shouldBe(jitCode2(), true);
}