| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // Disable String operator+. This should only be necessary | 76 // Disable String operator+. This should only be necessary |
| 77 // temporarily as the operator will go away soon. | 77 // temporarily as the operator will go away soon. |
| 78 // TODO(ahe): Remove this option. | 78 // TODO(ahe): Remove this option. |
| 79 options = ' --allow_string_plus=false$options'; | 79 options = ' --allow_string_plus=false$options'; |
| 80 | 80 |
| 81 // Tell the VM to grow the heap more aggressively. This should only |
| 82 // be necessary temporarily until the VM is better at detecting how |
| 83 // applications use memory. |
| 84 // TODO(ahe): Remove this option. |
| 85 options = ' --heap_growth_rate=32$options'; |
| 86 |
| 81 return [ | 87 return [ |
| 82 ''' | 88 ''' |
| 83 #!/bin/sh | 89 #!/bin/sh |
| 84 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 90 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 85 # for details. All rights reserved. Use of this source code is governed by a | 91 # for details. All rights reserved. Use of this source code is governed by a |
| 86 # BSD-style license that can be found in the LICENSE file. | 92 # BSD-style license that can be found in the LICENSE file. |
| 87 | 93 |
| 88 BIN_DIR=`dirname \$0` | 94 BIN_DIR=`dirname \$0` |
| 89 exec \$BIN_DIR/dart$options \$BIN_DIR/$dart2jsPath "\$@" | 95 exec \$BIN_DIR/dart$options \$BIN_DIR/$dart2jsPath "\$@" |
| 90 ''', | 96 ''', |
| 91 ''' | 97 ''' |
| 92 @echo off | 98 @echo off |
| 93 REM Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 99 REM Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 94 REM for details. All rights reserved. Use of this source code is governed by a | 100 REM for details. All rights reserved. Use of this source code is governed by a |
| 95 REM BSD-style license that can be found in the LICENSE file. | 101 REM BSD-style license that can be found in the LICENSE file. |
| 96 | 102 |
| 97 set SCRIPTPATH=%~dp0 | 103 set SCRIPTPATH=%~dp0 |
| 98 | 104 |
| 99 REM Does the path have a trailing slash? If so, remove it. | 105 REM Does the path have a trailing slash? If so, remove it. |
| 100 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% | 106 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% |
| 101 | 107 |
| 102 set arguments=%* | 108 set arguments=%* |
| 103 | 109 |
| 104 "%SCRIPTPATH%\dart.exe"$options "%SCRIPTPATH%$dart2jsPathWin" %arguments% | 110 "%SCRIPTPATH%\dart.exe"$options "%SCRIPTPATH%$dart2jsPathWin" %arguments% |
| 105 '''.replaceAll('\n', '\r\n')]; | 111 '''.replaceAll('\n', '\r\n')]; |
| 106 } | 112 } |
| OLD | NEW |