| Index: sdk/bin/dart2js
|
| ===================================================================
|
| --- sdk/bin/dart2js (revision 20286)
|
| +++ sdk/bin/dart2js (working copy)
|
| @@ -42,7 +42,6 @@
|
| if test -f "$SNAPSHOT"; then
|
| # TODO(ahe): Remove the following line when we are relatively sure it works.
|
| echo Using snapshot "$SNAPSHOT" 1>&2
|
| - EXTRA_VM_OPTIONS[${#EXTRA_VM_OPTIONS[@]}]="--use-script-snapshot=$SNAPSHOT"
|
| fi
|
|
|
| # Tell the VM to grow the heap more aggressively. This should only
|
| @@ -57,4 +56,8 @@
|
| ;;
|
| esac
|
|
|
| -exec "$DART" "${EXTRA_VM_OPTIONS[@]}" "$DART2JS" "${EXTRA_OPTIONS[@]}" "$@"
|
| +if test -f "$SNAPSHOT"; then
|
| + exec "$DART" "${EXTRA_VM_OPTIONS[@]}" "$SNAPSHOT" "${EXTRA_OPTIONS[@]}" "$@"
|
| +else
|
| + exec "$DART" "${EXTRA_VM_OPTIONS[@]}" "$DART2JS" "${EXTRA_OPTIONS[@]}" "$@"
|
| +fi
|
|
|