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

Side by Side Diff: Source/bindings/scripts/compute_dependencies.py

Issue 134683007: IDL compiler: sync Python to r166680 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Order Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/bindings/scripts/unstable/code_generator_v8.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 23 matching lines...) Expand all
34 import posixpath 34 import posixpath
35 import re 35 import re
36 import string 36 import string
37 37
38 module_path = os.path.dirname(__file__) 38 module_path = os.path.dirname(__file__)
39 source_path = os.path.normpath(os.path.join(module_path, os.pardir, os.pardir)) 39 source_path = os.path.normpath(os.path.join(module_path, os.pardir, os.pardir))
40 40
41 INHERITED_EXTENDED_ATTRIBUTES = set([ 41 INHERITED_EXTENDED_ATTRIBUTES = set([
42 'ActiveDOMObject', 42 'ActiveDOMObject',
43 'DependentLifetime', 43 'DependentLifetime',
44 'GarbageCollected', 44 'WillBeGarbageCollected',
45 ]) 45 ])
46 46
47 47
48 # interfaces_info is *exported* (in a pickle), and should only contain data 48 # interfaces_info is *exported* (in a pickle), and should only contain data
49 # about an interface that contains paths or is needed by *other* interfaces, 49 # about an interface that contains paths or is needed by *other* interfaces,
50 # i.e., file layout data (to abstract the compiler from file paths) or 50 # i.e., file layout data (to abstract the compiler from file paths) or
51 # public data (to avoid having to read other interfaces unnecessarily). 51 # public data (to avoid having to read other interfaces unnecessarily).
52 # It should *not* contain full information about an interface (e.g., all 52 # It should *not* contain full information about an interface (e.g., all
53 # extended attributes), as this would cause unnecessary rebuilds. 53 # extended attributes), as this would cause unnecessary rebuilds.
54 interfaces_info = {} 54 interfaces_info = {}
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 write_dependencies_file(options.interface_dependencies_file, only_if_changed ) 557 write_dependencies_file(options.interface_dependencies_file, only_if_changed )
558 write_pickle_file(options.interfaces_info_file, interfaces_info, only_if_cha nged) 558 write_pickle_file(options.interfaces_info_file, interfaces_info, only_if_cha nged)
559 for interface_name, filename in global_constructors_filenames.iteritems(): 559 for interface_name, filename in global_constructors_filenames.iteritems():
560 if interface_name in interfaces_info: 560 if interface_name in interfaces_info:
561 write_global_constructors_partial_interface(interface_name, filename , global_constructors[interface_name], only_if_changed) 561 write_global_constructors_partial_interface(interface_name, filename , global_constructors[interface_name], only_if_changed)
562 write_event_names_file(options.event_names_file, only_if_changed) 562 write_event_names_file(options.event_names_file, only_if_changed)
563 563
564 564
565 if __name__ == '__main__': 565 if __name__ == '__main__':
566 main() 566 main()
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/scripts/unstable/code_generator_v8.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698