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

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

Issue 9466041: Removes dependency on v8 from dartc testing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated date, copyright notices, build.xml Created 8 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
OLDNEW
1 #!/bin/bash --posix 1 #!/bin/bash --posix
2 # 2 #
3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 7
8 # Prevent problems where the caller has exported CLASSPATH, causing our 8 # Prevent problems where the caller has exported CLASSPATH, causing our
9 # computed value to be copied into the environment and double-counted 9 # computed value to be copied into the environment and double-counted
10 # against the argv limit. 10 # against the argv limit.
11 unset CLASSPATH 11 unset CLASSPATH
12 12
13 # Figure out where the dartc home is 13 # Figure out where the dartc home is
14 SCRIPT_DIR=`dirname $0` 14 SCRIPT_DIR=`dirname $0`
15 DARTC_HOME=`cd $SCRIPT_DIR; pwd` 15 DARTC_HOME=`cd $SCRIPT_DIR; pwd`
16 DIST_DIR=$DARTC_HOME/compiler 16 DIST_DIR=$DARTC_HOME/compiler
17 DARTC_LIBS=$DIST_DIR/lib 17 DARTC_LIBS=$DIST_DIR/lib
18 18
19 D8_EXEC=${D8_EXEC:-$DARTC_HOME/d8} 19 DARTC_FLAGS=""
20
21 DARTC_FLAGS="--optimize"
22 20
23 # Make it easy to insert 'set -x' or similar commands when debugging problems wi th this script. 21 # Make it easy to insert 'set -x' or similar commands when debugging problems wi th this script.
24 eval "$JAVA_STUB_DEBUG" 22 eval "$JAVA_STUB_DEBUG"
25 23
26 JVM_FLAGS=${JVM_FLAGS:-"-Dcom.google.dart.runner.d8=$D8_EXEC"}
27 JVM_FLAGS_CMDLINE="" 24 JVM_FLAGS_CMDLINE=""
28 25
29 while [ ! -z "$1" ]; do 26 while [ ! -z "$1" ]; do
30 case "$1" in 27 case "$1" in
31 --prof) 28 --prof)
32 # Ensure the preset -optimize flag is gone when profiling. 29 # Ensure the preset -optimize flag is gone when profiling.
33 DARTC_FLAGS="--prof" 30 DARTC_FLAGS="--prof"
34 shift ;; 31 shift ;;
35 --debug) 32 --debug)
36 JVM_DEBUG_PORT=${DEFAULT_JVM_DEBUG_PORT:-"5005"} 33 JVM_DEBUG_PORT=${DEFAULT_JVM_DEBUG_PORT:-"5005"}
(...skipping 11 matching lines...) Expand all
48 if [ "$JVM_DEBUG_PORT" != "" ]; then 45 if [ "$JVM_DEBUG_PORT" != "" ]; then
49 JVM_DEBUG_SUSPEND=${DEFAULT_JVM_DEBUG_SUSPEND:-"y"} 46 JVM_DEBUG_SUSPEND=${DEFAULT_JVM_DEBUG_SUSPEND:-"y"}
50 JVM_DEBUG_FLAGS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=${JVM_DEB UG_SUSPEND},address=${JVM_DEBUG_PORT}" 47 JVM_DEBUG_FLAGS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=${JVM_DEB UG_SUSPEND},address=${JVM_DEBUG_PORT}"
51 fi 48 fi
52 49
53 shopt -s execfail # Return control to this script if exec fails. 50 shopt -s execfail # Return control to this script if exec fails.
54 exec $JAVABIN -ea -classpath @CLASSPATH@ \ 51 exec $JAVABIN -ea -classpath @CLASSPATH@ \
55 ${JVM_DEBUG_FLAGS} \ 52 ${JVM_DEBUG_FLAGS} \
56 ${JVM_FLAGS} \ 53 ${JVM_FLAGS} \
57 ${JVM_FLAGS_CMDLINE} \ 54 ${JVM_FLAGS_CMDLINE} \
58 com.google.dart.runner.DartRunner \ 55 com.google.dart.compiler.DartCompiler \
59 $DARTC_FLAGS \ 56 $DARTC_FLAGS \
60 "$@" 57 "$@"
61 58
62 echo "ERROR: couldn't exec ${JAVABIN}." 1>&2 59 echo "ERROR: couldn't exec ${JAVABIN}." 1>&2
63 60
64 exit 1 61 exit 1
OLDNEW
« no previous file with comments | « compiler/javatests/com/google/dart/runner/DartRunnerTest.java ('k') | compiler/scripts/dartc_size.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698