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

Unified Diff: compiler/scripts/dartc.sh

Issue 8659022: Puts JsScope on a diet (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changed the strategy to only walk a specific class when TranslationContext is created Created 9 years, 1 month 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
« no previous file with comments | « compiler/java/com/google/dart/compiler/backend/js/ast/JsScope.java ('k') | compiler/scripts/dartc_test.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/scripts/dartc.sh
diff --git a/compiler/scripts/dartc.sh b/compiler/scripts/dartc.sh
index 82438929780fd94b469d29121b565da648abb7be..a2ec18fbd65031c2035a17cfa7b7d3bd212e2a07 100755
--- a/compiler/scripts/dartc.sh
+++ b/compiler/scripts/dartc.sh
@@ -11,5 +11,14 @@ if [ -x /usr/libexec/java_home ]; then
export JAVA_HOME=$(/usr/libexec/java_home -v '1.6+')
fi
-exec java $DART_JVMARGS -ea -classpath "@CLASSPATH@" \
+EXTRA_JVMARGS=
+OS=`uname | tr [A-Z] [a-z]`
+if [ "$OS" == "darwin" ] ; then
+ # Bump up the heap on Mac VMs, some of which default to 128M or less.
+ # Users can specify DART_JVMARGS in the environment to override
+ # this setting.
+ EXTRA_JVMARGS=-Xmx256M
+fi
+
+exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -classpath "@CLASSPATH@" \
com.google.dart.compiler.DartCompiler $@
« no previous file with comments | « compiler/java/com/google/dart/compiler/backend/js/ast/JsScope.java ('k') | compiler/scripts/dartc_test.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698