OLD | NEW |
---|---|
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 '../../sdk/lib/_internal/compiler/implementation/util/uri_extras.dart'; | 8 import '../../sdk/lib/_internal/compiler/implementation/util/uri_extras.dart'; |
9 import '../../sdk/lib/_internal/compiler/implementation/filenames.dart'; | 9 import '../../sdk/lib/_internal/compiler/implementation/filenames.dart'; |
10 | 10 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
87 | 87 |
88 print('dartUri = $dartUri'); | 88 print('dartUri = $dartUri'); |
89 print('dartVmLocation = $dartVmLocation'); | 89 print('dartVmLocation = $dartVmLocation'); |
90 print('${name}Uri = $uri'); | 90 print('${name}Uri = $uri'); |
91 print('${name}Path = $path'); | 91 print('${name}Path = $path'); |
92 print('${name}PathWin = $pathWin'); | 92 print('${name}PathWin = $pathWin'); |
93 | 93 |
94 // Tell the VM to grow the heap more aggressively. This should only | 94 // Tell the VM to grow the heap more aggressively. This should only |
95 // be necessary temporarily until the VM is better at detecting how | 95 // be necessary temporarily until the VM is better at detecting how |
96 // applications use memory. | 96 // applications use memory. |
97 // TODO(ahe): Remove this option. | 97 // TODO(ahe): Remove this option. |
ngeoffray
2012/11/27 09:07:37
Please also mention the bug number.
ahe
2012/11/27 09:53:28
Done.
| |
98 options = ' --heap_growth_rate=32$options'; | 98 options = ' --heap_growth_rate=512$options'; |
99 | 99 |
100 // Tell the VM to don't bother inlining methods. So far it isn't | 100 // Tell the VM to don't bother inlining methods. So far it isn't |
101 // paying off but the VM team is working on fixing that. | 101 // paying off but the VM team is working on fixing that. |
102 // TODO(ahe): Remove this option. | 102 // TODO(ahe): Remove this option. |
103 options = ' --no_use_inlining$options'; | 103 options = ' --no_use_inlining$options'; |
104 | 104 |
105 return [ | 105 return [ |
106 ''' | 106 ''' |
107 #!/bin/bash | 107 #!/bin/bash |
108 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 108 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
142 REM Does the path have a trailing slash? If so, remove it. | 142 REM Does the path have a trailing slash? If so, remove it. |
143 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% | 143 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% |
144 | 144 |
145 set arguments=%* | 145 set arguments=%* |
146 set SNAPSHOTNAME=%SCRIPTPATH%dart2js.snapshot | 146 set SNAPSHOTNAME=%SCRIPTPATH%dart2js.snapshot |
147 if exist %SNAPSHOTNAME% set SNAPSHOT=--use_script_snapshot=%SNAPSHOTNAME% | 147 if exist %SNAPSHOTNAME% set SNAPSHOT=--use_script_snapshot=%SNAPSHOTNAME% |
148 | 148 |
149 "%SCRIPTPATH%\dart.exe"$options %SNAPSHOT% "%SCRIPTPATH%$pathWin" %arguments% | 149 "%SCRIPTPATH%\dart.exe"$options %SNAPSHOT% "%SCRIPTPATH%$pathWin" %arguments% |
150 '''.replaceAll('\n', '\r\n')]; | 150 '''.replaceAll('\n', '\r\n')]; |
151 } | 151 } |
OLD | NEW |