PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 1ms

/js/src/jit-test/tests/jaeger/bug563000/eif-call.js

http://github.com/zpao/v8monkey
JavaScript | 14 lines | 12 code | 1 blank | 1 comment | 0 complexity | da444c3707ce3166862630f6f8e5b512 MD5 | raw file
 1// |jit-test| mjitalways;debug
 2setDebug(true);
 3
 4function callee() {
 5  assertJit();
 6  evalInFrame(1, "x = 'success'");
 7}
 8function caller() {
 9  assertJit();
10  var x = "failure";
11  callee();
12  return x;
13}
14assertEq(caller(), "success");