PageRenderTime 18ms CodeModel.GetById 9ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/js/src/jit-test/tests/jaeger/bug563000/trap-parent-from-trap.js

http://github.com/zpao/v8monkey
JavaScript | 22 lines | 15 code | 4 blank | 3 comment | 0 complexity | cd617e6a5f4e8b98ccdd130410b4999f MD5 | raw file
 1// |jit-test| debug
 2setDebug(true);
 3x = "notset";
 4
 5function child() {
 6  x = "failure1";
 7  /* JSOP_STOP in parent. */
 8  trap(parent, 10, "success()");
 9}
10
11function parent() {
12  x = "failure2";
13}
14/* First op in parent. */
15trap(parent, 0, "child()");
16
17function success() {
18  x = "success";
19}
20
21parent();
22assertEq(x, "success");