d540724b99
R=clemensh@chromium.org BUG=v8:8238 Change-Id: I03454ced41da35be9d389d843026ed5c0f7131fe Reviewed-on: https://chromium-review.googlesource.com/c/1326465 Commit-Queue: Michael Starzinger <mstarzinger@chromium.org> Reviewed-by: Clemens Hammacher <clemensh@chromium.org> Cr-Commit-Position: refs/heads/master@{#57366}
25 lines
662 B
Bash
Executable File
25 lines
662 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright 2018 the V8 project authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
v8_root=$(readlink -f $(dirname $BASH_SOURCE)/../)
|
|
symbols=$(
|
|
grep \
|
|
--only-matching \
|
|
--perl-regexp 'V\(_, \K([^,\)]*)' \
|
|
-- "$v8_root/src/heap-symbols.h")
|
|
|
|
# Find symbols which appear exactly once (in heap-symbols.h)
|
|
grep \
|
|
--only-matching \
|
|
--no-filename \
|
|
--recursive \
|
|
--fixed-strings "$symbols" \
|
|
-- "$v8_root/src" "$v8_root/test/cctest" \
|
|
| sort \
|
|
| uniq -u \
|
|
| sed -e 's/.*/Heap symbol "&" seems to be unused./'
|
|
|
|
echo "Kthxbye."
|