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

Unified Diff: tools/clang/blink_gc_plugin/process-graph.py

Issue 401613002: clang/blink_gc_plugin: Replace 'WebCore' with 'blink' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: tools/clang/blink_gc_plugin/process-graph.py
diff --git a/tools/clang/blink_gc_plugin/process-graph.py b/tools/clang/blink_gc_plugin/process-graph.py
index 2bff96f76ad6c8f3698738e85c74f29c3a901e19..b4fb1e64116c96e2b817cadf04bc33b1a9158c68 100755
--- a/tools/clang/blink_gc_plugin/process-graph.py
+++ b/tools/clang/blink_gc_plugin/process-graph.py
@@ -257,7 +257,7 @@ def detect_cycles():
reset_graph()
# Mark ignored classes as already visited
for ignore in args.ignore_classes:
- name = ignore.find("::") > 0 and ignore or ("WebCore::" + ignore)
+ name = ignore.find("::") > 0 and ignore or ("blink::" + ignore)
node = graph.get(name)
if node:
node.visited = True
@@ -344,22 +344,22 @@ def read_ignored_cycles():
ignored_cycles.append(block)
gc_bases = (
- 'WebCore::GarbageCollected',
- 'WebCore::GarbageCollectedFinalized',
- 'WebCore::GarbageCollectedMixin',
+ 'blink::GarbageCollected',
+ 'blink::GarbageCollectedFinalized',
+ 'blink::GarbageCollectedMixin',
)
ref_bases = (
'WTF::RefCounted',
'WTF::ThreadSafeRefCounted',
)
gcref_bases = (
- 'WebCore::RefCountedGarbageCollected',
- 'WebCore::ThreadSafeRefCountedGarbageCollected',
+ 'blink::RefCountedGarbageCollected',
+ 'blink::ThreadSafeRefCountedGarbageCollected',
)
ref_mixins = (
- 'WebCore::EventTarget',
- 'WebCore::EventTargetWithInlineData',
- 'WebCore::ActiveDOMObject',
+ 'blink::EventTarget',
+ 'blink::EventTargetWithInlineData',
+ 'blink::ActiveDOMObject',
)
def print_stats():
@@ -400,7 +400,7 @@ def print_stats():
"%s %3d%% of %-30s: %3d cls, %3d mem, %3d ref, %3d raw, %3d ref-mixins" %
(stats['ref'] == 0 and stats['ref-mixins'] == 0 and "*" or " ",
total == 0 and 100 or stats['mem'] * 100 / total,
- node.name.replace('WebCore::', ''),
+ node.name.replace('blink::', ''),
stats['classes'],
stats['mem'],
stats['ref'],
« no previous file with comments | « tools/clang/blink_gc_plugin/RecordInfo.cpp ('k') | tools/clang/blink_gc_plugin/tests/base_requires_tracing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698