[scopes] With --print-scopes, print is_hidden() status too.

BUG=v8:5516
R=vogelheim@chromium.org

Review-Url: https://codereview.chromium.org/2669153002
Cr-Commit-Position: refs/heads/master@{#42899}
This commit is contained in:
marja 2017-02-02 12:01:50 -08:00 committed by Commit bot
parent f2d2ebcae8
commit dbda66ec4f

View File

@ -1569,6 +1569,9 @@ void Scope::Print(int n) {
} }
PrintF(" { // (%d, %d)\n", start_position(), end_position()); PrintF(" { // (%d, %d)\n", start_position(), end_position());
if (is_hidden()) {
Indent(n1, "// is hidden\n");
}
// Function name, if any (named function literals, only). // Function name, if any (named function literals, only).
if (function != nullptr) { if (function != nullptr) {