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

Side by Side Diff: compiler/scripts/dart_analyzer.sh

Issue 11234069: Removed a -d32 flag to dart_analyzer (fix for http://code.google.com/p/dart/issues/detail?id=5836) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « compiler/java/com/google/dart/compiler/DartCompiler.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash --posix 1 #!/bin/bash --posix
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 set -e 6 set -e
7 7
8 SCRIPT_DIR=$(dirname $0) 8 SCRIPT_DIR=$(dirname $0)
9 DART_ANALYZER_HOME=$(dirname $SCRIPT_DIR) 9 DART_ANALYZER_HOME=$(dirname $SCRIPT_DIR)
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 else 50 else
51 echo "Configuration problem. Couldn't find dart_analyzer.jar." 51 echo "Configuration problem. Couldn't find dart_analyzer.jar."
52 exit 1 52 exit 1
53 fi 53 fi
54 54
55 if [ -x /usr/libexec/java_home ]; then 55 if [ -x /usr/libexec/java_home ]; then
56 export JAVA_HOME=$(/usr/libexec/java_home -v '1.6+') 56 export JAVA_HOME=$(/usr/libexec/java_home -v '1.6+')
57 fi 57 fi
58 58
59 EXTRA_JVMARGS="-Xss2M " 59 EXTRA_JVMARGS="-Xss2M "
60 OS=`uname | tr [A-Z] [a-z]` 60 OS=`uname | tr "[A-Z]" "[a-z]"`
61 if [ "$OS" == "darwin" ] ; then 61 if [ "$OS" == "darwin" ] ; then
62 # Bump up the heap on Mac VMs, some of which default to 128M or less. 62 # Bump up the heap on Mac VMs, some of which default to 128M or less.
63 # Users can specify DART_JVMARGS in the environment to override 63 # Users can specify DART_JVMARGS in the environment to override this
64 # this setting. Force to 32 bit client vm. 64 bit and server VM make for 64 # setting.
65 # poor performance. 65 EXTRA_JVMARGS+=" -Xmx256M -client "
66 EXTRA_JVMARGS+=" -Xmx256M -client -d32 "
67 else 66 else
68 # On other architectures 67 # On other architectures
69 # -batch invocations will do better with a server vm 68 # -batch invocations will do better with a server vm
70 # invocations for analyzing a single file do better with a client vm 69 # invocations for analyzing a single file do better with a client vm
71 if [ $FOUND_BATCH = 0 ] ; then 70 if [ $FOUND_BATCH = 0 ] ; then
72 EXTRA_JVMARGS+=" -client " 71 EXTRA_JVMARGS+=" -client "
73 fi 72 fi
74 fi 73 fi
75 74
76 exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -classpath "@CLASSPATH@" \ 75 exec java $EXTRA_JVMARGS $DART_JVMARGS -ea -classpath "@CLASSPATH@" \
77 com.google.dart.compiler.DartCompiler ${DART_SDK} $@ 76 com.google.dart.compiler.DartCompiler ${DART_SDK} $@
OLDNEW
« no previous file with comments | « compiler/java/com/google/dart/compiler/DartCompiler.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698