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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 REM Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 135 REM Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
136 REM for details. All rights reserved. Use of this source code is governed by a | 136 REM for details. All rights reserved. Use of this source code is governed by a |
137 REM BSD-style license that can be found in the LICENSE file. | 137 REM BSD-style license that can be found in the LICENSE file. |
138 | 138 |
139 set SCRIPTPATH=%~dp0 | 139 set SCRIPTPATH=%~dp0 |
140 | 140 |
141 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. |
142 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% | 142 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% |
143 | 143 |
144 set arguments=%* | 144 set arguments=%* |
| 145 set SNAPSHOTNAME=%SCRIPTPATH%dart2js.snapshot |
| 146 if exist %SNAPSHOTNAME% set SNAPSHOT=--use_script_snapshot=%SNAPSHOTNAME% |
145 | 147 |
146 "%SCRIPTPATH%\dart.exe"$options "%SCRIPTPATH%$pathWin" %arguments% | 148 "%SCRIPTPATH%\dart.exe"$options %SNAPSHOT% "%SCRIPTPATH%$pathWin" %arguments% |
147 '''.replaceAll('\n', '\r\n')]; | 149 '''.replaceAll('\n', '\r\n')]; |
148 } | 150 } |
OLD | NEW |