Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: tools/check-unused-bailouts.sh

Issue 1237623003: Remove unused bailout reasons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-frame-constants-2
Patch Set: Respect cctest as well. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/bailout-reason.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
2 # Copyright 2015 the V8 project authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 v8_root=$(readlink -f $(dirname $BASH_SOURCE)/../)
7 bailouts=$(grep -oP 'V\(\K(k[^,]*)' "$v8_root/src/bailout-reason.h")
8
9 for bailout in $bailouts; do
10 bailout_uses=$(grep -r $bailout "$v8_root/src" "$v8_root/test/cctest" | wc -l)
11 if [ $bailout_uses -eq "1" ]; then
12 echo "Bailout reason \"$bailout\" seems to be unused."
13 fi
14 done
15
16 echo "Kthxbye."
OLDNEW
« no previous file with comments | « src/bailout-reason.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698