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

Side by Side Diff: third_party/WebKit/Source/bindings/scripts/compute_interfaces_info_overall.py

Issue 1805843002: [v8 gc] Introduce a base class for all objects that can have pending activity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 4 years, 9 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
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # 2 #
3 # Copyright (C) 2013 Google Inc. All rights reserved. 3 # Copyright (C) 2013 Google Inc. All rights reserved.
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are 6 # modification, are permitted provided that the following conditions are
7 # met: 7 # met:
8 # 8 #
9 # * Redistributions of source code must retain the above copyright 9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer. 10 # notice, this list of conditions and the following disclaimer.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 """ 82 """
83 83
84 from collections import defaultdict 84 from collections import defaultdict
85 import cPickle as pickle 85 import cPickle as pickle
86 import optparse 86 import optparse
87 import sys 87 import sys
88 88
89 from utilities import idl_filename_to_component, read_pickle_files, write_pickle _file, merge_dict_recursively 89 from utilities import idl_filename_to_component, read_pickle_files, write_pickle _file, merge_dict_recursively
90 90
91 INHERITED_EXTENDED_ATTRIBUTES = set([ 91 INHERITED_EXTENDED_ATTRIBUTES = set([
92 'ActiveScriptWrappable',
92 'DependentLifetime', 93 'DependentLifetime',
93 'GarbageCollected', 94 'GarbageCollected',
94 'WillBeGarbageCollected', 95 'WillBeGarbageCollected',
95 ]) 96 ])
96 97
97 # Main variable (filled in and exported) 98 # Main variable (filled in and exported)
98 interfaces_info = {} 99 interfaces_info = {}
99 100
100 # Auxiliary variables (not visible to future build steps) 101 # Auxiliary variables (not visible to future build steps)
101 partial_interface_files = defaultdict(lambda: { 102 partial_interface_files = defaultdict(lambda: {
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 info_individuals = read_pickle_files(args) 327 info_individuals = read_pickle_files(args)
327 328
328 compute_interfaces_info_overall(info_individuals) 329 compute_interfaces_info_overall(info_individuals)
329 write_pickle_file(interfaces_info_filename, 330 write_pickle_file(interfaces_info_filename,
330 interfaces_info, 331 interfaces_info,
331 options.write_file_only_if_changed) 332 options.write_file_only_if_changed)
332 333
333 334
334 if __name__ == '__main__': 335 if __name__ == '__main__':
335 sys.exit(main()) 336 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698