| 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('../../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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 print('${name}Uri = $uri'); | 89 print('${name}Uri = $uri'); |
| 90 print('${name}Path = $path'); | 90 print('${name}Path = $path'); |
| 91 print('${name}PathWin = $pathWin'); | 91 print('${name}PathWin = $pathWin'); |
| 92 | 92 |
| 93 // Tell the VM to grow the heap more aggressively. This should only | 93 // Tell the VM to grow the heap more aggressively. This should only |
| 94 // be necessary temporarily until the VM is better at detecting how | 94 // be necessary temporarily until the VM is better at detecting how |
| 95 // applications use memory. | 95 // applications use memory. |
| 96 // TODO(ahe): Remove this option. | 96 // TODO(ahe): Remove this option. |
| 97 options = ' --heap_growth_rate=32$options'; | 97 options = ' --heap_growth_rate=32$options'; |
| 98 | 98 |
| 99 // Tell the VM to don't bother inlining methods. So far it isn't |
| 100 // paying off but the VM team is working on fixing that. |
| 101 // TODO(ahe): Remove this option. |
| 102 options = ' --no_use_inlining$options'; |
| 103 |
| 99 return [ | 104 return [ |
| 100 ''' | 105 ''' |
| 101 #!/bin/bash | 106 #!/bin/bash |
| 102 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 107 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 103 # for details. All rights reserved. Use of this source code is governed by a | 108 # for details. All rights reserved. Use of this source code is governed by a |
| 104 # BSD-style license that can be found in the LICENSE file. | 109 # BSD-style license that can be found in the LICENSE file. |
| 105 | 110 |
| 106 # Setting BIN_DIR this way is ugly, but is needed to handle the case where | 111 # Setting BIN_DIR this way is ugly, but is needed to handle the case where |
| 107 # dart-sdk/bin has been symlinked to. On MacOS, readlink doesn't work | 112 # dart-sdk/bin has been symlinked to. On MacOS, readlink doesn't work |
| 108 # with this case. | 113 # with this case. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 134 set SCRIPTPATH=%~dp0 | 139 set SCRIPTPATH=%~dp0 |
| 135 | 140 |
| 136 REM Does the path have a trailing slash? If so, remove it. | 141 REM Does the path have a trailing slash? If so, remove it. |
| 137 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% | 142 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% |
| 138 | 143 |
| 139 set arguments=%* | 144 set arguments=%* |
| 140 | 145 |
| 141 "%SCRIPTPATH%\dart.exe"$options "%SCRIPTPATH%$pathWin" %arguments% | 146 "%SCRIPTPATH%\dart.exe"$options "%SCRIPTPATH%$pathWin" %arguments% |
| 142 '''.replaceAll('\n', '\r\n')]; | 147 '''.replaceAll('\n', '\r\n')]; |
| 143 } | 148 } |
| OLD | NEW |