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

Side by Side Diff: utils/compiler/build_helper.dart

Issue 10532208: Cleanup CL 10565036: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #import('dart:io'); 5 #import('dart:io');
6 #import('dart:uri'); 6 #import('dart:uri');
7 7
8 #import('../../lib/compiler/implementation/util/uri_extras.dart'); 8 #import('../../lib/compiler/implementation/util/uri_extras.dart');
9 #import('../../lib/compiler/implementation/filenames.dart'); 9 #import('../../lib/compiler/implementation/filenames.dart');
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 Uri dart2jsUri = dartUri.resolve('lib/compiler/implementation/dart2js.dart'); 66 Uri dart2jsUri = dartUri.resolve('lib/compiler/implementation/dart2js.dart');
67 String dart2jsPath = relativize(dartVmLocation, dart2jsUri); 67 String dart2jsPath = relativize(dartVmLocation, dart2jsUri);
68 String dart2jsPathWin = dart2jsPath.replaceAll("/", "\\"); 68 String dart2jsPathWin = dart2jsPath.replaceAll("/", "\\");
69 69
70 print('dartUri = $dartUri'); 70 print('dartUri = $dartUri');
71 print('dartVmLocation = $dartVmLocation'); 71 print('dartVmLocation = $dartVmLocation');
72 print('dart2jsUri = $dart2jsUri'); 72 print('dart2jsUri = $dart2jsUri');
73 print('dart2jsPath = $dart2jsPath'); 73 print('dart2jsPath = $dart2jsPath');
74 print('dart2jsPathWin = $dart2jsPathWin'); 74 print('dart2jsPathWin = $dart2jsPathWin');
75 75
76 options = ' $options';
77
78 // Tell the VM to grow the heap more aggressively. This should only 76 // Tell the VM to grow the heap more aggressively. This should only
79 // be necessary temporarily until the VM is better at detecting how 77 // be necessary temporarily until the VM is better at detecting how
80 // applications use memory. 78 // applications use memory.
81 // TODO(ahe): Remove this option. 79 // TODO(ahe): Remove this option.
82 options = ' --heap_growth_rate=32$options'; 80 options = ' --heap_growth_rate=32$options';
83 81
84 return [ 82 return [
85 ''' 83 '''
86 #!/bin/sh 84 #!/bin/sh
87 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 85 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 12 matching lines...) Expand all
100 set SCRIPTPATH=%~dp0 98 set SCRIPTPATH=%~dp0
101 99
102 REM Does the path have a trailing slash? If so, remove it. 100 REM Does the path have a trailing slash? If so, remove it.
103 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% 101 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1%
104 102
105 set arguments=%* 103 set arguments=%*
106 104
107 "%SCRIPTPATH%\dart.exe"$options "%SCRIPTPATH%$dart2jsPathWin" %arguments% 105 "%SCRIPTPATH%\dart.exe"$options "%SCRIPTPATH%$dart2jsPathWin" %arguments%
108 '''.replaceAll('\n', '\r\n')]; 106 '''.replaceAll('\n', '\r\n')];
109 } 107 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698