| OLD | NEW |
| 1 @echo off | 1 @echo off |
| 2 REM Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 REM Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3 REM for details. All rights reserved. Use of this source code is governed by a | 3 REM for details. All rights reserved. Use of this source code is governed by a |
| 4 REM BSD-style license that can be found in the LICENSE file. | 4 REM BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 set SCRIPTPATH=%~dp0 | 6 setlocal |
| 7 | 7 set DART2JS_DEVELOPER_MODE=1 |
| 8 REM Does the path have a trailing slash? If so, remove it. | 8 call "%~dp0dart2js.bat" %* |
| 9 if %SCRIPTPATH:~-1%== set SCRIPTPATH=%SCRIPTPATH:~0,-1% | 9 endlocal |
| 10 | |
| 11 set arguments=%* | |
| 12 set SNAPSHOTNAME=%SCRIPTPATH%dart2js.snapshot | |
| 13 if exist %SNAPSHOTNAME% set SNAPSHOT=--use_script_snapshot=%SNAPSHOTNAME% | |
| 14 | |
| 15 "%SCRIPTPATH%dart" --checked --heap_growth_rate=512 %SNAPSHOT% "%SCRIPTPATH%..\l
ib\_internal\compiler\implementation\dart2js.dart" %arguments% | |
| OLD | NEW |