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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Disable String operator+. This should only be necessary | 76 options = ' $options'; |
77 // temporarily as the operator will go away soon. | |
78 // TODO(ahe): Remove this option. | |
79 options = ' --allow_string_plus=false$options'; | |
80 | 77 |
81 // Tell the VM to grow the heap more aggressively. This should only | 78 // Tell the VM to grow the heap more aggressively. This should only |
82 // be necessary temporarily until the VM is better at detecting how | 79 // be necessary temporarily until the VM is better at detecting how |
83 // applications use memory. | 80 // applications use memory. |
84 // TODO(ahe): Remove this option. | 81 // TODO(ahe): Remove this option. |
85 options = ' --heap_growth_rate=32$options'; | 82 options = ' --heap_growth_rate=32$options'; |
86 | 83 |
87 return [ | 84 return [ |
88 ''' | 85 ''' |
89 #!/bin/sh | 86 #!/bin/sh |
(...skipping 13 matching lines...) Expand all Loading... |
103 set SCRIPTPATH=%~dp0 | 100 set SCRIPTPATH=%~dp0 |
104 | 101 |
105 REM Does the path have a trailing slash? If so, remove it. | 102 REM Does the path have a trailing slash? If so, remove it. |
106 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% | 103 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% |
107 | 104 |
108 set arguments=%* | 105 set arguments=%* |
109 | 106 |
110 "%SCRIPTPATH%\dart.exe"$options "%SCRIPTPATH%$dart2jsPathWin" %arguments% | 107 "%SCRIPTPATH%\dart.exe"$options "%SCRIPTPATH%$dart2jsPathWin" %arguments% |
111 '''.replaceAll('\n', '\r\n')]; | 108 '''.replaceAll('\n', '\r\n')]; |
112 } | 109 } |
OLD | NEW |