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

Side by Side Diff: sdk/bin/dart2js

Issue 892233003: dart2js: Remove heap-growth-flag that was passed to the VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/compiler/lib/src/dart2js_stress.dart ('k') | sdk/bin/dart2js.bat » ('j') | 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 1 #!/bin/bash
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 function follow_links() { 6 function follow_links() {
7 file="$1" 7 file="$1"
8 while [ -h "$file" ]; do 8 while [ -h "$file" ]; do
9 # On Mac OS, readlink -f doesn't work. 9 # On Mac OS, readlink -f doesn't work.
10 file="$(readlink "$file")" 10 file="$(readlink "$file")"
(...skipping 18 matching lines...) Expand all
29 # Stdout is a terminal. 29 # Stdout is a terminal.
30 if test 8 -le `tput colors`; then 30 if test 8 -le `tput colors`; then
31 # Stdout has at least 8 colors, so enable colors. 31 # Stdout has at least 8 colors, so enable colors.
32 EXTRA_OPTIONS+=('--enable-diagnostic-colors') 32 EXTRA_OPTIONS+=('--enable-diagnostic-colors')
33 fi 33 fi
34 fi 34 fi
35 35
36 unset EXTRA_VM_OPTIONS 36 unset EXTRA_VM_OPTIONS
37 declare -a EXTRA_VM_OPTIONS 37 declare -a EXTRA_VM_OPTIONS
38 38
39 # Tell the VM to grow the heap more aggressively. This should only
40 # be necessary temporarily until the VM is better at detecting how
41 # applications use memory.
42 # TODO(ahe): Remove this option (http://dartbug.com/6495).
43 EXTRA_VM_OPTIONS[${#EXTRA_VM_OPTIONS[@]}]='--heap_growth_rate=512'
44
45 case $0 in 39 case $0 in
46 *_developer) 40 *_developer)
47 EXTRA_VM_OPTIONS+=('--checked') 41 EXTRA_VM_OPTIONS+=('--checked')
48 ;; 42 ;;
49 esac 43 esac
50 44
51 # We allow extra vm options to be passed in through an environment variable. 45 # We allow extra vm options to be passed in through an environment variable.
52 if [[ $DART_VM_OPTIONS ]]; then 46 if [[ $DART_VM_OPTIONS ]]; then
53 read -a OPTIONS <<< "$DART_VM_OPTIONS" 47 read -a OPTIONS <<< "$DART_VM_OPTIONS"
54 EXTRA_VM_OPTIONS+=("${OPTIONS[@]}") 48 EXTRA_VM_OPTIONS+=("${OPTIONS[@]}")
(...skipping 10 matching lines...) Expand all
65 59
66 if [[ `uname` == 'Darwin' ]]; then 60 if [[ `uname` == 'Darwin' ]]; then
67 BUILD_DIR="$DART_ROOT/xcodebuild/$DART_CONFIGURATION" 61 BUILD_DIR="$DART_ROOT/xcodebuild/$DART_CONFIGURATION"
68 else 62 else
69 BUILD_DIR="$DART_ROOT/out/$DART_CONFIGURATION" 63 BUILD_DIR="$DART_ROOT/out/$DART_CONFIGURATION"
70 fi 64 fi
71 65
72 PACKAGE_ROOT="$BUILD_DIR/packages/" 66 PACKAGE_ROOT="$BUILD_DIR/packages/"
73 67
74 exec "$DART" "${EXTRA_VM_OPTIONS[@]}" "--package-root=$PACKAGE_ROOT" "$DART2JS" "${EXTRA_OPTIONS[@]}" "$@" 68 exec "$DART" "${EXTRA_VM_OPTIONS[@]}" "--package-root=$PACKAGE_ROOT" "$DART2JS" "${EXTRA_OPTIONS[@]}" "$@"
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/dart2js_stress.dart ('k') | sdk/bin/dart2js.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698