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

Side by Side Diff: sky/engine/bindings/scripts/compute_interfaces_info_overall.py

Issue 683593002: Remove GarbageCollected support from the bindings (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 from collections import defaultdict 79 from collections import defaultdict
80 import cPickle as pickle 80 import cPickle as pickle
81 import optparse 81 import optparse
82 import sys 82 import sys
83 83
84 from utilities import read_pickle_files, write_pickle_file 84 from utilities import read_pickle_files, write_pickle_file
85 85
86 INHERITED_EXTENDED_ATTRIBUTES = set([ 86 INHERITED_EXTENDED_ATTRIBUTES = set([
87 'ActiveDOMObject', 87 'ActiveDOMObject',
88 'DependentLifetime', 88 'DependentLifetime',
89 'GarbageCollected',
90 'NotScriptWrappable', 89 'NotScriptWrappable',
91 'WillBeGarbageCollected',
92 ]) 90 ])
93 91
94 # Main variable (filled in and exported) 92 # Main variable (filled in and exported)
95 interfaces_info = {} 93 interfaces_info = {}
96 94
97 # Auxiliary variables (not visible to future build steps) 95 # Auxiliary variables (not visible to future build steps)
98 partial_interface_files = defaultdict(lambda: { 96 partial_interface_files = defaultdict(lambda: {
99 'full_paths': [], 97 'full_paths': [],
100 'include_paths': [], 98 'include_paths': [],
101 }) 99 })
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 info_individuals = read_pickle_files(args) 255 info_individuals = read_pickle_files(args)
258 256
259 compute_interfaces_info_overall(info_individuals) 257 compute_interfaces_info_overall(info_individuals)
260 write_pickle_file(interfaces_info_filename, 258 write_pickle_file(interfaces_info_filename,
261 interfaces_info, 259 interfaces_info,
262 options.write_file_only_if_changed) 260 options.write_file_only_if_changed)
263 261
264 262
265 if __name__ == '__main__': 263 if __name__ == '__main__':
266 sys.exit(main()) 264 sys.exit(main())
OLDNEW
« no previous file with comments | « sky/engine/bindings/scripts/code_generator_v8.py ('k') | sky/engine/bindings/scripts/v8_interface.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698