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

Side by Side Diff: dart/frog/frog.py

Issue 9355031: Improve List implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased and resolved conflicts Created 8 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 | dart/frog/leg/emitter.dart » ('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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 """Command line wrapper to run the frog compiler under the Dart VM""" 6 """Command line wrapper to run the frog compiler under the Dart VM"""
7 7
8 # TODO(jimhug): This is a temporary hack to enable running on the VM. We need 8 # TODO(jimhug): This is a temporary hack to enable running on the VM. We need
9 # the ability to get command-line arguments, to return exit codes, and to 9 # the ability to get command-line arguments, to return exit codes, and to
10 # communicate with spawned processes in the VM for this to go away. 10 # communicate with spawned processes in the VM for this to go away.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 # TODO(jimhug): Make it easier to enable and disable this for tests. 70 # TODO(jimhug): Make it easier to enable and disable this for tests.
71 #default='--enable_type_checks --enable_asserts', 71 #default='--enable_type_checks --enable_asserts',
72 default='', 72 default='',
73 help='Flags to pass to the VM that is running frog itself.') 73 help='Flags to pass to the VM that is running frog itself.')
74 74
75 optionParser.add_option('--vm', 75 optionParser.add_option('--vm',
76 default=GetDart(), 76 default=GetDart(),
77 help='The location of the VM.') 77 help='The location of the VM.')
78 78
79 optionParser.add_option('--js_cmd', 79 optionParser.add_option('--js_cmd',
80 default = 'node --crankshaft', # node is really slow without this. 80 default = '%s --crankshaft' % D8,
81 metavar='FILE', help='The shell cmd to use to run output JS code.') 81 metavar='FILE', help='The shell cmd to use to run output JS code.')
82 82
83 optionParser.add_option('--keep_files', 83 optionParser.add_option('--keep_files',
84 action='store_true', help='Do not remove temporary files.') 84 action='store_true', help='Do not remove temporary files.')
85 85
86 # TODO(vsm): Hook in HtmlConverter. 86 # TODO(vsm): Hook in HtmlConverter.
87 optionParser.add_option('--html', 87 optionParser.add_option('--html',
88 action='store_true', help='Invoke this in the browser instead of node/d8.' ) 88 action='store_true', help='Invoke this in the browser instead of node/d8.' )
89 optionParser.add_option('--browser', 89 optionParser.add_option('--browser',
90 default = None, 90 default = None,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 else: 215 else:
216 print 'Compilation succeded. Code generated in: %s' % outfile 216 print 'Compilation succeded. Code generated in: %s' % outfile
217 217
218 if cleanup: shutil.rmtree(workdir) 218 if cleanup: shutil.rmtree(workdir)
219 if result != 0: 219 if result != 0:
220 return 1 220 return 1
221 return 0 221 return 0
222 222
223 if __name__ == '__main__': 223 if __name__ == '__main__':
224 sys.exit(main(sys.argv)) 224 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | dart/frog/leg/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698