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

Side by Side Diff: runtime/tools/create_snapshot_bin.py

Issue 1737693003: - Remove Isolate::Flags structure and store flags directly in isolate. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 """Script to create snapshot bin file.""" 7 """Script to create snapshot bin file."""
8 8
9 import getopt 9 import getopt
10 import optparse 10 import optparse
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 if not ProcessOptions(options): 97 if not ProcessOptions(options):
98 parser.print_help() 98 parser.print_help()
99 return 1 99 return 1
100 100
101 # If there are additional arguments, report error and exit. 101 # If there are additional arguments, report error and exit.
102 if args: 102 if args:
103 parser.print_help() 103 parser.print_help()
104 return 1 104 return 1
105 105
106 # Setup arguments to the snapshot generator binary. 106 # Setup arguments to the snapshot generator binary.
107 script_args = ["--error_on_bad_type", "--error_on_bad_override"] 107 script_args = ["--ignore_unrecognized_flags",
108 "--error_on_bad_type",
109 "--error_on_bad_override"]
108 110
109 # Pass along the package_root if there is one. 111 # Pass along the package_root if there is one.
110 if options.package_root: 112 if options.package_root:
111 script_args.append(''.join([ "--package_root=", options.package_root])) 113 script_args.append(''.join([ "--package_root=", options.package_root]))
112 114
113 # First setup the vm isolate and regular isolate snapshot output filename. 115 # First setup the vm isolate and regular isolate snapshot output filename.
114 script_args.append(''.join([ "--vm_isolate_snapshot=", 116 script_args.append(''.join([ "--vm_isolate_snapshot=",
115 options.vm_output_bin ])) 117 options.vm_output_bin ]))
116 script_args.append(''.join([ "--isolate_snapshot=", options.output_bin ])) 118 script_args.append(''.join([ "--isolate_snapshot=", options.output_bin ]))
117 119
(...skipping 25 matching lines...) Expand all
143 return -1 145 return -1
144 146
145 # Success, update timestamp file. 147 # Success, update timestamp file.
146 CreateTimestampFile(options) 148 CreateTimestampFile(options)
147 149
148 return 0 150 return 0
149 151
150 152
151 if __name__ == '__main__': 153 if __name__ == '__main__':
152 sys.exit(Main()) 154 sys.exit(Main())
OLDNEW
« no previous file with comments | « runtime/lib/object.cc ('k') | runtime/vm/aot_optimizer.cc » ('j') | runtime/vm/flag_list.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698