v8/test/inspector/debugger/stepping-tail-call-expected.txt
Alexey Kozyatinskiy 0b690227f8 Reland "[inspector] fixed location of top level function return"
This is a reland of 4363a69335

Original change's description:
> [inspector] fixed location of top level function return
>
> We should pass false as has_braces argument to create FunctionLiteral
> for top level function.
>
> R=dgozman@chromium.org,bmeurer@chromium.org
> TBR=bmeurer@chromium.org
>
> Bug: none
> Change-Id: I397f31b562d32c71f3a12bfc9ceeed16c367aa80
> Reviewed-on: https://chromium-review.googlesource.com/1098018
> Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
> Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
> Reviewed-by: Yang Guo <yangguo@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#53769}
TBR=dgozman@chromium.org

Bug: v8:7858
Change-Id: Ie636bc101f9d29d9d40bd10b96e62da6505c2734
Reviewed-on: https://chromium-review.googlesource.com/1104497
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Reviewed-by: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53808}
2018-06-18 21:37:49 +00:00

175 lines
2.5 KiB
Plaintext

Checks stepping over tail calls.
Running test: testStepOver
f (:2:14)
f (:3:22)
f (:3:22)
f (:3:22)
(anonymous) (:5:0)
function f(x) {
if (x == 2) #debugger;
if (x-- > 0) return f(x);
Debugger.stepOver called
f (:3:2)
f (:3:22)
f (:3:22)
f (:3:22)
(anonymous) (:5:0)
if (x == 2) debugger;
#if (x-- > 0) return f(x);
}
Debugger.stepOver called
f (:3:15)
f (:3:22)
f (:3:22)
f (:3:22)
(anonymous) (:5:0)
if (x == 2) debugger;
if (x-- > 0) #return f(x);
}
Debugger.stepOver called
f (:3:27)
f (:3:22)
f (:3:22)
f (:3:22)
(anonymous) (:5:0)
if (x == 2) debugger;
if (x-- > 0) return f(x);#
}
Debugger.stepOver called
f (:3:27)
f (:3:22)
f (:3:22)
(anonymous) (:5:0)
if (x == 2) debugger;
if (x-- > 0) return f(x);#
}
Debugger.stepOver called
f (:3:27)
f (:3:22)
(anonymous) (:5:0)
if (x == 2) debugger;
if (x-- > 0) return f(x);#
}
Debugger.stepOver called
f (:3:27)
(anonymous) (:5:0)
if (x == 2) debugger;
if (x-- > 0) return f(x);#
}
Debugger.stepOver called
(anonymous) (:6:0)
f(5);
#
Debugger.resume called
Running test: testStepOut
f (:2:14)
f (:3:22)
f (:3:22)
f (:3:22)
(anonymous) (:5:0)
function f(x) {
if (x == 2) #debugger;
if (x-- > 0) return f(x);
Debugger.stepOut called
f (:3:27)
f (:3:22)
f (:3:22)
(anonymous) (:5:0)
if (x == 2) debugger;
if (x-- > 0) return f(x);#
}
Debugger.stepOut called
f (:3:27)
f (:3:22)
(anonymous) (:5:0)
if (x == 2) debugger;
if (x-- > 0) return f(x);#
}
Debugger.stepOut called
f (:3:27)
(anonymous) (:5:0)
if (x == 2) debugger;
if (x-- > 0) return f(x);#
}
Debugger.stepOut called
(anonymous) (:6:0)
f(5);
#
Debugger.resume called
Running test: testStepOutFromReturn
f (:2:14)
f (:3:22)
f (:3:22)
f (:3:22)
(anonymous) (:5:0)
function f(x) {
if (x == 2) #debugger;
if (x-- > 0) return f(x);
Debugger.stepOver called
f (:3:2)
f (:3:22)
f (:3:22)
f (:3:22)
(anonymous) (:5:0)
if (x == 2) debugger;
#if (x-- > 0) return f(x);
}
Debugger.stepOver called
f (:3:15)
f (:3:22)
f (:3:22)
f (:3:22)
(anonymous) (:5:0)
if (x == 2) debugger;
if (x-- > 0) #return f(x);
}
Debugger.stepOut called
f (:3:27)
f (:3:22)
f (:3:22)
(anonymous) (:5:0)
if (x == 2) debugger;
if (x-- > 0) return f(x);#
}
Debugger.stepOut called
f (:3:27)
f (:3:22)
(anonymous) (:5:0)
if (x == 2) debugger;
if (x-- > 0) return f(x);#
}
Debugger.stepOut called
f (:3:27)
(anonymous) (:5:0)
if (x == 2) debugger;
if (x-- > 0) return f(x);#
}
Debugger.stepOut called
(anonymous) (:6:0)
f(5);
#
Debugger.resume called