Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: sdk/bin/dart2js

Issue 12438033: Write the magic number 0xf5f5dcdc into a script snapshot file and use this to distinguish whether a… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/bin/dart2js
===================================================================
--- sdk/bin/dart2js (revision 20251)
+++ sdk/bin/dart2js (working copy)
@@ -39,12 +39,6 @@
unset EXTRA_VM_OPTIONS
declare -a EXTRA_VM_OPTIONS
-if test -f "$SNAPSHOT"; then
- # TODO(ahe): Remove the following line when we are relatively sure it works.
- echo Using snapshot "$SNAPSHOT" 1>&2
ahe 2013/03/20 06:59:28 Could you retain this for now?
siva 2013/03/20 20:57:20 Done.
- EXTRA_VM_OPTIONS[${#EXTRA_VM_OPTIONS[@]}]="--use-script-snapshot=$SNAPSHOT"
-fi
-
# Tell the VM to grow the heap more aggressively. This should only
# be necessary temporarily until the VM is better at detecting how
# applications use memory.
@@ -57,4 +51,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
« runtime/bin/main.cc ('K') | « runtime/bin/main.cc ('k') | sdk/bin/dart2js.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698